GithubHelp home page GithubHelp logo

gmisoft / stylecopanalyzers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnetanalyzers/stylecopanalyzers

0.0 0.0 0.0 14.05 MB

An implementation of StyleCop rules using the .NET Compiler Platform

License: MIT License

C# 99.38% PowerShell 0.62%

stylecopanalyzers's Introduction

StyleCop Analyzers for the .NET Compiler Platform

NuGetNuGet Beta

Join the chat at https://gitter.im/DotNetAnalyzers/StyleCopAnalyzers

Build status

codecov.io

This repository contains an implementation of the StyleCop rules using the .NET Compiler Platform. Where possible, code fixes are also provided to simplify the process of correcting violations.

Using StyleCop.Analyzers

The preferable way to use the analyzers is to add the nuget package StyleCop.Analyzers to the project where you want to enforce StyleCop rules.

The severity of individual rules may be configured using rule set files in Visual Studio 2015 or newer. Settings.StyleCop is not supported, but a stylecop.json file may be used to customize the behavior of certain rules. See Configuration.md for more information.

For documentation and reasoning on the rules themselves, see the Documentation.

For users upgrading from StyleCop Classic, see KnownChanges.md for information about known differences which you may notice when switching to StyleCop Analyzers.

C# language versions

Not all versions of StyleCop.Analyzers support all features of each C# language version. The table below shows the minimum version of StyleCop.Analyzers required for proper support of a C# language version.

C# version StyleCop.Analyzers version Visual Studio version
1.0 - 6.0 v1.0.2 or higher VS2015+
7.0 - 7.3 v1.1.0-beta or higher VS2017+
8.0 v1.2.0-beta or higher VS2019

Installation

StyleCopAnalyzers can be installed using the NuGet command line or the NuGet Package Manager in Visual Studio 2015.

Install using the command line:

Install-Package StyleCop.Analyzers

Install using the package manager: Install via nuget

Team Considerations

If you use older versions of Visual Studio in addition to Visual Studio 2015 or Visual Studio 2017, you may still install these analyzers. They will be automatically disabled when you open the project back up in Visual Studio 2013 or earlier.

Contributing

See Contributing

Current status

An up-to-date list of which StyleCop rules are implemented and which have code fixes can be found here.

stylecopanalyzers's People

Contributors

sharwell avatar vweijsters avatar pdelvo avatar macpak avatar noryoko avatar nbarbettini avatar hvanbakel avatar bjornhellander avatar aarnott avatar maxwe11 avatar baks avatar nnpcyvivl avatar nikolayit avatar nxtn avatar johnkoerner avatar bexxx avatar pantosha avatar edwinengelen avatar peteri avatar oatkins avatar angelobreuer avatar dlemstra avatar jedidja avatar davidmartynwood avatar jamesqo avatar costin-zaharia-sonarsource avatar dcooke28 avatar otac0n avatar camilojd avatar lukas-ais 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.