Skip to content

Commit 543c2a7

Browse files
committed
Explicitly add require 'rubocop/rake_task' for the rake task example of README
1 parent e14def2 commit 543c2a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Note: `--rails` option is required while `rubocop` command supports `--rails` op
5656
### Rake task
5757

5858
```ruby
59+
require 'rubocop/rake_task'
60+
5961
RuboCop::RakeTask.new do |task|
6062
task.requires << 'rubocop-rails'
6163
end

0 commit comments

Comments
 (0)