This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 184
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
1 parent
290b670
commit 9fc3ebe
Showing
5 changed files
with
386 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
inherit_gem: | ||
rubocop-rails_config: | ||
- config/rails.yml |
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,357 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2018-08-27 17:05:32 +0200 using RuboCop version 0.58.2. | ||
# 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: 13 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth. | ||
# SupportedStyles: case, end | ||
Layout/CaseIndentation: | ||
Exclude: | ||
- 'lib/puppet/report_sanitizer.rb' | ||
- 'lib/report_transformer.rb' | ||
- 'lib/tasks/summarize_reports.rake' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
Layout/ElseAlignment: | ||
Exclude: | ||
- 'lib/node_group_graph.rb' | ||
|
||
# Offense count: 39 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: empty_lines, no_empty_lines | ||
Layout/EmptyLinesAroundBlockBody: | ||
Enabled: false | ||
|
||
# Offense count: 6 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only | ||
Layout/EmptyLinesAroundClassBody: | ||
Exclude: | ||
- 'app/controllers/application_controller.rb' | ||
- 'app/controllers/node_class_memberships_controller.rb' | ||
- 'app/controllers/node_group_class_memberships_controller.rb' | ||
- 'app/controllers/nodes_controller.rb' | ||
- 'app/controllers/pages_controller.rb' | ||
- 'app/controllers/reports_controller.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
Layout/EmptyLinesAroundMethodBody: | ||
Exclude: | ||
- 'app/helpers/conflict_analyzer.rb' | ||
- 'lib/has_parameters.rb' | ||
|
||
# Offense count: 4 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines | ||
Layout/EmptyLinesAroundModuleBody: | ||
Exclude: | ||
- 'app/helpers/conflict_html.rb' | ||
- 'app/helpers/nodes_helper.rb' | ||
- 'lib/puppet/report_sanitizer.rb' | ||
- 'spec/support/describe_reports.rb' | ||
|
||
# Offense count: 4 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity. | ||
# SupportedStylesAlignWith: keyword, variable, start_of_line | ||
Layout/EndAlignment: | ||
Exclude: | ||
- 'config/initializers/01_serialize_flash_as_hash.rb' | ||
- 'lib/node_group_graph.rb' | ||
- 'lib/report_transformer.rb' | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: normal, rails | ||
Layout/IndentationConsistency: | ||
Exclude: | ||
- 'spec/helpers/application_helper_spec.rb' | ||
- 'spec/lib/puppet/report_sanitizer_spec.rb' | ||
|
||
# Offense count: 22 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: Width, IgnoredPatterns. | ||
Layout/IndentationWidth: | ||
Enabled: false | ||
|
||
# Offense count: 17 | ||
# Cop supports --auto-correct. | ||
Layout/LeadingCommentSpace: | ||
Exclude: | ||
- 'config/initializers/safe_yaml.rb' | ||
- 'lib/node_group_graph.rb' | ||
- 'lib/tasks/classesgroups.rake' | ||
- 'spec/helpers/pages_helper_spec.rb' | ||
- 'spec/helpers/status_helper_spec.rb' | ||
- 'spec/models/report_spec.rb' | ||
- 'spec/spec_helper.rb' | ||
|
||
# Offense count: 96 | ||
# Cop supports --auto-correct. | ||
Layout/SpaceAfterComma: | ||
Enabled: false | ||
|
||
# Offense count: 19 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: space, no_space | ||
Layout/SpaceAroundEqualsInParameterDefault: | ||
Exclude: | ||
- 'app/helpers/application_helper.rb' | ||
- 'app/helpers/paginate_scope_helper.rb' | ||
- 'app/models/node.rb' | ||
- 'app/models/status.rb' | ||
- 'lib/data_generator.rb' | ||
- 'lib/has_parameters.rb' | ||
- 'lib/node_group_graph.rb' | ||
- 'spec/support/report_support.rb' | ||
|
||
# Offense count: 5 | ||
# Cop supports --auto-correct. | ||
Layout/SpaceAroundKeyword: | ||
Exclude: | ||
- 'app/controllers/node_groups_controller.rb' | ||
- 'app/controllers/nodes_controller.rb' | ||
- 'app/helpers/conflict_html.rb' | ||
|
||
# Offense count: 77 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowForAlignment. | ||
Layout/SpaceAroundOperators: | ||
Exclude: | ||
- 'app/helpers/application_helper.rb' | ||
- 'app/models/metric.rb' | ||
- 'app/models/status.rb' | ||
- 'lib/data_generator.rb' | ||
- 'lib/node_group_graph.rb' | ||
- 'lib/progress_bar.rb' | ||
- 'spec/controllers/node_groups_controller_spec.rb' | ||
- 'spec/controllers/nodes_controller_spec.rb' | ||
- 'spec/factories.rb' | ||
- 'spec/lib/puppet/report_sanitizer_spec.rb' | ||
- 'spec/lib/report_transformer_spec.rb' | ||
- 'spec/models/report_spec.rb' | ||
- 'spec/models/resource_status_spec.rb' | ||
|
||
# Offense count: 55 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. | ||
# SupportedStyles: space, no_space | ||
# SupportedStylesForEmptyBraces: space, no_space | ||
Layout/SpaceBeforeBlockBraces: | ||
Enabled: false | ||
|
||
# Offense count: 266 | ||
# Cop supports --auto-correct. | ||
Layout/SpaceBeforeComma: | ||
Exclude: | ||
- 'app/helpers/application_helper.rb' | ||
- 'spec/models/report_spec.rb' | ||
|
||
# Offense count: 217 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. | ||
# SupportedStyles: space, no_space | ||
# SupportedStylesForEmptyBraces: space, no_space | ||
Layout/SpaceInsideBlockBraces: | ||
Enabled: false | ||
|
||
# Offense count: 199 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. | ||
# SupportedStyles: space, no_space, compact | ||
# SupportedStylesForEmptyBraces: space, no_space | ||
Layout/SpaceInsideHashLiteralBraces: | ||
Enabled: false | ||
|
||
# Offense count: 34 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: space, no_space | ||
Layout/SpaceInsideParens: | ||
Exclude: | ||
- 'app/helpers/conflict_html.rb' | ||
- 'app/helpers/paginate_scope_helper.rb' | ||
- 'app/helpers/reports_helper.rb' | ||
- 'app/models/report.rb' | ||
- 'config/initializers/check_migration_version.rb' | ||
- 'lib/registry.rb' | ||
- 'lib/tasks/install.rake' | ||
- 'spec/controllers/nodes_controller_spec.rb' | ||
- 'spec/helpers/application_helper_spec.rb' | ||
- 'spec/models/report_spec.rb' | ||
|
||
# Offense count: 12 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: final_newline, final_blank_line | ||
Layout/TrailingBlankLines: | ||
Exclude: | ||
- 'app/helpers/conflict_html.rb' | ||
- 'config/initializers/check_migration_version.rb' | ||
- 'config/initializers/time_formats.rb' | ||
- 'lib/progress_bar.rb' | ||
- 'lib/tasks/rake_helpers.rb' | ||
- 'lib/tasks/schematize_reports.rake' | ||
- 'lib/tasks/update_report_data.rake' | ||
- 'spec/lib/settings_spec.rb' | ||
- 'spec/models/resource_status_spec.rb' | ||
- 'spec/shared_behaviors/controller_mixins.rb' | ||
- 'spec/shared_behaviors/controller_search.rb' | ||
- 'spec/support/should_matchers.rb' | ||
|
||
# Offense count: 12 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowInHeredoc. | ||
Layout/TrailingWhitespace: | ||
Exclude: | ||
- 'app/helpers/conflict_analyzer.rb' | ||
- 'config/initializers/check_migration_version.rb' | ||
- 'lib/node_group_graph.rb' | ||
- 'lib/tasks/install.rake' | ||
- 'spec/shared_behaviors/restful_routing_behavior.rb' | ||
|
||
# Offense count: 25 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: MaxKeyValuePairs. | ||
Performance/RedundantMerge: | ||
Exclude: | ||
- 'spec/controllers/node_groups_controller_spec.rb' | ||
- 'spec/controllers/nodes_controller_spec.rb' | ||
|
||
# Offense count: 28 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: always, conditionals | ||
Style/AndOr: | ||
Exclude: | ||
- 'app/controllers/nodes_controller.rb' | ||
- 'app/helpers/reports_helper.rb' | ||
- 'app/models/node.rb' | ||
- 'app/models/report.rb' | ||
- 'config/initializers/check_migration_version.rb' | ||
- 'lib/data_generator.rb' | ||
- 'lib/find_from_form.rb' | ||
- 'lib/node_group_graph.rb' | ||
- 'lib/registry.rb' | ||
- 'lib/report_transformer.rb' | ||
- 'lib/tasks/classesgroups.rake' | ||
- 'lib/tasks/import_reports.rake' | ||
- 'lib/tasks/install.rake' | ||
- 'lib/tasks/node.rake' | ||
|
||
# Offense count: 47 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: braces, no_braces, context_dependent | ||
Style/BracesAroundHashParameters: | ||
Exclude: | ||
- 'app/helpers/application_helper.rb' | ||
- 'app/models/timeline_event.rb' | ||
- 'spec/controllers/node_groups_controller_spec.rb' | ||
- 'spec/controllers/nodes_controller_spec.rb' | ||
- 'spec/helpers/application_helper_spec.rb' | ||
- 'spec/views/node_groups/edit.html.haml_spec.rb' | ||
- 'spec/views/nodes/edit.html.haml_spec.rb' | ||
|
||
# Offense count: 6 | ||
# Cop supports --auto-correct. | ||
Style/ColonMethodCall: | ||
Exclude: | ||
- 'app/models/node.rb' | ||
- 'lib/tasks/import_reports.rake' | ||
- 'lib/tasks/install.rake' | ||
|
||
# Offense count: 10 | ||
# Cop supports --auto-correct. | ||
Style/DefWithParentheses: | ||
Exclude: | ||
- 'lib/puppet/report_sanitizer.rb' | ||
|
||
# Offense count: 194 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: when_needed, always, never | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
# Offense count: 1199 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. | ||
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys | ||
Style/HashSyntax: | ||
Enabled: false | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline | ||
Style/MethodDefParentheses: | ||
Exclude: | ||
- 'lib/trimmer.rb' | ||
|
||
# Offense count: 20 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowMultipleReturnValues. | ||
Style/RedundantReturn: | ||
Exclude: | ||
- 'app/controllers/files_controller.rb' | ||
- 'app/helpers/application_helper.rb' | ||
- 'app/models/node.rb' | ||
- 'app/models/report.rb' | ||
- 'app/models/status.rb' | ||
- 'config/initializers/app_version_init.rb' | ||
- 'lib/settings_reader.rb' | ||
- 'lib/tasks/db_raw.rake' | ||
- 'lib/tasks/install.rake' | ||
- 'spec/support/from_response_body.rb' | ||
|
||
# Offense count: 13 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowAsExpressionSeparator. | ||
Style/Semicolon: | ||
Exclude: | ||
- 'app/controllers/node_groups_controller.rb' | ||
- 'app/controllers/nodes_controller.rb' | ||
- 'app/helpers/conflict_analyzer.rb' | ||
- 'app/helpers/conflict_html.rb' | ||
- 'lib/node_group_graph.rb' | ||
- 'lib/progress_bar.rb' | ||
|
||
# Offense count: 2052 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. | ||
# SupportedStyles: single_quotes, double_quotes | ||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist. | ||
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym | ||
Style/TrivialAccessors: | ||
Exclude: | ||
- 'lib/progress_bar.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
Style/UnneededPercentQ: | ||
Exclude: | ||
- 'spec/controllers/nodes_controller_spec.rb' | ||
|
||
# Offense count: 945 | ||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# URISchemes: http, https | ||
Metrics/LineLength: | ||
Max: 275 |
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ before_script: | |
- bundle exec rails db:migrate | ||
script: | ||
- bundle exec rails spec | ||
- bundle exec rubocop |
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.