# This configuration was generated by # `rubocop --auto-gen-config` # on 2019-05-07 16:52:59 +0000 using RuboCop version 0.58.1. # 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 # Cop supports --auto-correct. # Configuration parameters: Include, TreatCommentsAsGroupSeparators. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'mercy.gemspec' # Offense count: 1 # Configuration parameters: Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'mercy.gemspec' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLineAfterMagicComment: Exclude: - 'mercy.gemspec' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, no_empty_lines Layout/EmptyLinesAroundBlockBody: Exclude: - 'spec/lib/mercy/report/error_spec.rb' - 'spec/lib/mercy/status_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines Layout/EmptyLinesAroundModuleBody: Exclude: - 'lib/mercy/class_methods.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. Layout/ExtraSpacing: Exclude: - 'mercy.gemspec' - 'spec/spec_helper.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'spec/lib/mercy/status_builder_spec.rb' - 'spec/support/fixture_helpers.rb' # Offense count: 11 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Layout/SpaceAroundOperators: Exclude: - 'lib/mercy/report/error.rb' - 'lib/mercy/report/range.rb' - 'spec/lib/mercy/report/multiple_spec.rb' - 'spec/lib/mercy/report_builder_spec.rb' - 'spec/lib/mercy/status_builder_spec.rb' - 'spec/support/report/dummy.rb' # Offense count: 16 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBrackets: space, no_space Layout/SpaceInsideArrayLiteralBrackets: Exclude: - 'spec/lib/mercy/report/multiple_spec.rb' - 'spec/lib/mercy/report_builder_spec.rb' - 'spec/lib/mercy/status_builder_spec.rb' - 'spec/lib/mercy/status_spec.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: space, no_space Layout/SpaceInsideParens: Exclude: - 'spec/lib/mercy/report_builder_spec.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: final_newline, final_blank_line Layout/TrailingBlankLines: Exclude: - 'Gemfile' - 'lib/mercy/report/multiple.rb' - 'spec/lib/mercy/report/multiple_spec.rb' - 'spec/lib/mercy/report/report_config_spec.rb' - 'spec/lib/mercy/report_spec.rb' # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: AllowInHeredoc. Layout/TrailingWhitespace: Exclude: - 'spec/lib/mercy/report/range_spec.rb' - 'spec/lib/mercy/report_spec.rb' # Offense count: 4 Lint/AmbiguousBlockAssociation: Exclude: - 'spec/support/models/document.rb' # Offense count: 1 Lint/IneffectiveAccessModifier: Exclude: - 'lib/mercy/report.rb' # Offense count: 1 Lint/ParenthesesAsGroupedExpression: Exclude: - 'spec/support/fixture_helpers.rb' # Offense count: 27 # Configuration parameters: CountComments, ExcludedMethods. # ExcludedMethods: refine Metrics/BlockLength: Max: 311 # Offense count: 2 # Configuration parameters: EnforcedStyleForLeadingUnderscores. # SupportedStylesForLeadingUnderscores: disallowed, required, optional Naming/MemoizedInstanceVariableName: Exclude: - 'lib/mercy/period_parser.rb' # Offense count: 3 # Cop supports --auto-correct. Performance/RedundantMatch: Exclude: - 'lib/arstotzka/type_cast_ext.rb' - 'lib/mercy/period_parser.rb' # Offense count: 18 # Configuration parameters: Prefixes. # Prefixes: when, with, without RSpec/ContextWording: Exclude: - 'spec/lib/mercy/report/error_spec.rb' - 'spec/lib/mercy/report/range_spec.rb' # Offense count: 39 # Cop supports --auto-correct. RSpec/EmptyLineAfterFinalLet: Exclude: - 'spec/lib/mercy/report/error_spec.rb' - 'spec/lib/mercy/report/range_spec.rb' - 'spec/lib/mercy/report_builder_spec.rb' - 'spec/lib/mercy/status_builder_spec.rb' - 'spec/lib/mercy/status_spec.rb' # Offense count: 3 # Cop supports --auto-correct. RSpec/EmptyLineAfterHook: Exclude: - 'spec/lib/mercy/report/error_spec.rb' # Offense count: 1 # Configuration parameters: CustomTransform, IgnoreMethods. RSpec/FilePath: Exclude: - 'spec/lib/mercy/report/report_config_spec.rb' # Offense count: 11 # Configuration parameters: AggregateFailuresByDefault. RSpec/MultipleExpectations: Max: 3 # Offense count: 111 RSpec/NamedSubject: Exclude: - 'spec/lib/arstotzka/type_cast_spec.rb' - 'spec/lib/mercy/report/error_spec.rb' - 'spec/lib/mercy/report/multiple_spec.rb' - 'spec/lib/mercy/report/range_spec.rb' - 'spec/lib/mercy/report/report_config_spec.rb' - 'spec/lib/mercy/report_builder_spec.rb' - 'spec/lib/mercy/report_spec.rb' - 'spec/lib/mercy/status_builder_spec.rb' - 'spec/lib/mercy/status_spec.rb' - 'spec/support/shared_examples/time_parser.rb' # Offense count: 48 RSpec/NestedGroups: Max: 6 # Offense count: 11 # Cop supports --auto-correct. # Configuration parameters: Strict, EnforcedStyle. # SupportedStyles: inflected, explicit RSpec/PredicateMatcher: Exclude: - 'spec/lib/mercy/report/error_spec.rb' - 'spec/lib/mercy/report/multiple_spec.rb' - 'spec/lib/mercy/report/range_spec.rb' - 'spec/lib/mercy/report_builder_spec.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: braces, no_braces, context_dependent Style/BracesAroundHashParameters: Exclude: - 'spec/lib/arstotzka/type_cast_spec.rb' - 'spec/lib/mercy/period_parser_spec.rb' # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - 'lib/mercy/report/active_record.rb' - 'lib/mercy/report/multiple.rb' - 'spec/lib/mercy/report/multiple_spec.rb' - 'spec/lib/mercy/report_spec.rb' # Offense count: 14 Style/Documentation: Exclude: - 'spec/**/*' - 'test/**/*' - 'lib/arstotzka/type_cast_ext.rb' - 'lib/mercy.rb' - 'lib/mercy/class_methods.rb' - 'lib/mercy/concern.rb' - 'lib/mercy/period_parser.rb' - 'lib/mercy/report.rb' - 'lib/mercy/report/active_record.rb' - 'lib/mercy/report/error.rb' - 'lib/mercy/report/multiple.rb' - 'lib/mercy/report/range.rb' - 'lib/mercy/report_builder.rb' - 'lib/mercy/report_config.rb' - 'lib/mercy/status.rb' - 'lib/mercy/status_builder.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: compact, expanded Style/EmptyMethod: Exclude: - 'spec/support/report/dummy.rb' # Offense count: 1 # Cop supports --auto-correct. Style/Encoding: Exclude: - 'mercy.gemspec' # Offense count: 1 # Cop supports --auto-correct. Style/ExpandPathArguments: Exclude: - 'mercy.gemspec' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys Style/HashSyntax: Exclude: - 'Rakefile' - 'spec/support/schema.rb' # Offense count: 14 # Cop supports --auto-correct. Style/MutableConstant: Exclude: - 'lib/mercy/report.rb' - 'lib/mercy/report/error.rb' - 'lib/mercy/report/range.rb' - 'lib/mercy/version.rb' - 'spec/lib/mercy/report/multiple_spec.rb' - 'spec/lib/mercy/report_spec.rb' - 'spec/support/report/dummy.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions. Style/ParenthesesAroundCondition: Exclude: - 'lib/mercy/report/active_record.rb' - 'lib/mercy/report/error.rb' # Offense count: 4 # Cop supports --auto-correct. Style/RedundantParentheses: Exclude: - 'lib/mercy/report/active_record.rb' - 'lib/mercy/report/error.rb' - 'spec/support/fixture_helpers.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. Style/RedundantReturn: Exclude: - 'lib/mercy/report/range.rb' # Offense count: 2 # Cop supports --auto-correct. Style/RedundantSelf: Exclude: - 'lib/mercy/class_methods.rb' - 'lib/mercy/report.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: use_perl_names, use_english_names Style/SpecialGlobalVars: Exclude: - 'mercy.gemspec' # Offense count: 10 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Exclude: - 'Gemfile' - 'Rakefile' - 'mercy.gemspec' - 'spec/spec_helper.rb' # Offense count: 11 # 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: - 'lib/mercy/status.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma Style/TrailingCommaInHashLiteral: Exclude: - 'lib/mercy/report/range.rb' # Offense count: 21 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: Max: 110