Manual sweep of all 42 IDE0028 sites flagged by SonarQube — dotnet format analyzers --diagnostics IDE0028 declined to fix these (no .editorconfig
opt-in for dotnet_style_prefer_collection_expression), so applied by
hand. The repo already targets <LangVersion>latest</LangVersion> on
net8.0, so C# 12 collection expressions are available.
Pattern: new List<T>() / new Dictionary<K,V>() / new ArrayList() / new() -> [] for empty; new List<T> { ... } -> [...] for literal.
24 files touched in src/{EFCore, LinqToSql, Query, Snowflake, SqlBreakdown,
SqlServer}; tests untouched (no IDE0028 sites in test code).
Build clean (35 warnings unchanged from baseline, 0 errors). All tests
remain green.
Manual sweep of all 42 IDE0028 sites flagged by SonarQube — `dotnet format
analyzers --diagnostics IDE0028` declined to fix these (no .editorconfig
opt-in for `dotnet_style_prefer_collection_expression`), so applied by
hand. The repo already targets `<LangVersion>latest</LangVersion>` on
net8.0, so C# 12 collection expressions are available.
Pattern: `new List<T>()` / `new Dictionary<K,V>()` / `new ArrayList()` /
`new()` -> `[]` for empty; `new List<T> { ... }` -> `[...]` for literal.
24 files touched in src/{EFCore, LinqToSql, Query, Snowflake, SqlBreakdown,
SqlServer}; tests untouched (no IDE0028 sites in test code).
Build clean (35 warnings unchanged from baseline, 0 errors). All tests
remain green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Manual sweep of all 42 IDE0028 sites flagged by SonarQube — `dotnet format
analyzers --diagnostics IDE0028` declined to fix these (no .editorconfig
opt-in for `dotnet_style_prefer_collection_expression`), so applied by
hand. The repo already targets `<LangVersion>latest</LangVersion>` on
net8.0, so C# 12 collection expressions are available.
Pattern: `new List<T>()` / `new Dictionary<K,V>()` / `new ArrayList()` /
`new()` -> `[]` for empty; `new List<T> { ... }` -> `[...]` for literal.
24 files touched in src/{EFCore, LinqToSql, Query, Snowflake, SqlBreakdown,
SqlServer}; tests untouched (no IDE0028 sites in test code).
Build clean (35 warnings unchanged from baseline, 0 errors). All tests
remain green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Manual sweep of all 42 IDE0028 sites flagged by SonarQube —
dotnet format analyzers --diagnostics IDE0028declined to fix these (no .editorconfigopt-in for
dotnet_style_prefer_collection_expression), so applied byhand. The repo already targets
<LangVersion>latest</LangVersion>onnet8.0, so C# 12 collection expressions are available.
Pattern:
new List<T>()/new Dictionary<K,V>()/new ArrayList()/new()->[]for empty;new List<T> { ... }->[...]for literal.24 files touched in src/{EFCore, LinqToSql, Query, Snowflake, SqlBreakdown,
SqlServer}; tests untouched (no IDE0028 sites in test code).
Build clean (35 warnings unchanged from baseline, 0 errors). All tests
remain green.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Manual sweep of all 42 IDE0028 sites flagged by SonarQube — `dotnet format analyzers --diagnostics IDE0028` declined to fix these (no .editorconfig opt-in for `dotnet_style_prefer_collection_expression`), so applied by hand. The repo already targets `<LangVersion>latest</LangVersion>` on net8.0, so C# 12 collection expressions are available. Pattern: `new List<T>()` / `new Dictionary<K,V>()` / `new ArrayList()` / `new()` -> `[]` for empty; `new List<T> { ... }` -> `[...]` for literal. 24 files touched in src/{EFCore, LinqToSql, Query, Snowflake, SqlBreakdown, SqlServer}; tests untouched (no IDE0028 sites in test code). Build clean (35 warnings unchanged from baseline, 0 errors). All tests remain green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>