Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
532 lines (467 sloc) 15.7 KB
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-07-19 13:40:39 +0200 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: 13
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/OrderedGems:
Exclude:
- 'Gemfile'
# Offense count: 1
# Cop supports --auto-correct.
Layout/ClosingParenthesisIndentation:
Exclude:
- 'app/models/user.rb'
# Offense count: 2
# Cop supports --auto-correct.
Layout/EmptyLineAfterMagicComment:
Exclude:
- 'app/helpers/notices_helper.rb'
- 'app/helpers/sort_helper.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/IndentArray:
EnforcedStyle: consistent
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: IndentationWidth.
Layout/IndentAssignment:
Exclude:
- 'app/models/problem.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
Layout/IndentHeredoc:
Exclude:
- 'app/models/notification_services/hipchat_service.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineArrayBraceLayout:
Exclude:
- 'app/models/notification_service.rb'
- 'spec/controllers/api/v1/problems_controller_spec.rb'
- 'spec/models/issue_spec.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineHashBraceLayout:
Exclude:
- 'app/models/notification_service.rb'
- 'spec/models/problem_spec.rb'
# Offense count: 22
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineMethodCallBraceLayout:
Exclude:
- 'app/controllers/site_config_controller.rb'
- 'app/models/backtrace.rb'
- 'app/models/site_config.rb'
- 'app/models/user.rb'
- 'lib/hoptoad/v2.rb'
- 'spec/acceptance/watch_unwatch_app_spec.rb'
- 'spec/controllers/problems_controller_spec.rb'
- 'spec/decorators/backtrace_line_decorator_spec.rb'
- 'spec/initializers/devise_spec.rb'
- 'spec/interactors/user_destroy_spec.rb'
- 'spec/lib/airbrake_api/v3/notice_parser_spec.rb'
- 'spec/views/issue_trackers/issue.txt.erb_spec.rb'
- 'spec/views/problems/index.atom.builder_spec.rb'
- 'spec/views/problems/show.html.haml_spec.rb'
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
Exclude:
- 'app/controllers/apps_controller.rb'
- 'app/controllers/problems_controller.rb'
- 'app/helpers/application_helper.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Layout/SpaceAroundOperators:
Exclude:
- 'app/helpers/hash_helper.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, no_space
Layout/SpaceInsideStringInterpolation:
Exclude:
- 'app/views/problems/_list.atom.builder'
# Offense count: 4
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/acceptance/app_regenerate_api_key_spec.rb'
- 'spec/controllers/apps_controller_spec.rb'
- 'spec/interactors/outdated_problem_clearer_spec.rb'
- 'spec/interactors/resolved_problem_clearer_spec.rb'
# Offense count: 2
Lint/DuplicateMethods:
Exclude:
- 'app/models/watcher.rb'
- 'lib/airbrake_api/v3/notice_parser.rb'
# Offense count: 2
Lint/ImplicitStringConcatenation:
Exclude:
- 'app/models/notification_services/gtalk_service.rb'
# Offense count: 4
Lint/IneffectiveAccessModifier:
Exclude:
- 'lib/hoptoad/v2.rb'
# Offense count: 1
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
Lint/UselessAccessModifier:
Exclude:
- 'lib/hoptoad/v2.rb'
# Offense count: 35
Metrics/AbcSize:
Max: 52
# Offense count: 118
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 418
Exclude:
- 'spec/**/*.rb'
# Offense count: 4
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 243
# Offense count: 6
Metrics/CyclomaticComplexity:
Max: 11
# Offense count: 33
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 33
# Offense count: 5
Metrics/PerceivedComplexity:
Max: 12
# Offense count: 3
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'app/interactors/outdated_problem_clearer.rb'
- 'app/interactors/resolved_problem_clearer.rb'
- 'app/models/error_report.rb'
# Offense count: 2
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at
Naming/UncommunicativeMethodParamName:
Exclude:
- 'app/models/notice.rb'
- 'app/models/notification_service.rb'
# Offense count: 6
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, normalcase, non_integer
Naming/VariableNumber:
Exclude:
- 'spec/models/app_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
Performance/RegexpMatch:
Exclude:
- 'app/decorators/backtrace_line_decorator.rb'
# Offense count: 1
# Cop supports --auto-correct.
Performance/Size:
Exclude:
- 'app/interactors/problem_destroy.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Performance/TimesMap:
Exclude:
- 'spec/interactors/notice_refingerprinter_spec.rb'
- 'spec/interactors/problem_recacher_spec.rb'
- 'spec/mailers/mailer_spec.rb'
# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Security/JSONLoad:
Exclude:
- 'spec/controllers/api/v1/notices_controller_spec.rb'
- 'spec/controllers/api/v1/problems_controller_spec.rb'
# Offense count: 15
# Configuration parameters: EnforcedStyle.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
Exclude:
- 'app/controllers/api/v1/stats_controller.rb'
- 'app/controllers/apps_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/problems_controller.rb'
- 'app/controllers/site_config_controller.rb'
- 'app/controllers/users/omniauth_callbacks_controller.rb'
- 'app/decorators/issue_tracker_field_decorator.rb'
- 'app/helpers/apps_helper.rb'
- 'app/mailers/mailer.rb'
- 'app/models/backtrace.rb'
- 'app/models/notification_services/hipchat_service.rb'
- 'app/models/user.rb'
- 'lib/hoptoad.rb'
- 'lib/overrides/hoptoad_notifier/hoptoad_notifier.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
Exclude:
- 'app/decorators/issue_tracker_field_decorator.rb'
- 'app/models/app.rb'
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'app/controllers/api/v1/notices_controller.rb'
- 'app/controllers/api/v1/problems_controller.rb'
- 'app/controllers/api/v1/stats_controller.rb'
- 'app/controllers/api/v3/notices_controller.rb'
- 'app/controllers/users/omniauth_callbacks_controller.rb'
- 'app/models/notification_services/campfire_service.rb'
- 'app/models/notification_services/flowdock_service.rb'
- 'app/models/notification_services/gtalk_service.rb'
- 'app/models/notification_services/hipchat_service.rb'
- 'app/models/notification_services/hoiio_service.rb'
- 'app/models/notification_services/hubot_service.rb'
- 'app/models/notification_services/pushover_service.rb'
- 'app/models/notification_services/slack_service.rb'
- 'app/models/notification_services/webhook_service.rb'
- 'config/initializers/overrides.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'app/models/notice_fingerprinter.rb'
- 'app/models/notification_service.rb'
- 'lib/recurse.rb'
# Offense count: 72
Style/Documentation:
Enabled: false
# Offense count: 4
# Cop supports --auto-correct.
Style/EachWithObject:
Exclude:
- 'app/decorators/issue_tracker_type_decorator.rb'
- 'app/helpers/application_helper.rb'
- 'app/models/notice.rb'
- 'lib/recurse.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Exclude:
- 'db/migrate/20150527202629_add_v1_to_hipchat_notification_services.rb'
- 'db/migrate/20150926035420_cache_app_on_notice.rb'
- 'db/migrate/201510290041_extract_issue_tracker.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/Encoding:
Exclude:
- 'app/helpers/notices_helper.rb'
- 'app/helpers/sort_helper.rb'
# Offense count: 7
# Cop supports --auto-correct.
Style/ExpandPathArguments:
Exclude:
- 'Rakefile'
- 'bin/rails'
- 'config/application.rb'
- 'config/boot.rb'
- 'config/environment.rb'
- 'spec/spec_helper.rb'
# Offense count: 11
# Configuration parameters: EnforcedStyle.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
Exclude:
- 'app/decorators/backtrace_line_decorator.rb'
- 'app/helpers/problems_helper.rb'
- 'spec/views/apps/edit.html.haml_spec.rb'
- 'spec/views/problems/show.html.haml_spec.rb'
- 'spec/views/users/show.html.haml_spec.rb'
# Offense count: 218
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: when_needed, always, never
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
Style/HashSyntax:
Exclude:
- 'app/views/apps/show.atom.builder'
- 'app/views/problems/_list.atom.builder'
- 'app/views/problems/index.atom.builder'
# Offense count: 19
# Cop supports --auto-correct.
Style/IfUnlessModifier:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: InverseMethods, InverseBlocks.
Style/InverseMethods:
Exclude:
- 'app/models/app.rb'
- 'spec/errbit_plugin/mock_issue_tracker.rb'
# Offense count: 1
Style/MixinUsage:
Exclude:
- 'config/initializers/notification_services.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineIfModifier:
Exclude:
- 'app/models/app.rb'
# Offense count: 24
# Cop supports --auto-correct.
Style/MutableConstant:
Enabled: false
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
Style/NestedParenthesizedCalls:
Exclude:
- 'spec/controllers/devise_sessions_controller_spec.rb'
- 'spec/controllers/problems_controller_spec.rb'
- 'spec/views/issue_trackers/issue.md.erb_spec.rb'
- 'spec/views/issue_trackers/issue.txt.erb_spec.rb'
- 'spec/views/problems/index.html.haml_spec.rb'
- 'spec/views/problems/show.html.haml_spec.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'spec/controllers/api/v1/problems_controller_spec.rb'
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'app/controllers/apps_controller.rb'
- 'app/interactors/notice_refingerprinter.rb'
- 'app/interactors/outdated_problem_clearer.rb'
- 'app/interactors/problem_recacher.rb'
- 'app/interactors/resolved_problem_clearer.rb'
- 'app/models/notice_fingerprinter.rb'
- 'lib/tasks/errbit/database.rake'
# Offense count: 1
# Cop supports --auto-correct.
Style/OrAssignment:
Exclude:
- 'app/models/user.rb'
# Offense count: 27
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantParentheses:
Exclude:
- 'app/models/problem.rb'
- 'spec/controllers/problems_controller_spec.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantSelf:
Exclude:
- 'app/models/problem.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'app/models/error_report.rb'
- 'app/models/issue.rb'
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
# Whitelist: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'app/decorators/backtrace_line_decorator.rb'
- 'app/models/app.rb'
- 'app/models/comment.rb'
- 'app/models/issue.rb'
- 'app/models/notice.rb'
- 'app/models/notification_services/gtalk_service.rb'
- 'config/load.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException:
Exclude:
- 'app/controllers/notices_controller.rb'
- 'app/interactors/problem_merge.rb'
- 'app/models/problem.rb'
- 'config/boot.rb'
- 'lib/airbrake_api/v3/notice_parser.rb'
- 'lib/hoptoad.rb'
# Offense count: 938
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 19
# Cop supports --auto-correct.
# Configuration parameters: MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
EnforcedStyle: brackets
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Exclude:
- 'app/helpers/sort_helper.rb'
- 'app/models/notification_services/hipchat_service.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/UnneededCondition:
Exclude:
- 'app/models/issue_tracker.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/UnneededInterpolation:
Exclude:
- 'app/models/notification_services/pushover_service.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/ZeroLengthPredicate:
Exclude:
- 'app/interactors/notice_refingerprinter.rb'
# Offense count: 452
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 227