Skip to content

Commit

Permalink
Merge pull request ManageIQ#760 from bdunne/rubocop_config
Browse files Browse the repository at this point in the history
Update rubocop config files
  • Loading branch information
Fryguy authored Mar 22, 2017
2 parents d259773 + 35eb921 commit d4bafa5
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 644 deletions.
6 changes: 6 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ engines:
rubocop:
enabled: true
config: '.rubocop_cc.yml'
prepare:
fetch:
- url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml"
path: ".rubocop_base.yml"
- url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml"
path: ".rubocop_cc_base.yml"
ratings:
paths:
- Gemfile.lock
Expand Down
49 changes: 3 additions & 46 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,4 @@
inherit_from:
- .rubocop_base.yml
#
# Overrides
#
GlobalVars:
AllowedVariables:
# Loggers
- $audit_log
- $api_log
- $aws_log
- $azure_log
- $fog_log
- $lenovo_log
- $log
- $miq_ae_logger
- $policy_log
- $rails_log
- $rhevm_log
- $kube_log
- $mw_log
- $scvmm_log
- $vim_log
- $websocket_log
# In Automate methods
- $evm
#
# Special Exclusions
#
AllCops:
TargetRubyVersion: 2.2
Exclude:
- lib/generators/provider/templates/**/*
- db/schema.rb
- vendor/**/*
ClassAndModuleCamelCase:
Exclude:
- lib/miq_automation_engine/service_models/*.rb
FileName:
Exclude:
- lib/miq_automation_engine/service_models/*.rb
Metrics/LineLength:
Exclude:
- Gemfile
Style/ExtraSpacing:
Exclude:
- Gemfile
- https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
# put all local rubocop config into .rubocop_local.yml as it will be loaded by .rubocop_cc.yml as well
- .rubocop_local.yml
Loading

0 comments on commit d4bafa5

Please sign in to comment.