-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Choose to inherit just some cops, because i wanted to inherit rules from style_lenient.yml as well, i followed this https://github.com/theforeman/theforeman-rubocop?tab=readme-ov-file#choose-just-some-cops Also drop some cops from the .rubocop.yml config, because that was present in inherit-gem.
- Loading branch information
1 parent
7d71974
commit 2397f52
Showing
4 changed files
with
96 additions
and
84 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
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,42 +1,102 @@ | ||
Layout/ArgumentAlignment: | ||
Enabled: false | ||
|
||
Layout/EmptyLinesAroundExceptionHandlingKeywords: | ||
Enabled: false | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2024-03-29 20:21:11 UTC using RuboCop version 1.23.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
Layout/EmptyLineAfterGuardClause: | ||
Enabled: false | ||
# Offense count: 12 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, IndentationWidth. | ||
# SupportedStyles: with_first_argument, with_fixed_indentation | ||
Layout/ArgumentAlignment: | ||
Exclude: | ||
- 'app/models/foreman_kubevirt/kubevirt.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. | ||
# SupportedStyles: space, no_space, compact | ||
# SupportedStylesForEmptyBraces: space, no_space | ||
Layout/SpaceInsideHashLiteralBraces: | ||
Enabled: false | ||
Exclude: | ||
- 'app/models/foreman_kubevirt/kubevirt.rb' | ||
|
||
# Offense count: 1 | ||
Lint/RescueException: | ||
Enabled: false | ||
Exclude: | ||
- 'app/models/foreman_kubevirt/kubevirt.rb' | ||
|
||
# Offense count: 6 | ||
# Cop supports --auto-correct. | ||
Lint/SendWithMixinArgument: | ||
Enabled: false | ||
Exclude: | ||
- 'lib/foreman_kubevirt/engine.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. | ||
Lint/UnusedMethodArgument: | ||
Enabled: false | ||
Exclude: | ||
- 'app/models/foreman_kubevirt/kubevirt.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: PreferredName. | ||
Naming/RescuedExceptionsVariableName: | ||
Enabled: false | ||
Exclude: | ||
- 'Rakefile' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: Include. | ||
# Include: **/Rakefile, **/*.rake | ||
Rails/RakeEnvironment: | ||
Exclude: | ||
- 'lib/tasks/foreman_kubevirt_tasks.rake' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: MinBodyLength. | ||
Style/GuardClause: | ||
Enabled: false | ||
Exclude: | ||
- 'app/validators/volume_validator.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowedReceivers. | ||
Style/HashEachMethods: | ||
Enabled: false | ||
Exclude: | ||
- 'app/models/foreman_kubevirt/kubevirt.rb' | ||
|
||
Style/HashTransformKeys: | ||
Enabled: false | ||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, MinBodyLength. | ||
# SupportedStyles: skip_modifier_ifs, always | ||
Style/Next: | ||
Exclude: | ||
- 'app/validators/volume_validator.rb' | ||
|
||
Style/HashTransformValues: | ||
Enabled: false | ||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowModifier. | ||
Style/SoleNestedConditional: | ||
Exclude: | ||
- 'app/validators/volume_validator.rb' | ||
|
||
Style/Next: | ||
Enabled: false | ||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: . | ||
# SupportedStyles: percent, brackets | ||
Style/SymbolArray: | ||
EnforcedStyle: percent | ||
MinSize: 2 | ||
|
||
Rails/RakeEnvironment: | ||
# Offense count: 10 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyleForMultiline. | ||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma | ||
Style/TrailingCommaInHashLiteral: | ||
Exclude: | ||
- 'lib/tasks/foreman_kubevirt_tasks.rake' | ||
- 'app/models/foreman_kubevirt/kubevirt.rb' | ||
- 'test/unit/foreman_kubevirt_test.rb' |
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