From f5da88520f95ca9f0b3a79f4d6bd71d9c8825422 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 25 Jun 2019 22:18:43 +0200 Subject: [PATCH] Using rubocop rails gem --- .rubocop.yml | 4 +++- Guardfile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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