Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 2.06 KB

README.md

File metadata and controls

53 lines (32 loc) · 2.06 KB

StyleCop.Baboon - StyleCop working anywhere

StyleCop.Baboon helps you to fix StyleCop problems without an IDE and from any OS that runs C#.

Build status Build Status

Installation / Usage

  1. Clone this repository with '--recursive' flag or run 'git submodule update --init' to clone the StyleCop submodule too.

  2. Build the solution.

$ nuget restore
$ msbuild "StyleCop.Baboon.sln"
  1. Use your custom StyleCop settings to analyze a file or a directory. This will generate StyleCopViolations.xml file.

    $ [mono] StyleCop.Baboon.exe Settings.StyleCop StyleCop.Baboon/Program.cs
    
  2. Enjoy! Fix StyleCop's complaints and stay on the line to avoid more complaints.

Global installation of StyleCop.Baboon (Linux only)

  1. Follow instructions here.

  2. On the command line:

    $ mkdir -p /usr/local/opt/StyleCop.Baboon
    $ cp [dir-that-baboon-was-built]/bin/Debug/* /usr/local/opt/StyleCop.Baboon/
    $ printf '%s\n%s' '#!/bin/bash' 'exec $(which mono) /usr/local/opt/StyleCop.Baboon/StyleCop.Baboon.exe "$@"' > /usr/local/bin/StyleCop.Baboon
    $ chmod a+x /usr/local/bin/StyleCop.Baboon
  3. Now StyleCop.Baboon should be available in your $PATH!

Using along with Jenkins

This was the motivation to create this project!

Jenkins Violations plugin supports StyleCop and you can use StyleCop.Baboon to generate the xml file that will be used by the plugin.

Author

Nelson Senna - https://twitter.com/nelson_senna - http://nelsonsar.github.io

License

StyleCop.Baboon is licensed under the MIT License - see the LICENSE file for details