Skip to content

Commit c5a00c3

Browse files
authored
Merge pull request rails#43452 from missy-davies/fix-rubocop-command
Update rubocop example command to include 'bundle exec'
2 parents 4bb3ace + c43ca71 commit c5a00c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/contributing_to_ruby_on_rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ The above are guidelines - please use your best judgment in using them.
268268
Additionally, we have [RuboCop](https://www.rubocop.org/) rules defined to codify some of our coding conventions. You can run RuboCop locally against the file that you have modified before submitting a pull request:
269269

270270
```bash
271-
$ rubocop actionpack/lib/action_controller/metal/strong_parameters.rb
271+
$ bundle exec rubocop actionpack/lib/action_controller/metal/strong_parameters.rb
272272
Inspecting 1 file
273273
.
274274

0 commit comments

Comments
 (0)