diff --git a/Build/Cosmos.ruleset b/Build/Cosmos.ruleset new file mode 100644 index 000000000..f13b029be --- /dev/null +++ b/Build/Cosmos.ruleset @@ -0,0 +1,355 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Build/Targets/PackageVersions.targets b/Build/Targets/PackageVersions.targets index fd3dbd580..8ffc619d0 100644 --- a/Build/Targets/PackageVersions.targets +++ b/Build/Targets/PackageVersions.targets @@ -10,6 +10,7 @@ 4.8.0 3.10.1 3.10.0 + 2.6.2 @@ -26,4 +27,8 @@ + + + + diff --git a/Directory.Build.props b/Directory.Build.props index d6e7c9e3f..f5881abe0 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,6 +2,7 @@ Latest + CA1051;CA1707;CA1711;CA1801;$(NoWarn) diff --git a/Directory.Build.targets b/Directory.Build.targets index 47d13264b..81d0219c3 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -13,6 +13,21 @@ True + + $(RepoRoot)build\Cosmos.ruleset + + + + + + + + + + + + + diff --git a/Test.sln b/Test.sln index 9d061c7b5..6d986b0be 100644 --- a/Test.sln +++ b/Test.sln @@ -170,6 +170,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cosmos.System.Tests", "Test EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cosmos.Kernel.Tests.DiskManager", "Tests\Kernels\Cosmos.Kernel.Tests.DiskManager\Cosmos.Kernel.Tests.DiskManager.csproj", "{BB6A5306-4C7A-4973-A48E-9FE3E683EAEC}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BECB26F1-8FE4-4C62-B74A-F2292B26CA70}" + ProjectSection(SolutionItems) = preProject + Build\Cosmos.ruleset = Build\Cosmos.ruleset + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/Tests/Kernels/Cosmos.Compiler.Tests.Bcl/Cosmos.Compiler.Tests.Bcl.csproj b/Tests/Kernels/Cosmos.Compiler.Tests.Bcl/Cosmos.Compiler.Tests.Bcl.csproj index d6e0d7a18..d6fb90ea5 100644 --- a/Tests/Kernels/Cosmos.Compiler.Tests.Bcl/Cosmos.Compiler.Tests.Bcl.csproj +++ b/Tests/Kernels/Cosmos.Compiler.Tests.Bcl/Cosmos.Compiler.Tests.Bcl.csproj @@ -3,6 +3,7 @@ netcoreapp2.0 True + CA2242;$(NoWarn) diff --git a/source/Cosmos.System2/Cosmos.System2.csproj b/source/Cosmos.System2/Cosmos.System2.csproj index 9f2a80fdf..371756cd5 100644 --- a/source/Cosmos.System2/Cosmos.System2.csproj +++ b/source/Cosmos.System2/Cosmos.System2.csproj @@ -3,6 +3,7 @@ netstandard2.0 Cosmos.System + CA1708;$(NoWarn)