Make all Analyzers except StyleCop run all the time
see #1813, 4a2627337
This commit is contained in:
parent
4a26273379
commit
69b923ad55
|
@ -23,7 +23,6 @@
|
|||
<NoWarn>$(NoWarn);CS1591;SA0001</NoWarn>
|
||||
<Nullable>enable</Nullable>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
|
||||
|
@ -36,13 +35,15 @@
|
|||
<PropertyGroup Condition=" '$(MachineExtraCompilationFlag)' != '' ">
|
||||
<DefineConstants>$(DefineConstants);$(MachineExtraCompilationFlag)</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(RunStyleCop)' != '' OR '$(ContinuousIntegrationBuild)' != '' ">
|
||||
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" PrivateAssets="all" />
|
||||
<PackageReference Include="Menees.Analyzers" PrivateAssets="all" />
|
||||
<PackageReference Include="Meziantou.Analyzer" PrivateAssets="all" />
|
||||
<PackageReference Include="Nullable" PrivateAssets="all" />
|
||||
<PackageReference Include="Roslynator.Analyzers" PrivateAssets="all" />
|
||||
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="all" />
|
||||
<Analyzer Include="$(MSBuildProjectDirectory)/../../References/BizHawk.Analyzer.dll" />
|
||||
<GlobalAnalyzerConfigFiles Include="$(MSBuildProjectDirectory)/../../.global.editorconfig.ini" />
|
||||
<AdditionalFiles Include="$(MSBuildProjectDirectory)/../../.stylecop.json" />
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<RunStyleCop>true</RunStyleCop>
|
||||
<TargetFrameworks>netstandard2.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(ProjectDir)../../Common.props" />
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<RunStyleCop>true</RunStyleCop>
|
||||
</PropertyGroup>
|
||||
<Import Project="../Common.props" />
|
||||
<PropertyGroup>
|
||||
<NoWarn>$(NoWarn);BHI1105;MEN018;SA1200</NoWarn>
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<RunStyleCop>true</RunStyleCop>
|
||||
</PropertyGroup>
|
||||
<Import Project="../Common.props" />
|
||||
<ItemGroup>
|
||||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/../src/Menees.Analyzers.Settings.xml" />
|
||||
|
|
|
@ -17,9 +17,6 @@
|
|||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' And '$(SolutionDir)' != '' ">
|
||||
<PathMap>$(SolutionDir)=/</PathMap>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(MachineRunAnalyzersDuringBuild)' == '' ">
|
||||
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" PrivateAssets="all" />
|
||||
<Analyzer Include="$(MSBuildProjectDirectory)/../../References/BizHawk.SrcGen.ReflectionCache.dll" />
|
||||
|
|
Loading…
Reference in New Issue