Skip to content

Commit

Permalink
Update packages / fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rans4ckeR committed Mar 22, 2024
1 parent ab77a64 commit 3e8fbf4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ dotnet_diagnostic.CA1303.severity = none
dotnet_diagnostic.CA1008.severity = none
dotnet_diagnostic.API1002.severity = none
dotnet_diagnostic.API1003.severity = warning
dotnet_diagnostic.CA2263.severity = warning

[*.{cs,vb}]
dotnet_style_operator_placement_when_wrapping = beginning_of_line
Expand Down Expand Up @@ -563,5 +564,48 @@ dotnet_diagnostic.CA1062.severity = none
dotnet_diagnostic.MSTEST0001.severity = warning
dotnet_diagnostic.MSTEST0006.severity = warning
dotnet_diagnostic.MSTEST0004.severity = warning

# RS1015: Provide non-null 'helpLinkUri' value to diagnostic descriptor constructor
dotnet_diagnostic.RS1015.severity = warning

# RS1020: Category for analyzers must be from the specified values
dotnet_diagnostic.RS1020.severity = warning

# RS1028: Provide non-null 'customTags' value to diagnostic descriptor constructor
dotnet_diagnostic.RS1028.severity = warning

# CA1002: Do not expose generic lists
dotnet_diagnostic.CA1002.severity = warning

# CA1014: Mark assemblies with CLSCompliant
dotnet_diagnostic.CA1014.severity = warning

# CA1017: Mark assemblies with ComVisible
dotnet_diagnostic.CA1017.severity = warning

# CA1021: Avoid out parameters
dotnet_diagnostic.CA1021.severity = warning

# CA1045: Do not pass types by reference
dotnet_diagnostic.CA1045.severity = warning

# CA1060: Move pinvokes to native methods class
dotnet_diagnostic.CA1060.severity = warning

# CA1501: Avoid excessive inheritance
dotnet_diagnostic.CA1501.severity = warning

# CA1502: Avoid excessive complexity
dotnet_diagnostic.CA1502.severity = warning

# CA1505: Avoid unmaintainable code
dotnet_diagnostic.CA1505.severity = warning

# CA1506: Avoid excessive class coupling
dotnet_diagnostic.CA1506.severity = warning

# CA1509: Invalid entry in code metrics rule specification file
dotnet_diagnostic.CA1509.severity = warning

[*.vb]
dotnet_diagnostic.CA1047.severity = warning
2 changes: 1 addition & 1 deletion CipherPunk.UI/Services/UacService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public BitmapSource GetShieldIcon()
{
var psii = new SHSTOCKICONINFO
{
cbSize = (uint)Marshal.SizeOf(typeof(SHSTOCKICONINFO))
cbSize = (uint)Marshal.SizeOf<SHSTOCKICONINFO>()
};
BOOL destroyIconResult = default;
BitmapSource bitmapSource;
Expand Down
2 changes: 1 addition & 1 deletion CipherPunk/CipherPunk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="System.Diagnostics.EventLog" Version="8.0.0" />
</ItemGroup>
Expand Down

0 comments on commit 3e8fbf4

Please sign in to comment.