Continuous static program analysis

Continuous static program analysis

pronto gem introduction for continuous static program analysis

6ac7c50770603b53964d44db373e8e48?s=128

Shinichi Maeshima

September 21, 2014
Tweet

Transcript

  1. Continuous static program analysis @netwillnet

  2. Freelance Rails Engineer @netwillnet

  3. Now on Sale!!!1

  4. Organizer

  5. There are many static analysis tools

  6. static analysis tool likes this

  7. hound CI is one of solutions

  8. hound CI comments on PR with rubocop

  9. Great tool!!

  10. * not free for private repo * only rubocop But…

  11. pronto is an alternative

  12. pronto-rubocop pronto-flay pronto-brakeman pronto-foodcritic pronto-rails_best_practices pronto-reek pronto-poper pronto-jshint pronto-spell pronto-haml

    Runner
  13. > export GITHUB_ACCESS_TOKEN=xxxxx > pronto run -f github

  14. Add comments to each commit

  15. > export GITHUB_ACCESS_TOKEN=xxxxx > pronto run -f github If you

    execute it on CI, You can use what likes hound CI
  16. Add comments to each commit

  17. > export GITHUB_ACCESS_TOKEN=xxxxx > export PULL_REQUEST_ID=n > pronto run -f

    github_pr New Option has come!
  18. Add comments to Pull Request

  19. > export GITHUB_ACCESS_TOKEN=xxxxx > export PULL_REQUEST_ID=n > pronto run -f

    github_pr Input Pull Request ID is hassle…
  20. None
  21. > export GITHUB_ACCESS_TOKEN=xxxxx > prid YOUR_REPOSITORY !

  22. Conclusion

  23. Let’s do Continuous static program analysis with pronto