-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
322 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ locale/*.mo | |
locale/*/*.edit.po | ||
locale/*/*.po.time_stamp | ||
locale/*/*.pox | ||
*.gem | ||
*.lock |
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,23 +1,106 @@ | ||
inherit_from: | ||
- .rubocop_todo.yml | ||
|
||
AllCops: | ||
Exclude: | ||
- 'doc/plugins/**' | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
Rails/Date: | ||
Enabled: false | ||
|
||
# Don't enforce documentation | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Force before_filter until upgrade to Rails 4 | ||
Rails/ActionFilter: | ||
EnforcedStyle: filter | ||
|
||
Metrics/MethodLength: | ||
Max: 20 | ||
Max: 40 | ||
|
||
Style/TrailingCommaInArrayLiteral: | ||
Enabled: false | ||
|
||
Style/TrailingCommaInHashLiteral: | ||
Enabled: false | ||
|
||
Naming/AccessorMethodName: | ||
Enabled: false | ||
|
||
Style/RedundantSelf: | ||
Enabled: false | ||
|
||
Metrics/ClassLength: | ||
Max: 500 | ||
Exclude: | ||
- 'test/**/*' | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- 'db/seeds.d/*' | ||
|
||
Style/WordArray: | ||
Enabled: false | ||
|
||
Style/BracesAroundHashParameters: | ||
Enabled: false | ||
|
||
Style/RescueModifier: | ||
Enabled: false | ||
|
||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Style/EachWithObject: | ||
Enabled: false | ||
|
||
Style/GuardClause: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Exclude: | ||
- 'config/routes.rb' | ||
- 'test/**/*' | ||
|
||
Metrics/ParameterLists: | ||
Enabled: false | ||
|
||
Naming/VariableNumber: | ||
Enabled: false | ||
|
||
# a == 0 is not the same as a.zero?, when a is not a number | ||
Style/NumericPredicate: | ||
Enabled: false | ||
|
||
Style/FormatStringToken: | ||
EnforcedStyle: template | ||
|
||
Rails/SkipsModelValidations: | ||
Enabled: false | ||
|
||
Style/SymbolArray: | ||
Enabled: false | ||
|
||
Style/FormatString: | ||
Enabled: false | ||
|
||
Naming/HeredocDelimiterNaming: | ||
Enabled: false | ||
|
||
Style/RescueStandardError: | ||
Enabled: false | ||
|
||
Metrics/LineLength: | ||
Max: 111 # TODO: discuss and set this | ||
Style/SafeNavigation: | ||
Enabled: false | ||
|
||
Style/Next: | ||
Lint/BooleanSymbol: | ||
Enabled: false | ||
|
||
# Support both ruby19 and hash_rockets | ||
Style/HashSyntax: | ||
Metrics/PerceivedComplexity: | ||
Max: 11 | ||
|
||
Metrics/AbcSize: | ||
Max: 45 | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false |
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 |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2018-09-13 15:11:07 -0400 using RuboCop version 0.59.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. | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
Layout/EmptyLineAfterGuardClause: | ||
Exclude: | ||
- 'app/helpers/concerns/foreman_m2/images_helper_extensions.rb' | ||
- 'app/models/concerns/foreman_m2/nic_orchestration_extensions.rb' | ||
|
||
# Offense count: 6 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, IndentationWidth. | ||
# SupportedStyles: aligned, indented | ||
Layout/MultilineOperationIndentation: | ||
Exclude: | ||
- 'app/helpers/concerns/foreman_m2/images_helper_extensions.rb' | ||
- 'app/models/concerns/foreman_m2/host_extensions.rb' | ||
- 'app/models/concerns/foreman_m2/host_orchestration_extensions.rb' | ||
- 'foreman_m2.gemspec' | ||
|
||
# Offense count: 26 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowInHeredoc. | ||
Layout/TrailingWhitespace: | ||
Exclude: | ||
- 'app/helpers/concerns/foreman_m2/images_helper_extensions.rb' | ||
- 'app/models/concerns/foreman_m2/host_extensions.rb' | ||
- 'app/models/concerns/foreman_m2/host_orchestration_extensions.rb' | ||
- 'app/models/concerns/foreman_m2/nic_orchestration_extensions.rb' | ||
- 'db/seeds.d/071-m2_prov_templates.rb' | ||
- 'test/test_plugin_helper.rb' | ||
|
||
# Offense count: 1 | ||
Lint/UselessAssignment: | ||
Exclude: | ||
- 'app/models/concerns/foreman_m2/host_extensions.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments, ExcludedMethods. | ||
# ExcludedMethods: refine | ||
Metrics/BlockLength: | ||
Max: 48 | ||
|
||
# Offense count: 3 | ||
Metrics/CyclomaticComplexity: | ||
Max: 10 | ||
|
||
# Offense count: 3 | ||
Metrics/PerceivedComplexity: | ||
Max: 11 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. | ||
# AllowedNames: io, id, to, by, on, in, at, ip, db | ||
Naming/UncommunicativeMethodParamName: | ||
Exclude: | ||
- 'app/helpers/concerns/foreman_m2/images_helper_extensions.rb' | ||
|
||
# Offense count: 4 | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: snake_case, camelCase | ||
Naming/VariableName: | ||
Exclude: | ||
- 'app/controllers/foreman_m2/hosts_controller.rb' | ||
- 'app/models/concerns/foreman_m2/host_extensions.rb' | ||
- 'app/models/foreman_m2/m2.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: annotated, template, unannotated | ||
Style/FormatStringToken: | ||
Exclude: | ||
- 'app/models/concerns/foreman_m2/host_orchestration_extensions.rb' | ||
|
||
# Offense count: 69 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. | ||
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys | ||
Style/HashSyntax: | ||
Exclude: | ||
- 'app/controllers/foreman_m2/hosts_controller.rb' | ||
- 'app/helpers/concerns/foreman_m2/images_helper_extensions.rb' | ||
- 'app/lib/proxy_api/m2.rb' | ||
- 'app/models/concerns/foreman_m2/host_extensions.rb' | ||
- 'app/models/concerns/foreman_m2/nic_extensions.rb' | ||
- 'app/models/concerns/foreman_m2/nic_orchestration_extensions.rb' | ||
- 'app/overrides/give_ids.rb' | ||
- 'app/overrides/hybrid_js.rb' | ||
- 'db/seeds.d/071-m2_prov_templates.rb' | ||
- 'db/seeds.d/111-m2_sp_features.rb' | ||
- 'lib/foreman_m2/engine.rb' | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, MinBodyLength. | ||
# SupportedStyles: skip_modifier_ifs, always | ||
Style/Next: | ||
Exclude: | ||
- 'app/models/concerns/foreman_m2/host_extensions.rb' | ||
- 'rename.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
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
Oops, something went wrong.