Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions PACKAGE_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Cloudtoid.CodeAnalysis

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.

## Install

Requires a project targeting .NET 10 or later.

```sh
dotnet add package Cloudtoid.CodeAnalysis
```

For a library, keep this build-time dependency private by adding `PrivateAssets="all"` to its `PackageReference`.

## What it configures

- Installs StyleCop and Visual Studio threading analyzers.
- Imports the Cloudtoid ruleset and StyleCop configuration during builds.
- Enables warnings as errors.

Build your project after installation to see diagnostics. Review the rules before adopting the package in an existing codebase: warnings can become build failures.

[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)
4 changes: 2 additions & 2 deletions src/Cloudtoid.CodeAnalysis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<!-- NuGet Packaging -->
<PropertyGroup>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReadmeFile>PACKAGE_README.md</PackageReadmeFile>
<PackageId>Cloudtoid.CodeAnalysis</PackageId>
<Title>Cloudtoid.CodeAnalysis</Title>
<Authors>pedram@rezaei.us</Authors>
Expand Down Expand Up @@ -37,7 +37,7 @@
</ItemGroup>

<ItemGroup>
<None Include="../README.md" Pack="true" PackagePath="/" />
<None Include="../PACKAGE_README.md" Pack="true" PackagePath="/" />
</ItemGroup>

</Project>