Skip to content
Permalink
Browse files

Apply StyleCop.Analyzers.ruleset

  • Loading branch information...
hardywood-k committed Nov 25, 2018
1 parent 5b7fd16 commit f5893db4c389e2dd2b31c1f1eed1a3aef9f0eae7
Showing with 34 additions and 0 deletions.
  1. +8 −0 Libplanet.Tests/Libplanet.Tests.csproj
  2. +10 −0 Libplanet/Libplanet.csproj
  3. +8 −0 StyleCop.Analyzers.ruleset
  4. +8 −0 stylecop.json
@@ -6,6 +6,10 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>..\StyleCop.Analyzers.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="xunit" Version="2.3.1" />
@@ -15,4 +19,8 @@
<ItemGroup>
<ProjectReference Include="..\Libplanet\Libplanet.csproj" />
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="..\stylecop.json" />
</ItemGroup>
</Project>
@@ -4,7 +4,17 @@
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>..\StyleCop.Analyzers.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BouncyCastle.NetCore" Version="1.8.3" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="..\stylecop.json" />
</ItemGroup>
</Project>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Rules for Libplanet" Description="Code analysis rules for Libplanet.csproj." ToolsVersion="10.0">
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<Rule Id="SA1633" Action="None" />
<Rule Id="SA1652" Action="None" />
<Rule Id="SA1309" Action="None" />
</Rules>
</RuleSet>
@@ -0,0 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"orderingRules": {
"usingDirectivesPlacement": "outsideNamespace"
}
}
}

0 comments on commit f5893db

Please sign in to comment.
You can’t perform that action at this time.