From cb0ff0c9ced9bd6db9f9a7e71487411870b150f1 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Tue, 3 Nov 2020 21:35:53 +0900 Subject: [PATCH] Fix build error 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. ``` --- .rubocop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 03c4fb0..e8d70e8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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