Require our own custom cops; Remove missing cops
Also try to use the same config from EE
This commit is contained in:
parent
29749f92b7
commit
cc7a7aad80
|
@ -3,6 +3,7 @@ inherit_gem:
|
|||
- rubocop-default.yml
|
||||
|
||||
inherit_from: .rubocop_todo.yml
|
||||
require: ./rubocop/rubocop
|
||||
|
||||
AllCops:
|
||||
TargetRailsVersion: 4.2
|
||||
|
@ -24,8 +25,10 @@ Gitlab/ModuleWithInstanceVariables:
|
|||
Exclude:
|
||||
# We ignore Rails helpers right now because it's hard to workaround it
|
||||
- app/helpers/**/*_helper.rb
|
||||
- ee/app/helpers/**/*_helper.rb
|
||||
# We ignore Rails mailers right now because it's hard to workaround it
|
||||
- app/mailers/emails/**/*.rb
|
||||
- ee/**/emails/**/*.rb
|
||||
# We ignore spec helpers because it usually doesn't matter
|
||||
- spec/support/**/*.rb
|
||||
- features/steps/**/*.rb
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require_relative 'cop/active_record_dependent'
|
||||
require_relative 'cop/gitlab/module_with_instance_variables'
|
||||
require_relative 'cop/include_sidekiq_worker'
|
||||
require_relative 'cop/migration/add_column'
|
||||
|
@ -18,6 +17,4 @@ require_relative 'cop/migration/update_column_in_batches'
|
|||
require_relative 'cop/migration/update_large_table'
|
||||
require_relative 'cop/project_path_helper'
|
||||
require_relative 'cop/rspec/env_assignment'
|
||||
require_relative 'cop/rspec/single_line_hook'
|
||||
require_relative 'cop/rspec/verbose_include_metadata'
|
||||
require_relative 'cop/sidekiq_options_queue'
|
||||
|
|
Loading…
Reference in New Issue