Giter Site home page Giter Site logo

stylecop.console's Introduction

Build Status

StyleCop.Console

Getting Started

Run StyleCop.Console.exe -project-path "path/to/your/cs/project" to get a static code analysis with StyleCop's default rules.

To not analyse subdirectories recursively add the argument switch -not-recursively.

Rules

Default Rules

To deactivate default rules, edit the file Settings.StyleCop with the StyleCopSettingsEditor.exe or pass your existing settings file via command line argument:

StyleCop.Console.exe -settings-location "path/to/your/Settings.StyleCop" -project-path "path/to/your/cs/project"

Custom Rules

You can add your own rules by adding your own SourceAnalyzer class in the StyleCop.Rules project. Refer to the existing RulesAnalyzer.cs class as a real-life example for disallowing more than one class per code file.

Further reading: How to Create StyleCop Custom Rule

All Command Line Arguments

  • Show help screen: -help or -?
  • Specify project path: -project-path <path> or -p <path>
  • Custom settings file: -settings-location <path> or -s <path>
  • Do not analyse subdirectories: -not-recursively or -n

stylecop.console's People

Contributors

nylle avatar alexanderfast avatar herrshabi avatar devlead avatar gurkini avatar

Stargazers

Pavel Kuznetsov avatar Jeff Ward avatar SuperLin avatar Tom-- avatar Justin Hachemeister avatar Lauro Moura avatar Alexander Haas  avatar Masataka Kohagura avatar Jing Kan avatar m-shirooka avatar fang avatar Joao Machado avatar Chris Kooken avatar  avatar Miguel Jimenez avatar Jonas Björkert avatar Joohun, Maeng avatar  avatar Christian Meilke avatar

Watchers

James Cloos avatar Christian Meilke avatar  avatar  avatar  avatar

stylecop.console's Issues

Why no releases?

Are there no releases for this tool, so that I can use them without having to compile it myself?

Release 1.0.0

There is a problem with Release v1.0.0
StyleCop.Console.exe always return "No violations encountered"
But when i get source from git and build solution at VS2015 it works fine.
Maybe it was some problems with xbuild at Travis CI or something else.

Also it will be nice to zip all release files.

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.