diff --git a/.rubocop.yml b/.rubocop.yml index d9e50b9a2..cc32da4b9 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,124 +1 @@ -AllCops: - Exclude: - - 'Guardfile' - # stuff generated by AR and rails - - 'config/deploy-example.rb' - - 'config/environments/development-example.rb' - - 'config/environments/staging-example.rb' - - 'db/schema.rb' - - 'db/schema-read-only.rb' - - 'db/whois_schema.rb' - - 'db/api_log_schema.rb' - - 'db/migrate/*' - - 'db/data/*' - # epp support files until 'complexity issues' will be solved - - 'spec/support/epp.rb' - - 'spec/support/epp_contact_xml_builder.rb' - - 'vendor/bundle/**/*' - - 'lib/tasks/import.rake' - -Metrics/LineLength: - Max: 120 # default 80 - -Metrics/MethodLength: - Max: 25 # default 10 - -Metrics/ClassLength: - Max: 300 - -Documentation: - Enabled: false - -Style/Semicolon: - AllowAsExpressionSeparator: true - -Style/AndOr: - Enabled: false - -Style/BracesAroundHashParameters: - Enabled: false - -Style/IndentHash: - Enabled: false - -# no need to worry about it -Style/StringLiterals: - Enabled: false - -# a bit too annoying requirement, no big drawback yet dedected -Style/TrailingWhitespace: - Enabled: false - -# a bit too annoying requirement, no big drawback yet dedected -Style/TrailingBlankLines: - Enabled: false - -# allow == operator used in void context in specs -Void: - Exclude: - - 'spec/**/*' - -# allow should == nil in spec -Style/NilComparison: - Exclude: - - 'spec/**/*' - -# let's save space in spec -Style/AlignHash: - Exclude: - - 'spec/**/*' - -# No need to force reduce to use |a, e| as parameters. -# Configuration parameters: Methods. -Style/SingleLineBlockParams: - Enabled: false - -# allow prefix for models and controllers, -# otherwise we have to intent all body 4 spaces -Style/ClassAndModuleChildren: - Enabled: false - -# Allow to use Estonian terms/data in comments -Style/AsciiComments: - Enabled: false - -# turn off comment intention check during development -# because NerdCommenter honors commented code intentions -Style/CommentIndentation: - Enabled: false - -# It did not alayws suggested good format -Style/AlignParameters: - Enabled: false - -# No need fancy style of numbers such as 1_000_000 -Style/NumericLiterals: - Enabled: false - -# Too often suggest wrong syntax in subarray, this should be fix in rubocop first -Style/WordArray: - Enabled: false - -# Ok to use parallel assigment such as: var1, var2 = [], [] -Style/ParallelAssignment: - Enabled: false - -# not working perfectly or not important enough to care -Style/EmptyLinesAroundBlockBody: - Enabled: false - -# The ABC size is a calculated magnitude, so this number can be a Fixnum or a Float. -Metrics/AbcSize: - Max: 35 - -# Very strange intention requirement, disabled for now -Style/FirstParameterIndentation: - Enabled: false - -# old school regex // works fine -Style/RegexpLiteral: - Enabled: false - -# annoying to maintain, small thing, no real problem -Style/SpaceInsideHashLiteralBraces: - Enabled: false +inherit_from: .rubocop_todo.yml diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 000000000..a9c491df9 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,1287 @@ +# 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' diff --git a/Gemfile b/Gemfile index 267f7b43c..1ca54b6f4 100644 --- a/Gemfile +++ b/Gemfile @@ -110,13 +110,10 @@ gem 'pdfkit', '0.6.2' # for datepicker gem 'jquery-ui-rails', '5.0.5' -# codeclimate - - group :development do gem 'spring' gem 'spring-commands-rspec' - gem 'rubocop', '0.48.1' + gem 'rubocop' # deploy gem 'mina', '0.3.1' # for fast deployment diff --git a/Gemfile.lock b/Gemfile.lock index f1e98d929..3c91065a5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -290,6 +290,7 @@ GEM nprogress-rails (0.1.6.7) open4 (1.3.4) orm_adapter (0.5.0) + parallel (1.12.0) parser (2.4.0.0) ast (~> 2.2) pdfkit (0.6.2) @@ -351,7 +352,8 @@ GEM activesupport (= 4.2.7.1) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) - rainbow (2.2.1) + rainbow (2.2.2) + rake rake (12.0.0) ransack (1.5.1) actionpack (>= 3.0) @@ -389,7 +391,8 @@ GEM rspec-mocks (~> 3.6.0) rspec-support (~> 3.6.0) rspec-support (3.6.0) - rubocop (0.48.1) + rubocop (0.49.1) + parallel (~> 1.10) parser (>= 2.3.3.1, < 3.0) powerpack (~> 0.1) rainbow (>= 1.99.1, < 3.0) @@ -463,7 +466,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.7.2) - unicode-display_width (1.2.0) + unicode-display_width (1.3.0) unicode_utils (1.4.0) uniform_notifier (1.9.0) uuidtools (2.1.5) @@ -556,7 +559,7 @@ DEPENDENCIES ransack (= 1.5.1) rest-client rspec-rails (~> 3.6) - rubocop (= 0.48.1) + rubocop sass-rails (= 5.0.6) sdoc (= 0.4.1) select2-rails (= 3.5.9.3)