Commit 8b50d716f03cc804df1f897d1a944980b8a622e3

Authored by Laust Rud Jacobsen
1 parent 22eff788
Exists in master and in 1 other branch production

Rubocop: base config with Rails cops enabled

Showing 2 changed files with 741 additions and 0 deletions   Show diff stats
.rubocop.yml 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +---
  2 +inherit_from: .rubocop_todo.yml
  3 +
  4 +AllCops:
  5 + RunRailsCops: true
... ...
.rubocop_todo.yml 0 → 100644
... ... @@ -0,0 +1,736 @@
  1 +# This configuration was generated by
  2 +# `rubocop --auto-gen-config`
  3 +# on 2015-10-12 09:35:47 +0200 using RuboCop version 0.34.2.
  4 +# The point is for the user to remove these configuration records
  5 +# one by one as the offenses are removed from the code base.
  6 +# Note that changes in the inspected code, or installation of new
  7 +# versions of RuboCop, may require this file to be generated again.
  8 +
  9 +# Offense count: 37
  10 +Metrics/AbcSize:
  11 + Max: 55
  12 +
  13 +# Offense count: 5
  14 +# Configuration parameters: CountComments.
  15 +Metrics/ClassLength:
  16 + Max: 203
  17 +
  18 +# Offense count: 5
  19 +Metrics/CyclomaticComplexity:
  20 + Max: 11
  21 +
  22 +# Offense count: 457
  23 +# Configuration parameters: AllowURI, URISchemes.
  24 +Metrics/LineLength:
  25 + Max: 239
  26 +
  27 +# Offense count: 29
  28 +# Configuration parameters: CountComments.
  29 +Metrics/MethodLength:
  30 + Max: 41
  31 +
  32 +# Offense count: 3
  33 +Metrics/PerceivedComplexity:
  34 + Max: 12
  35 +
  36 +# Offense count: 2
  37 +# Cop supports --auto-correct.
  38 +Performance/Sample:
  39 + Exclude:
  40 + - 'lib/tasks/errbit/demo.rake'
  41 + - 'spec/fabricators/backtrace_fabricator.rb'
  42 +
  43 +# Offense count: 2
  44 +# Cop supports --auto-correct.
  45 +Performance/StringReplacement:
  46 + Exclude:
  47 + - 'app/models/notification_services/gtalk_service.rb'
  48 + - 'lib/hoptoad/v2.rb'
  49 +
  50 +# Offense count: 1
  51 +# Cop supports --auto-correct.
  52 +# Configuration parameters: EnforcedStyle, SupportedStyles, Include.
  53 +Rails/ActionFilter:
  54 + Exclude:
  55 + - 'app/controllers/notices_controller.rb'
  56 +
  57 +# Offense count: 4
  58 +# Cop supports --auto-correct.
  59 +# Configuration parameters: Include.
  60 +Rails/FindBy:
  61 + Exclude:
  62 + - 'app/models/app.rb'
  63 + - 'app/models/error_report.rb'
  64 + - 'app/models/user.rb'
  65 +
  66 +# Offense count: 16
  67 +# Configuration parameters: Include.
  68 +Rails/Output:
  69 + Exclude:
  70 + - 'app/interactors/notice_refingerprinter.rb'
  71 + - 'app/interactors/problem_recacher.rb'
  72 + - 'db/seeds.rb'
  73 +
  74 +# Offense count: 14
  75 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  76 +Rails/TimeZone:
  77 + Exclude:
  78 + - 'app/models/problem.rb'
  79 + - 'lib/tasks/errbit/demo.rake'
  80 + - 'spec/controllers/api/v1/notices_controller_spec.rb'
  81 + - 'spec/controllers/problems_controller_spec.rb'
  82 + - 'spec/models/error_report_spec.rb'
  83 + - 'spec/models/problem_spec.rb'
  84 + - 'spec/views/apps/index.html.haml_spec.rb'
  85 + - 'spec/views/users/show.html.haml_spec.rb'
  86 +
  87 +# Offense count: 12
  88 +# Configuration parameters: Include.
  89 +Rails/Validation:
  90 + Exclude:
  91 + - 'app/models/app.rb'
  92 + - 'app/models/comment.rb'
  93 + - 'app/models/deploy.rb'
  94 + - 'app/models/err.rb'
  95 + - 'app/models/notice.rb'
  96 + - 'app/models/problem.rb'
  97 + - 'app/models/user.rb'
  98 +
  99 +# Offense count: 2
  100 +# Cop supports --auto-correct.
  101 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  102 +Style/AccessModifierIndentation:
  103 + Enabled: false
  104 +
  105 +# Offense count: 3
  106 +# Cop supports --auto-correct.
  107 +Style/Alias:
  108 + Exclude:
  109 + - 'app/decorators/issue_tracker_field_decorator.rb'
  110 + - 'app/models/app.rb'
  111 +
  112 +# Offense count: 8
  113 +# Cop supports --auto-correct.
  114 +# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
  115 +Style/AlignHash:
  116 + Exclude:
  117 + - 'app/models/app.rb'
  118 + - 'spec/controllers/apps_controller_spec.rb'
  119 + - 'spec/controllers/comments_controller_spec.rb'
  120 + - 'spec/controllers/problems_controller_spec.rb'
  121 + - 'spec/models/problem_spec.rb'
  122 +
  123 +# Offense count: 7
  124 +# Cop supports --auto-correct.
  125 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  126 +Style/AlignParameters:
  127 + Exclude:
  128 + - 'app/helpers/apps_helper.rb'
  129 + - 'app/models/app.rb'
  130 + - 'app/models/notification_services/gtalk_service.rb'
  131 + - 'app/models/problem.rb'
  132 + - 'config/initializers/devise.rb'
  133 +
  134 +# Offense count: 2
  135 +# Cop supports --auto-correct.
  136 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  137 +Style/AndOr:
  138 + Exclude:
  139 + - 'app/controllers/users_controller.rb'
  140 + - 'app/models/error_report.rb'
  141 +
  142 +# Offense count: 105
  143 +# Cop supports --auto-correct.
  144 +# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
  145 +Style/BlockDelimiters:
  146 + Enabled: false
  147 +
  148 +# Offense count: 2
  149 +# Cop supports --auto-correct.
  150 +Style/BlockEndNewline:
  151 + Exclude:
  152 + - 'spec/models/error_report_spec.rb'
  153 + - 'spec/views/apps/show.atom.builder_spec.rb'
  154 +
  155 +# Offense count: 49
  156 +# Cop supports --auto-correct.
  157 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  158 +Style/BracesAroundHashParameters:
  159 + Enabled: false
  160 +
  161 +# Offense count: 15
  162 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  163 +Style/ClassAndModuleChildren:
  164 + Exclude:
  165 + - 'app/controllers/api/v1/notices_controller.rb'
  166 + - 'app/controllers/api/v1/problems_controller.rb'
  167 + - 'app/controllers/api/v1/stats_controller.rb'
  168 + - 'app/controllers/api/v3/notices_controller.rb'
  169 + - 'app/controllers/users/omniauth_callbacks_controller.rb'
  170 + - 'app/models/notification_services/campfire_service.rb'
  171 + - 'app/models/notification_services/flowdock_service.rb'
  172 + - 'app/models/notification_services/gtalk_service.rb'
  173 + - 'app/models/notification_services/hipchat_service.rb'
  174 + - 'app/models/notification_services/hoiio_service.rb'
  175 + - 'app/models/notification_services/hubot_service.rb'
  176 + - 'app/models/notification_services/pushover_service.rb'
  177 + - 'app/models/notification_services/slack_service.rb'
  178 + - 'app/models/notification_services/webhook_service.rb'
  179 + - 'config/initializers/overrides.rb'
  180 +
  181 +# Offense count: 1
  182 +# Cop supports --auto-correct.
  183 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  184 +Style/ClassCheck:
  185 + Exclude:
  186 + - 'app/helpers/navigation_helper.rb'
  187 +
  188 +# Offense count: 1
  189 +# Cop supports --auto-correct.
  190 +Style/ClosingParenthesisIndentation:
  191 + Exclude:
  192 + - 'app/models/problem.rb'
  193 +
  194 +# Offense count: 23
  195 +Style/ConstantName:
  196 + Exclude:
  197 + - 'app/models/notification_service.rb'
  198 + - 'app/models/notification_services/campfire_service.rb'
  199 + - 'app/models/notification_services/flowdock_service.rb'
  200 + - 'app/models/notification_services/gtalk_service.rb'
  201 + - 'app/models/notification_services/hipchat_service.rb'
  202 + - 'app/models/notification_services/hoiio_service.rb'
  203 + - 'app/models/notification_services/hubot_service.rb'
  204 + - 'app/models/notification_services/pushover_service.rb'
  205 + - 'app/models/notification_services/slack_service.rb'
  206 + - 'app/models/notification_services/webhook_service.rb'
  207 +
  208 +# Offense count: 11
  209 +# Cop supports --auto-correct.
  210 +Style/DeprecatedHashMethods:
  211 + Exclude:
  212 + - 'lib/airbrake_api/v3/notice_parser.rb'
  213 + - 'lib/hoptoad/v2.rb'
  214 + - 'spec/lib/airbrake_api/v3/notice_parser_spec.rb'
  215 +
  216 +# Offense count: 70
  217 +# Configuration parameters: Exclude.
  218 +Style/Documentation:
  219 + Enabled: false
  220 +
  221 +# Offense count: 7
  222 +# Cop supports --auto-correct.
  223 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  224 +Style/DotPosition:
  225 + Enabled: false
  226 +
  227 +# Offense count: 6
  228 +Style/DoubleNegation:
  229 + Exclude:
  230 + - 'Gemfile'
  231 + - 'app/controllers/apps_controller.rb'
  232 + - 'app/helpers/apps_helper.rb'
  233 + - 'app/models/app.rb'
  234 +
  235 +# Offense count: 5
  236 +Style/EachWithObject:
  237 + Exclude:
  238 + - 'app/decorators/issue_tracker_type_decorator.rb'
  239 + - 'app/helpers/application_helper.rb'
  240 + - 'app/models/notice.rb'
  241 + - 'app/models/notice_fingerprinter.rb'
  242 + - 'lib/recurse.rb'
  243 +
  244 +# Offense count: 14
  245 +# Cop supports --auto-correct.
  246 +# Configuration parameters: AllowAdjacentOneLineDefs.
  247 +Style/EmptyLineBetweenDefs:
  248 + Exclude:
  249 + - 'app/controllers/apps_controller.rb'
  250 + - 'app/controllers/users_controller.rb'
  251 + - 'app/models/notification_service.rb'
  252 + - 'spec/decorators/issue_tracker_decorator_spec.rb'
  253 + - 'spec/decorators/issue_tracker_type_decorator_spec.rb'
  254 + - 'spec/views/problems/show.html.haml_spec.rb'
  255 +
  256 +# Offense count: 13
  257 +# Cop supports --auto-correct.
  258 +Style/EmptyLines:
  259 + Exclude:
  260 + - 'app/controllers/api/v1/stats_controller.rb'
  261 + - 'app/controllers/application_controller.rb'
  262 + - 'app/decorators/issue_tracker_field_decorator.rb'
  263 + - 'app/models/app.rb'
  264 + - 'app/models/problem.rb'
  265 + - 'config/deploy/production.example.rb'
  266 + - 'lib/tasks/errbit/demo.rake'
  267 + - 'script/rspec-queue-mongoid.rb'
  268 + - 'spec/acceptance/app_regenerate_api_key_spec.rb'
  269 +
  270 +# Offense count: 9
  271 +# Cop supports --auto-correct.
  272 +Style/EmptyLinesAroundAccessModifier:
  273 + Exclude:
  274 + - 'app/controllers/apps_controller.rb'
  275 + - 'app/controllers/comments_controller.rb'
  276 + - 'app/decorators/backtrace_line_decorator.rb'
  277 + - 'app/helpers/application_helper.rb'
  278 + - 'app/models/backtrace.rb'
  279 + - 'app/models/comment.rb'
  280 + - 'lib/hoptoad.rb'
  281 + - 'lib/hoptoad/v2.rb'
  282 + - 'lib/overrides/hoptoad_notifier/hoptoad_notifier.rb'
  283 +
  284 +# Offense count: 28
  285 +# Cop supports --auto-correct.
  286 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  287 +Style/EmptyLinesAroundBlockBody:
  288 + Enabled: false
  289 +
  290 +# Offense count: 26
  291 +# Cop supports --auto-correct.
  292 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  293 +Style/EmptyLinesAroundClassBody:
  294 + Enabled: false
  295 +
  296 +# Offense count: 2
  297 +# Cop supports --auto-correct.
  298 +Style/EmptyLinesAroundMethodBody:
  299 + Exclude:
  300 + - 'app/models/notification_services/hoiio_service.rb'
  301 + - 'app/models/notification_services/pushover_service.rb'
  302 +
  303 +# Offense count: 9
  304 +# Cop supports --auto-correct.
  305 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  306 +Style/EmptyLinesAroundModuleBody:
  307 + Exclude:
  308 + - 'app/helpers/application_helper.rb'
  309 + - 'app/helpers/form_helper.rb'
  310 + - 'app/helpers/hash_helper.rb'
  311 + - 'app/helpers/navigation_helper.rb'
  312 + - 'app/helpers/sort_helper.rb'
  313 +
  314 +# Offense count: 22
  315 +# Cop supports --auto-correct.
  316 +# Configuration parameters: AllowForAlignment.
  317 +Style/ExtraSpacing:
  318 + Enabled: false
  319 +
  320 +# Offense count: 2
  321 +# Configuration parameters: Exclude.
  322 +Style/FileName:
  323 + Exclude:
  324 + - 'config/initializers/cve-2013-0156.rb'
  325 + - 'script/rspec-queue-mongoid.rb'
  326 +
  327 +# Offense count: 4
  328 +# Cop supports --auto-correct.
  329 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  330 +Style/FirstParameterIndentation:
  331 + Exclude:
  332 + - 'app/models/issue_tracker.rb'
  333 + - 'spec/decorators/backtrace_decorator_spec.rb'
  334 + - 'spec/decorators/issue_tracker_type_decorator_spec.rb'
  335 +
  336 +# Offense count: 8
  337 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  338 +Style/FormatString:
  339 + Exclude:
  340 + - 'app/decorators/backtrace_line_decorator.rb'
  341 + - 'app/helpers/problems_helper.rb'
  342 + - 'spec/views/apps/edit.html.haml_spec.rb'
  343 + - 'spec/views/problems/show.html.haml_spec.rb'
  344 + - 'spec/views/users/show.html.haml_spec.rb'
  345 +
  346 +# Offense count: 27
  347 +# Configuration parameters: MinBodyLength.
  348 +Style/GuardClause:
  349 + Enabled: false
  350 +
  351 +# Offense count: 1168
  352 +# Cop supports --auto-correct.
  353 +# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
  354 +Style/HashSyntax:
  355 + Enabled: false
  356 +
  357 +# Offense count: 6
  358 +# Cop supports --auto-correct.
  359 +# Configuration parameters: MaxLineLength.
  360 +Style/IfUnlessModifier:
  361 + Exclude:
  362 + - 'app/controllers/api/v1/stats_controller.rb'
  363 + - 'app/controllers/application_controller.rb'
  364 + - 'app/controllers/problems_controller.rb'
  365 + - 'app/models/notice.rb'
  366 + - 'app/models/user.rb'
  367 +
  368 +# Offense count: 5
  369 +# Cop supports --auto-correct.
  370 +Style/IndentArray:
  371 + Exclude:
  372 + - 'app/models/notification_services/gtalk_service.rb'
  373 + - 'app/models/notification_services/hoiio_service.rb'
  374 + - 'app/models/notification_services/pushover_service.rb'
  375 + - 'app/models/notification_services/slack_service.rb'
  376 + - 'spec/models/notification_service/slack_service_spec.rb'
  377 +
  378 +# Offense count: 72
  379 +# Cop supports --auto-correct.
  380 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  381 +Style/IndentHash:
  382 + Enabled: false
  383 +
  384 +# Offense count: 27
  385 +# Cop supports --auto-correct.
  386 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  387 +Style/IndentationConsistency:
  388 + Exclude:
  389 + - 'app/controllers/apps_controller.rb'
  390 + - 'app/controllers/comments_controller.rb'
  391 + - 'app/controllers/deploys_controller.rb'
  392 + - 'app/controllers/users_controller.rb'
  393 + - 'app/helpers/application_helper.rb'
  394 + - 'app/models/app.rb'
  395 + - 'app/models/comment.rb'
  396 + - 'app/models/deploy.rb'
  397 + - 'app/models/problem.rb'
  398 + - 'app/models/watcher.rb'
  399 + - 'lib/hoptoad.rb'
  400 +
  401 +# Offense count: 1
  402 +# Cop supports --auto-correct.
  403 +# Configuration parameters: Width.
  404 +Style/IndentationWidth:
  405 + Exclude:
  406 + - 'app/controllers/notices_controller.rb'
  407 +
  408 +# Offense count: 6
  409 +# Cop supports --auto-correct.
  410 +Style/Lambda:
  411 + Exclude:
  412 + - 'app/models/app.rb'
  413 + - 'app/models/problem.rb'
  414 + - 'config/load.rb'
  415 + - 'spec/models/notice_observer_spec.rb'
  416 +
  417 +# Offense count: 17
  418 +# Cop supports --auto-correct.
  419 +Style/LeadingCommentSpace:
  420 + Exclude:
  421 + - 'app/models/notification_services/gtalk_service.rb'
  422 + - 'spec/controllers/api/v1/notices_controller_spec.rb'
  423 + - 'spec/controllers/api/v1/problems_controller_spec.rb'
  424 + - 'spec/models/fabricators_spec.rb'
  425 + - 'spec/models/notification_service/campfire_service_spec.rb'
  426 + - 'spec/models/notification_service/gtalk_service_spec.rb'
  427 + - 'spec/models/notification_service/hoiio_service_spec.rb'
  428 + - 'spec/models/notification_service/pushover_service_spec.rb'
  429 +
  430 +# Offense count: 6
  431 +# Cop supports --auto-correct.
  432 +Style/MethodCallParentheses:
  433 + Exclude:
  434 + - 'spec/controllers/api/v1/notices_controller_spec.rb'
  435 + - 'spec/controllers/api/v1/problems_controller_spec.rb'
  436 +
  437 +# Offense count: 3
  438 +# Cop supports --auto-correct.
  439 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  440 +Style/MethodDefParentheses:
  441 + Enabled: false
  442 +
  443 +# Offense count: 7
  444 +# Cop supports --auto-correct.
  445 +Style/MultilineBlockLayout:
  446 + Exclude:
  447 + - 'lib/tasks/errbit/demo.rake'
  448 + - 'spec/fabricators/issue_tracker_fabricator.rb'
  449 + - 'spec/interactors/user_destroy_spec.rb'
  450 + - 'spec/models/app_spec.rb'
  451 + - 'spec/models/error_report_spec.rb'
  452 + - 'spec/views/apps/show.atom.builder_spec.rb'
  453 +
  454 +# Offense count: 10
  455 +# Cop supports --auto-correct.
  456 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  457 +Style/MultilineOperationIndentation:
  458 + Enabled: false
  459 +
  460 +# Offense count: 1
  461 +# Cop supports --auto-correct.
  462 +Style/NegatedIf:
  463 + Exclude:
  464 + - 'app/controllers/apps_controller.rb'
  465 +
  466 +# Offense count: 2
  467 +# Cop supports --auto-correct.
  468 +Style/ParallelAssignment:
  469 + Exclude:
  470 + - 'app/models/problem.rb'
  471 + - 'spec/models/app_spec.rb'
  472 +
  473 +# Offense count: 5
  474 +# Cop supports --auto-correct.
  475 +# Configuration parameters: PreferredDelimiters.
  476 +Style/PercentLiteralDelimiters:
  477 + Exclude:
  478 + - 'app/controllers/api/v1/notices_controller.rb'
  479 + - 'app/controllers/api/v1/problems_controller.rb'
  480 + - 'app/controllers/problems_searcher.rb'
  481 + - 'spec/models/notice_spec.rb'
  482 +
  483 +# Offense count: 1
  484 +# Cop supports --auto-correct.
  485 +Style/PerlBackrefs:
  486 + Exclude:
  487 + - 'spec/acceptance/reset_password_token.rb'
  488 +
  489 +# Offense count: 3
  490 +# Cop supports --auto-correct.
  491 +Style/Proc:
  492 + Exclude:
  493 + - 'app/models/notice.rb'
  494 + - 'app/models/problem.rb'
  495 +
  496 +# Offense count: 2
  497 +# Configuration parameters: SupportedStyles.
  498 +Style/RaiseArgs:
  499 + EnforcedStyle: compact
  500 +
  501 +# Offense count: 13
  502 +# Cop supports --auto-correct.
  503 +Style/RedundantSelf:
  504 + Exclude:
  505 + - 'app/models/app.rb'
  506 + - 'app/models/issue_tracker.rb'
  507 + - 'app/models/notification_service.rb'
  508 + - 'app/models/problem.rb'
  509 + - 'lib/configurator.rb'
  510 +
  511 +# Offense count: 3
  512 +# Cop supports --auto-correct.
  513 +# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
  514 +Style/RegexpLiteral:
  515 + Exclude:
  516 + - 'app/models/app.rb'
  517 + - 'config/initializers/ssl_enforcer.rb'
  518 + - 'config/load.rb'
  519 +
  520 +# Offense count: 2
  521 +# Cop supports --auto-correct.
  522 +# Configuration parameters: AllowAsExpressionSeparator.
  523 +Style/Semicolon:
  524 + Exclude:
  525 + - 'app/decorators/issue_tracker_type_decorator.rb'
  526 + - 'app/models/notice_fingerprinter.rb'
  527 +
  528 +# Offense count: 6
  529 +# Cop supports --auto-correct.
  530 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  531 +Style/SignalException:
  532 + Exclude:
  533 + - 'app/controllers/notices_controller.rb'
  534 + - 'app/interactors/problem_merge.rb'
  535 + - 'app/models/problem.rb'
  536 + - 'lib/airbrake_api/v3/notice_parser.rb'
  537 + - 'lib/hoptoad.rb'
  538 +
  539 +# Offense count: 4
  540 +# Configuration parameters: Methods.
  541 +Style/SingleLineBlockParams:
  542 + Exclude:
  543 + - 'app/helpers/application_helper.rb'
  544 + - 'app/helpers/form_helper.rb'
  545 + - 'app/models/notice_fingerprinter.rb'
  546 + - 'lib/hoptoad/v2.rb'
  547 +
  548 +# Offense count: 19
  549 +# Cop supports --auto-correct.
  550 +# Configuration parameters: AllowIfMethodIsEmpty.
  551 +Style/SingleLineMethods:
  552 + Exclude:
  553 + - 'app/models/notification_service.rb'
  554 + - 'spec/decorators/issue_tracker_decorator_spec.rb'
  555 + - 'spec/decorators/issue_tracker_type_decorator_spec.rb'
  556 + - 'spec/errbit_plugin/mock_issue_tracker.rb'
  557 + - 'spec/views/problems/show.html.haml_spec.rb'
  558 +
  559 +# Offense count: 11
  560 +# Cop supports --auto-correct.
  561 +Style/SingleSpaceBeforeFirstArg:
  562 + Exclude:
  563 + - 'app/models/comment.rb'
  564 + - 'config/application.rb'
  565 + - 'spec/fabricators/app_fabricator.rb'
  566 + - 'spec/fabricators/comment_fabricator.rb'
  567 + - 'spec/fabricators/notice_fabricator.rb'
  568 + - 'spec/fabricators/user_fabricator.rb'
  569 +
  570 +# Offense count: 43
  571 +# Cop supports --auto-correct.
  572 +Style/SpaceAfterComma:
  573 + Enabled: false
  574 +
  575 +# Offense count: 2
  576 +# Cop supports --auto-correct.
  577 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  578 +Style/SpaceAroundEqualsInParameterDefault:
  579 + Enabled: false
  580 +
  581 +# Offense count: 28
  582 +# Cop supports --auto-correct.
  583 +# Configuration parameters: MultiSpaceAllowedForOperators.
  584 +Style/SpaceAroundOperators:
  585 + Exclude:
  586 + - 'app/controllers/api/v1/problems_controller.rb'
  587 + - 'app/helpers/application_helper.rb'
  588 + - 'app/helpers/apps_helper.rb'
  589 + - 'app/helpers/hash_helper.rb'
  590 + - 'app/models/issue_tracker.rb'
  591 + - 'app/models/notification_service.rb'
  592 + - 'config/load.rb'
  593 + - 'spec/controllers/problems_controller_spec.rb'
  594 + - 'spec/models/notice_observer_spec.rb'
  595 +
  596 +# Offense count: 27
  597 +# Cop supports --auto-correct.
  598 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  599 +Style/SpaceBeforeBlockBraces:
  600 + Enabled: false
  601 +
  602 +# Offense count: 1
  603 +# Cop supports --auto-correct.
  604 +Style/SpaceBeforeComma:
  605 + Exclude:
  606 + - 'app/decorators/backtrace_line_decorator.rb'
  607 +
  608 +# Offense count: 3
  609 +# Cop supports --auto-correct.
  610 +Style/SpaceBeforeComment:
  611 + Exclude:
  612 + - 'spec/controllers/api/v1/problems_controller_spec.rb'
  613 +
  614 +# Offense count: 75
  615 +# Cop supports --auto-correct.
  616 +# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
  617 +Style/SpaceInsideBlockBraces:
  618 + Enabled: false
  619 +
  620 +# Offense count: 26
  621 +# Cop supports --auto-correct.
  622 +Style/SpaceInsideBrackets:
  623 + Exclude:
  624 + - 'app/helpers/apps_helper.rb'
  625 + - 'app/models/issue.rb'
  626 + - 'app/models/notice_fingerprinter.rb'
  627 + - 'app/models/notification_services/gtalk_service.rb'
  628 + - 'config/initializers/devise.rb'
  629 + - 'lib/tasks/errbit/database.rake'
  630 + - 'spec/lib/configurator_spec.rb'
  631 + - 'spec/models/issue_spec.rb'
  632 +
  633 +# Offense count: 189
  634 +# Cop supports --auto-correct.
  635 +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
  636 +Style/SpaceInsideHashLiteralBraces:
  637 + Enabled: false
  638 +
  639 +# Offense count: 23
  640 +# Cop supports --auto-correct.
  641 +Style/SpaceInsideParens:
  642 + Exclude:
  643 + - 'spec/controllers/api/v1/problems_controller_spec.rb'
  644 + - 'spec/controllers/comments_controller_spec.rb'
  645 + - 'spec/controllers/problems_controller_spec.rb'
  646 + - 'spec/interactors/problem_merge_spec.rb'
  647 + - 'spec/mailers/mailer_spec.rb'
  648 + - 'spec/models/notice_observer_spec.rb'
  649 + - 'spec/models/notice_spec.rb'
  650 +
  651 +# Offense count: 9
  652 +# Cop supports --auto-correct.
  653 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  654 +Style/SpaceInsideStringInterpolation:
  655 + Exclude:
  656 + - 'app/models/issue.rb'
  657 + - 'app/models/notification_service.rb'
  658 + - 'app/models/notification_services/flowdock_service.rb'
  659 + - 'app/models/notification_services/hoiio_service.rb'
  660 + - 'spec/controllers/problems_controller_spec.rb'
  661 +
  662 +# Offense count: 873
  663 +# Cop supports --auto-correct.
  664 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  665 +Style/StringLiterals:
  666 + Enabled: false
  667 +
  668 +# Offense count: 1
  669 +# Cop supports --auto-correct.
  670 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  671 +Style/StringLiteralsInInterpolation:
  672 + Enabled: false
  673 +
  674 +# Offense count: 3
  675 +# Cop supports --auto-correct.
  676 +# Configuration parameters: IgnoredMethods.
  677 +Style/SymbolProc:
  678 + Exclude:
  679 + - 'app/controllers/users/omniauth_callbacks_controller.rb'
  680 + - 'app/models/deploy.rb'
  681 + - 'spec/models/deploy_spec.rb'
  682 +
  683 +# Offense count: 21
  684 +# Cop supports --auto-correct.
  685 +# Configuration parameters: EnforcedStyle, SupportedStyles.
  686 +Style/TrailingBlankLines:
  687 + Enabled: false
  688 +
  689 +# Offense count: 13
  690 +# Cop supports --auto-correct.
  691 +# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
  692 +Style/TrailingComma:
  693 + Exclude:
  694 + - 'app/controllers/deploys_controller.rb'
  695 + - 'app/helpers/problems_helper.rb'
  696 + - 'app/models/notification_services/hipchat_service.rb'
  697 + - 'app/models/problem.rb'
  698 + - 'config/deploy.example.rb'
  699 + - 'config/initializers/action_mailer.rb'
  700 + - 'config/load.rb'
  701 + - 'lib/tasks/errbit/demo.rake'
  702 + - 'spec/decorators/issue_tracker_type_decorator_spec.rb'
  703 + - 'spec/initializers/action_mailer_spec.rb'
  704 + - 'spec/initializers/devise_spec.rb'
  705 +
  706 +# Offense count: 9
  707 +# Cop supports --auto-correct.
  708 +Style/TrailingWhitespace:
  709 + Exclude:
  710 + - 'app/models/notification_service.rb'
  711 + - 'app/models/notification_services/gtalk_service.rb'
  712 + - 'config/initializers/cve-2013-0156.rb'
  713 +
  714 +# Offense count: 2
  715 +Style/UnlessElse:
  716 + Exclude:
  717 + - 'app/controllers/problems_searcher.rb'
  718 +
  719 +# Offense count: 1
  720 +# Cop supports --auto-correct.
  721 +Style/UnneededPercentQ:
  722 + Exclude:
  723 + - 'spec/models/notice_spec.rb'
  724 +
  725 +# Offense count: 6
  726 +# Cop supports --auto-correct.
  727 +Style/WhenThen:
  728 + Exclude:
  729 + - 'app/models/problem.rb'
  730 + - 'lib/hoptoad.rb'
  731 +
  732 +# Offense count: 10
  733 +# Cop supports --auto-correct.
  734 +# Configuration parameters: WordRegex.
  735 +Style/WordArray:
  736 + MinSize: 11
... ...