Merge pull request #6908 from adullact/feature/6866-rubocop-deps-cleanup

Nettoyage des dépendances de Rubocop
This commit is contained in:
Pierre de La Morinerie 2022-02-08 12:39:28 +01:00 committed by GitHub
commit d3603cf3c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 18 deletions

View file

@ -1,15 +1,15 @@
require:
- rubocop-performance
- rubocop-rails
- rubocop/rspec/focused
- ./lib/cops/add_concurrent_index.rb
- ./lib/cops/application_name.rb
- ./lib/cops/unscoped.rb
inherit_gem:
rubocop-rails_config:
- config/rails.yml
AllCops:
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0
DisabledByDefault: true
SuggestExtensions: false
Exclude:
- "db/schema.rb"
- "db/migrate/20190730153555_recreate_structure.rb"
@ -644,6 +644,9 @@ Performance/RedundantMatch:
Performance/RedundantMerge:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/RedundantSortBy:
Enabled: true
@ -1373,4 +1376,3 @@ Style/YodaCondition:
Style/ZeroLengthPredicate:
Enabled: true

View file

@ -111,7 +111,8 @@ group :development do
gem 'rack-mini-profiler'
gem 'rails-erd', require: false # generates `doc/database_models.pdf`
gem 'rubocop', require: false
gem 'rubocop-rails_config'
gem 'rubocop-performance', require: false
gem 'rubocop-rails', require: false
gem 'rubocop-rspec-focused', require: false
gem 'scss_lint', require: false
gem 'web-console'

View file

@ -620,8 +620,6 @@ GEM
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.4.1)
parser (>= 2.7.1.5)
rubocop-packaging (0.5.1)
rubocop (>= 0.89, < 2.0)
rubocop-performance (1.9.2)
rubocop (>= 0.90.0, < 2.0)
rubocop-ast (>= 0.4.0)
@ -629,13 +627,6 @@ GEM
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 0.90.0, < 2.0)
rubocop-rails_config (1.3.1)
railties (>= 5.0)
rubocop (>= 1.8)
rubocop-ast (>= 1.0.1)
rubocop-packaging (~> 0.5)
rubocop-performance (~> 1.3)
rubocop-rails (~> 2.0)
rubocop-rspec-focused (1.0.0)
rubocop (>= 0.51)
ruby-graphviz (1.2.5)
@ -874,7 +865,8 @@ DEPENDENCIES
rspec-rails
rspec_junit_formatter
rubocop
rubocop-rails_config
rubocop-performance
rubocop-rails
rubocop-rspec-focused
ruby-saml-idp
sanitize-url

View file

@ -18,7 +18,7 @@ FactoryBot.define do
administrateurs { administrateur.present? ? [administrateur] : [association(:administrateur)] }
transient do
administrateur { }
administrateur {}
instructeurs { [] }
types_de_champ { [] }
types_de_champ_private { [] }