Giter VIP home page Giter VIP logo

codeanalysisruleset's Introduction

Kentico Code Analysis Rule Set

Build status

This repository contains a static code analysis rule set used by Kentico projects. The rule set aggregates various code analysis libraries and rules to one reusable NuGet package.

If you're new to static code analysis, take a look at this video.

⚠️ This rule set is designed for Kentico v10. Using the rule set with a previous version of Kentico will produce some additional warnings.

How do I install the rule set in my projects?

Install this NuGet package as a dependency. This automatically adds references to the code analyzer libraries and downloads the rule set file into the project root folder.

Install-Package Kentico.CodeAnalysis.Ruleset

Then, in your project properties > code analysis > select the newly downloaded rule set.

How do I run code analysis from the command line?

After a successful installation, set the RunCodeAnalysis parameter in MSBuild to true and you're good to go.

MSBuild MySolution.sln /p:RunCodeAnalysis=true

Benefits of distributing rule set as a NuGet package

  • automatic updates of dependencies to Code Analyzer libraries
  • automatic updates of the rule set file
  • reusability of the same rule set in different projects/solutions

Active rules

  • Microsoft.AnalyzerPowerPack.Common
  • ⚠️ CA1715: Identifiers should have correct prefix.

codeanalysisruleset's People

Contributors

ondrejsevcik avatar petrsvihlik avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.