2020-07-20 13:35:41 +00:00
|
|
|
# This configuration was generated by
|
|
|
|
# `rubocop --auto-gen-config`
|
2020-07-20 16:30:47 +00:00
|
|
|
# on 2020-04-25 21:43:29 -0400 using RuboCop version 0.82.0.
|
2020-07-20 13:35:41 +00:00
|
|
|
# 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: 1
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: **/*.gemspec
|
|
|
|
Gemspec/RubyVersionGlobalsUsage:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "impressionist.gemspec"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: outdent, indent
|
|
|
|
Layout/AccessModifierIndentation:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/engine.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
|
|
Layout/ArgumentAlignment:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/is_impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1455
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: with_first_element, with_fixed_indentation
|
|
|
|
Layout/ArrayAlignment:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/models/impressionist/bots.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyleAlignWith.
|
|
|
|
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
|
|
Layout/BlockAlignment:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/engine.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/ClosingParenthesisIndentation:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/controllers/mongoid/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 1
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/CommentIndentation:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 6
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: leading, trailing
|
|
|
|
Layout/DotPosition:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/models/active_record/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/setup_association.rb"
|
|
|
|
- "lib/impressionist/update_counters.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/EmptyLineAfterGuardClause:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/models/impressionist/bots.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
|
|
Layout/EmptyLineBetweenDefs:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/counter_cache.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 6
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/EmptyLines:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "Rakefile"
|
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/engine.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: around, only_before
|
|
|
|
Layout/EmptyLinesAroundAccessModifier:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/setup_association.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 6
|
2020-07-20 13:35:41 +00:00
|
|
|
# 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:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/generators/impressionist_generator.rb"
|
|
|
|
- "lib/impressionist/engine.rb"
|
|
|
|
- "lib/impressionist/models/active_record/impression.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impression.rb"
|
|
|
|
- "lib/impressionist/rails_toggle.rb"
|
|
|
|
- "lib/impressionist/update_counters.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 4
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/EmptyLinesAroundMethodBody:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
|
|
|
- "upgrade_migrations/version_0_3_0.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 19
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
|
|
Layout/EmptyLinesAroundModuleBody:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/models/impressionist/bots.rb"
|
|
|
|
- "app/models/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/is_impressionable.rb"
|
|
|
|
- "lib/impressionist/models/active_record/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/rails_toggle.rb"
|
|
|
|
- "lib/impressionist/update_counters.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 2
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
|
|
Layout/ExtraSpacing:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/counter_cache.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
|
|
Layout/FirstArgumentIndentation:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/controllers/mongoid/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
|
|
# SupportedColonStyles: key, separator, table
|
|
|
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
|
|
Layout/HashAlignment:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/controllers/mongoid/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 18
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: normal, indented_internal_methods
|
|
|
|
Layout/IndentationConsistency:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/engine.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/rails_toggle.rb"
|
|
|
|
- "lib/impressionist/setup_association.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 8
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: IndentationWidth, EnforcedStyle.
|
|
|
|
# SupportedStyles: spaces, tabs
|
|
|
|
Layout/IndentationStyle:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/controllers/mongoid/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 24
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Width, IgnoredPatterns.
|
|
|
|
Layout/IndentationWidth:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/models/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/controllers/mongoid/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/engine.rb"
|
|
|
|
- "lib/impressionist/models/active_record/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/rails_toggle.rb"
|
|
|
|
- "lib/impressionist/setup_association.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 2
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
|
|
|
Layout/LeadingCommentSpace:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/bots.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
|
|
Layout/MultilineMethodCallIndentation:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/models/active_record/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/setup_association.rb"
|
|
|
|
- "lib/impressionist/update_counters.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 21
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/SpaceAfterComma:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "app/models/impressionist/bots.rb"
|
|
|
|
- "lib/impressionist/bots.rb"
|
|
|
|
- "upgrade_migrations/version_0_3_0.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyleInsidePipes.
|
|
|
|
# SupportedStylesInsidePipes: space, no_space
|
|
|
|
Layout/SpaceAroundBlockParameters:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 13
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: space, no_space
|
|
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "app/models/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/controllers/mongoid/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/is_impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 5
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
|
|
|
# SupportedStylesForExponentOperator: space, no_space
|
|
|
|
Layout/SpaceAroundOperators:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/controllers/mongoid/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/counter_cache.rb"
|
|
|
|
- "lib/impressionist/models/mongo_mapper/impression.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
|
|
# SupportedStyles: space, no_space
|
|
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
|
|
Layout/SpaceBeforeBlockBraces:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 3
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
|
|
# SupportedStyles: space, no_space
|
|
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
|
|
Layout/SpaceInsideBlockBraces:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 4
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
|
|
# SupportedStyles: space, no_space, compact
|
|
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/update_counters.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 3
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: final_newline, final_blank_line
|
|
|
|
Layout/TrailingEmptyLines:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "Gemfile"
|
|
|
|
- "lib/impressionist/setup_association.rb"
|
|
|
|
- "upgrade_migrations/version_1_5_2.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowInHeredoc.
|
|
|
|
Layout/TrailingWhitespace:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/setup_association.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Lint/DuplicateMethods:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/setup_association.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Lint/RedundantStringCoercion:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Lint/SendWithMixinArgument:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/models/active_record/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
|
|
Lint/UnusedBlockArgument:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/engine.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 23
|
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 11
|
2020-07-20 13:35:41 +00:00
|
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
|
|
# ExcludedMethods: refine
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Max: 336
|
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Max: 15
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: CountComments.
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
Max: 1462
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
|
|
|
# NamePrefix: is_, has_, have_
|
|
|
|
# ForbiddenPrefixes: is_, has_, have_
|
|
|
|
# AllowedMethods: is_a?
|
|
|
|
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
|
|
Naming/PredicateName:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "spec/**/*"
|
|
|
|
- "lib/impressionist/is_impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
# Configuration parameters: Prefixes.
|
|
|
|
# Prefixes: when, with, without
|
|
|
|
RSpec/ContextWording:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "spec/controllers/impressionist_uniqueness_spec.rb"
|
|
|
|
- "spec/controllers/widgets_controller_spec.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 31
|
|
|
|
# Configuration parameters: Max.
|
|
|
|
RSpec/ExampleLength:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "spec/controllers/articles_controller_spec.rb"
|
|
|
|
- "spec/controllers/impressionist_uniqueness_spec.rb"
|
|
|
|
- "spec/controllers/posts_controller_spec.rb"
|
|
|
|
- "spec/controllers/widgets_controller_spec.rb"
|
|
|
|
- "spec/rails_generators/rails_generators_spec.rb"
|
|
|
|
- "spec/setup_association_spec.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: CustomTransform, IgnoreMethods.
|
|
|
|
RSpec/FilePath:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "spec/bots_spec.rb"
|
|
|
|
- "spec/controllers/impressionist_uniqueness_spec.rb"
|
|
|
|
- "spec/models/bots_spec.rb"
|
|
|
|
- "spec/rails_toggle_spec.rb"
|
|
|
|
- "spec/setup_association_spec.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 77
|
2020-07-20 13:35:41 +00:00
|
|
|
# Configuration parameters: AssignmentOnly.
|
|
|
|
RSpec/InstanceVariable:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "spec/controllers/articles_controller_spec.rb"
|
|
|
|
- "spec/controllers/impressionist_uniqueness_spec.rb"
|
|
|
|
- "spec/controllers/widgets_controller_spec.rb"
|
|
|
|
- "spec/model_spec.rb"
|
|
|
|
- "spec/models/model_spec.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: .
|
|
|
|
# SupportedStyles: have_received, receive
|
|
|
|
RSpec/MessageSpies:
|
|
|
|
EnforcedStyle: receive
|
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 29
|
2020-07-20 13:35:41 +00:00
|
|
|
# Configuration parameters: AggregateFailuresByDefault.
|
|
|
|
RSpec/MultipleExpectations:
|
|
|
|
Max: 8
|
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
RSpec/NestedGroups:
|
|
|
|
Max: 4
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
RSpec/RepeatedExample:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "spec/controllers/widgets_controller_spec.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, Include.
|
|
|
|
# SupportedStyles: action, filter
|
|
|
|
# Include: app/controllers/**/*.rb
|
|
|
|
Rails/ActionFilter:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 1
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/ApplicationRecord:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/models/active_record/impression.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
|
|
|
|
Rails/Present:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 1
|
2020-07-20 13:35:41 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: **/Rakefile, **/*.rake
|
|
|
|
Rails/RakeEnvironment:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/capistrano/tasks/**/*.rake"
|
|
|
|
- "Rakefile"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: Blacklist, Whitelist.
|
|
|
|
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
|
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/update_counters.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: strict, flexible
|
|
|
|
Rails/TimeZone:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/models/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
|
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
|
|
# 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:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/counter_cache.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Style/ClassVars:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Style/CommentedKeyword:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/models/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
|
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
|
|
Style/ConditionalAssignment:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 24
|
2020-07-20 13:35:41 +00:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/EachWithObject:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 1
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ExpandPathArguments:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/generators/impressionist_generator.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: format, sprintf, percent
|
|
|
|
Style/FormatString:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/generators/active_record/impressionist_generator.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: annotated, template, unannotated
|
|
|
|
Style/FormatStringToken:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/generators/active_record/impressionist_generator.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 41
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: always, always_true, never
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 3
|
2020-07-20 13:35:41 +00:00
|
|
|
# Configuration parameters: MinBodyLength.
|
|
|
|
Style/GuardClause:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 136
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
|
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
|
|
Style/HashSyntax:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 3
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "app/models/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Style/MultilineTernaryOperator:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/models/mongoid/impressionist/impressionable.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: literals, strict
|
|
|
|
Style/MutableConstant:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/models/impressionist/bots.rb"
|
|
|
|
- "app/models/impressionist/impressionable.rb"
|
|
|
|
- "lib/impressionist/bots.rb"
|
|
|
|
- "lib/impressionist/version.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/Not:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/rails_toggle.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Strict.
|
|
|
|
Style/NumericLiterals:
|
|
|
|
MinDigits: 6
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantBegin:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/counter_cache.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
|
|
Style/RedundantReturn:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantSelf:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
|
|
|
- "lib/impressionist/counter_cache.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RescueModifier:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 1670
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
|
|
Style/StringLiterals:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 40
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: MinSize.
|
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/SymbolArray:
|
|
|
|
EnforcedStyle: brackets
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
|
|
|
# IgnoredMethods: respond_to, define_method
|
|
|
|
Style/SymbolProc:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "app/controllers/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
|
|
Style/TernaryParentheses:
|
|
|
|
Exclude:
|
2020-07-20 16:30:47 +00:00
|
|
|
- "lib/impressionist/controllers/mongoid/impressionist_controller.rb"
|
2020-07-20 13:35:41 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
2020-07-20 16:30:47 +00:00
|
|
|
# Configuration parameters: MinSize, WordRegex.
|
2020-07-20 13:35:41 +00:00
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/WordArray:
|
2020-07-20 16:30:47 +00:00
|
|
|
EnforcedStyle: brackets
|
2020-07-20 13:35:41 +00:00
|
|
|
|
2020-07-20 16:30:47 +00:00
|
|
|
# Offense count: 401
|
2020-07-20 13:35:41 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
|
|
# URISchemes: http, https
|
|
|
|
Layout/LineLength:
|
|
|
|
Max: 197
|
2020-07-20 16:30:47 +00:00
|
|
|
|