Browse Source

disable header rules as stylecop.json not working at command line

pull/131/head
Scott Williams 9 years ago
parent
commit
12882c030a
  1. 4
      .vscode/tasks.json
  2. 3
      ImageSharp.ruleset
  3. 3
      src/ImageSharp/ImageSharp.csproj

4
.vscode/tasks.json

@ -8,7 +8,7 @@
"tasks": [
{
"taskName": "build",
"args": [ "src/*/project.json", "-f", "netstandard1.1" ],
"args": [ "ImageSharp.sln" ],
"isBuildCommand": true,
"showOutput": "always",
"problemMatcher": "$msCompile"
@ -22,7 +22,7 @@
},
{
"taskName": "test",
"args": ["tests/ImageSharp.Tests/project.json", "-f", "netcoreapp1.1"],
"args": ["tests/ImageSharp.Tests/ImageSharp.Tests.csproj", "-f", "netcoreapp1.1"],
"isTestCommand": true,
"showOutput": "always",
"problemMatcher": "$msCompile"

3
ImageSharp.ruleset

@ -4,5 +4,8 @@
<Rule Id="AD0001" Action="None" />
<Rule Id="SA1405" Action="None" />
<Rule Id="SA1413" Action="None" />
<!-- temp remove the header requiremnet as stylecop is currently failing to read the stylecop.json file from 'dotnet build' -->
<Rule Id="SA1636" Action="None" />
<Rule Id="SA1633" Action="None" />
</Rules>
</RuleSet>

3
src/ImageSharp/ImageSharp.csproj

@ -27,6 +27,7 @@
<DebugType Condition="$(codecov) != ''">full</DebugType>
<DebugType Condition="$(codecov) == ''">portable</DebugType>
<DebugSymbols>True</DebugSymbols>
<Features>IOperation</Features>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
@ -34,7 +35,7 @@
<ItemGroup>
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="stylecop.json" />
<None Include="stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta001">

Loading…
Cancel
Save