-
Notifications
You must be signed in to change notification settings - Fork 0
fix: enforce generated analyzer config ordering #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
98bcfc5
e16db33
f7b6125
ada2f47
cf18da3
b6e83a8
4cc070c
da195e3
eb99db2
b719189
642a434
5b85e59
23aa320
6b504e0
1d0f071
e6d76a4
abfdd06
7e47350
062473c
da64682
bd356d1
bf2269e
fde3187
67a10f2
f6ba794
c3ae70b
d517b7e
7034f77
cb4e6cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,26 @@ | ||
| <Project> | ||
| <!-- | ||
| Set the CI marker FIRST so the warning-as-error properties below see it. | ||
| PropertyGroups evaluate in document order, so deferring this until after | ||
| those conditions would silently bypass CI warning enforcement on Debug | ||
| builds (e.g. `dotnet test` without `-c Release`). | ||
| --> | ||
| <PropertyGroup Condition="'$(CI)' == 'true'"> | ||
| <ContinuousIntegrationBuild Condition="'$(ContinuousIntegrationBuild)' == ''">true</ContinuousIntegrationBuild> | ||
| </PropertyGroup> | ||
|
|
||
| <!-- SDK-owned properties - centralized here, NOT in individual csproj files --> | ||
| <PropertyGroup> | ||
| <LangVersion>latest</LangVersion> | ||
| <Nullable>enable</Nullable> | ||
| <Deterministic>true</Deterministic> | ||
| </PropertyGroup> | ||
| <ImplicitUsings Condition="'$(ImplicitUsings)' == ''">enable</ImplicitUsings> | ||
| <Deterministic Condition="'$(Deterministic)' == ''">true</Deterministic> | ||
| <EnableNETAnalyzers Condition="'$(EnableNETAnalyzers)' == ''">true</EnableNETAnalyzers> | ||
| <AnalysisLevel Condition="'$(AnalysisLevel)' == ''">latest-all</AnalysisLevel> | ||
|
|
||
| <!-- CI-only: Enable SourceLink reproducibility --> | ||
| <PropertyGroup Condition="'$(CI)' == 'true'"> | ||
| <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
| <MSBuildTreatWarningsAsErrors Condition="'$(MSBuildTreatWarningsAsErrors)' == '' AND ('$(ContinuousIntegrationBuild)' == 'true' OR '$(Configuration)' == 'Release')">true</MSBuildTreatWarningsAsErrors> | ||
| <TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == '' AND ('$(ContinuousIntegrationBuild)' == 'true' OR '$(Configuration)' == 'Release')">true</TreatWarningsAsErrors> | ||
| <EnforceCodeStyleInBuild Condition="'$(EnforceCodeStyleInBuild)' == '' AND ('$(ContinuousIntegrationBuild)' == 'true' OR '$(Configuration)' == 'Release')">true</EnforceCodeStyleInBuild> | ||
|
Comment on lines
+21
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
These properties are conditioned on Useful? React with 👍 / 👎. |
||
| </PropertyGroup> | ||
|
|
||
| <!-- | ||
|
|
@@ -24,9 +36,14 @@ | |
| <!-- | ||
| This repo's own projects use Microsoft.NET.Sdk directly, not ANcpLua.NET.Sdk, | ||
| so the SDK's Common.props EditorConfigFiles injection doesn't run. Pull in | ||
| the canonical naming convention file so this repo eats its own dog food. | ||
| the canonical SDK-shipped editorconfigs so this repo eats its own dog food. | ||
| --> | ||
| <ItemGroup> | ||
| <EditorConfigFiles Include="$(MSBuildThisFileDirectory)src\Config\NamingConvention.editorconfig" /> | ||
| <PropertyGroup> | ||
| <EnableEditorConfigDogfooding Condition="'$(EnableEditorConfigDogfooding)' == ''">true</EnableEditorConfigDogfooding> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup Condition="'$(EnableEditorConfigDogfooding)' == 'true'"> | ||
| <EditorConfigFiles Include="$(MSBuildThisFileDirectory)src\Config\*.editorconfig" | ||
| Exclude="$(MSBuildThisFileDirectory)src\Config\ANcpLua.NET.Sdk*.editorconfig" /> | ||
|
coderabbitai[bot] marked this conversation as resolved.
coderabbitai[bot] marked this conversation as resolved.
|
||
| </ItemGroup> | ||
| </Project> | ||
| </Project> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # global_level must be higher than the base editorconfig files | ||
| # global_level must be higher than the base SDK-shipped globals | ||
| is_global = true | ||
| global_level = 101 | ||
| global_level = 60 | ||
|
|
||
| # CA1002: Do not expose generic lists | ||
| dotnet_diagnostic.CA1002.severity = none |
Uh oh!
There was an error while loading. Please reload this page.