Disable stylecop for backend build on azure

Linting issues are picked up by the analyze task
pull/356/head
ta264 4 years ago
parent 07295cd7b2
commit 745fba3bf8

@ -44,6 +44,9 @@ stages:
pool:
vmImage: $(imageName)
variables:
# Disable stylecop here - linting errors get caught by the analyze task
EnableStylecop: 'false'
steps:
# Set the build name properly. The 'name' property won't recursively expand so hack here:
- powershell: Write-Host "##vso[build.updatebuildnumber]$($env:READARRVERSION)"

@ -92,7 +92,7 @@
</ItemGroup>
<!-- Set up stylecop -->
<ItemGroup Condition="'$(ReadarrProject)'=='true'">
<ItemGroup Condition="'$(ReadarrProject)'=='true' and '$(EnableStylecop)'!='false'">
<!-- StyleCop analysis -->
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>

Loading…
Cancel
Save