Skip to content

Commit 8dbb7e3

Browse files
committed
stylecop enabled
1 parent af26775 commit 8dbb7e3

4 files changed

Lines changed: 28 additions & 31 deletions

File tree

src/PartialResponse.AspNetCore.Mvc.Formatters.Json/PartialResponse.AspNetCore.Mvc.Formatters.Json.csproj

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
<TargetFrameworks>netstandard2.0</TargetFrameworks>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9-
<VersionPrefix>2.0.0</VersionPrefix>
9+
<Version>0.0.0</Version>
1010
</PropertyGroup>
1111

1212
<PropertyGroup>
@@ -17,21 +17,18 @@
1717

1818
<PropertyGroup>
1919
<Authors>Arjen Post</Authors>
20-
<Copyright>Copyright (c) Arjen Post</Copyright>
20+
<Copyright>Copyright 2018 Arjen Post</Copyright>
2121
<Description>ASP.NET Core MVC formatter for partial response (fields) JSON output.</Description>
2222
<PackageId>PartialResponse.AspNetCore.Mvc.Formatters.Json</PackageId>
23-
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
24-
<PackageProjectUrl>https://github.com/dotarj/PartialResponse</PackageProjectUrl>
23+
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
24+
<PackageProjectUrl>https://github.com/dotarj/PartialResponse.AspNetCore.Mvc.Formatters.Json</PackageProjectUrl>
2525
<PackageTags>aspnetcore;aspnetcoremvc;json;partial;response;partialresponse;fields</PackageTags>
2626
<RepositoryType>git</RepositoryType>
27-
<RepositoryUrl>https://github.com/dotarj/PartialResponse</RepositoryUrl>
27+
<RepositoryUrl>https://github.com/dotarj/PartialResponse.AspNetCore.Mvc.Formatters.Json</RepositoryUrl>
2828
</PropertyGroup>
2929

3030
<ItemGroup>
31-
<ProjectReference Include="..\PartialResponse.Core\PartialResponse.Core.csproj" />
32-
</ItemGroup>
33-
34-
<ItemGroup>
31+
<PackageReference Include="PartialResponse.Core" Version="0.0.0-ci.sha.929a19b.build.41" />
3532
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.0.0" />
3633
<PackageReference Include="Newtonsoft.Json" Version="10.0.1" />
3734
</ItemGroup>
@@ -41,9 +38,7 @@
4138
</ItemGroup>
4239

4340
<ItemGroup>
44-
<AdditionalFiles Include="..\stylecop.json">
45-
<Link>stylecop.json</Link>
46-
</AdditionalFiles>
41+
<AdditionalFiles Include="../../stylecop.json" Visible="False" />
4742
</ItemGroup>
4843

49-
</Project>
44+
</Project>

stylecop.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
3+
"settings": {
4+
"documentationRules": {
5+
"copyrightText": "Copyright (c) Arjen Post. See LICENSE and NOTICE in the project root for license information.",
6+
"documentInternalElements": false,
7+
"xmlHeader": false
8+
},
9+
"indentation": {
10+
"indentationSize": 4
11+
},
12+
"orderingRules": {
13+
"usingDirectivesPlacement": "outsideNamespace"
14+
}
15+
}
16+
}

test/PartialResponse.AspNetCore.Mvc.Formatters.Json.Tests/PartialResponse.AspNetCore.Mvc.Formatters.Json.Tests.csproj

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<DebugType Condition="$(codecov) == 'true'">full</DebugType>
55
<IsPackable>false</IsPackable>
6-
<TargetFramework>net461</TargetFramework>
6+
<TargetFramework>net471</TargetFramework>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
</PropertyGroup>
99

@@ -14,34 +14,20 @@
1414
<ItemGroup>
1515
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
1616
<PackageReference Include="Moq" Version="4.8.1" />
17-
<PackageReference Include="OpenCover" Version="4.6.519" PrivateAssets="All" />
18-
<PackageReference Include="System.Diagnostics.TraceSource" Version="4.3.0" />
1917
<PackageReference Include="xunit" Version="2.3.1" />
20-
<PackageReference Include="xunit.runner.console" Version="2.3.1" />
2118
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
2219
</ItemGroup>
2320

2421
<ItemGroup>
25-
<None Update="xunit.runner.json">
26-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27-
</None>
22+
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" />
2823
</ItemGroup>
2924

3025
<ItemGroup>
31-
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />
32-
</ItemGroup>
33-
34-
<ItemGroup>
35-
<AdditionalFiles Include="..\stylecop.json">
36-
<Link>stylecop.json</Link>
37-
</AdditionalFiles>
38-
<AdditionalFiles Include="..\stylecop.ruleset">
39-
<Link>stylecop.ruleset</Link>
40-
</AdditionalFiles>
26+
<AdditionalFiles Include="../../stylecop.json" Visible="False" />
4127
</ItemGroup>
4228

4329
<PropertyGroup>
44-
<CodeAnalysisRuleSet>..\stylecop.ruleset</CodeAnalysisRuleSet>
30+
<CodeAnalysisRuleSet>stylecop.ruleset</CodeAnalysisRuleSet>
4531
</PropertyGroup>
4632

4733
</Project>

test/stylecop.ruleset renamed to test/PartialResponse.AspNetCore.Mvc.Formatters.Json.Tests/stylecop.ruleset

File renamed without changes.

0 commit comments

Comments
 (0)