SboxAnalyzers 2.0.0
See the version list below for details.
dotnet add package SboxAnalyzers --version 2.0.0
NuGet\Install-Package SboxAnalyzers -Version 2.0.0
<PackageReference Include="SboxAnalyzers" Version="2.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add SboxAnalyzers --version 2.0.0
#r "nuget: SboxAnalyzers, 2.0.0"
// Install SboxAnalyzers as a Cake Addin #addin nuget:?package=SboxAnalyzers&version=2.0.0 // Install SboxAnalyzers as a Cake Tool #tool nuget:?package=SboxAnalyzers&version=2.0.0
S&box Analyzers
A collection of Roslyn analyzers for analyzing code used in S&box.
Features
- SB9001: Code accesslist checking.
- S&box uses a code accesslist system, the analyzer can check your code to make sure you are not using anything that would breach it.
- S&box uses a code accesslist system, the analyzer can check your code to make sure you are not using anything that would breach it.
- SB9002-SB9008 Networked property analyzing.
- SB9002: Warning of
LocalAttribute
s lack of implementation (#2169) - SB9003: Error for not implementing the change method callback defined in a
ChangeAttribute
. - SB9004: Error for having an incorrect number of parameters for a change method callback.
- SB9005: Error for having an incorrect type in the parameters for a change method callback.
- SB9006: Error for having the static keyword on a networked property.
- SB9007: Error for having a non-networkable type on a networked property.
- SB9008: Error for having a networked property that is not auto-implemented ({ get; set; }).
- SB9002: Warning of
Installation
You can get the analyzer on NuGet, GitHub, and Visual Studio Marketplace.
If installing through NuGet, you can add the following to your csproj file:
<PackageReference Include="SboxAnalyzers" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
If installing through the DLL, you can add the following to your csproj file:
<Analyzer Include="path\to\the\analyzer.dll" />
License
Distributed under the MIT License. See the license for more information.
Contributing
Contributions are very much welcomed! When making your pull request please make sure your code is neatly formatted and passes all tests.
Known Issues
- There are bound to be false positives that come up. If you experience one, please submit an issue so that it can be looked into!
Learn more about Target Frameworks and .NET Standard.
This package has 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.
Initial release.