Dotnetarium.Analyzers.SCS 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dotnetarium.Analyzers.SCS --version 1.0.0                
NuGet\Install-Package Dotnetarium.Analyzers.SCS -Version 1.0.0                
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="Dotnetarium.Analyzers.SCS" Version="1.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dotnetarium.Analyzers.SCS --version 1.0.0                
#r "nuget: Dotnetarium.Analyzers.SCS, 1.0.0"                
#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.
// Install Dotnetarium.Analyzers.SCS as a Cake Addin
#addin nuget:?package=Dotnetarium.Analyzers.SCS&version=1.0.0

// Install Dotnetarium.Analyzers.SCS as a Cake Tool
#tool nuget:?package=Dotnetarium.Analyzers.SCS&version=1.0.0                

DotnetariumSCS

DotnetariumSCS is a console application designed to provide comprehensive static code analysis for .NET projects and solutions. A standalone fork of Security Code Scan

Synked fork (with updated packages and the latest Roslyn) is available here

Getting Started

Prerequisites

Supported .NET versions

  • .NET 6.0
  • .NET 8.0
  • .NET 4.7.2 - 4.8

End-of-life .NET versions will be dropped; new stable .NET versions will be added

Installation

As a .NET Global Tool

To install DotnetariumSCS as a .NET global tool, run:

dotnet tool install --global dotnetarium-scs
As a NuGet Package

To install DotnetariumSCS as a NuGet package, add the following package to your project DotnetariumSCS

As a Visual Studio extension

Not supported yet. Continue to use Security Code Scan version. At this point, no changes will affect the Visual Studio extension experience.

Usage

Run the application from the command line using the required options. Below are the available options: Required Options

<solution-or-project-path>
    Description: Specifies the path to the solution or project file.
    Usage: dotnetarium-scs "<path-to-solution-or-project>"

Optional Options

-w | --excl-warn=<warnings>
    Description: Semicolon delimited list of warnings to exclude.
    Usage: -w "CS0168;CS0219"

--incl-warn=<warnings>
    Description: Semicolon delimited list of warnings to include.
    Usage: --incl-warn "CS0028;CS0052"

-p | --excl-proj=<patterns>
    Description: Semicolon delimited list of glob project patterns to exclude.
    Usage: -p "*.Tests;*.Samples"

--incl-proj=<patterns>
    Description: Semicolon delimited list of glob project patterns to include.
    Usage: --incl-proj "*.Main;*.Core"

-x | --export=<file-path>
    Description: Path to the SARIF file for exporting analysis results.
    Usage: -x "results.sarif"

-c | --config=<file-path>
    Description: Path to an additional configuration file.
    Usage: -c "config.json"

--cwe
    Description: Show CWE IDs in the analysis results.
    Usage: --cwe

-t | --threads=<number>
    Description: Run analysis in parallel (experimental).
    Usage: -t 4

--sdk-path=<path>
    Description: Path to the .NET SDK to use.
    Usage: --sdk-path "C:\Program Files\dotnet\sdk"

--ignore-msbuild-errors
    Description: Do not stop on MSBuild errors.
    Usage: --ignore-msbuild-errors

--ignore-compiler-errors
    Description: Do not exit with a non-zero code on compilation errors.
    Usage: --ignore-compiler-errors

-f | --fail-any-warn
    Description: Fail on security warnings with a non-zero exit code.
    Usage: -f

-n | --no-banner
    Description: Do not show the banner.
    Usage: -n

-v | --verbose
    Description: Display more diagnostic messages.
    Usage: -v

-h | -? | --help
    Description: Show this message and exit.
    Usage: -h

Examples Basic Analysis

dotnetarium-scs "path/to/solution.sln"

Exclude Specific Warnings

dotnetarium-scs "path/to/project.csproj" -w "CS0168;CS0219"

Include Specific Projects Only

dotnetarium-scs "path/to/solution.sln" --incl-proj "*.Main;*.Core"

Export Results to SARIF File

dotnetarium-scs "path/to/solution.sln" -x "results.sarif"
Compatibility

DotnetariumSCS is backward compatible with the Security Code Scan project. The Security Code Scan GitHub repository has more details.

Contributing

If you would like to contribute to DotnetariumSCS, please fork the repository and submit a pull request. For major changes, please open an issue to discuss what you would like to change.

License

DotnetariumSCS is licensed under the LGPL License. See the LICENSE file for more information.

Contact

For support or any inquiries, please open an issue on GitHub

There are no supported framework assets in this package.

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.

Version Downloads Last updated
1.1.0 5,161 7/8/2024
1.0.3 119 7/4/2024
1.0.2 114 7/4/2024
1.0.1 100 6/30/2024
1.0.0 123 6/29/2024