pronto gem introduction for continuous static program analysis
Continuous static programanalysis@netwillnet
View Slide
Freelance Rails Engineer @netwillnet
Now on Sale!!!1
Organizer
There are many staticanalysis tools
static analysis tool likes this
hound CI is one ofsolutions
hound CI comments on PR with rubocop
Great tool!!
* not free for private repo* only rubocopBut…
pronto is an alternative
pronto-rubocop pronto-flay pronto-brakeman pronto-foodcritic pronto-rails_best_practices pronto-reek pronto-poper pronto-jshint pronto-spell pronto-hamlRunner
> export GITHUB_ACCESS_TOKEN=xxxxx > pronto run -f github
Add comments to each commit
> export GITHUB_ACCESS_TOKEN=xxxxx > pronto run -f githubIf you execute it on CI, You can use what likeshound CI
> export GITHUB_ACCESS_TOKEN=xxxxx > export PULL_REQUEST_ID=n > pronto run -f github_prNew Option has come!
Add comments to Pull Request
> export GITHUB_ACCESS_TOKEN=xxxxx > export PULL_REQUEST_ID=n > pronto run -f github_prInput Pull Request ID is hassle…
> export GITHUB_ACCESS_TOKEN=xxxxx > prid YOUR_REPOSITORY !
Conclusion
Let’s do Continuous static program analysis with pronto