Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
This commit fixes the following `RSpec/FactoryBot/CreateList` error.

```console
% cd path/to/rubocop-rake
% bundle exec rake
(snip)

An error occurred while RSpec/FactoryBot/CreateList cop was inspecting
/Users/koic/src/github.com/rubocop-hq/rubocop-rake/spec/spec_helper.rb:15:15.
To see the complete backtrace run rubocop -d.
```
  • Loading branch information
koic committed Nov 3, 2020
1 parent f2f1dd1 commit d884630
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ RSpec/ExampleLength:
Naming/FileName:
Exclude:
- 'lib/rubocop-rake.rb'

# This disabling is a workaround for https://github.com/rubocop-hq/rubocop-rspec/issues/1068.
# The cop has been disabled because FactoryBot is not used in this repository.
RSpec/FactoryBot/CreateList:
Enabled: false

0 comments on commit d884630

Please sign in to comment.