...
Code Block |
---|
inherit_gem:
bixby: bixby_default.yml
|
Customizing the Configuration
...
Validate all files:
Code Block |
---|
rubocop
|
Validate a specific file:
Code Block |
---|
rubocop path/to/your/file
|
Autocorrect problems
If RuboCop finds style violations, you can ask it to try automatically fixing them.
Note |
---|
We recommend committing all work prior to running this command as sometimes RuboCop will create breaking changes. |
Auto-fix all files:
Code Block |
---|
rubocop -a
|
Ignoring errors
Info |
---|
It is recommended that all errors reported by RuboCop be fixed. |
But there are situations when this is not possible. In those cases, the following recommendations apply. These should be applied in priority order with the first being the preferred method.
...