Permalink
Fetching contributors…
Cannot retrieve contributors at this time
600 lines (528 sloc) 18.4 KB
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-08-12 18:21:57 +0200 using RuboCop version 0.42.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: 11
Lint/AmbiguousOperator:
Exclude:
- 'card/db/seed/test/seed.rb'
- 'card/mod/account/set/right/token.rb'
- 'card/mod/standard/set/all/list_changes.rb'
- 'card/spec/lib/card/content_spec.rb'
- 'wagn/lib/wagn/application.rb'
- 'wagn/test/performance/card_create_test.rb'
# Offense count: 6
Lint/AmbiguousRegexpLiteral:
Exclude:
- 'card/spec/lib/card/content_spec.rb'
- 'wagn/lib/wagn/config/environments/development.rb'
# Offense count: 16
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'card/db/migrate_core_cards/20140629222005_add_email_cards.rb'
- 'card/db/migrate_core_cards/20141204061304_watchers_to_following.rb'
- 'card/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb'
- 'card/db/migrate_core_cards/20150317162412_bootstrap_themes.rb'
- 'card/db/migrate_core_cards/20150910085603_remove_performance_log_card.rb'
- 'card/lib/card/exceptions.rb'
- 'card/lib/card/query/value.rb'
- 'card/lib/card/view_name.rb'
- 'wagn/lib/wagn/generators/wagn/templates/bin/spring'
- 'wagn/test/test_helper.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AlignWith, SupportedStyles.
# SupportedStyles: either, start_of_block, start_of_line
Lint/BlockAlignment:
Exclude:
- 'card/mod/pointer/set/abstract/01_pointer/edit.rb'
# Offense count: 2
# Cop supports --auto-correct.
Lint/Debugger:
Exclude:
- 'card/lib/card/loader/mod_dirs.rb'
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
# SupportedStyles: keyword, variable, start_of_line
Lint/EndAlignment:
Exclude:
- 'card/lib/card/query/value.rb'
- 'card/lib/card/view_name.rb'
- 'card/lib/generators/card/format/format_generator.rb'
- 'card/lib/generators/card/set/set_generator.rb'
- 'card/mod/carrierwave/lib/file_uploader.rb'
- 'wagn/test/test_helper.rb'
# Offense count: 2
Lint/Eval:
Exclude:
- 'card/lib/card/loader/mod_dirs.rb'
- 'card/lib/card/set/event.rb'
# Offense count: 6
Lint/HandleExceptions:
Exclude:
- 'card/spec/lib/card/stage_director_spec.rb'
- 'card/spec/spec_helper.rb'
- 'wagn/lib/wagn/config/environments/development.rb'
- 'wagn/lib/wagn/config/environments/test.rb'
- 'wagn/lib/wagn/script_wagn_loader.rb'
# Offense count: 2
Lint/ShadowingOuterLocalVariable:
Exclude:
- 'card/db/migrate_core_cards/20120611203506_rails_inflection_updates.rb'
- 'card/mod/email/set/type_plus_right/user/follow.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument:
Exclude:
- 'wagn/features/step_definitions/wagn_steps.rb'
# Offense count: 45
Lint/UselessAssignment:
Enabled: false
# Offense count: 4
Lint/Void:
Exclude:
- 'card/mod/machines/spec/set/type/skin_spec.rb'
- 'card/mod/standard/spec/set/type/uri_spec.rb'
- 'wagn/test/performance/render_test.rb'
# Offense count: 104
Metrics/AbcSize:
Max: 138
# Offense count: 1
Metrics/BlockNesting:
Max: 4
# Offense count: 17
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 214
# Offense count: 48
Metrics/CyclomaticComplexity:
Max: 13
# Offense count: 434
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 266
# Offense count: 71
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 136
# Offense count: 7
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 187
# Offense count: 30
Metrics/PerceivedComplexity:
Max: 14
# Offense count: 18
Style/AccessorMethodName:
Exclude:
- 'card/lib/card/auth.rb'
- 'card/lib/card/format.rb'
- 'card/lib/cardio.rb'
- 'card/mod/core/format/html_format.rb'
- 'card/mod/core/set/all/collection.rb'
- 'card/mod/core/set/all/event.rb'
- 'card/mod/core/set/all/pattern.rb'
- 'card/mod/core/set/all/type.rb'
- 'card/mod/machines/lib/card/machine.rb'
- 'card/mod/standard/set/rstar/rules_editor.rb'
- 'card/mod/standard/set/type/search_type.rb'
- 'card/mod/standard/set/type/set.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
Exclude:
- 'card/lib/card/query/conjunctions.rb'
- 'card/mod/core/set/all/states.rb'
- 'wagn/lib/wagn/generators/wagn/wagn_generator.rb'
- 'wagn/test/test_helper.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: with_first_parameter, with_fixed_indentation
Style/AlignParameters:
Exclude:
- 'card/spec/lib/card/i18n_spec.rb'
- 'wagn/lib/wagn/generators/wagn/wagn_generator.rb'
# Offense count: 1
Style/AsciiComments:
Exclude:
- 'card/mod/standard/set/all/rich_html/wrapper.rb'
# Offense count: 14
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# IgnoredMethods: lambda, proc, it
Style/BlockDelimiters:
Exclude:
- 'card/mod/basic_formats/set/all/rss.rb'
- 'card/mod/email/set/all/email_html.rb'
- 'card/mod/email/set/all/email_text.rb'
- 'card/mod/settings/set/right/read.rb'
- 'card/mod/settings/set/right/update.rb'
- 'card/spec/models/card_spec.rb'
# Offense count: 9
Style/CaseEquality:
Exclude:
- 'card/lib/card/location.rb'
- 'card/lib/card/query/value.rb'
- 'card/lib/card/view_name.rb'
- 'card/mod/standard/set/type/basic.rb'
- 'card/spec/lib/card/content_spec.rb'
- 'wagn/rails/controllers/card_controller.rb'
- 'wagn/test/test_helper.rb'
# Offense count: 22
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Enabled: false
# Offense count: 61
Style/ClassVars:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
Style/CommentIndentation:
Exclude:
- 'card/mod/standard/set/all/comment.rb'
- 'wagn/features/step_definitions/wagn_steps.rb'
# Offense count: 253
Style/Documentation:
Enabled: false
# Offense count: 8
Style/DoubleNegation:
Exclude:
- 'card/config/initializers/01_core_extensions/module.rb'
- 'card/lib/card/auth.rb'
- 'card/lib/card/set_pattern.rb'
- 'card/mod/core/set/all/permissions.rb'
- 'card/mod/core/set/all/states.rb'
- 'card/mod/core/set_pattern/03_type.rb'
- 'card/mod/settings/set/abstract/permission.rb'
# Offense count: 3
# Cop supports --auto-correct.
Style/EachWithObject:
Exclude:
- 'card/lib/card/set_pattern.rb'
- 'card/mod/standard/set/all/rich_html/wrapper.rb'
- 'wagn/lib/wagn/tasks/test.rake'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowAdjacentOneLineDefs.
Style/EmptyLineBetweenDefs:
Exclude:
- 'card/lib/card/content/parser.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/EmptyLines:
Exclude:
- 'card/spec/lib/card/cache_spec.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, no_empty_lines
Style/EmptyLinesAroundModuleBody:
Exclude:
- 'card/config/initializers/internationalization.rb'
- 'card/lib/card/query/relational_attributes.rb'
# Offense count: 2
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
Style/FileName:
Exclude:
- 'wagn/rails/application-routes.rb'
- 'wagn/rails/engine-routes.rb'
# Offense count: 5
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'card/db/migrate_core_cards/20130920291703_update_stylesheets.rb'
- 'card/db/migrate_core_cards/20150903130006_attachment_upload_cards.rb'
- 'card/mod/carrierwave/set/abstract/attachment.rb'
- 'card/mod/standard/set/type/set.rb'
- 'wagn/rails/controllers/card_controller.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
Exclude:
- 'card/lib/card/subdirector_array.rb'
- 'card/spec/lib/card/i18n_spec.rb'
# Offense count: 1
Style/IfUnlessModifierOfIfUnless:
Exclude:
- 'card/spec/lib/card/content_spec.rb'
# Offense count: 21
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: normal, rails
Style/IndentationConsistency:
Exclude:
- 'card/lib/card/query/clause.rb'
- 'card/lib/card/set/loader.rb'
- 'card/lib/card/view_name.rb'
- 'card/mod/machines/spec/set/type/skin_spec.rb'
- 'card/mod/standard/spec/set/rstar/rules_spec.rb'
- 'card/spec/mailers/mailer_spec.rb'
- 'wagn/lib/wagn/tasks/cucumber.rake'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: line_count_dependent, lambda, literal
Style/Lambda:
Exclude:
- 'card/mod/basic_types/spec/set/type/pointer_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/LeadingCommentSpace:
Exclude:
- 'wagn/features/step_definitions/wagn_steps.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
Style/MethodDefParentheses:
Exclude:
- 'card/config/initializers/internationalization.rb'
- 'card/mod/core/set/all/actify.rb'
# Offense count: 6
Style/MethodMissing:
Exclude:
- 'card/lib/card/env.rb'
- 'card/lib/card/format.rb'
- 'card/lib/card/subcards.rb'
- 'card/lib/card/success.rb'
- 'card/mod/machines/spec/lib/shared_machine_examples.rb'
- 'card/spec/spec_helper.rb'
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: symmetrical, new_line, same_line
Style/MultilineArrayBraceLayout:
Exclude:
- 'card/lib/card/query/sql_statement.rb'
- 'card/mod/core/spec/set/all/templating_spec.rb'
- 'card/mod/core/spec/set/all/tracked_attributes_spec.rb'
- 'card/mod/standard/set/all/rich_html/editing.rb'
- 'card/mod/standard/set/rstar/rules_editor.rb'
- 'card/spec/lib/card/content_spec.rb'
# Offense count: 3
Style/MultilineBlockChain:
Exclude:
- 'card/mod/core/set/all/collection.rb'
- 'wagn/test/test_helper.rb'
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: symmetrical, new_line, same_line
Style/MultilineHashBraceLayout:
Exclude:
- 'card/db/migrate_core_cards/20150610171702_add_debugger_session_card.rb'
- 'card/lib/card/auth.rb'
- 'card/mod/core/set/all/rules.rb'
- 'card/mod/machines/spec/set/type/skin_spec.rb'
- 'card/mod/standard/set/all/rich_html/toolbar.rb'
- 'card/mod/standard/set/type/listed_by.rb'
- 'card/spec/lib/card/content_spec.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: symmetrical, new_line, same_line
Style/MultilineMethodCallBraceLayout:
Exclude:
- 'card/mod/bootstrap/set/all/bootstrap/tabs.rb'
- 'card/mod/core/spec/set/all/templating_spec.rb'
- 'card/mod/standard/set/all/rich_html/toolbar.rb'
- 'card/mod/standard/set/type/set.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Style/MultilineMethodCallIndentation:
Exclude:
- 'card/config/initializers/02_extensions/kaminari.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: aligned, indented
Style/MultilineOperationIndentation:
Exclude:
- 'card/mod/standard/set/all/rich_html/menu.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/MutableConstant:
Exclude:
- 'card/lib/card/content.rb'
- 'card/lib/card/stage.rb'
# Offense count: 43
# Cop supports --auto-correct.
Style/NestedParenthesizedCalls:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
# SupportedStyles: skip_modifier_ifs, always
Style/Next:
Exclude:
- 'card/mod/email/set/all/follow.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'wagn/lib/wagn/generators/wagn/wagn_generator.rb'
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'card/db/migrate_core_cards/20150807205221_create_references_for_search_cards.rb'
- 'card/lib/card/format/render.rb'
- 'card/mod/basic_formats/set/all/all_csv.rb'
- 'card/mod/core/set/all/fetch.rb'
- 'card/mod/core/set/all/tracked_attributes.rb'
- 'card/mod/history/set/all/content_history.rb'
- 'card/mod/standard/set/type/search_type.rb'
- 'wagn/features/step_definitions/email_steps.rb'
- 'wagn/features/step_definitions/wagn_steps.rb'
- 'wagn/rails/controllers/card_controller.rb'
# Offense count: 3
# Cop supports --auto-correct.
Style/PerlBackrefs:
Exclude:
- 'card/mod/core/set/all/fetch.rb'
- 'wagn/features/support/paths.rb'
# Offense count: 9
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Style/PredicateName:
Exclude:
- 'spec/**/*'
- 'card/lib/card/simplecov_helper.rb'
- 'card/mod/account/set/type/signup.rb'
- 'card/mod/core/set/all/permissions.rb'
- 'card/mod/core/set/all/rules.rb'
- 'card/mod/core/set/all/templating.rb'
- 'card/mod/history/set/all/history.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Exclude:
- 'card/db/migrate_core_cards/20120611203506_rails_inflection_updates.rb'
- 'card/mod/admin/set/self/admin.rb'
# Offense count: 33
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
Exclude:
- 'card/lib/card/location.rb'
- 'card/lib/card/simplecov_helper.rb'
- 'card/lib/card/success.rb'
- 'card/mod/standard/set/all/links.rb'
- 'card/mod/standard/set/type/basic.rb'
- 'card/spec/lib/card/cache_spec.rb'
- 'wagn/features/step_definitions/email_steps.rb'
- 'wagn/lib/wagn/mods_spec_helper.rb'
- 'wagn/lib/wagn/simplecov_helper.rb'
- 'wagn/script/test_filter'
- 'wagn/spec/controllers/card_controller_spec.rb'
- 'wagn/test/test_helper.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'card/mod/standard/set/type/basic.rb'
- 'wagn/lib/wagn/cli.rb'
# Offense count: 1
# Configuration parameters: Methods.
# Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]}
Style/SingleLineBlockParams:
Exclude:
- 'card/config/initializers/02_extensions/kaminari.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Style/SpaceAroundOperators:
Exclude:
- 'card/lib/card/loader/mod_dirs.rb'
# Offense count: 9
# Cop supports --auto-correct.
Style/SpaceInsideArrayPercentLiteral:
Exclude:
- 'card/db/migrate_core_cards/20140512155840_add_script_cards.rb'
- 'card/lib/card/diff/lcs.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceInsideStringInterpolation:
Exclude:
- 'card/mod/standard/set/all/comment.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- 'card/lib/card/loader.rb'
- 'card/lib/cardio.rb'
- 'card/spec/lib/card/loader/mod_dirs.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses
Style/TernaryParentheses:
Exclude:
- 'card/lib/card/env.rb'
- 'card/lib/card/set_pattern.rb'
- 'card/mod/carrierwave/lib/image_uploader.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: final_newline, final_blank_line
Style/TrailingBlankLines:
Exclude:
- 'card/mod/account/set/self/account_links.rb'
- 'card/mod/basic_formats/set/self/01_head/javascript.rb'
- 'card/mod/basic_types/set/type/html.rb'
- 'card/mod/bootstrap/set/self/script_mods.rb'
- 'card/mod/machines/set/type/java_script.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
# SupportedStyles: comma, consistent_comma, no_comma
Style/TrailingCommaInLiteral:
Exclude:
- 'card/mod/basic_formats/set/self/01_head/javascript.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/UnneededInterpolation:
Exclude:
- 'card/mod/core/chunk/link.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: snake_case, camelCase
Style/VariableName:
Exclude:
- 'card/mod/standard/spec/set/self/head_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/ZeroLengthPredicate:
Exclude:
- 'card/mod/standard/set/rstar/rules_editor.rb'