# This configuration was generated by # `rubocop --auto-gen-config` # on 2020-04-25 21:43:29 -0400 using RuboCop version 0.82.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: 1 # Configuration parameters: Include. # Include: **/*.gemspec Gemspec/RubyVersionGlobalsUsage: Exclude: - "impressionist.gemspec" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: outdent, indent Layout/AccessModifierIndentation: Exclude: - "lib/impressionist/engine.rb" # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: with_first_argument, with_fixed_indentation Layout/ArgumentAlignment: Exclude: - "lib/impressionist/is_impressionable.rb" - "lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb" # Offense count: 1455 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: with_first_element, with_fixed_indentation Layout/ArrayAlignment: Exclude: - "app/models/impressionist/bots.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleAlignWith. # SupportedStylesAlignWith: either, start_of_block, start_of_line Layout/BlockAlignment: Exclude: - "lib/impressionist/engine.rb" # Offense count: 3 # Cop supports --auto-correct. Layout/ClosingParenthesisIndentation: Exclude: - "app/controllers/impressionist_controller.rb" - "lib/impressionist/controllers/mongoid/impressionist_controller.rb" # Offense count: 1 # Cop supports --auto-correct. Layout/CommentIndentation: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: leading, trailing Layout/DotPosition: Exclude: - "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" # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLineAfterGuardClause: Exclude: - "app/models/impressionist/bots.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines. Layout/EmptyLineBetweenDefs: Exclude: - "lib/impressionist/counter_cache.rb" # Offense count: 6 # Cop supports --auto-correct. Layout/EmptyLines: Exclude: - "Rakefile" - "app/controllers/impressionist_controller.rb" - "lib/impressionist/counter_cache.rb" - "lib/impressionist/engine.rb" - "lib/impressionist/models/mongoid/impressionist/impressionable.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: around, only_before Layout/EmptyLinesAroundAccessModifier: Exclude: - "lib/impressionist/setup_association.rb" # 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: - "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" # Offense count: 4 # Cop supports --auto-correct. Layout/EmptyLinesAroundMethodBody: Exclude: - "app/controllers/impressionist_controller.rb" - "lib/impressionist/counter_cache.rb" - "lib/impressionist/models/mongoid/impressionist/impressionable.rb" - "upgrade_migrations/version_0_3_0.rb" # 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: - "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" # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. Layout/ExtraSpacing: Exclude: - "lib/impressionist/counter_cache.rb" # 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: - "lib/impressionist/controllers/mongoid/impressionist_controller.rb" # 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: - "lib/impressionist/controllers/mongoid/impressionist_controller.rb" # Offense count: 18 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: normal, indented_internal_methods Layout/IndentationConsistency: Exclude: - "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" # Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: IndentationWidth, EnforcedStyle. # SupportedStyles: spaces, tabs Layout/IndentationStyle: Exclude: - "lib/impressionist/controllers/mongoid/impressionist_controller.rb" # Offense count: 24 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - "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" # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment. Layout/LeadingCommentSpace: Exclude: - "app/controllers/impressionist_controller.rb" - "lib/impressionist/bots.rb" # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented, indented_relative_to_receiver Layout/MultilineMethodCallIndentation: Exclude: - "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" # Offense count: 21 # Cop supports --auto-correct. Layout/SpaceAfterComma: Exclude: - "app/controllers/impressionist_controller.rb" - "app/models/impressionist/bots.rb" - "lib/impressionist/bots.rb" - "upgrade_migrations/version_0_3_0.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleInsidePipes. # SupportedStylesInsidePipes: space, no_space Layout/SpaceAroundBlockParameters: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: space, no_space Layout/SpaceAroundEqualsInParameterDefault: Exclude: - "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" # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. # SupportedStylesForExponentOperator: space, no_space Layout/SpaceAroundOperators: Exclude: - "app/controllers/impressionist_controller.rb" - "lib/impressionist/controllers/mongoid/impressionist_controller.rb" - "lib/impressionist/counter_cache.rb" - "lib/impressionist/models/mongo_mapper/impression.rb" # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceBeforeBlockBraces: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideBlockBraces: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Exclude: - "app/controllers/impressionist_controller.rb" - "lib/impressionist/update_counters.rb" # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: final_newline, final_blank_line Layout/TrailingEmptyLines: Exclude: - "Gemfile" - "lib/impressionist/setup_association.rb" - "upgrade_migrations/version_1_5_2.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowInHeredoc. Layout/TrailingWhitespace: Exclude: - "lib/impressionist/setup_association.rb" # Offense count: 1 Lint/DuplicateMethods: Exclude: - "lib/impressionist/setup_association.rb" # Offense count: 1 # Cop supports --auto-correct. Lint/RedundantStringCoercion: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 2 # Cop supports --auto-correct. Lint/SendWithMixinArgument: Exclude: - "lib/impressionist/models/active_record/impressionist/impressionable.rb" - "lib/impressionist/models/mongoid/impressionist/impressionable.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: Exclude: - "lib/impressionist/engine.rb" # Offense count: 3 # Configuration parameters: IgnoredMethods. Metrics/AbcSize: Max: 23 # Offense count: 11 # 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: - "spec/**/*" - "lib/impressionist/is_impressionable.rb" - "lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb" # Offense count: 6 # Configuration parameters: Prefixes. # Prefixes: when, with, without RSpec/ContextWording: Exclude: - "spec/controllers/impressionist_uniqueness_spec.rb" - "spec/controllers/widgets_controller_spec.rb" # Offense count: 31 # Configuration parameters: Max. RSpec/ExampleLength: Exclude: - "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" # Offense count: 5 # Configuration parameters: CustomTransform, IgnoreMethods. RSpec/FilePath: Exclude: - "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" # Offense count: 77 # Configuration parameters: AssignmentOnly. RSpec/InstanceVariable: Exclude: - "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" # Offense count: 5 # Configuration parameters: . # SupportedStyles: have_received, receive RSpec/MessageSpies: EnforcedStyle: receive # Offense count: 29 # Configuration parameters: AggregateFailuresByDefault. RSpec/MultipleExpectations: Max: 8 # Offense count: 4 RSpec/NestedGroups: Max: 4 # Offense count: 2 RSpec/RepeatedExample: Exclude: - "spec/controllers/widgets_controller_spec.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, Include. # SupportedStyles: action, filter # Include: app/controllers/**/*.rb Rails/ActionFilter: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 1 # Cop supports --auto-correct. Rails/ApplicationRecord: Exclude: - "lib/impressionist/models/active_record/impression.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank. Rails/Present: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 1 # Configuration parameters: Include. # Include: **/Rakefile, **/*.rake Rails/RakeEnvironment: Exclude: - "lib/capistrano/tasks/**/*.rake" - "Rakefile" # 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: - "lib/impressionist/update_counters.rb" # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: strict, flexible Rails/TimeZone: Exclude: - "app/models/impressionist/impressionable.rb" - "lib/impressionist/models/mongoid/impressionist/impressionable.rb" # 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: - "lib/impressionist/counter_cache.rb" # Offense count: 1 Style/ClassVars: Exclude: - "lib/impressionist.rb" # Offense count: 1 Style/CommentedKeyword: Exclude: - "app/models/impressionist/impressionable.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 24 Style/Documentation: Enabled: false # Offense count: 1 # Cop supports --auto-correct. Style/EachWithObject: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 1 # Cop supports --auto-correct. Style/ExpandPathArguments: Exclude: - "lib/generators/impressionist_generator.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: format, sprintf, percent Style/FormatString: Exclude: - "lib/generators/active_record/impressionist_generator.rb" # Offense count: 1 # Configuration parameters: EnforcedStyle. # SupportedStyles: annotated, template, unannotated Style/FormatStringToken: Exclude: - "lib/generators/active_record/impressionist_generator.rb" # Offense count: 41 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false # Offense count: 3 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 136 # 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: 3 # Cop supports --auto-correct. Style/IfUnlessModifier: Exclude: - "app/controllers/impressionist_controller.rb" - "app/models/impressionist/impressionable.rb" # Offense count: 1 Style/MultilineTernaryOperator: Exclude: - "lib/impressionist/models/mongoid/impressionist/impressionable.rb" # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: literals, strict Style/MutableConstant: Exclude: - "app/models/impressionist/bots.rb" - "app/models/impressionist/impressionable.rb" - "lib/impressionist/bots.rb" - "lib/impressionist/version.rb" # Offense count: 1 # Cop supports --auto-correct. Style/Not: Exclude: - "lib/impressionist/rails_toggle.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Strict. Style/NumericLiterals: MinDigits: 6 # Offense count: 1 # Cop supports --auto-correct. Style/RedundantBegin: Exclude: - "lib/impressionist/counter_cache.rb" # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. Style/RedundantReturn: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 4 # Cop supports --auto-correct. Style/RedundantSelf: Exclude: - "app/controllers/impressionist_controller.rb" - "lib/impressionist/counter_cache.rb" # Offense count: 2 # Cop supports --auto-correct. Style/RescueModifier: Exclude: - "app/controllers/impressionist_controller.rb" # Offense count: 1670 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Enabled: false # Offense count: 40 # 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: - "app/controllers/impressionist_controller.rb" # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, AllowSafeAssignment. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex Style/TernaryParentheses: Exclude: - "lib/impressionist/controllers/mongoid/impressionist_controller.rb" # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: MinSize, WordRegex. # SupportedStyles: percent, brackets Style/WordArray: EnforcedStyle: brackets # Offense count: 401 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Max: 197