-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
30 lines (25 loc) · 1.03 KB
/
Directory.Build.props
File metadata and controls
30 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<Project>
<PropertyGroup>
<!-- Força warnings como erros -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Análise focada em qualidade, não estilo -->
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>Minimum</AnalysisMode>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<!-- DESABILITA análise de estilo no build -->
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<!-- Nullable para prevenir NullReferenceException -->
<Nullable>enable</Nullable>
<!-- Configurações básicas -->
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<NoWarn>S4830;CS0618;S4423;SYSLIB0039;S101;S1075;S2486;S3267;S1699;S1751;S3011;S108</NoWarn>
</PropertyGroup>
<ItemGroup>
<!-- APENAS SonarAnalyzer - foca em bugs e code smells -->
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.3.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>