From f5893db4c389e2dd2b31c1f1eed1a3aef9f0eae7 Mon Sep 17 00:00:00 2001 From: Hardywood Date: Sun, 25 Nov 2018 14:59:20 +0900 Subject: [PATCH] Apply StyleCop.Analyzers.ruleset --- Libplanet.Tests/Libplanet.Tests.csproj | 8 ++++++++ Libplanet/Libplanet.csproj | 10 ++++++++++ StyleCop.Analyzers.ruleset | 8 ++++++++ stylecop.json | 8 ++++++++ 4 files changed, 34 insertions(+) create mode 100644 StyleCop.Analyzers.ruleset create mode 100644 stylecop.json diff --git a/Libplanet.Tests/Libplanet.Tests.csproj b/Libplanet.Tests/Libplanet.Tests.csproj index e263eef87cb..24d6e9369f6 100644 --- a/Libplanet.Tests/Libplanet.Tests.csproj +++ b/Libplanet.Tests/Libplanet.Tests.csproj @@ -6,6 +6,10 @@ true + + ..\StyleCop.Analyzers.ruleset + + @@ -15,4 +19,8 @@ + + + + diff --git a/Libplanet/Libplanet.csproj b/Libplanet/Libplanet.csproj index ac803a39457..e796b17181c 100644 --- a/Libplanet/Libplanet.csproj +++ b/Libplanet/Libplanet.csproj @@ -4,7 +4,17 @@ true true + + ..\StyleCop.Analyzers.ruleset + + + runtime; build; native; contentfiles; analyzers + all + + + + diff --git a/StyleCop.Analyzers.ruleset b/StyleCop.Analyzers.ruleset new file mode 100644 index 00000000000..1601639094f --- /dev/null +++ b/StyleCop.Analyzers.ruleset @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/stylecop.json b/stylecop.json new file mode 100644 index 00000000000..15244466230 --- /dev/null +++ b/stylecop.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "orderingRules": { + "usingDirectivesPlacement": "outsideNamespace" + } + } +}