Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 2.12 KB

Sample-README.md

File metadata and controls

40 lines (21 loc) · 2.12 KB

Readme for Sample

In sample project some of the mentioned Analyzers are included using Nugget Package.

  • Open sln file in Visual Studio 2019, open any controller file. Build the project and wait for few minutes. Some times analyzer output might not show just try 2 to 3 times rebuilding project and wait for few minutes. You can find Analyzers errors in Warning Tab. You can identify warnings are produced from which analzers by checking prefix.
    VS Warnings

  • You can also enable/disable rules using Rule Set file - CodeAnalysis.ruleset

Turn On or Off Rules

  • you can add new analyzers using Nugget Packages. Several analyzers are available Adding new Analyzers

Cake Build Script - Cake Script File

Sample project also include Cake Script file. You can use Cake Build and integrate in Continuous Integration.

Cake script does the following things

  • Build project
  • Run static code analyzers.
  • Output the warnings and Analyzers report in output file.

Running Cake Script in your local windows machine

  • Naviage to folder /build

  • Open Powershel in build folder location and type ./build Running Cake Script

  • Script will run and results will be logged in txt file in output directory Completion
    Results Folder