Skip to content

Commit

Permalink
Merge branch 'renovate/all-packages' into renovate/major-all-packages
Browse files Browse the repository at this point in the history
# Conflicts:
#	Lombiq.Analyzers/AnalyzerPackages.props
  • Loading branch information
Piedone committed Dec 25, 2024
2 parents ef932e8 + f4835d7 commit 99fc9df
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-analysis-failure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Test Analysis Failure - NuGet PackageReference
uses: Lombiq/GitHub-Actions/.github/workflows/test-analysis-failure.yml@dev
with:
machine-types: "['ubuntu-24.04', 'windows-2022']"
machine-types: '["ubuntu-24.04", "windows-2022"]'
build-directory: TestSolutions/Lombiq.Analyzers.PackageReference
timeout-minutes: 30
build-expected-code-analysis-errors: |
Expand All @@ -25,7 +25,7 @@ jobs:
name: Test Analysis Failure - Local ProjectReference
uses: Lombiq/GitHub-Actions/.github/workflows/test-analysis-failure.yml@dev
with:
machine-types: "['ubuntu-24.04', 'windows-2022']"
machine-types: '["ubuntu-24.04", "windows-2022"]'
build-directory: TestSolutions/Lombiq.Analyzers.ProjectReference
timeout-minutes: 30
build-expected-code-analysis-errors: |
Expand Down
2 changes: 1 addition & 1 deletion Lombiq.Analyzers.NetFx/Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
'C:\Users\runneradmin\.nuget\packages\microsoft.codeanalysis.csharp.codestyle\4.7.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.CodeStyle.dll' #spell-check-ignore-line
references version '4.7.0.0' of the compiler, which is newer than the currently running version '4.6.0.0'."
kind. -->
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.7.0">
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.12.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers;</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions Lombiq.Analyzers/AnalyzerPackages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<ItemGroup>
<AnalyzerPackage Include="AsyncFixer" Version="1.6.0"/>
<AnalyzerPackage Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59"/>
<AnalyzerPackage Include="Meziantou.Analyzer" Version="2.0.155"/>
<AnalyzerPackage Include="Meziantou.Analyzer" Version="2.0.183"/>
<AnalyzerPackage Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.10.0"/>
<AnalyzerPackage Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0"/>
<AnalyzerPackage Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.10.48"/>
<AnalyzerPackage Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.12.19"/>
<AnalyzerPackage Include="SecurityCodeScan.VS2019" Version="5.6.7"/>
<AnalyzerPackage Include="SonarAnalyzer.CSharp" Version="10.4.0.108396"/>
<AnalyzerPackage Include="StyleCop.Analyzers" Version="1.2.0-beta.556"/>
Expand Down
4 changes: 4 additions & 0 deletions Lombiq.Analyzers/Lombiq.Analyzers.globalconfig
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,8 @@ dotnet_diagnostic.MA0111.severity = none
dotnet_diagnostic.MA0120.severity = warning
dotnet_diagnostic.MA0121.severity = warning
dotnet_diagnostic.MA0122.severity = warning
dotnet_diagnostic.MA0165.severity = silent


# SonarAnalyzer.CSharp rules
dotnet_diagnostic.S100.severity = warning
Expand Down Expand Up @@ -579,6 +581,8 @@ dotnet_diagnostic.S2148.severity = warning
dotnet_diagnostic.S2197.severity = warning
dotnet_diagnostic.S2278.severity = warning
dotnet_diagnostic.S2302.severity = warning
# Covered by CA1822.
dotnet_diagnostic.S2325.severity = none
dotnet_diagnostic.S2330.severity = warning
dotnet_diagnostic.S2333.severity = warning
dotnet_diagnostic.S2342.severity = warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Lombiq.Analyzers.OrchardCore" Version="5.1.0">
<PackageReference Include="Lombiq.Analyzers.OrchardCore" Version="5.1.1-alpha.0.osoe-815">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
19 changes: 15 additions & 4 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,25 @@
// The capture group names are required as such.
'<AnalyzerPackage Include="(?<depName>[^"]+)" Version="(?<currentValue>[^"]+)"/>'
],
'datasourceTemplate': 'nuget',
'datasourceTemplate': 'nuget', // #spell-check-ignore-line
'versioningTemplate': 'nuget'
},
],
'packageRules': [
packageRules: [
{
'groupName': 'All packages',
'matchUpdateTypes': ['*'],
// Microsoft.CodeAnalysis.CSharp.CodeStyle references Roslyn, and if its version is higher than that of the
// locally installed SDK, it'll emit a "CSC : error CS9057: The analyzer assembly
// '/home/runner/.nuget/packages/microsoft.codeanalysis.csharp.codestyle/4.11.0/analyzers/dotnet/cs/Microsoft.CodeAnalysis.CSharp.CodeStyle.dll'
// references version '4.31.0.0' of the compiler, which is newer than the currently running version
// '4.10.0.0'." error. So, we need to update it manually together with the SDK (and targeted .NET version).
matchPackageNames: [
'Microsoft.CodeAnalysis.CSharp.CodeStyle',
],
enabled: false,
},
{
groupName: 'All packages',
matchUpdateTypes: ['*'],
},
],
}

0 comments on commit 99fc9df

Please sign in to comment.