Skip to content

Commit 0203805

Browse files
Infra-Workleapgithub-actions[bot]Copilotgeraldbarre-workleap
authored
chore(deps): update dependency dotnet-sdk to v10.0.300 (#160)
* chore(deps): update dependency dotnet-sdk to v10.0.300 * fix(ci): sync NetAnalyzers editorconfig for .NET 10.0.300 Agent-Logs-Url: https://github.com/workleap/wl-dotnet-codingstandards/sessions/2d3883d9-1c65-4589-80c8-972e74d05d23 Co-authored-by: geraldbarre-workleap <240971877+geraldbarre-workleap@users.noreply.github.com> * fix(ci): make analyzer config generation deterministic across package versions Agent-Logs-Url: https://github.com/workleap/wl-dotnet-codingstandards/sessions/15c25089-d588-4381-9574-66088dfa0bae Co-authored-by: geraldbarre-workleap <240971877+geraldbarre-workleap@users.noreply.github.com> * fix(ci): skip linearb deployment job on renovate branches Agent-Logs-Url: https://github.com/workleap/wl-dotnet-codingstandards/sessions/15c25089-d588-4381-9574-66088dfa0bae Co-authored-by: geraldbarre-workleap <240971877+geraldbarre-workleap@users.noreply.github.com> * Remove linearb job from CI workflow Removed linearb job from CI workflow. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: geraldbarre-workleap <240971877+geraldbarre-workleap@users.noreply.github.com> Co-authored-by: Gérald Barré <gerald.barre@workleap.com>
1 parent 1c40803 commit 0203805

4 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,3 @@ jobs:
4949
path: .output/**/*
5050
include-hidden-files: true
5151
if-no-files-found: error
52-
53-
linearb:
54-
needs: [main]
55-
uses: workleap/wl-reusable-workflows/.github/workflows/linearb-deployment.yml@main
56-
with:
57-
environment: development
58-
cortexEntityIdOrTag: service-wl-dotnet-codingstandards
59-
permissions:
60-
id-token: write
61-
contents: read

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "10.0.201",
3+
"version": "10.0.300",
44
"rollForward": "latestMinor",
55
"allowPrerelease": false
66
}

src/files/analyzers/Analyzer.Microsoft.CodeAnalysis.NetAnalyzers.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,11 @@ dotnet_diagnostic.CA2264.severity = warning
11711171
# Enabled: True, Severity: warning
11721172
dotnet_diagnostic.CA2265.severity = warning
11731173

1174+
# CA2266: File-based program entry point should start with '#!'
1175+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2266
1176+
# Enabled: True, Severity: warning
1177+
dotnet_diagnostic.CA2266.severity = warning
1178+
11741179
# CA2300: Do not use insecure deserializer BinaryFormatter
11751180
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2300
11761181
# Enabled: False, Severity: warning

tools/ConfigurationFilesGenerator/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ static string GetSeverity(DiagnosticSeverity? severity)
160160
await ListAllPackageDependencies(packageIdentity, [repository], NuGetFramework.AnyFramework, cache, NullLogger.Instance, foundPackages, CancellationToken.None);
161161
}
162162

163-
return foundPackages.Select(p => (p.Id, p.Version)).ToArray();
163+
return foundPackages
164+
.GroupBy(package => package.Id, StringComparer.OrdinalIgnoreCase)
165+
.Select(group => (group.Key, group.MaxBy(package => package.Version)!.Version))
166+
.ToArray();
164167

165168
static async Task ListAllPackageDependencies(
166169
PackageIdentity package,

0 commit comments

Comments
 (0)