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" + } + } +}