diff --git a/.editorconfig b/.editorconfig index 09d0cda6..aea17175 100644 --- a/.editorconfig +++ b/.editorconfig @@ -203,13 +203,8 @@ dotnet_diagnostic.CA2241.severity = warning dotnet_diagnostic.CA2242.severity = warning # Diagnostics: IDE -dotnet_diagnostic.IDE0001.severity = error +dotnet_diagnostic.IDE0001.severity = warning dotnet_diagnostic.IDE0028.severity = error -dotnet_diagnostic.IDE0090.severity = error -dotnet_diagnostic.IDE0300.severity = error -dotnet_diagnostic.IDE0301.severity = error -dotnet_diagnostic.IDE0305.severity = error -dotnet_diagnostic.IDE0350.severity = error dotnet_diagnostic.IDE1006.severity = error # Diagnostics: MSTEST diff --git a/src/GlobalSuppressions.cs b/src/GlobalSuppressions.cs index 7475ae24..56a2da46 100644 --- a/src/GlobalSuppressions.cs +++ b/src/GlobalSuppressions.cs @@ -18,7 +18,5 @@ [assembly: SuppressMessage("Usage", "CA2213:Disposable fields should be disposed", Justification = "MudThemeProvider is a child Razor component captured via @ref; the Blazor render tree owns and disposes it, not the parent layout.", Scope = "member", Target = "~F:DockerUpdateGuard.Components.Layout.MainLayout._themeProvider")] -[assembly: SuppressMessage("Minor Code Smell", "S1125:Boolean literals should not be redundant", Justification = "Comparing against false is the binding code style of this repository (see .github/instructions/csharp.instructions.md).")] - [assembly: SuppressMessage("Globalization", "CA1304:Specify CultureInfo", Justification = "EF Core translates string.ToLower() to the SQL lower() function; ToLowerInvariant and the culture overload do not translate on Npgsql, and the advisory identifiers are matched ignoring letter case in the database.", Scope = "member", Target = "~M:DockerUpdateGuard.UI.DashboardVulnerabilityQuery.CreateAdvisoryFindingsQuery(DockerUpdateGuard.Data.DockerUpdateGuardDbContext,System.Collections.Generic.List{System.String})~System.Linq.IQueryable{DockerUpdateGuard.Data.Entities.VulnerabilityFinding}")] [assembly: SuppressMessage("Globalization", "CA1311:Specify a culture or use an invariant version", Justification = "EF Core translates string.ToLower() to the SQL lower() function; ToLowerInvariant and the culture overload do not translate on Npgsql, and the advisory identifiers are matched ignoring letter case in the database.", Scope = "member", Target = "~M:DockerUpdateGuard.UI.DashboardVulnerabilityQuery.CreateAdvisoryFindingsQuery(DockerUpdateGuard.Data.DockerUpdateGuardDbContext,System.Collections.Generic.List{System.String})~System.Linq.IQueryable{DockerUpdateGuard.Data.Entities.VulnerabilityFinding}")] \ No newline at end of file