Browse Source

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

af/merge-core
Scott Williams 9 years ago
parent
commit
7616142dc0
  1. 4
      .vscode/tasks.json
  2. 3
      ImageSharp.ruleset
  3. 3
      src/ImageSharp/ImageSharp.csproj

4
.vscode/tasks.json

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

3
ImageSharp.ruleset

@ -4,5 +4,8 @@
<Rule Id="AD0001" Action="None" /> <Rule Id="AD0001" Action="None" />
<Rule Id="SA1405" Action="None" /> <Rule Id="SA1405" Action="None" />
<Rule Id="SA1413" 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> </Rules>
</RuleSet> </RuleSet>

3
src/ImageSharp/ImageSharp.csproj

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

Loading…
Cancel
Save