# This configuration was generated by # `rubocop --auto-gen-config` # on 2018-02-06 11:17:57 +0000 using RuboCop version 0.52.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: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth. # SupportedStyles: case, end Layout/CaseIndentation: Exclude: - 'lib/bugsnag/cleaner.rb' # Offense count: 3 # Cop supports --auto-correct. Layout/EmptyLines: Exclude: - 'lib/bugsnag/helpers.rb' - 'lib/bugsnag/integrations/mailman.rb' - 'lib/bugsnag/stacktrace.rb' # Offense count: 4 # Cop supports --auto-correct. Layout/EmptyLinesAroundAccessModifier: Exclude: - 'lib/bugsnag/delivery.rb' - 'lib/bugsnag/integrations/rails/controller_methods.rb' - 'lib/bugsnag/middleware_stack.rb' - 'lib/bugsnag/session_tracker.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, no_empty_lines Layout/EmptyLinesAroundBlockBody: Exclude: - 'lib/bugsnag/middleware/classify_error.rb' # Offense count: 11 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines Layout/EmptyLinesAroundClassBody: Exclude: - 'lib/bugsnag/integrations/delayed_job.rb' - 'lib/bugsnag/integrations/mailman.rb' - 'lib/bugsnag/integrations/rack.rb' - 'lib/bugsnag/integrations/railtie.rb' - 'lib/bugsnag/integrations/rake.rb' - 'lib/bugsnag/integrations/resque.rb' - 'lib/bugsnag/integrations/shoryuken.rb' - 'lib/bugsnag/integrations/sidekiq.rb' - 'lib/bugsnag/middleware/suggestion_data.rb' - 'lib/bugsnag/session_tracker.rb' - 'lib/bugsnag/stacktrace.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLinesAroundExceptionHandlingKeywords: Exclude: - 'lib/bugsnag/integrations/rake.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/bugsnag/integrations/rails/controller_methods.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_brackets Layout/IndentArray: Exclude: - 'lib/bugsnag/middleware/classify_error.rb' # Offense count: 12 # Cop supports --auto-correct. # Configuration parameters: IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces Layout/IndentHash: EnforcedStyle: consistent # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent Layout/IndentHeredoc: Exclude: - 'lib/generators/bugsnag/bugsnag_generator.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'lib/bugsnag/cleaner.rb' # Offense count: 2 # Cop supports --auto-correct. Layout/MultilineBlockLayout: Exclude: - 'lib/bugsnag/middleware/classify_error.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented Layout/MultilineOperationIndentation: Exclude: - 'lib/bugsnag/middleware/clearance_user.rb' # Offense count: 4 # Cop supports --auto-correct. Layout/SpaceAfterComma: Exclude: - 'lib/bugsnag/cleaner.rb' - 'lib/bugsnag/integrations/rack.rb' - 'lib/bugsnag/middleware_stack.rb' - 'lib/bugsnag/report.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: space, no_space Layout/SpaceAroundEqualsInParameterDefault: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/delivery/synchronous.rb' - 'lib/bugsnag/delivery/thread_queue.rb' - 'lib/bugsnag/integrations/rake.rb' - 'lib/bugsnag/report.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceBeforeBlockBraces: Exclude: - 'lib/bugsnag/middleware/suggestion_data.rb' - 'lib/bugsnag/middleware_stack.rb' # Offense count: 23 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideBlockBraces: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/cleaner.rb' - 'lib/bugsnag/helpers.rb' - 'lib/bugsnag/integrations/shoryuken.rb' - 'lib/bugsnag/middleware/callbacks.rb' - 'lib/bugsnag/middleware/rack_request.rb' - 'lib/bugsnag/middleware/warden_user.rb' - 'lib/bugsnag/middleware_stack.rb' - 'lib/bugsnag/report.rb' - 'lib/bugsnag/stacktrace.rb' # Offense count: 22 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/cleaner.rb' - 'lib/bugsnag/integrations/resque.rb' - 'lib/bugsnag/middleware/exception_meta_data.rb' - 'lib/bugsnag/middleware/mailman.rb' - 'lib/bugsnag/middleware/suggestion_data.rb' - 'lib/bugsnag/middleware/warden_user.rb' - 'lib/bugsnag/report.rb' - 'lib/bugsnag/session_tracker.rb' # Offense count: 2 # Cop supports --auto-correct. Layout/SpaceInsideParens: Exclude: - 'lib/bugsnag/stacktrace.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: final_newline, final_blank_line Layout/TrailingBlankLines: Exclude: - 'lib/bugsnag/integrations/que.rb' - 'lib/bugsnag/session_tracker.rb' - 'lib/bugsnag/tasks.rb' - 'lib/bugsnag/version.rb' # Offense count: 2 Lint/AmbiguousBlockAssociation: Exclude: - 'lib/bugsnag/delivery/thread_queue.rb' - 'lib/bugsnag/middleware/suggestion_data.rb' # Offense count: 4 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Exclude: - 'lib/bugsnag/delivery/thread_queue.rb' - 'lib/bugsnag/helpers.rb' - 'lib/bugsnag/integrations/delayed_job.rb' # Offense count: 2 Lint/DuplicateMethods: Exclude: - 'lib/bugsnag/configuration.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect. # SupportedStylesAlignWith: keyword, variable, start_of_line Lint/EndAlignment: Exclude: - 'lib/bugsnag/cleaner.rb' # Offense count: 2 Lint/HandleExceptions: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/tasks/bugsnag.rake' # Offense count: 10 Lint/IneffectiveAccessModifier: Exclude: - 'lib/bugsnag/helpers.rb' # Offense count: 5 Lint/RescueException: Exclude: - 'lib/bugsnag/integrations/mailman.rb' - 'lib/bugsnag/integrations/rack.rb' - 'lib/bugsnag/integrations/rake.rb' - 'lib/bugsnag/integrations/shoryuken.rb' - 'lib/bugsnag/integrations/sidekiq.rb' - 'lib/bugsnag/integrations/delayed_job.rb' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: Exclude: - 'lib/bugsnag/configuration.rb' - 'lib/bugsnag/helpers.rb' - 'lib/bugsnag/middleware_stack.rb' - 'lib/bugsnag/report.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. Lint/UnusedMethodArgument: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/configuration.rb' - 'lib/bugsnag/integrations/sidekiq.rb' # Offense count: 1 # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. Lint/UselessAccessModifier: Exclude: - 'lib/bugsnag/helpers.rb' # Offense count: 25 Metrics/AbcSize: Max: 86 # Offense count: 1 # Configuration parameters: CountComments, ExcludedMethods. Metrics/BlockLength: Max: 30 # Offense count: 2 # Configuration parameters: CountBlocks. Metrics/BlockNesting: Max: 4 # Offense count: 3 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 149 Exclude: - 'lib/bugsnag/report.rb' - 'lib/bugsnag/configuration.rb' # Offense count: 12 Metrics/CyclomaticComplexity: Max: 19 # Offense count: 34 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 55 # Offense count: 1 # Configuration parameters: CountComments. Metrics/ModuleLength: Max: 125 Exclude: - 'lib/bugsnag/helpers.rb' - 'lib/bugsnag.rb' # Offense count: 11 Metrics/PerceivedComplexity: Max: 21 # Offense count: 2 Naming/AccessorMethodName: Exclude: - 'lib/bugsnag/session_tracker.rb' # Offense count: 1 # Configuration parameters: Blacklist. # Blacklist: END, (?-mix:EO[A-Z]{1}) Naming/HeredocDelimiterNaming: Exclude: - 'lib/generators/bugsnag/bugsnag_generator.rb' # Offense count: 1 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros. # NamePrefix: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_ # NameWhitelist: is_a? # MethodDefinitionMacros: define_method, define_singleton_method Naming/PredicateName: Exclude: - 'spec/**/*' - 'lib/bugsnag/helpers.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: prefer_alias, prefer_alias_method Style/Alias: Exclude: - 'lib/bugsnag/configuration.rb' - 'lib/bugsnag/integrations/rake.rb' - 'lib/bugsnag/session_tracker.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, conditionals Style/AndOr: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/helpers.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, 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: - 'lib/bugsnag/middleware/classify_error.rb' # Offense count: 12 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: braces, no_braces, context_dependent Style/BracesAroundHashParameters: Exclude: - 'lib/bugsnag/integrations/resque.rb' - 'lib/bugsnag/integrations/shoryuken.rb' - 'lib/bugsnag/integrations/sidekiq.rb' - 'lib/bugsnag/middleware/mailman.rb' - 'lib/bugsnag/middleware/rack_request.rb' - 'lib/bugsnag/middleware/rails3_request.rb' - 'lib/bugsnag/middleware/rake.rb' - 'lib/bugsnag/middleware/suggestion_data.rb' - 'lib/bugsnag/middleware/warden_user.rb' # Offense count: 16 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: is_a?, kind_of? Style/ClassCheck: Exclude: - 'lib/bugsnag/cleaner.rb' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/cleaner.rb' - 'lib/bugsnag/delivery/synchronous.rb' - 'lib/bugsnag/middleware_stack.rb' - 'lib/bugsnag/report.rb' # Offense count: 38 Style/Documentation: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: empty, nil, both Style/EmptyElse: Exclude: - 'lib/bugsnag/stacktrace.rb' # Offense count: 3 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/integrations/delayed_job.rb' - 'lib/bugsnag/integrations/resque.rb' # Offense count: 98 # 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 Style/IfInsideElse: Exclude: - 'lib/bugsnag/session_tracker.rb' # Offense count: 15 # Cop supports --auto-correct. Style/IfUnlessModifier: Exclude: - 'lib/bugsnag/delivery/synchronous.rb' - 'lib/bugsnag/integrations/delayed_job.rb' - 'lib/bugsnag/integrations/mailman.rb' - 'lib/bugsnag/integrations/rack.rb' - 'lib/bugsnag/integrations/resque.rb' - 'lib/bugsnag/middleware/callbacks.rb' - 'lib/bugsnag/middleware/exception_meta_data.rb' - 'lib/bugsnag/middleware/rack_request.rb' - 'lib/bugsnag/session_tracker.rb' - 'lib/bugsnag/stacktrace.rb' # Offense count: 6 # Cop supports --auto-correct. Style/MethodCallWithoutArgsParentheses: Exclude: - 'lib/bugsnag/delivery/synchronous.rb' - 'lib/bugsnag/report.rb' - 'lib/bugsnag/session_tracker.rb' # Offense count: 1 Style/MethodMissing: Exclude: - 'lib/bugsnag/middleware_stack.rb' # Offense count: 1 Style/MultilineBlockChain: Exclude: - 'lib/bugsnag/middleware/classify_error.rb' # Offense count: 1 # Cop supports --auto-correct. Style/MultilineIfModifier: Exclude: - 'lib/bugsnag/integrations/rails/controller_methods.rb' # Offense count: 29 # Cop supports --auto-correct. Style/MutableConstant: Enabled: false # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: both, prefix, postfix Style/NegatedIf: Exclude: - 'lib/bugsnag.rb' - 'lib/bugsnag/session_tracker.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, MinBodyLength. # SupportedStyles: skip_modifier_ifs, always Style/Next: Exclude: - 'lib/bugsnag/middleware/classify_error.rb' - 'lib/bugsnag/middleware/exception_meta_data.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: IncludeSemanticChanges. Style/NonNilCheck: Exclude: - 'lib/bugsnag/report.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Strict. Style/NumericLiterals: MinDigits: 7 # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'lib/bugsnag/session_tracker.rb' # Offense count: 2 # Cop supports --auto-correct. Style/ParallelAssignment: Exclude: - 'lib/bugsnag/stacktrace.rb' # Offense count: 6 # Cop supports --auto-correct. Style/PerlBackrefs: Exclude: - 'lib/bugsnag/stacktrace.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: compact, exploded Style/RaiseArgs: Exclude: - 'lib/bugsnag/tasks/bugsnag.rake' # Offense count: 4 # Cop supports --auto-correct. Style/RedundantBegin: Exclude: - 'lib/bugsnag/delivery/synchronous.rb' - 'lib/bugsnag/integrations/mailman.rb' - 'lib/bugsnag/integrations/shoryuken.rb' - 'lib/bugsnag/integrations/sidekiq.rb' # Offense count: 1 # Cop supports --auto-correct. Style/RedundantException: Exclude: - 'lib/bugsnag/tasks/bugsnag.rake' # Offense count: 11 # Cop supports --auto-correct. Style/RedundantSelf: Exclude: - 'lib/bugsnag/configuration.rb' - 'lib/bugsnag/integrations/railtie.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed Style/RegexpLiteral: Exclude: - 'lib/bugsnag/stacktrace.rb' # Offense count: 6 # Cop supports --auto-correct. Style/RescueModifier: Exclude: - 'lib/bugsnag/cleaner.rb' - 'lib/bugsnag/middleware/rack_request.rb' - 'lib/bugsnag/middleware/rails3_request.rb' - 'lib/bugsnag/middleware/warden_user.rb' - 'lib/bugsnag/stacktrace.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: implicit, explicit Style/RescueStandardError: Exclude: - 'lib/bugsnag/integrations/que.rb' - 'lib/bugsnag/integrations/railtie.rb' - 'lib/bugsnag/stacktrace.rb' - 'lib/bugsnag/tasks/bugsnag.rake' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowAsExpressionSeparator. Style/Semicolon: Exclude: - 'lib/bugsnag/configuration.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: . # SupportedStyles: use_perl_names, use_english_names Style/SpecialGlobalVars: EnforcedStyle: use_perl_names # Offense count: 176 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Enabled: false # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: MinSize. # SupportedStyles: percent, brackets Style/SymbolArray: EnforcedStyle: brackets # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: IgnoredMethods. # IgnoredMethods: respond_to, define_method Style/SymbolProc: Exclude: - 'lib/bugsnag/middleware/classify_error.rb' - 'lib/bugsnag/middleware/rack_request.rb' - 'lib/bugsnag/middleware/suggestion_data.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/bugsnag/report.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma Style/TrailingCommaInLiteral: Exclude: - 'lib/bugsnag/integrations/delayed_job.rb' # 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/bugsnag/configuration.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: MinSize, WordRegex. # SupportedStyles: percent, brackets Style/WordArray: EnforcedStyle: brackets # Offense count: 3 # Cop supports --auto-correct. Style/ZeroLengthPredicate: Exclude: - 'lib/bugsnag/session_tracker.rb' # Offense count: 92 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: Max: 162