Closed martinkearn closed 2 years ago
AS A Developer I WANT to ensure my CentOps code conforms to .net style rules SO THAT code is consistently styled
Dependency on https://github.com/buerokratt/Cross-functional-requirements/issues/34
Repeat for all projects in solution (including test projects)
.editorconfig
*.csproj
<PropertyGroup>
<EnableNETAnalyzers>true</EnableNETAnalyzers> <AnalysisLevel>latest</AnalysisLevel> <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference>
dotnet format src/*.sln --no-restore --verify-no-changes
AS A Developer I WANT to ensure my CentOps code conforms to .net style rules SO THAT code is consistently styled
Dependency on https://github.com/buerokratt/Cross-functional-requirements/issues/34
Acceptance Criteria
Steps to apply Code Analysis
Repeat for all projects in solution (including test projects)
.editorconfig
file from https://github.com/buerokratt/DMR/blob/main/src/Dmr.Api/.editorconfig.editorconfig
from step 1 to root of project*.csproj
file within the first<PropertyGroup>
*.csproj
within the<ItemGroup>
dotnet format src/*.sln --no-restore --verify-no-changes