Merge pull request #1157 from sgmap/rubocop-focus

Make Rubocop check for focused specs
This commit is contained in:
Frederic Merizen 2017-12-22 17:12:10 +01:00 committed by GitHub
commit 4e24785f3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,6 @@
require:
- rubocop/rspec/focused
AllCops: AllCops:
Exclude: Exclude:
- "db/schema.rb" - "db/schema.rb"
@ -614,6 +617,9 @@ Rails/Validation:
Rails: Rails:
Enabled: false Enabled: false
RSpec/Focused:
Enabled: true
Security/Eval: Security/Eval:
Enabled: false Enabled: false

View file

@ -135,6 +135,7 @@ group :development do
gem 'rack-handlers' gem 'rack-handlers'
gem 'xray-rails' gem 'xray-rails'
gem 'rubocop', require: false gem 'rubocop', require: false
gem 'rubocop-rspec-focused', require: false
gem 'haml-lint' gem 'haml-lint'
gem 'scss_lint', require: false gem 'scss_lint', require: false
end end

View file

@ -562,6 +562,8 @@ GEM
rainbow (>= 1.99.1, < 3.0) rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1) unicode-display_width (~> 1.0, >= 1.0.1)
rubocop-rspec-focused (0.1.0)
rubocop (>= 0.37)
ruby-progressbar (1.8.1) ruby-progressbar (1.8.1)
ruby_dep (1.5.0) ruby_dep (1.5.0)
ruby_parser (3.10.1) ruby_parser (3.10.1)
@ -754,6 +756,7 @@ DEPENDENCIES
rspec-rails (~> 3.0) rspec-rails (~> 3.0)
rspec_junit_formatter rspec_junit_formatter
rubocop rubocop
rubocop-rspec-focused
sass-rails (~> 5.0) sass-rails (~> 5.0)
scenic scenic
scss_lint scss_lint