.rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-08-24 17:38:52 -0300 using RuboCop version 0.74.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
Lint/AmbiguousBlockAssociation:
Exclude:
- 'app/controllers/application_controller.rb'
# Offense count: 1
Lint/IneffectiveAccessModifier:
Exclude:
- 'lib/reviewit/lib/reviewit/action/action.rb'
# Offense count: 4
# Cop supports --auto-correct.
Rails/ActiveRecordAliases:
Exclude:
- 'app/api/reviewit/ci.rb'
- 'app/controllers/projects_controller.rb'
- 'app/controllers/users_controller.rb'
- 'app/models/user.rb'
# Offense count: 7
# Configuration parameters: Database, Include.
# SupportedDatabases: mysql, postgresql
# Include: db/migrate/*.rb
Rails/BulkChangeTable:
Exclude:
- 'db/migrate/20141125200558_fix_history_events_when_attribute.rb'
- 'db/migrate/20141206204123_add_gitlab_ci_support.rb'
- 'db/migrate/20160203020340_add_jira_integration.rb'
- 'db/migrate/20160407003923_fix_history_events.rb'
- 'db/migrate/20170314041511_add_webpush_notifications.rb'
- 'db/migrate/20180418010545_add_blocker_issues_to_comments.rb'
# Offense count: 2
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/20141003232638_create_tables.rb'
- 'db/migrate/20141119010138_add_history_events_table.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/EnumHash:
Exclude:
- 'app/models/comment.rb'
- 'app/models/merge_request.rb'
- 'app/models/patch.rb'
# Offense count: 2
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasAndBelongsToMany:
Exclude:
- 'app/models/project.rb'
- 'app/models/user.rb'
# Offense count: 3
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/user.rb'
# Offense count: 11
Rails/OutputSafety:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/merge_requests_helper.rb'
- 'app/helpers/projects_helper.rb'
- 'app/helpers/semantic_ui_form_builder.rb'
# Offense count: 3
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/ReversibleMigration:
Exclude:
- 'db/migrate/20141125200558_fix_history_events_when_attribute.rb'
- 'db/migrate/20151202194250_fix_gitlab_ci_integration.rb'
- 'db/migrate/20160203032129_remove_cool_undocumented_feature.rb'
# Offense count: 5
# 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:
- 'app/models/merge_request.rb'
- 'app/workers/git_push_worker.rb'
- 'db/migrate/20160414021834_fix_comment_locations.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
Exclude:
- 'app/helpers/merge_requests_helper.rb'
- 'app/models/history_event.rb'
- 'db/migrate/20141119010138_add_history_events_table.rb'
# Offense count: 14
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, conditionals
Style/AndOr:
Exclude:
- 'app/api/reviewit/merge_requests.rb'
- 'app/controllers/merge_requests_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/models/patch.rb'
- 'lib/reviewit/lib/reviewit/action/action.rb'
- 'lib/reviewit/lib/reviewit/action/list.rb'
- 'lib/reviewit/lib/reviewit/action/push.rb'
- 'lib/reviewit/lib/reviewit/app.rb'
# Offense count: 6
# Cop supports --auto-correct.
Style/ExpandPathArguments:
Exclude:
- 'Rakefile'
- 'config/application.rb'
- 'config/boot.rb'
- 'config/environment.rb'
- 'spec/rails_helper.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Exclude:
- 'app/helpers/projects_helper.rb'
# Offense count: 2
# Configuration parameters: .
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
EnforcedStyle: unannotated
# Offense count: 105
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, never
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 2
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'app/api/reviewit/projects.rb'
- 'lib/reviewit/lib/reviewit/action/action.rb'
# Offense count: 1
Style/MissingRespondToMissing:
Exclude:
- 'app/models/reviewit_config.rb'
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
Exclude:
- 'app/models/diff.rb'
- 'app/models/merge_request.rb'
- 'app/models/reviewit_config.rb'
- 'lib/reviewit/lib/reviewit/action/action.rb'
- 'lib/reviewit/lib/reviewit/action/cleanup.rb'
- 'lib/reviewit/lib/reviewit/action/list.rb'
- 'lib/reviewit/lib/reviewit/version.rb'
# Offense count: 22
# Cop supports --auto-correct.
Style/PerlBackrefs:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/models/diff.rb'
- 'lib/reviewit/lib/reviewit/action/cleanup.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException:
Exclude:
- 'app/mailers/merge_request_mailer.rb'
- 'app/models/git.rb'
- 'app/workers/git_push_worker.rb'
- 'lib/tasks/build_cli_gem.rake'
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
Exclude:
- 'app/models/git.rb'
- 'lib/reviewit/bin/review'
- 'lib/reviewit/install.rb'
- 'lib/reviewit/lib/reviewit/action/config.rb'
- 'lib/reviewit/lib/reviewit/app.rb'
- 'lib/reviewit/lib/reviewit/git_util.rb'