Tyromotion.CodeStyle
0.1.16
dotnet add package Tyromotion.CodeStyle --version 0.1.16
NuGet\Install-Package Tyromotion.CodeStyle -Version 0.1.16
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tyromotion.CodeStyle" Version="0.1.16" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tyromotion.CodeStyle" Version="0.1.16" />
<PackageReference Include="Tyromotion.CodeStyle" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tyromotion.CodeStyle --version 0.1.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tyromotion.CodeStyle, 0.1.16"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Tyromotion.CodeStyle@0.1.16
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tyromotion.CodeStyle&version=0.1.16
#tool nuget:?package=Tyromotion.CodeStyle&version=0.1.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tyromotion C# stylecop and editorconfig rules
Usage
Create a Directory.Build.props file in the solution folder next to your MyProject.sln.
Add the following lines:
<Project>
<Choose>
<When Condition="$(MSBuildProjectName.ToLowerInvariant().Contains('test')) == 'false'">
<ItemGroup>
<PackageReference Include="Tyromotion.CodeStyle" Version="0.1.*" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.53.0.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</When>
</Choose>
</Project>
The condition disables report generation for any project with "test" in the name.
Rebuild the solution and you should have additional warnings in your build log. All warnings should also be available in codeanalysis.sarif.json in each project folder.
Changelog
- 0.1.0 initial release
- 0.1.1 test ci/cd package push
- 0.1.2 update readme
- 0.1.3 initial rule configuration
- 0.1.4 update rules
- 0.1.5 add .razor to code files
- 0.1.6 update editorconfig rules
- 0.1.7 update editorconfig rules
- 0.1.8 update editorconfig rules
- 0.1.9 disable file header warning editorconfig rules
- 0.1.10 update editorconfig rules
- 0.1.11 update allowed Namespace Components
- 0.1.12 update editorconfig rules
- 0.1.13 update editorconfig rules
- 0.1.14 turned off some editorconfig rules (CA1826, CA1305, CA1307, CA1830, SA1005, S3267)
- 0.1.15 update editorconfig rules
- 0.1.16 minor fixes and removed unnecessary comments
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.16 | 898 | 1/23/2024 |
| 0.1.15 | 196 | 1/23/2024 |
| 0.1.14 | 229 | 1/16/2024 |
| 0.1.13 | 402 | 7/6/2023 |
| 0.1.12 | 227 | 7/3/2023 |
| 0.1.11 | 3,232 | 6/20/2023 |
| 0.1.10 | 272 | 6/6/2023 |
| 0.1.9 | 285 | 5/25/2023 |
| 0.1.8 | 262 | 5/23/2023 |
| 0.1.7 | 266 | 5/16/2023 |
| 0.1.6 | 316 | 3/29/2023 |
| 0.1.5 | 382 | 3/8/2023 |
| 0.1.4 | 357 | 3/7/2023 |
| 0.1.3 | 343 | 3/7/2023 |
| 0.1.2 | 349 | 3/6/2023 |
| 0.1.1 | 344 | 3/6/2023 |
| 0.1.0 | 342 | 3/6/2023 |