Skip to content

Commit

Permalink
Use manageiq-style for both rubocop dependency and config
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Aug 27, 2020
1 parent 8ec5c49 commit 64f9003
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 18 deletions.
7 changes: 3 additions & 4 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
version: '2'
prepare:
fetch:
- url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml
path: ".rubocop_base.yml"
- url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml
path: ".rubocop_cc_base.yml"
checks:
argument-count:
Expand All @@ -28,7 +27,7 @@ plugins:
rubocop:
enabled: true
config: ".rubocop_cc.yml"
channel: 'rubocop-0-69'
channel: rubocop-0-82
exclude_patterns:
- config/dictionary_strings.rb
- config/model_attributes.rb
Expand Down
5 changes: 3 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
inherit_gem:
manageiq-style: ".rubocop_base.yml"
inherit_from:
- https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
- .rubocop_local.yml
- ".rubocop_local.yml"
6 changes: 3 additions & 3 deletions .rubocop_cc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
inherit_from:
- .rubocop_base.yml
- .rubocop_cc_base.yml
- .rubocop_local.yml
- ".rubocop_base.yml"
- ".rubocop_cc_base.yml"
- ".rubocop_local.yml"
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ unless ENV["APPLIANCE"]
group :development do
gem "foreman"
gem "PoParser"
gem "rubocop-performance", "~>1.3", :require => false
gem "manageiq-style", :require => false
# ruby_parser is required for i18n string extraction
gem "ruby_parser", :require => false
gem "yard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_development_dependency "manageiq-style"
spec.add_development_dependency "simplecov"
end
6 changes: 3 additions & 3 deletions lib/generators/manageiq/plugin/templates/.codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
version: '2'
prepare:
fetch:
- url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml
path: ".rubocop_base.yml"
- url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml
path: ".rubocop_cc_base.yml"
checks:
argument-count:
Expand All @@ -28,7 +28,7 @@ plugins:
rubocop:
enabled: true
config: ".rubocop_cc.yml"
channel: 'rubocop-0-69'
channel: rubocop-0-82
exclude_patterns:
- node_modules/
- spec/
Expand Down
5 changes: 3 additions & 2 deletions lib/generators/manageiq/plugin/templates/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
inherit_gem:
manageiq-style: ".rubocop_base.yml"
inherit_from:
- https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
- .rubocop_local.yml
- ".rubocop_local.yml"
6 changes: 3 additions & 3 deletions lib/generators/manageiq/plugin/templates/.rubocop_cc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
inherit_from:
- .rubocop_base.yml
- .rubocop_cc_base.yml
- .rubocop_local.yml
- ".rubocop_base.yml"
- ".rubocop_cc_base.yml"
- ".rubocop_local.yml"

0 comments on commit 64f9003

Please sign in to comment.