<commit_before># StyleCop.Baboon - StyleCop working anywhere

StyleCop.Baboon helps you to fix [StyleCop](https://stylecop.codeplex.com/) problems without an IDE and from any OS that runs C#.

[![Build status](https://ci.appveyor.com/api/projects/status/qs2k50hblbc4b603/branch/master?svg=true)](https://ci.appveyor.com/project/nelsonsar/stylecop-baboon/branch/master) [![Build Status](https://travis-ci.org/nelsonsar/StyleCop.Baboon.svg?branch=master)](https://travis-ci.org/nelsonsar/StyleCop.Baboon)

## <a name="installation"></a>Installation / Usage

1. Clone this repository and build the solution.

    On Windows:

    ```sh
    $ nuget restore
    $ msbuild "StyleCop.Baboon.sln"
    ```

    On Linux and OSX after you have installed [Mono](http://www.mono-project.com/download/):

    ```sh
    $ nuget restore
    $ xbuild "StyleCop.Baboon.sln"
    ```

2. Use your custom StyleCop settings to analyze a file or a directory.

    ```
    $ [mono] StyleCop.Baboon.exe Settings.StyleCop StyleCop.Baboon/Program.cs
    ```

3. Fix StyleCop's complaints and stay on the line to avoid more complaints.

## Global installation of StyleCop.Baboon (Linux only)

1. Follow instructions [here](#installation).

2. On the command line:

```sh
$ 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```!

## Author

<NAME> - [https://twitter.com/nelson_senna](https://twitter.com/nelson_senna) - [http://nelsonsar.github.io](http://nelsonsar.github.io)<commit_msg>Add Jenkins section to README<commit_after># StyleCop.Baboon - StyleCop working anywhere

StyleCop.Baboon helps you to fix [StyleCop](https://stylecop.codeplex.com/) problems without an IDE and from any OS that runs C#.

[![Build status](https://ci.appveyor.com/api/projects/status/qs2k50hblbc4b603/branch/master?svg=true)](https://ci.appveyor.com/project/nelsonsar/stylecop-baboon/branch/master) [![Build Status](https://travis-ci.org/nelsonsar/StyleCop.Baboon.svg?branch=master)](https://travis-ci.org/nelsonsar/StyleCop.Baboon)

## <a name="installation"></a>Installation / Usage

1. Clone this repository and build the solution.

    On Windows:

    ```sh
    $ nuget restore
    $ msbuild "StyleCop.Baboon.sln"
    ```

    On Linux and OSX after you have installed [Mono](http://www.mono-project.com/download/):

    ```sh
    $ nuget restore
    $ xbuild "StyleCop.Baboon.sln"
    ```

2. 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
    ```

3. Fix StyleCop's complaints and stay on the line to avoid more complaints.

## Global installation of StyleCop.Baboon (Linux only)

1. Follow instructions [here](#installation).

2. On the command line:

    ```sh
    $ 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](https://wiki.jenkins-ci.org/display/JENKINS/Violations) supports StyleCop and you can use StyleCop.Baboon to generate the xml file that will be used by the plugin.

## Author

<NAME> - [https://twitter.com/nelson_senna](https://twitter.com/nelson_senna) - [http://nelsonsar.github.io](http://nelsonsar.github.io)
{'fraction_non_alphanumeric': 0.15263291783261257, 'fraction_numerical': 0.006614093106079878, 'mean_word_length': 3.9027431421446384, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 15, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '845658', 'n_tokens_mistral': 1414, 'n_tokens_neox': 1339, 'n_words': 310}