-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update RuboCop configuration to inherit from theforeman-rubocop (#886)
* Update RuboCop configuration to inherit from theforeman-rubocop
- Loading branch information
1 parent
b4e1d9a
commit e939a23
Showing
30 changed files
with
588 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,73 @@ | ||
inherit_from: | ||
- https://raw.githubusercontent.com/theforeman/foreman/2.3-stable/.rubocop.yml | ||
inherit_from: .rubocop_todo.yml | ||
|
||
inherit_gem: | ||
theforeman-rubocop: | ||
- default.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.7 | ||
TargetRailsVersion: 6.1 | ||
Exclude: | ||
- "db/schema.rb" | ||
- "node_modules/**/*" | ||
- "vendor/**/*" | ||
|
||
Metrics: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
Layout/LineLength: | ||
Enabled: false | ||
|
||
Layout/DotPosition: | ||
Enabled: false | ||
|
||
Layout/HashAlignment: | ||
Enabled: false | ||
|
||
Performance/RegexpMatch: | ||
Enabled: false | ||
|
||
Rails/RefuteMethods: | ||
Enabled: false | ||
|
||
# Don't prefer is_a? over kind_of? | ||
Style/ClassCheck: | ||
Enabled: false | ||
|
||
Style/ConditionalAssignment: | ||
Enabled: false | ||
|
||
# Support both, Ruby 1.9 hashmap and hash-rocket syntax | ||
Style/HashSyntax: | ||
EnforcedStyle: no_mixed_keys | ||
|
||
Style/IfUnlessModifier: | ||
Enabled: false | ||
|
||
# disabled until we can configure "+" as concat sign | ||
Style/LineEndConcatenation: | ||
Enabled: false | ||
|
||
Style/NumericPredicate: | ||
Enabled: false | ||
|
||
Style/ParenthesesAroundCondition: | ||
Enabled: false | ||
|
||
# Both double and single quotes are OK | ||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Style/SymbolArray: | ||
EnforcedStyle: brackets | ||
MinSize: 1 | ||
|
||
#Allow both ['a', 'b'], %w[a b] and %w(a b) style arrays | ||
Style/WordArray: | ||
Enabled: false | ||
|
||
Style/RaiseArgs: | ||
EnforcedStyle: compact |
Oops, something went wrong.