mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
- Use default config - Make offences snapshot The latter suppresses current offences while reports new ones #579
1287 lines
39 KiB
YAML
1287 lines
39 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2017-08-23 18:09:30 +0300 using RuboCop version 0.49.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: 16
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
|
# Include: **/Gemfile, **/gems.rb
|
|
Bundler/OrderedGems:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
|
|
Lint/UnneededDisable:
|
|
Enabled: false
|
|
Style/ConditionalAssignment:
|
|
Enabled: false
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
Layout/AlignArray:
|
|
Exclude:
|
|
- 'app/models/bank_link.rb'
|
|
- 'db/migrate/20150110113257_add_json_based_versions.rb'
|
|
- 'db/migrate/20150129144652_add_creator_and_updater.rb'
|
|
- 'db/migrate/20150130191056_add_session_id_to_log.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
# SupportedColonStyles: key, separator, table
|
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
Layout/AlignHash:
|
|
Exclude:
|
|
- 'app/models/soap/arireg.rb'
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
|
Layout/AlignParameters:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'app/controllers/admin/admin_users_controller.rb'
|
|
- 'app/mailers/domain_mailer.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/depp/contact.rb'
|
|
- 'app/models/depp/domain.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'app/models/registrar.rb'
|
|
- 'spec/models/domain_spec.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Layout/BlockEndNewline:
|
|
Exclude:
|
|
- 'app/models/invoice.rb'
|
|
- 'spec/requests/epp/contact/info_spec.rb'
|
|
|
|
# Offense count: 34
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth.
|
|
# SupportedStyles: case, end
|
|
Layout/CaseIndentation:
|
|
Exclude:
|
|
- 'app/controllers/admin/contact_versions_controller.rb'
|
|
- 'app/controllers/admin/domain_versions_controller.rb'
|
|
- 'app/controllers/registrar/sessions_controller.rb'
|
|
- 'app/jobs/update_whois_record_job.rb'
|
|
- 'app/models/ability.rb'
|
|
- 'app/models/bank_link.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'app/models/legal_document.rb'
|
|
- 'lib/tasks/db.rake'
|
|
- 'lib/tasks/documents.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/ClosingParenthesisIndentation:
|
|
Exclude:
|
|
- 'app/presenters/domain_presenter.rb'
|
|
|
|
# Offense count: 48
|
|
# Cop supports --auto-correct.
|
|
Layout/CommentIndentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: leading, trailing
|
|
Layout/DotPosition:
|
|
Exclude:
|
|
- 'app/models/concerns/versions.rb'
|
|
- 'app/models/legal_document.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Layout/ElseAlignment:
|
|
Exclude:
|
|
- 'app/controllers/admin/domain_versions_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLineAfterMagicComment:
|
|
Exclude:
|
|
- 'app/models/soap/arireg.rb'
|
|
- 'db/api_log_schema.rb'
|
|
- 'db/whois_schema.rb'
|
|
|
|
# Offense count: 26
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
Layout/EmptyLineBetweenDefs:
|
|
Enabled: false
|
|
|
|
# Offense count: 64
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLines:
|
|
Enabled: false
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLinesAroundAccessModifier:
|
|
Exclude:
|
|
- 'app/controllers/epp/sessions_controller.rb'
|
|
- 'app/mailers/domain_mailer.rb'
|
|
- 'app/models/bank_link.rb'
|
|
|
|
# Offense count: 31
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: empty_lines, no_empty_lines
|
|
Layout/EmptyLinesAroundBlockBody:
|
|
Enabled: false
|
|
|
|
# Offense count: 20
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
Layout/EmptyLinesAroundClassBody:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
Exclude:
|
|
- 'app/models/depp/user.rb'
|
|
|
|
# Offense count: 32
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLinesAroundMethodBody:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
Layout/EmptyLinesAroundModuleBody:
|
|
Exclude:
|
|
- 'app/models/concerns/user_events.rb'
|
|
- 'app/models/soap/arireg.rb'
|
|
|
|
# Offense count: 39
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
Layout/ExtraSpacing:
|
|
Enabled: false
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
Layout/FirstParameterIndentation:
|
|
Exclude:
|
|
- 'app/jobs/domain_delete_job.rb'
|
|
- 'app/models/bank_link.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/depp/domain.rb'
|
|
- 'app/models/directo.rb'
|
|
- 'app/models/domain_cron.rb'
|
|
- 'app/models/epp/contact.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'lib/tasks/bootstrap.rake'
|
|
- 'lib/tasks/import.rake'
|
|
- 'spec/jobs/domain_delete_confirm_email_job_spec.rb'
|
|
- 'spec/jobs/domain_delete_forced_email_job_spec.rb'
|
|
- 'spec/jobs/domain_expire_email_job_spec.rb'
|
|
- 'spec/jobs/registrant_change_confirm_email_job_spec.rb'
|
|
|
|
# Offense count: 56
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
Layout/IndentArray:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IndentationWidth.
|
|
Layout/IndentAssignment:
|
|
Exclude:
|
|
- 'app/models/epp/domain.rb'
|
|
|
|
# Offense count: 81
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
Layout/IndentHash:
|
|
Enabled: false
|
|
|
|
# Offense count: 17
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: normal, rails
|
|
Layout/IndentationConsistency:
|
|
Exclude:
|
|
- 'app/models/bank_link.rb'
|
|
- 'lib/tasks/convert.rake'
|
|
|
|
# Offense count: 18
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Width, IgnoredPatterns.
|
|
Layout/IndentationWidth:
|
|
Exclude:
|
|
- 'app/controllers/admin/domain_versions_controller.rb'
|
|
- 'app/controllers/registrant/domains_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/ability.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'app/models/legal_document.rb'
|
|
- 'app/views/epp/contacts/info.xml.builder'
|
|
- 'app/views/epp/contacts/save.xml.builder'
|
|
- 'db/migrate/20161004101419_adduuid_index_to_epp_logs.rb'
|
|
- 'lib/tasks/convert.rake'
|
|
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
Layout/LeadingCommentSpace:
|
|
Exclude:
|
|
- 'app/models/directo.rb'
|
|
- 'app/models/domain_cron.rb'
|
|
- 'app/models/domain_status.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'app/models/registrant_user.rb'
|
|
- 'app/views/epp/domains/info.xml.builder'
|
|
- 'app/views/epp/sessions/greeting.xml.builder'
|
|
- 'db/migrate/20150407145943_add_invoice_columns.rb'
|
|
- 'db/migrate/20150413080832_create_bank_transactions.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineArrayBraceLayout:
|
|
Exclude:
|
|
- 'app/models/domain_mail_model.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'db/migrate/20150110113257_add_json_based_versions.rb'
|
|
- 'db/migrate/20150129144652_add_creator_and_updater.rb'
|
|
- 'db/migrate/20150130191056_add_session_id_to_log.rb'
|
|
|
|
# Offense count: 80
|
|
# Cop supports --auto-correct.
|
|
Layout/MultilineBlockLayout:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineHashBraceLayout:
|
|
Exclude:
|
|
- 'app/models/depp/domain.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineMethodCallBraceLayout:
|
|
Exclude:
|
|
- 'app/presenters/domain_presenter.rb'
|
|
- 'spec/jobs/domain_delete_confirm_email_job_spec.rb'
|
|
- 'spec/jobs/domain_delete_forced_email_job_spec.rb'
|
|
- 'spec/jobs/domain_expire_email_job_spec.rb'
|
|
- 'spec/jobs/registrant_change_confirm_email_job_spec.rb'
|
|
|
|
# Offense count: 28
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
Layout/MultilineMethodCallIndentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: aligned, indented
|
|
Layout/MultilineOperationIndentation:
|
|
Exclude:
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/controllers/registrant/domains_controller.rb'
|
|
- 'app/models/directo.rb'
|
|
- 'lib/tasks/convert.rake'
|
|
- 'lib/tasks/documents.rake'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Layout/RescueEnsureAlignment:
|
|
Exclude:
|
|
- 'app/models/certificate.rb'
|
|
- 'app/models/depp/keyrelay.rb'
|
|
- 'app/models/depp/user.rb'
|
|
|
|
# Offense count: 10
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAfterComma:
|
|
Exclude:
|
|
- 'app/api/repp/domain_v1.rb'
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/models/directo.rb'
|
|
- 'app/models/dnskey.rb'
|
|
- 'app/models/domain_mail_model.rb'
|
|
- 'app/views/epp/contacts/_disclosure_policy.xml.builder'
|
|
- 'app/views/epp/error.xml.builder'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleInsidePipes, SupportedStylesInsidePipes.
|
|
# SupportedStylesInsidePipes: space, no_space
|
|
Layout/SpaceAroundBlockParameters:
|
|
Exclude:
|
|
- 'lib/tasks/convert.rake'
|
|
|
|
# Offense count: 300
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment.
|
|
Layout/SpaceAroundOperators:
|
|
Enabled: false
|
|
|
|
# Offense count: 36
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceBeforeBlockBraces:
|
|
Exclude:
|
|
- 'app/api/repp/domain_v1.rb'
|
|
- 'app/models/bank_link.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/directo.rb'
|
|
- 'app/models/invoice.rb'
|
|
- 'app/models/legal_document.rb'
|
|
- 'app/models/soap/arireg.rb'
|
|
- 'app/models/whois_record.rb'
|
|
- 'app/views/epp/domains/info.xml.builder'
|
|
- 'config/routes.rb'
|
|
- 'lib/tasks/convert.rake'
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceBeforeComment:
|
|
Exclude:
|
|
- 'app/models/contact.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment.
|
|
Layout/SpaceBeforeFirstArg:
|
|
Exclude:
|
|
- 'db/migrate/20150422092514_add_whois_body_to_registry.rb'
|
|
|
|
# Offense count: 48
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
|
|
# SupportedStyles: space, no_space
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceInsideBlockBraces:
|
|
Exclude:
|
|
- 'app/api/repp/domain_v1.rb'
|
|
- 'app/models/bank_link.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/dnskey.rb'
|
|
- 'app/models/invoice.rb'
|
|
- 'app/models/legal_document.rb'
|
|
- 'app/models/soap/arireg.rb'
|
|
- 'app/models/whois_record.rb'
|
|
- 'app/views/epp/domains/info.xml.builder'
|
|
- 'config/routes.rb'
|
|
- 'lib/epp_constraint.rb'
|
|
- 'lib/tasks/convert.rake'
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsideBrackets:
|
|
Exclude:
|
|
- 'db/migrate/20140926121409_domain_related_archives.rb'
|
|
- 'db/migrate/20141015135255_create_settings.rb'
|
|
|
|
# Offense count: 64
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
|
# SupportedStyles: space, no_space, compact
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
Exclude:
|
|
- 'app/controllers/admin/domains_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/depp/domain.rb'
|
|
- 'app/models/directo.rb'
|
|
- 'app/models/domain_mail_model.rb'
|
|
- 'app/models/epp/contact.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'app/models/nameserver.rb'
|
|
- 'app/models/soap/arireg.rb'
|
|
- 'config/routes.rb'
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsideParens:
|
|
Exclude:
|
|
- 'db/migrate/20160414110443_add_time_indexing_to_epp_log.rb'
|
|
- 'db/migrate/20161004101419_adduuid_index_to_epp_logs.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsidePercentLiteralDelimiters:
|
|
Exclude:
|
|
- 'app/models/depp/contact.rb'
|
|
- 'config/initializers/assets.rb'
|
|
- 'lib/daemons/que.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceInsideStringInterpolation:
|
|
Exclude:
|
|
- 'app/models/soap/arireg.rb'
|
|
|
|
# Offense count: 22
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: final_newline, final_blank_line
|
|
Layout/TrailingBlankLines:
|
|
Enabled: false
|
|
|
|
# Offense count: 41
|
|
# Cop supports --auto-correct.
|
|
Layout/TrailingWhitespace:
|
|
Enabled: false
|
|
|
|
# Offense count: 18
|
|
Lint/AmbiguousBlockAssociation:
|
|
Exclude:
|
|
- 'spec/models/dns/zone_spec.rb'
|
|
- 'spec/requests/epp/contact/delete/used_spec.rb'
|
|
- 'spec/requests/epp/domain/create/account_balance_spec.rb'
|
|
- 'spec/requests/epp/domain/create/optional_nameserver_spec.rb'
|
|
- 'spec/requests/epp/domain/create/price_spec.rb'
|
|
- 'spec/requests/epp/domain/create/required_nameserver_spec.rb'
|
|
- 'spec/requests/epp/domain/renew/expire_time_spec.rb'
|
|
- 'spec/requests/epp/domain/renew/price_spec.rb'
|
|
- 'spec/requests/epp/domain/update/registrant_change/same_as_current_spec.rb'
|
|
- 'spec/requests/epp/domain/update/registrant_change/verified_spec.rb'
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
Lint/AssignmentInCondition:
|
|
Exclude:
|
|
- 'app/models/epp/contact.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'bin/spring'
|
|
- 'lib/tasks/convert.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith.
|
|
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
Lint/BlockAlignment:
|
|
Exclude:
|
|
- 'lib/tasks/convert.rake'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
|
|
# SupportedStylesAlignWith: start_of_line, def
|
|
Lint/DefEndAlignment:
|
|
Exclude:
|
|
- 'app/models/epp/domain.rb'
|
|
- 'db/migrate/20161004101419_adduuid_index_to_epp_logs.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
|
|
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
Lint/EndAlignment:
|
|
Exclude:
|
|
- 'app/jobs/update_whois_record_job.rb'
|
|
- 'app/models/contact.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/HandleExceptions:
|
|
Exclude:
|
|
- 'bin/rspec'
|
|
|
|
# Offense count: 1
|
|
Lint/ImplicitStringConcatenation:
|
|
Exclude:
|
|
- 'spec/models/contact_spec.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/NestedMethodDefinition:
|
|
Exclude:
|
|
- 'app/controllers/registrar/polls_controller.rb'
|
|
|
|
# Offense count: 2
|
|
Lint/NonLocalExitFromIterator:
|
|
Exclude:
|
|
- 'app/mailers/domain_mailer.rb'
|
|
- 'app/models/contact.rb'
|
|
|
|
# Offense count: 2
|
|
Lint/RandOne:
|
|
Exclude:
|
|
- 'lib/tasks/dev.rake'
|
|
|
|
# Offense count: 1
|
|
Lint/ShadowedException:
|
|
Exclude:
|
|
- 'app/mailers/contact_mailer.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Lint/StringConversionInInterpolation:
|
|
Exclude:
|
|
- 'app/controllers/admin/domain_versions_controller.rb'
|
|
- 'app/controllers/registrant/contacts_controller.rb'
|
|
- 'app/controllers/registrant/domains_controller.rb'
|
|
- 'app/models/domain_mail_model.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
Lint/UnusedBlockArgument:
|
|
Exclude:
|
|
- 'app/models/depp/domain.rb'
|
|
- 'lib/tasks/dev.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
|
Lint/UnusedMethodArgument:
|
|
Exclude:
|
|
- 'app/controllers/registrar/polls_controller.rb'
|
|
|
|
# Offense count: 6
|
|
Lint/UselessAssignment:
|
|
Exclude:
|
|
- 'app/controllers/epp/domains_controller.rb'
|
|
- 'lib/tasks/import.rake'
|
|
- 'spec/jobs/domain_update_confirm_job_spec.rb'
|
|
- 'spec/models/legal_document_spec.rb'
|
|
|
|
# Offense count: 104
|
|
Lint/Void:
|
|
Enabled: false
|
|
|
|
# Offense count: 155
|
|
Metrics/AbcSize:
|
|
Max: 155
|
|
|
|
# Offense count: 215
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
Metrics/BlockLength:
|
|
Max: 618
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: CountBlocks.
|
|
Metrics/BlockNesting:
|
|
Max: 4
|
|
|
|
# Offense count: 32
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ClassLength:
|
|
Max: 5794
|
|
|
|
# Offense count: 22
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 23
|
|
|
|
# Offense count: 1337
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 7122
|
|
|
|
# Offense count: 179
|
|
# Configuration parameters: CountComments.
|
|
Metrics/MethodLength:
|
|
Max: 5789
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CountKeywordArgs.
|
|
Metrics/ParameterLists:
|
|
Max: 6
|
|
|
|
# Offense count: 18
|
|
Metrics/PerceivedComplexity:
|
|
Max: 25
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Performance/Casecmp:
|
|
Exclude:
|
|
- 'app/models/epp/domain.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
Performance/RedundantMatch:
|
|
Exclude:
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/models/certificate.rb'
|
|
- 'lib/devise_custom_failure.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: MaxKeyValuePairs.
|
|
Performance/RedundantMerge:
|
|
Exclude:
|
|
- 'app/models/epp/contact.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Performance/Sample:
|
|
Exclude:
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Performance/StringReplacement:
|
|
Exclude:
|
|
- 'app/controllers/registrar/invoices_controller.rb'
|
|
- 'app/models/directo.rb'
|
|
- 'app/models/dnskey.rb'
|
|
|
|
# Offense count: 1
|
|
Security/MarshalLoad:
|
|
Exclude:
|
|
- 'app/models/epp_session.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
Style/Alias:
|
|
Exclude:
|
|
- 'app/models/blocked_domain.rb'
|
|
- 'app/models/reserved_domain.rb'
|
|
- 'config/initializers/autolabel.rb'
|
|
- 'config/initializers/relaxed_i18n.rb'
|
|
|
|
# Offense count: 32
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: always, conditionals
|
|
Style/AndOr:
|
|
Exclude:
|
|
- 'app/controllers/admin/domains_controller.rb'
|
|
- 'app/controllers/epp/domains_controller.rb'
|
|
- 'app/controllers/epp/keyrelays_controller.rb'
|
|
- 'app/controllers/epp/polls_controller.rb'
|
|
- 'app/controllers/epp/sessions_controller.rb'
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/controllers/registrar/base_controller.rb'
|
|
- 'app/controllers/registrar/dashboard_controller.rb'
|
|
- 'app/controllers/registrar/depp_controller.rb'
|
|
- 'app/controllers/registrar/domains_controller.rb'
|
|
- 'app/controllers/registrar/sessions_controller.rb'
|
|
- 'app/models/business_registry_cache.rb'
|
|
- 'app/models/domain_cron.rb'
|
|
- 'app/models/domain_mail_model.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
|
|
# Offense count: 2
|
|
Style/AsciiComments:
|
|
Exclude:
|
|
- 'app/validators/domain_name_validator.rb'
|
|
- 'config/initializers/money.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: percent_q, bare_percent
|
|
Style/BarePercentLiterals:
|
|
Exclude:
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/invoice.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/BlockComments:
|
|
Exclude:
|
|
- 'app/models/business_registry_cache.rb'
|
|
- 'app/models/soap/arireg.rb'
|
|
- 'spec/spec_helper.rb'
|
|
|
|
# Offense count: 83
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, 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:
|
|
Enabled: false
|
|
|
|
# Offense count: 72
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: braces, no_braces, context_dependent
|
|
Style/BracesAroundHashParameters:
|
|
Enabled: false
|
|
|
|
# Offense count: 54
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: nested, compact
|
|
Style/ClassAndModuleChildren:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: is_a?, kind_of?
|
|
Style/ClassCheck:
|
|
Exclude:
|
|
- 'app/views/epp/error.xml.builder'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/ColonMethodCall:
|
|
Exclude:
|
|
- 'app/controllers/admin/billing/prices_controller.rb'
|
|
- 'lib/validators/email_validator.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerBackticks.
|
|
# SupportedStyles: backticks, percent_x, mixed
|
|
Style/CommandLiteral:
|
|
Exclude:
|
|
- 'config/initializers/pdfkit.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Keywords.
|
|
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
|
Style/CommentAnnotation:
|
|
Exclude:
|
|
- 'app/models/contact.rb'
|
|
- 'app/views/epp/domains/info.xml.builder'
|
|
|
|
# Offense count: 467
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
Style/DoubleNegation:
|
|
Exclude:
|
|
- 'app/models/bank_link.rb'
|
|
- 'app/models/setting.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/EmptyLiteral:
|
|
Exclude:
|
|
- 'app/models/legal_document.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: compact, expanded
|
|
Style/EmptyMethod:
|
|
Exclude:
|
|
- 'app/controllers/admin/billing/prices_controller.rb'
|
|
- 'app/controllers/admin/contacts_controller.rb'
|
|
- 'app/controllers/admin/reserved_domains_controller.rb'
|
|
- 'app/controllers/registrant/sessions_controller.rb'
|
|
- 'app/controllers/registrar/invoices_controller.rb'
|
|
- 'app/controllers/registrar/xml_consoles_controller.rb'
|
|
- 'db/migrate/20151202123506_name_and_password_for_reserved_domain.rb'
|
|
- 'db/migrate/20160108135436_name_and_password_for_blocked_domain.rb'
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
Style/FileName:
|
|
Exclude:
|
|
- 'config/deploy-example.rb'
|
|
- 'config/environments/development-example.rb'
|
|
- 'config/environments/staging-example.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: format, sprintf, percent
|
|
Style/FormatString:
|
|
Exclude:
|
|
- 'app/models/bank_link.rb'
|
|
|
|
# Offense count: 13
|
|
# Configuration parameters: MinBodyLength.
|
|
Style/GuardClause:
|
|
Exclude:
|
|
- 'app/controllers/admin/account_activities_controller.rb'
|
|
- 'app/controllers/admin/epp_logs_controller.rb'
|
|
- 'app/controllers/admin/repp_logs_controller.rb'
|
|
- 'app/controllers/registrant/whois_controller.rb'
|
|
- 'app/models/bank_link.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/epp/contact.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'app/models/invoice.rb'
|
|
- 'app/models/keyrelay.rb'
|
|
- 'lib/validators/phone_validator.rb'
|
|
|
|
# Offense count: 40
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
Style/HashSyntax:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'app/models/bank_link.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'config/routes.rb'
|
|
- 'db/migrate/20140926081324_create_versions.rb'
|
|
- 'db/migrate/20140926082627_contact_and_version_archiving.rb'
|
|
- 'db/migrate/20140926121409_domain_related_archives.rb'
|
|
- 'db/migrate/20141015135255_create_settings.rb'
|
|
- 'db/migrate/20141111105931_create_delayed_jobs.rb'
|
|
- 'db/migrate/20141127091027_remove_defaults_from_disclosure.rb'
|
|
- 'db/migrate/20150122091556_create_version_associations.rb'
|
|
- 'db/migrate/20150611124920_add_que.rb'
|
|
- 'lib/tasks/convert.rake'
|
|
|
|
# Offense count: 8
|
|
Style/IdenticalConditionalBranches:
|
|
Exclude:
|
|
- 'app/controllers/admin/blocked_domains_controller.rb'
|
|
- 'app/controllers/admin/reserved_domains_controller.rb'
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: MaxLineLength.
|
|
Style/IfUnlessModifier:
|
|
Exclude:
|
|
- 'app/controllers/admin/account_activities_controller.rb'
|
|
- 'app/controllers/admin/billing/prices_controller.rb'
|
|
- 'app/models/invoice.rb'
|
|
- 'config/initializers/pdfkit.rb'
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 1
|
|
Style/IfUnlessModifierOfIfUnless:
|
|
Exclude:
|
|
- 'app/models/epp/domain.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: InverseMethods, InverseBlocks.
|
|
Style/InverseMethods:
|
|
Exclude:
|
|
- 'app/controllers/admin/domains_controller.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: line_count_dependent, lambda, literal
|
|
Style/Lambda:
|
|
Exclude:
|
|
- 'app/models/invoice.rb'
|
|
|
|
# Offense count: 17
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
|
Style/MethodDefParentheses:
|
|
Exclude:
|
|
- 'app/models/blocked_domain.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/counter.rb'
|
|
- 'app/models/directo.rb'
|
|
- 'app/models/epp/contact.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'app/models/nameserver.rb'
|
|
- 'app/models/reserved_domain.rb'
|
|
- 'config/initializers/array.rb'
|
|
|
|
# Offense count: 1
|
|
Style/MethodMissing:
|
|
Exclude:
|
|
- 'app/models/counter.rb'
|
|
|
|
# Offense count: 18
|
|
# Cop supports --auto-correct.
|
|
Style/MultilineIfModifier:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'app/controllers/admin/bank_statements_controller.rb'
|
|
- 'app/controllers/admin/billing/prices_controller.rb'
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/models/concerns/epp_errors.rb'
|
|
- 'app/models/depp/domain.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'app/views/epp/domains/info.xml.builder'
|
|
- 'app/views/epp/error.xml.builder'
|
|
- 'app/views/epp/poll/poll_req.xml.builder'
|
|
- 'config/schedule.rb'
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/MultilineIfThen:
|
|
Exclude:
|
|
- 'config/initializers/pdfkit.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: keyword, braces
|
|
Style/MultilineMemoization:
|
|
Exclude:
|
|
- 'app/models/bank_link.rb'
|
|
|
|
# Offense count: 102
|
|
# Cop supports --auto-correct.
|
|
Style/MutableConstant:
|
|
Enabled: false
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: both, prefix, postfix
|
|
Style/NegatedIf:
|
|
Exclude:
|
|
- 'app/controllers/admin/account_activities_controller.rb'
|
|
- 'app/controllers/admin/epp_logs_controller.rb'
|
|
- 'app/controllers/admin/repp_logs_controller.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/depp/domain.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'app/models/legal_document.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/NestedParenthesizedCalls:
|
|
Exclude:
|
|
- 'app/models/epp/domain.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
Style/Next:
|
|
Exclude:
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'app/models/domain_cron.rb'
|
|
- 'app/models/legal_document.rb'
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 15
|
|
# Cop supports --auto-correct.
|
|
Style/NilComparison:
|
|
Exclude:
|
|
- 'spec/models/contact_spec.rb'
|
|
- 'spec/models/domain_contact_spec.rb'
|
|
- 'spec/models/domain_spec.rb'
|
|
- 'spec/models/legal_document_spec.rb'
|
|
- 'spec/models/registrar_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
|
|
# SupportedOctalStyles: zero_with_o, zero_only
|
|
Style/NumericLiteralPrefix:
|
|
Exclude:
|
|
- 'app/models/legal_document.rb'
|
|
|
|
# Offense count: 40
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Strict.
|
|
Style/NumericLiterals:
|
|
MinDigits: 15
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NumericPredicate:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'app/controllers/admin/domains_controller.rb'
|
|
- 'app/controllers/epp/domains_controller.rb'
|
|
- 'app/controllers/registrar/domains_controller.rb'
|
|
- 'app/models/bank_statement.rb'
|
|
- 'app/models/domain_transfer.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'app/models/legal_document.rb'
|
|
- 'db/migrate/20150429135339_add_missing_data.rb'
|
|
- 'lib/tasks/convert.rake'
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
Style/ParallelAssignment:
|
|
Exclude:
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/controllers/registrant/sessions_controller.rb'
|
|
- 'app/models/bank_link.rb'
|
|
- 'app/models/nameserver.rb'
|
|
- 'app/validators/domain_nameserver_validator.rb'
|
|
- 'app/validators/object_count_validator.rb'
|
|
- 'lib/tasks/import.rake'
|
|
- 'spec/models/domain_cron_spec.rb'
|
|
- 'spec/models/domain_spec.rb'
|
|
|
|
# Offense count: 79
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredDelimiters.
|
|
Style/PercentLiteralDelimiters:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/PerlBackrefs:
|
|
Exclude:
|
|
- 'app/models/concerns/versions.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: short, verbose
|
|
Style/PreferredHashMethods:
|
|
Exclude:
|
|
- 'app/models/directo.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/Proc:
|
|
Exclude:
|
|
- 'app/models/billing/price.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: compact, exploded
|
|
Style/RaiseArgs:
|
|
Exclude:
|
|
- 'app/controllers/registrar/payments_controller.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantBegin:
|
|
Exclude:
|
|
- 'app/controllers/registrant/contacts_controller.rb'
|
|
- 'app/models/soap/arireg.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantParentheses:
|
|
Exclude:
|
|
- 'app/models/invoice.rb'
|
|
- 'lib/tasks/convert.rake'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
Style/RedundantReturn:
|
|
Exclude:
|
|
- 'app/models/keyrelay.rb'
|
|
- 'app/models/setting.rb'
|
|
|
|
# Offense count: 20
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantSelf:
|
|
Exclude:
|
|
- 'app/models/blocked_domain.rb'
|
|
- 'app/models/concerns/user_events.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/dnskey.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'app/models/reserved_domain.rb'
|
|
- 'app/models/user.rb'
|
|
- 'lib/ext/xml_builder.rb'
|
|
|
|
# Offense count: 15
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
|
# SupportedStyles: slashes, percent_r, mixed
|
|
Style/RegexpLiteral:
|
|
Exclude:
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/models/certificate.rb'
|
|
- 'app/models/registrant_user.rb'
|
|
- 'config/initializers/filter_parameter_logging.rb'
|
|
- 'config/routes.rb'
|
|
- 'db/data/20150601083516_add_cert_common_name.rb'
|
|
- 'db/data/20150601083800_add_cert_md5.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/RescueModifier:
|
|
Exclude:
|
|
- 'app/models/epp/contact.rb'
|
|
- 'app/models/legal_document.rb'
|
|
- 'app/models/whois_record.rb'
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowAsExpressionSeparator.
|
|
Style/Semicolon:
|
|
Exclude:
|
|
- 'app/controllers/registrant/whois_controller.rb'
|
|
- 'app/controllers/registrar/invoices_controller.rb'
|
|
- 'app/controllers/registrar/polls_controller.rb'
|
|
- 'app/models/domain.rb'
|
|
- 'spec/requests/admin/billing/prices/expire_spec.rb'
|
|
- 'spec/requests/epp/domain/renew/expire_time_spec.rb'
|
|
- 'spec/requests/epp/domain/renew/price_spec.rb'
|
|
- 'spec/requests/epp/domain/update/registrant_change/same_as_current_spec.rb'
|
|
- 'spec/requests/epp/domain/update/registrant_change/verified_spec.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: only_raise, only_fail, semantic
|
|
Style/SignalException:
|
|
Exclude:
|
|
- 'app/controllers/epp/contacts_controller.rb'
|
|
- 'app/controllers/epp/domains_controller.rb'
|
|
|
|
# Offense count: 1199
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiterals:
|
|
Enabled: false
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiteralsInInterpolation:
|
|
Exclude:
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/directo.rb'
|
|
|
|
# Offense count: 110
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinSize, SupportedStyles.
|
|
# SupportedStyles: percent, brackets
|
|
Style/SymbolArray:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
# IgnoredMethods: respond_to, define_method
|
|
Style/SymbolProc:
|
|
Exclude:
|
|
- 'lib/epp_constraint.rb'
|
|
- 'lib/tasks/dev.rake'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
Style/TernaryParentheses:
|
|
Exclude:
|
|
- 'app/controllers/epp/domains_controller.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInLiteral:
|
|
Exclude:
|
|
- 'app/controllers/epp/contacts_controller.rb'
|
|
- 'app/models/billing/price.rb'
|
|
- 'app/models/depp/contact.rb'
|
|
- 'app/models/depp/domain.rb'
|
|
- 'app/models/directo.rb'
|
|
- 'app/models/epp/domain.rb'
|
|
- 'app/presenters/domain_presenter.rb'
|
|
- 'lib/tasks/dev.rake'
|
|
- 'lib/tasks/import.rake'
|
|
- 'spec/models/billing/price_spec.rb'
|
|
- 'spec/presenters/domain_presenter_spec.rb'
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
Style/UnneededInterpolation:
|
|
Exclude:
|
|
- 'app/controllers/registrant/sessions_controller.rb'
|
|
- 'app/controllers/registrar/sessions_controller.rb'
|
|
- 'app/models/soap/arireg.rb'
|
|
- 'lib/epp_constraint.rb'
|
|
- 'spec/models/contact_spec.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Style/UnneededPercentQ:
|
|
Exclude:
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/invoice.rb'
|
|
|
|
# Offense count: 15
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: snake_case, camelCase
|
|
Style/VariableName:
|
|
Exclude:
|
|
- 'app/controllers/admin/contact_versions_controller.rb'
|
|
- 'app/controllers/admin/domain_versions_controller.rb'
|
|
- 'app/views/epp/contacts/info.xml.builder'
|
|
- 'app/views/epp/domains/info.xml.builder'
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
Style/VariableNumber:
|
|
Exclude:
|
|
- 'spec/models/contact_spec.rb'
|
|
- 'spec/models/nameserver_spec.rb'
|
|
|
|
# Offense count: 59
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, MinSize, WordRegex.
|
|
# SupportedStyles: percent, brackets
|
|
Style/WordArray:
|
|
Exclude:
|
|
- 'app/controllers/admin/account_activities_controller.rb'
|
|
- 'app/controllers/admin/epp_logs_controller.rb'
|
|
- 'app/controllers/admin/repp_logs_controller.rb'
|
|
- 'app/controllers/epp_controller.rb'
|
|
- 'app/models/contact.rb'
|
|
- 'app/models/depp/contact.rb'
|
|
- 'db/migrate/20150417082723_create_versions_for_billing.rb'
|
|
- 'db/migrate/20150603141549_add_decimal_type.rb'
|
|
- 'db/migrate/20150701074344_create_blocked_domains.rb'
|
|
- 'lib/sorted_country.rb'
|
|
- 'lib/tasks/import.rake'
|
|
- 'lib/tasks/statuses.rake'
|
|
- 'spec/models/concerns/domain/force_delete_spec.rb'
|
|
- 'spec/models/contact_spec.rb'
|
|
- 'spec/models/domain_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/YodaCondition:
|
|
Exclude:
|
|
- 'lib/tasks/import.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/ZeroLengthPredicate:
|
|
Exclude:
|
|
- 'app/controllers/epp/contacts_controller.rb'
|