From 6d223aee06a171d9dcd81443f8ceab24aff4824b Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Fri, 22 Dec 2017 16:50:20 +0100 Subject: [PATCH] Make Rubocop check for focused specs --- .rubocop.yml | 6 ++++++ Gemfile | 1 + Gemfile.lock | 3 +++ 3 files changed, 10 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index b8b692370..d762a8292 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,6 @@ +require: + - rubocop/rspec/focused + AllCops: Exclude: - "db/schema.rb" @@ -614,6 +617,9 @@ Rails/Validation: Rails: Enabled: false +RSpec/Focused: + Enabled: true + Security/Eval: Enabled: false diff --git a/Gemfile b/Gemfile index 00e2af737..5c1bd377a 100644 --- a/Gemfile +++ b/Gemfile @@ -135,6 +135,7 @@ group :development do gem 'rack-handlers' gem 'xray-rails' gem 'rubocop', require: false + gem 'rubocop-rspec-focused', require: false gem 'haml-lint' gem 'scss_lint', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 4e7551cd9..808f5770f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -562,6 +562,8 @@ GEM rainbow (>= 1.99.1, < 3.0) ruby-progressbar (~> 1.7) unicode-display_width (~> 1.0, >= 1.0.1) + rubocop-rspec-focused (0.1.0) + rubocop (>= 0.37) ruby-progressbar (1.8.1) ruby_dep (1.5.0) ruby_parser (3.10.1) @@ -754,6 +756,7 @@ DEPENDENCIES rspec-rails (~> 3.0) rspec_junit_formatter rubocop + rubocop-rspec-focused sass-rails (~> 5.0) scenic scss_lint