From 2987cf24808a51a2a03074680d4475748e328063 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 22:46:42 +0200 Subject: [PATCH 01/16] chore: Added Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln --- Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln diff --git a/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln b/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln new file mode 100644 index 0000000..58ea566 --- /dev/null +++ b/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln @@ -0,0 +1,14 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal From f8ba336ef1dfd5b6745d9b8f70c78f5fd537c721 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 22:48:54 +0200 Subject: [PATCH 02/16] chore: Added JetBrains to .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index dfcfd56..8a1283b 100644 --- a/.gitignore +++ b/.gitignore @@ -348,3 +348,6 @@ MigrationBackup/ # Ionide (cross platform F# VS Code tools) working folder .ionide/ + +# JetBrains +.idea/ From d868d6157ae6b24c25177828017b5eed851f5db8 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:41:50 +0200 Subject: [PATCH 03/16] chore: Added .editorconfig --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..49e7a05 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,3 @@ +[*] +charset = utf-8 +insert_final_newline = true From d25378649dd50f71218f3f5a491476b863c743b9 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:42:03 +0200 Subject: [PATCH 04/16] chore: Added build.yml --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3321eb3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: dotnet build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + dotnet-version: [ '7.0.x' ] + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: '0' + - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ matrix.dotnet-version }} + - name: Restore .NET Packages + run: dotnet restore + - name: Build .NET Solution + run: dotnet build --configuration Release --no-restore + - name: Pack .NET Solution + run: dotnet pack --no-build --output pack/ + - name: Publish .NET Solution to GitHub Packages + continue-on-error: true + run: dotnet nuget push pack/* --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + - name: Publish .NET Solution to NuGet.org + continue-on-error: true + run: dotnet nuget push pack/* --api-key ${{ secrets.NUGET_ORG_KEY }} --source nuget + From 3b71061af2256b4dea1aa74708d9a15ebd0c6b23 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:42:16 +0200 Subject: [PATCH 05/16] chore: Added Directory.Build.props --- Directory.Build.props | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Directory.Build.props diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..13344c2 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,7 @@ + + + + git + https://github.com/escendit/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers + + From 49df3af5e007bb3c047f22c8edaf71d5fc4224b5 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:42:28 +0200 Subject: [PATCH 06/16] chore: Added Directory.Packages.props --- Directory.Packages.props | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Directory.Packages.props diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000..089c0e2 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,13 @@ + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + From 40f98eee520d58a316720e196aefd946adc4bcfd Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:43:10 +0200 Subject: [PATCH 07/16] chore: Updated Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.csproj --- ...ools.CodeAnalysis.StyleCopAnalyzers.csproj | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.csproj diff --git a/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.csproj b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.csproj new file mode 100644 index 0000000..c5c50d8 --- /dev/null +++ b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.csproj @@ -0,0 +1,34 @@ + + + + true + netstandard2.0;netstandard2.1 + $(NoWarn);NU5128 + true + false + Enforce our coding practices in your projects with our NuGet package's default settings for Style Cop Analyzers. + analyzers;stylecop;defaults + + + + runtime; build; native; contentfiles + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + From dc65496abf9eddf19f27ee9820db72b826c04f17 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:43:28 +0200 Subject: [PATCH 08/16] chore: Added Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.globalconfig --- ...odeAnalysis.StyleCopAnalyzers.globalconfig | 186 ++++++++++++++++++ 1 file changed, 186 insertions(+) create mode 100644 src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.globalconfig diff --git a/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.globalconfig b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.globalconfig new file mode 100644 index 0000000..1a07f8a --- /dev/null +++ b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.globalconfig @@ -0,0 +1,186 @@ +is_global = true +global_level = -1 + +dotnet_diagnostic.SA0001.severity = error +dotnet_diagnostic.SA0002.severity = error +dotnet_diagnostic.SA1000.severity = error +dotnet_diagnostic.SA1001.severity = error +dotnet_diagnostic.SA1002.severity = error +dotnet_diagnostic.SA1003.severity = error +dotnet_diagnostic.SA1004.severity = error +dotnet_diagnostic.SA1005.severity = error +dotnet_diagnostic.SA1006.severity = error +dotnet_diagnostic.SA1007.severity = error +dotnet_diagnostic.SA1008.severity = error +dotnet_diagnostic.SA1009.severity = error +dotnet_diagnostic.SA1010.severity = error +dotnet_diagnostic.SA1011.severity = error +dotnet_diagnostic.SA1012.severity = error +dotnet_diagnostic.SA1013.severity = error +dotnet_diagnostic.SA1014.severity = error +dotnet_diagnostic.SA1015.severity = error +dotnet_diagnostic.SA1016.severity = error +dotnet_diagnostic.SA1017.severity = error +dotnet_diagnostic.SA1018.severity = error +dotnet_diagnostic.SA1019.severity = error +dotnet_diagnostic.SA1020.severity = error +dotnet_diagnostic.SA1021.severity = error +dotnet_diagnostic.SA1022.severity = error +dotnet_diagnostic.SA1023.severity = error +dotnet_diagnostic.SA1024.severity = error +dotnet_diagnostic.SA1025.severity = error +dotnet_diagnostic.SA1026.severity = error +dotnet_diagnostic.SA1027.severity = error +dotnet_diagnostic.SA1028.severity = error +dotnet_diagnostic.SA1100.severity = error +dotnet_diagnostic.SA1101.severity = none +dotnet_diagnostic.SA1102.severity = error +dotnet_diagnostic.SA1103.severity = error +dotnet_diagnostic.SA1104.severity = error +dotnet_diagnostic.SA1105.severity = error +dotnet_diagnostic.SA1106.severity = error +dotnet_diagnostic.SA1107.severity = error +dotnet_diagnostic.SA1108.severity = error +dotnet_diagnostic.SA1110.severity = error +dotnet_diagnostic.SA1111.severity = error +dotnet_diagnostic.SA1112.severity = error +dotnet_diagnostic.SA1113.severity = error +dotnet_diagnostic.SA1114.severity = error +dotnet_diagnostic.SA1115.severity = error +dotnet_diagnostic.SA1116.severity = error +dotnet_diagnostic.SA1117.severity = error +dotnet_diagnostic.SA1118.severity = error +dotnet_diagnostic.SA1119.severity = error +dotnet_diagnostic.SA1120.severity = error +dotnet_diagnostic.SA1121.severity = error +dotnet_diagnostic.SA1122.severity = error +dotnet_diagnostic.SA1123.severity = error +dotnet_diagnostic.SA1124.severity = error +dotnet_diagnostic.SA1125.severity = error +dotnet_diagnostic.SA1127.severity = error +dotnet_diagnostic.SA1128.severity = error +dotnet_diagnostic.SA1129.severity = error +dotnet_diagnostic.SA1130.severity = error +dotnet_diagnostic.SA1131.severity = error +dotnet_diagnostic.SA1132.severity = error +dotnet_diagnostic.SA1133.severity = error +dotnet_diagnostic.SA1134.severity = error +dotnet_diagnostic.SA1135.severity = error +dotnet_diagnostic.SA1136.severity = error +dotnet_diagnostic.SA1137.severity = error +dotnet_diagnostic.SA1139.severity = error +dotnet_diagnostic.SA1141.severity = error +dotnet_diagnostic.SA1142.severity = error +dotnet_diagnostic.SA1200.severity = error +dotnet_diagnostic.SA1201.severity = error +dotnet_diagnostic.SA1202.severity = error +dotnet_diagnostic.SA1203.severity = error +dotnet_diagnostic.SA1204.severity = error +dotnet_diagnostic.SA1205.severity = error +dotnet_diagnostic.SA1206.severity = error +dotnet_diagnostic.SA1207.severity = error +dotnet_diagnostic.SA1208.severity = error +dotnet_diagnostic.SA1209.severity = error +dotnet_diagnostic.SA1210.severity = error +dotnet_diagnostic.SA1211.severity = error +dotnet_diagnostic.SA1212.severity = error +dotnet_diagnostic.SA1213.severity = error +dotnet_diagnostic.SA1214.severity = error +dotnet_diagnostic.SA1216.severity = error +dotnet_diagnostic.SA1217.severity = error +dotnet_diagnostic.SA1300.severity = none +dotnet_diagnostic.SA1302.severity = error +dotnet_diagnostic.SA1303.severity = error +dotnet_diagnostic.SA1304.severity = error +dotnet_diagnostic.SA1305.severity = error +dotnet_diagnostic.SA1306.severity = error +dotnet_diagnostic.SA1307.severity = error +dotnet_diagnostic.SA1308.severity = error +dotnet_diagnostic.SA1309.severity = none +dotnet_diagnostic.SA1310.severity = error +dotnet_diagnostic.SA1311.severity = error +dotnet_diagnostic.SA1312.severity = error +dotnet_diagnostic.SA1313.severity = error +dotnet_diagnostic.SA1314.severity = error +dotnet_diagnostic.SA1316.severity = error +dotnet_diagnostic.SA1400.severity = error +dotnet_diagnostic.SA1401.severity = error +dotnet_diagnostic.SA1402.severity = error +dotnet_diagnostic.SA1403.severity = error +dotnet_diagnostic.SA1404.severity = error +dotnet_diagnostic.SA1405.severity = error +dotnet_diagnostic.SA1406.severity = error +dotnet_diagnostic.SA1407.severity = error +dotnet_diagnostic.SA1408.severity = error +dotnet_diagnostic.SA1410.severity = error +dotnet_diagnostic.SA1411.severity = error +dotnet_diagnostic.SA1412.severity = error +dotnet_diagnostic.SA1413.severity = error +dotnet_diagnostic.SA1414.severity = error +dotnet_diagnostic.SA1500.severity = error +dotnet_diagnostic.SA1501.severity = error +dotnet_diagnostic.SA1502.severity = error +dotnet_diagnostic.SA1503.severity = error +dotnet_diagnostic.SA1504.severity = error +dotnet_diagnostic.SA1505.severity = error +dotnet_diagnostic.SA1506.severity = error +dotnet_diagnostic.SA1507.severity = error +dotnet_diagnostic.SA1508.severity = error +dotnet_diagnostic.SA1509.severity = error +dotnet_diagnostic.SA1510.severity = error +dotnet_diagnostic.SA1511.severity = error +dotnet_diagnostic.SA1512.severity = error +dotnet_diagnostic.SA1513.severity = error +dotnet_diagnostic.SA1514.severity = error +dotnet_diagnostic.SA1515.severity = error +dotnet_diagnostic.SA1516.severity = error +dotnet_diagnostic.SA1517.severity = error +dotnet_diagnostic.SA1518.severity = error +dotnet_diagnostic.SA1519.severity = error +dotnet_diagnostic.SA1520.severity = error +dotnet_diagnostic.SA1600.severity = error +dotnet_diagnostic.SA1601.severity = error +dotnet_diagnostic.SA1602.severity = error +dotnet_diagnostic.SA1604.severity = error +dotnet_diagnostic.SA1605.severity = error +dotnet_diagnostic.SA1606.severity = error +dotnet_diagnostic.SA1607.severity = error +dotnet_diagnostic.SA1608.severity = error +dotnet_diagnostic.SA1609.severity = error +dotnet_diagnostic.SA1610.severity = error +dotnet_diagnostic.SA1611.severity = error +dotnet_diagnostic.SA1612.severity = error +dotnet_diagnostic.SA1613.severity = error +dotnet_diagnostic.SA1614.severity = error +dotnet_diagnostic.SA1615.severity = error +dotnet_diagnostic.SA1616.severity = error +dotnet_diagnostic.SA1617.severity = error +dotnet_diagnostic.SA1618.severity = error +dotnet_diagnostic.SA1619.severity = error +dotnet_diagnostic.SA1620.severity = error +dotnet_diagnostic.SA1621.severity = error +dotnet_diagnostic.SA1622.severity = error +dotnet_diagnostic.SA1623.severity = error +dotnet_diagnostic.SA1624.severity = error +dotnet_diagnostic.SA1625.severity = error +dotnet_diagnostic.SA1626.severity = error +dotnet_diagnostic.SA1627.severity = error +dotnet_diagnostic.SA1628.severity = error +dotnet_diagnostic.SA1629.severity = error +dotnet_diagnostic.SA1633.severity = error +dotnet_diagnostic.SA1634.severity = error +dotnet_diagnostic.SA1635.severity = error +dotnet_diagnostic.SA1636.severity = error +dotnet_diagnostic.SA1637.severity = error +dotnet_diagnostic.SA1638.severity = error +dotnet_diagnostic.SA1639.severity = error +dotnet_diagnostic.SA1640.severity = error +dotnet_diagnostic.SA1641.severity = error +dotnet_diagnostic.SA1642.severity = error +dotnet_diagnostic.SA1643.severity = error +dotnet_diagnostic.SA1648.severity = error +dotnet_diagnostic.SA1649.severity = error +dotnet_diagnostic.SA1651.severity = error +dotnet_diagnostic.SX1101.severity = error +dotnet_diagnostic.SX1309.severity = error +dotnet_diagnostic.SX1309S.severity = error From d95b801eff3eb99cc68fd507e77ef98f174bab12 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:43:40 +0200 Subject: [PATCH 09/16] chore: Added Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.props --- .../Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.props | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.props diff --git a/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.props b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.props new file mode 100644 index 0000000..1877024 --- /dev/null +++ b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.props @@ -0,0 +1,7 @@ + + + + True + $(NuGetPackageRoot) + + From 48b6159d8369eea673610394cca5468a068c2fa0 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:44:26 +0200 Subject: [PATCH 10/16] chore: Updated Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln --- Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln b/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln index 58ea566..e13258d 100644 --- a/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln +++ b/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.sln @@ -3,6 +3,10 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A7ECE722-6B13-46DD-BBD2-0BB0DD14D725}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Escendit.Tools.CodeAnalysis.StyleCopAnalyzers", "src\Escendit.Tools.CodeAnalysis.StyleCopAnalyzers\Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.csproj", "{68B6D864-A601-4248-B0AB-BC7047246A62}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -11,4 +15,13 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {68B6D864-A601-4248-B0AB-BC7047246A62} = {A7ECE722-6B13-46DD-BBD2-0BB0DD14D725} + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {68B6D864-A601-4248-B0AB-BC7047246A62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {68B6D864-A601-4248-B0AB-BC7047246A62}.Debug|Any CPU.Build.0 = Debug|Any CPU + {68B6D864-A601-4248-B0AB-BC7047246A62}.Release|Any CPU.ActiveCfg = Release|Any CPU + {68B6D864-A601-4248-B0AB-BC7047246A62}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection EndGlobal From 089fb826edb07f9015986fa119bd605d65c4a339 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:44:37 +0200 Subject: [PATCH 11/16] chore Added Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.targets --- ...dit.Tools.CodeAnalysis.StyleCopAnalyzers.targets | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.targets diff --git a/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.targets b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.targets new file mode 100644 index 0000000..22cbf96 --- /dev/null +++ b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.targets @@ -0,0 +1,13 @@ + + + + + Escendit.Tools.CodeAnalysis.StyleCopAnalyzers.globalconfig + false + + + stylecop.json + false + + + From 2fbf55f3354001f773524eab9a428987ae770b46 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:44:49 +0200 Subject: [PATCH 12/16] chore: Added GitVersion.yml --- GitVersion.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 GitVersion.yml diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..403b71c --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,4 @@ +branches: + master: + mode: ContinuousDeployment + tag: rc From 508aab189f34b52d69c68869f58d450b680663ff Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:45:00 +0200 Subject: [PATCH 13/16] chore: Added global.json --- global.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 0000000..70e3dcc --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "sdk": { + "version": "7.0.100" + } +} From 46f1daee14f1b8d8335d23bd7da191f9969c2c33 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:45:09 +0200 Subject: [PATCH 14/16] chore: Added nuget.config --- nuget.config | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nuget.config diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..c620012 --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + + From 5ac8d614da662cd4d0bae11ff469a78e4c144c4f Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:45:25 +0200 Subject: [PATCH 15/16] chore: Updated README.md --- README.md | 244 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 242 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 22fa0f4..3e43a70 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,242 @@ -# Escendit.Tools.CodeAnalysis.StyleCopAnalyzers -StyleCop Analyzers Defaults +# NuGet Package: Escendit.Tools.CodeAnalysis.StyleCopAnalyzers + +This NuGet package leverages the power of StyleCop Analyzers +to enforce code quality standards that are tailored to the organization's specific needs. +By default, +the package uses a set of analyzer rules that have been configured to align with the organization's coding practices, +ensuring that our code is always compliant and maintainable. + +Key features: + +- Utilize Roslyn .NET Analyzers for powerful and customizable code analysis +- Defaults suited to the organization's coding practices +- Ensures code compliance and maintainability + +## Installation +To install this package, use the NuGet Package Manager Console: + +```shell +PM> Install-Package Escendit.Tools.CodeAnalysis.StyleCopAnalyzers +``` +Or you can search for "Escendit.Tools.CodeAnalysis.StyleCopAnalyzers" +in the NuGet Package Manager UI and install it from there. + +## Usage +After installing the package, the MSBuild and .editorconfig properties will be set automatically. +- You can modify the MSBuild properties by updating the values in your .csproj or .vbproj file. +- You can modify the .editorconfig properties by creating .editorconfig file and overriding the default values. + +## Configuration + +The NuGet package includes the following default rules and severity levels: + + +| Rule | Severity | Severity | +|----------|----------|----------| +| SA0001 | error | ❌ | +| SA0002 | error | ❌ | +| SA1000 | error | ❌ | +| SA1001 | error | ❌ | +| SA1002 | error | ❌ | +| SA1003 | error | ❌ | +| SA1004 | error | ❌ | +| SA1005 | error | ❌ | +| SA1006 | error | ❌ | +| SA1007 | error | ❌ | +| SA1008 | error | ❌ | +| SA1009 | error | ❌ | +| SA1010 | error | ❌ | +| SA1011 | error | ❌ | +| SA1012 | error | ❌ | +| SA1013 | error | ❌ | +| SA1014 | error | ❌ | +| SA1015 | error | ❌ | +| SA1016 | error | ❌ | +| SA1017 | error | ❌ | +| SA1018 | error | ❌ | +| SA1019 | error | ❌ | +| SA1020 | error | ❌ | +| SA1021 | error | ❌ | +| SA1022 | error | ❌ | +| SA1023 | error | ❌ | +| SA1024 | error | ❌ | +| SA1025 | error | ❌ | +| SA1026 | error | ❌ | +| SA1027 | error | ❌ | +| SA1028 | error | ❌ | +| SA1100 | error | ❌ | +| SA1101 | none | ⛔ | +| SA1102 | error | ❌ | +| SA1103 | error | ❌ | +| SA1104 | error | ❌ | +| SA1105 | error | ❌ | +| SA1106 | error | ❌ | +| SA1107 | error | ❌ | +| SA1108 | error | ❌ | +| SA1110 | error | ❌ | +| SA1111 | error | ❌ | +| SA1112 | error | ❌ | +| SA1113 | error | ❌ | +| SA1114 | error | ❌ | +| SA1115 | error | ❌ | +| SA1116 | error | ❌ | +| SA1117 | error | ❌ | +| SA1118 | error | ❌ | +| SA1119 | error | ❌ | +| SA1120 | error | ❌ | +| SA1121 | error | ❌ | +| SA1122 | error | ❌ | +| SA1123 | error | ❌ | +| SA1124 | error | ❌ | +| SA1125 | error | ❌ | +| SA1127 | error | ❌ | +| SA1128 | error | ❌ | +| SA1129 | error | ❌ | +| SA1130 | error | ❌ | +| SA1131 | error | ❌ | +| SA1132 | error | ❌ | +| SA1133 | error | ❌ | +| SA1134 | error | ❌ | +| SA1135 | error | ❌ | +| SA1136 | error | ❌ | +| SA1137 | error | ❌ | +| SA1139 | error | ❌ | +| SA1141 | error | ❌ | +| SA1142 | error | ❌ | +| SA1200 | error | ❌ | +| SA1201 | error | ❌ | +| SA1202 | error | ❌ | +| SA1203 | error | ❌ | +| SA1204 | error | ❌ | +| SA1205 | error | ❌ | +| SA1206 | error | ❌ | +| SA1207 | error | ❌ | +| SA1208 | error | ❌ | +| SA1209 | error | ❌ | +| SA1210 | error | ❌ | +| SA1211 | error | ❌ | +| SA1212 | error | ❌ | +| SA1213 | error | ❌ | +| SA1214 | error | ❌ | +| SA1216 | error | ❌ | +| SA1217 | error | ❌ | +| SA1300 | none | ⛔ | +| SA1302 | error | ❌ | +| SA1303 | error | ❌ | +| SA1304 | error | ❌ | +| SA1305 | error | ❌ | +| SA1306 | error | ❌ | +| SA1307 | error | ❌ | +| SA1308 | error | ❌ | +| SA1309 | none | ⛔ | +| SA1310 | error | ❌ | +| SA1311 | error | ❌ | +| SA1312 | error | ❌ | +| SA1313 | error | ❌ | +| SA1314 | error | ❌ | +| SA1316 | error | ❌ | +| SA1400 | error | ❌ | +| SA1401 | error | ❌ | +| SA1402 | error | ❌ | +| SA1403 | error | ❌ | +| SA1404 | error | ❌ | +| SA1405 | error | ❌ | +| SA1406 | error | ❌ | +| SA1407 | error | ❌ | +| SA1408 | error | ❌ | +| SA1410 | error | ❌ | +| SA1411 | error | ❌ | +| SA1412 | error | ❌ | +| SA1413 | error | ❌ | +| SA1414 | error | ❌ | +| SA1500 | error | ❌ | +| SA1501 | error | ❌ | +| SA1502 | error | ❌ | +| SA1503 | error | ❌ | +| SA1504 | error | ❌ | +| SA1505 | error | ❌ | +| SA1506 | error | ❌ | +| SA1507 | error | ❌ | +| SA1508 | error | ❌ | +| SA1509 | error | ❌ | +| SA1510 | error | ❌ | +| SA1511 | error | ❌ | +| SA1512 | error | ❌ | +| SA1513 | error | ❌ | +| SA1514 | error | ❌ | +| SA1515 | error | ❌ | +| SA1516 | error | ❌ | +| SA1517 | error | ❌ | +| SA1518 | error | ❌ | +| SA1519 | error | ❌ | +| SA1520 | error | ❌ | +| SA1600 | error | ❌ | +| SA1601 | error | ❌ | +| SA1602 | error | ❌ | +| SA1604 | error | ❌ | +| SA1605 | error | ❌ | +| SA1606 | error | ❌ | +| SA1607 | error | ❌ | +| SA1608 | error | ❌ | +| SA1609 | error | ❌ | +| SA1610 | error | ❌ | +| SA1611 | error | ❌ | +| SA1612 | error | ❌ | +| SA1613 | error | ❌ | +| SA1614 | error | ❌ | +| SA1615 | error | ❌ | +| SA1616 | error | ❌ | +| SA1617 | error | ❌ | +| SA1618 | error | ❌ | +| SA1619 | error | ❌ | +| SA1620 | error | ❌ | +| SA1621 | error | ❌ | +| SA1622 | error | ❌ | +| SA1623 | error | ❌ | +| SA1624 | error | ❌ | +| SA1625 | error | ❌ | +| SA1626 | error | ❌ | +| SA1627 | error | ❌ | +| SA1628 | error | ❌ | +| SA1629 | error | ❌ | +| SA1633 | error | ❌ | +| SA1634 | error | ❌ | +| SA1635 | error | ❌ | +| SA1636 | error | ❌ | +| SA1637 | error | ❌ | +| SA1638 | error | ❌ | +| SA1639 | error | ❌ | +| SA1640 | error | ❌ | +| SA1641 | error | ❌ | +| SA1642 | error | ❌ | +| SA1643 | error | ❌ | +| SA1648 | error | ❌ | +| SA1649 | error | ❌ | +| SA1651 | error | ❌ | +| SX1101 | error | ❌ | +| SX1309 | error | ❌ | +| SX1309S | error | ❌ | + + +To modify the severity level of a rule, you can add the following code to your .editorconfig file: + +```editorconfig +# dotnet_diagnostic..severity = +``` + +For example, to change the severity level of `SA9999` to "error", add the following line to your .editorconfig file: + +```editorconfig +# dotnet_diagnostic.SA9999.severity = error +``` + + +## Contributing +If you find a bug or have a feature request, please create an issue in the GitHub repository. + +To contribute code, fork the repository and submit a pull request. +Please ensure that your code follows the project's coding standards and is thoroughly tested. + +## License +This package is released under the MIT License. See the LICENSE.txt file for details. + From 86ceb0d20db55d1f299567715322faaaf2cc5d10 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Fri, 14 Apr 2023 23:45:37 +0200 Subject: [PATCH 16/16] chore: Added stylecop.json --- .../stylecop.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/stylecop.json diff --git a/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/stylecop.json b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/stylecop.json new file mode 100644 index 0000000..5690605 --- /dev/null +++ b/src/Escendit.Tools.CodeAnalysis.StyleCopAnalyzers/stylecop.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "documentationRules": { + "companyName": "Escendit Ltd", + "copyrightText": "Copyright (c) {companyName}. All Rights Reserved.\nLicensed under the {licenseName}. See {licenseFile} file in the solution root for full license information.", + "xmlHeader": false, + "variables": { + "licenseName": "MIT", + "licenseFile": "LICENSE.txt" + } + }, + "orderingRules": { + "usingDirectivesPlacement": "insideNamespace" + } + } +}