https://github.com/prontolabs/pronto-rubocop
Pronto runner for Rubocop, ruby code analyzer
https://github.com/prontolabs/pronto-rubocop
analyzer pronto pronto-runner rubocop ruby
Last synced: 8 months ago
JSON representation
Pronto runner for Rubocop, ruby code analyzer
- Host: GitHub
- URL: https://github.com/prontolabs/pronto-rubocop
- Owner: prontolabs
- License: mit
- Created: 2013-07-14T14:16:41.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T14:55:31.000Z (over 1 year ago)
- Last Synced: 2025-03-28T15:08:28.689Z (about 1 year ago)
- Topics: analyzer, pronto, pronto-runner, rubocop, ruby
- Language: Ruby
- Homepage:
- Size: 146 KB
- Stars: 83
- Watchers: 7
- Forks: 74
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Pronto runner for RuboCop
[](http://badge.fury.io/rb/pronto-rubocop)
[](https://github.com/prontolabs/pronto-rubocop/actions/workflows/checks.yml)
[](https://codeclimate.com/github/prontolabs/pronto-rubocop)
Pronto runner for [RuboCop](https://github.com/bbatsov/rubocop), ruby code
analyzer. [What is Pronto?](https://github.com/prontolabs/pronto)
## Configuration
Configuring RuboCop via `.rubocop.yml` will work just fine with
`pronto-rubocop`.
You can also specify a custom `.rubocop.yml` location with the environment
variable `RUBOCOP_CONFIG`.
You can also provide additional configuration via `.pronto.yml`:
```yml
rubocop:
# Map of RuboCop severity level to Pronto severity level
severities:
refactor: info
warning: error
# Enable suggestions
suggestions: true
```
## Suggestions
When suggestions are enabled, the messages will include a line suggesting
what to change, using [GitHub's](https://twitter.com/wa7son/status/1052326282900443137)
syntax on Pull Request reviews, that can be approved in one click right from
the Pull Request.
For example:

## RuboCop versions
If you need to use RuboCop v0.84.0 or v0.85.x, you'll need to ensure that
you've also need to add `gem 'rubocop-ast', '< 0.7.0'` to your Gemfile as
these were the first versions to use rubocop-ast, and unfortunately the
dependency was loose enough that rubocop-ast versions >= 0.7.0 were allowed,
which causes `require 'rubocop'` to fail with
```
NoMethodError:
undefined method `join' for #=, :>, :<}>
in rubocop-0.84.0/lib/rubocop/cop/style/redundant_conditional.rb:57:in `'
```
This is due to https://github.com/rubocop-hq/rubocop-ast/issues/22