You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0eff7fc
Browse filesBrowse the repository at this point in the historyBrowse files
Shared C# analyzer configuration for projects that use Cloudtoid's coding conventions. The package brings together StyleCop and Visual Studio threading analyzers with a common ruleset and build settings.
4
+
5
+
## Install
6
+
7
+
Requires a project targeting .NET 10 or later.
8
+
9
+
```sh
10
+
dotnet add package Cloudtoid.CodeAnalysis
11
+
```
12
+
13
+
For a library, keep this build-time dependency private by adding `PrivateAssets="all"` to its `PackageReference`.
14
+
15
+
## What it configures
16
+
17
+
- Installs StyleCop and Visual Studio threading analyzers.
18
+
- Imports the Cloudtoid ruleset and StyleCop configuration during builds.
19
+
- Enables warnings as errors.
20
+
21
+
Build your project after installation to see diagnostics. Review the rules before adopting the package in an existing codebase: warnings can become build failures.
22
+
23
+
[Source and rules](https://github.com/cloudtoid/code-analysis) · [Report an issue](https://github.com/cloudtoid/code-analysis/issues) · [MIT license](https://github.com/cloudtoid/code-analysis/blob/main/LICENSE)
0 commit comments