diff --git a/.rubocop.yml b/.rubocop.yml index 3b581c19..f0e0587f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,6 @@ -require: rubocop-performance +require: + - rubocop-performance + - rubocop-rails AllCops: Exclude: diff --git a/Guardfile b/Guardfile index 0acf8bed..2ec22ee2 100644 --- a/Guardfile +++ b/Guardfile @@ -34,7 +34,7 @@ guard :brakeman, run_on_start: true, quiet: true, min_confidence: 10 do watch('Gemfile') end -guard :rubocop, cli: ['--rails'] do +guard :rubocop do watch(%r{.+\.rb$}) watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end