Regenerate .rubocop_todo.yml

#569
This commit is contained in:
Artur Beljajev 2017-09-04 09:05:50 +03:00
parent 3de5a0b51b
commit c1248c0680

View file

@ -1,12 +1,12 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2017-08-23 18:09:30 +0300 using RuboCop version 0.49.1.
# on 2017-09-04 09:03:46 +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
# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/Gemfile, **/gems.rb
@ -38,7 +38,7 @@ Layout/AlignHash:
Exclude:
- 'app/models/soap/arireg.rb'
# Offense count: 16
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: with_first_parameter, with_fixed_indentation
@ -54,14 +54,15 @@ Layout/AlignParameters:
- 'app/models/registrar.rb'
- 'spec/models/domain_spec.rb'
# Offense count: 3
# Offense count: 4
# Cop supports --auto-correct.
Layout/BlockEndNewline:
Exclude:
- 'app/models/contact.rb'
- 'app/models/invoice.rb'
- 'spec/requests/epp/contact/info_spec.rb'
# Offense count: 34
# Offense count: 31
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
@ -114,13 +115,13 @@ Layout/EmptyLineAfterMagicComment:
- 'db/api_log_schema.rb'
- 'db/whois_schema.rb'
# Offense count: 26
# Offense count: 25
# Cop supports --auto-correct.
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
Enabled: false
# Offense count: 64
# Offense count: 63
# Cop supports --auto-correct.
Layout/EmptyLines:
Enabled: false
@ -140,7 +141,7 @@ Layout/EmptyLinesAroundAccessModifier:
Layout/EmptyLinesAroundBlockBody:
Enabled: false
# Offense count: 20
# Offense count: 19
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
@ -267,7 +268,7 @@ Layout/MultilineArrayBraceLayout:
- 'db/migrate/20150129144652_add_creator_and_updater.rb'
- 'db/migrate/20150130191056_add_session_id_to_log.rb'
# Offense count: 80
# Offense count: 90
# Cop supports --auto-correct.
Layout/MultilineBlockLayout:
Enabled: false
@ -281,12 +282,13 @@ Layout/MultilineHashBraceLayout:
- 'app/models/depp/domain.rb'
- 'app/models/epp/domain.rb'
# Offense count: 5
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineMethodCallBraceLayout:
Exclude:
- 'app/models/epp/contact.rb'
- 'app/presenters/domain_presenter.rb'
- 'spec/jobs/domain_delete_confirm_email_job_spec.rb'
- 'spec/jobs/domain_delete_forced_email_job_spec.rb'
@ -340,7 +342,7 @@ Layout/SpaceAroundBlockParameters:
Exclude:
- 'lib/tasks/convert.rake'
# Offense count: 300
# Offense count: 299
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Layout/SpaceAroundOperators:
@ -406,7 +408,7 @@ Layout/SpaceInsideBrackets:
- 'db/migrate/20140926121409_domain_related_archives.rb'
- 'db/migrate/20141015135255_create_settings.rb'
# Offense count: 64
# Offense count: 56
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
# SupportedStyles: space, no_space, compact
@ -419,7 +421,6 @@ Layout/SpaceInsideHashLiteralBraces:
- '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'
@ -461,11 +462,13 @@ Layout/TrailingBlankLines:
Layout/TrailingWhitespace:
Enabled: false
# Offense count: 18
# Offense count: 30
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/models/dns/zone_spec.rb'
- 'spec/requests/epp/contact/create/ident_spec.rb'
- 'spec/requests/epp/contact/delete/used_spec.rb'
- 'spec/requests/epp/contact/update/ident_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'
@ -515,11 +518,6 @@ Lint/HandleExceptions:
Exclude:
- 'bin/rspec'
# Offense count: 1
Lint/ImplicitStringConcatenation:
Exclude:
- 'spec/models/contact_spec.rb'
# Offense count: 1
Lint/NestedMethodDefinition:
Exclude:
@ -550,6 +548,25 @@ Lint/StringConversionInInterpolation:
- 'app/controllers/registrant/domains_controller.rb'
- 'app/models/domain_mail_model.rb'
# Offense count: 14
# Cop supports --auto-correct.
Lint/UnneededDisable:
Exclude:
- 'app/controllers/epp_controller.rb'
- 'app/models/account_activity.rb'
- 'app/models/certificate.rb'
- 'app/models/domain.rb'
- 'app/models/epp_session.rb'
- 'db/migrate/20141121093125_add_zonefile_procedure.rb'
- 'db/migrate/20141126140434_add_serial_to_zonefile_procedure.rb'
- 'db/migrate/20141202114457_remove_ttl_from_zonefile_ds.rb'
- 'db/migrate/20141203090115_fix_invalid_ips_in_zonefile_prodecure.rb'
- 'db/migrate/20141211095604_glue_records_fix_in_zonefile_procedure.rb'
- 'db/migrate/20141215085117_remove_ns_caching.rb'
- 'db/migrate/20151125155601_restore_ttl_to_zonefile.rb'
- 'db/migrate/20151127091716_restore_ttl_to_zonefile2.rb'
- 'lib/tasks/import.rake'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
@ -577,36 +594,31 @@ Lint/UselessAssignment:
Lint/Void:
Enabled: false
# Offense count: 155
# Offense count: 156
Metrics/AbcSize:
Max: 155
# Offense count: 215
# Offense count: 228
# 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
# Offense count: 21
Metrics/CyclomaticComplexity:
Max: 23
Max: 14
# Offense count: 1337
# Offense count: 1356
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 7122
# Offense count: 179
# Offense count: 181
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 5789
@ -616,9 +628,9 @@ Metrics/MethodLength:
Metrics/ParameterLists:
Max: 6
# Offense count: 18
# Offense count: 17
Metrics/PerceivedComplexity:
Max: 25
Max: 19
# Offense count: 2
# Cop supports --auto-correct.
@ -634,13 +646,6 @@ Performance/RedundantMatch:
- '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:
@ -716,7 +721,7 @@ Style/BlockComments:
- 'app/models/soap/arireg.rb'
- 'spec/spec_helper.rb'
# Offense count: 83
# Offense count: 92
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining
@ -726,14 +731,14 @@ Style/BlockComments:
Style/BlockDelimiters:
Enabled: false
# Offense count: 72
# Offense count: 71
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: braces, no_braces, context_dependent
Style/BracesAroundHashParameters:
Enabled: false
# Offense count: 54
# Offense count: 55
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
@ -771,7 +776,22 @@ Style/CommentAnnotation:
- 'app/models/contact.rb'
- 'app/views/epp/domains/info.xml.builder'
# Offense count: 467
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'app/controllers/admin/contact_versions_controller.rb'
- 'app/controllers/epp_controller.rb'
- 'app/models/depp/user.rb'
- 'app/models/dnskey.rb'
- 'app/models/epp/contact.rb'
- 'app/models/epp/domain.rb'
- 'app/models/invoice.rb'
- 'app/models/legal_document.rb'
# Offense count: 472
Style/Documentation:
Enabled: false
@ -819,7 +839,7 @@ Style/FormatString:
Exclude:
- 'app/models/bank_link.rb'
# Offense count: 13
# Offense count: 15
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
@ -833,6 +853,8 @@ Style/GuardClause:
- 'app/models/epp/domain.rb'
- 'app/models/invoice.rb'
- 'app/models/keyrelay.rb'
- 'app/validators/contact/ident/code_validator.rb'
- 'lib/validators/iso8601_validator.rb'
- 'lib/validators/phone_validator.rb'
# Offense count: 40
@ -878,13 +900,12 @@ Style/IfUnlessModifierOfIfUnless:
Exclude:
- 'app/models/epp/domain.rb'
# Offense count: 5
# Offense count: 4
# 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'
@ -953,7 +974,7 @@ Style/MultilineMemoization:
Style/MutableConstant:
Enabled: false
# Offense count: 7
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: both, prefix, postfix
@ -962,7 +983,6 @@ Style/NegatedIf:
- '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'
@ -1041,7 +1061,7 @@ Style/ParallelAssignment:
- 'spec/models/domain_cron_spec.rb'
- 'spec/models/domain_spec.rb'
# Offense count: 79
# Offense count: 77
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
@ -1061,19 +1081,19 @@ Style/PreferredHashMethods:
Exclude:
- 'app/models/directo.rb'
# Offense count: 2
# Offense count: 3
# Cop supports --auto-correct.
Style/Proc:
Exclude:
- 'app/models/billing/price.rb'
- 'app/models/contact.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: SupportedStyles.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Exclude:
- 'app/controllers/registrar/payments_controller.rb'
EnforcedStyle: compact
# Offense count: 2
# Cop supports --auto-correct.
@ -1097,7 +1117,7 @@ Style/RedundantReturn:
- 'app/models/keyrelay.rb'
- 'app/models/setting.rb'
# Offense count: 20
# Offense count: 21
# Cop supports --auto-correct.
Style/RedundantSelf:
Exclude:
@ -1107,6 +1127,7 @@ Style/RedundantSelf:
- 'app/models/dnskey.rb'
- 'app/models/domain.rb'
- 'app/models/epp/domain.rb'
- 'app/models/epp/response.rb'
- 'app/models/reserved_domain.rb'
- 'app/models/user.rb'
- 'lib/ext/xml_builder.rb'
@ -1126,15 +1147,14 @@ Style/RegexpLiteral:
- 'db/data/20150601083516_add_cert_common_name.rb'
- 'db/data/20150601083800_add_cert_md5.rb'
# Offense count: 3
# Offense count: 2
# 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
# Offense count: 23
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
@ -1144,6 +1164,7 @@ Style/Semicolon:
- 'app/controllers/registrar/polls_controller.rb'
- 'app/models/domain.rb'
- 'spec/requests/admin/billing/prices/expire_spec.rb'
- 'spec/requests/epp/contact/update/ident_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'
@ -1158,23 +1179,22 @@ Style/SignalException:
- 'app/controllers/epp/contacts_controller.rb'
- 'app/controllers/epp/domains_controller.rb'
# Offense count: 1199
# Offense count: 1195
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 4
# Offense count: 3
# 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
# Offense count: 112
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinSize, SupportedStyles.
# SupportedStyles: percent, brackets
@ -1199,23 +1219,12 @@ Style/TernaryParentheses:
- 'app/controllers/epp/domains_controller.rb'
- 'app/models/epp/domain.rb'
# Offense count: 14
# Offense count: 19
# 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'
Enabled: false
# Offense count: 9
# Cop supports --auto-correct.