Fork me on GitHub

Plato

JavaScript source code visualization, static analysis, and complexity tool.

https://github.com/es-analysis/plato

Install Plato

npm install -g plato

Run Plato

See how config Plato on your project: https://github.com/es-analysis/plato

The report will be save to report.json

Generate Plato badge

BadgesSharpCmd -o [your GitHub username] -r [your GitHub repository] -a %GITHUB_REPO_TOKEN% -b PlatoMaintainability -c report.json

Show the badge at your GitHub repository

Edit your readme.md and add the line below:
![Plato](https://badgessharp.apphb.com/badges/:owner/:repo/PlatoMaintainability)

How use it on your Continuous Integration?

AppVeyor

Add to your AppVeyor.yml file:

after_build:
        - cmd: >
        See how config Plato on your project: https://github.com/es-analysis/plato

        BadgesSharpCmd -o [your GitHub username] -r [your GitHub repository] -a %GITHUB_REPO_TOKEN% -b PlatoMaintainability -c report.json

TeamCity

Add the 'Plato' step to your configuration (probably you already have it);

Add a final 'Command Line' step to your configuration:

  1. Execute step: Even if some of the previous steps failed
  2. Run: Custom script
  3. Custom script:
    BadgesSharpCmd -o [your GitHub username] -r [your GitHub repository] -a %GITHUB_REPO_TOKEN% -b PlatoMaintainability -c "report.json"