lynndylanhurley/devise_token_auth

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 100`
# on 2018-04-09 16:05:53 -0700 using RuboCop version 0.54.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/OrderedGems:
  Exclude:
    - 'gemfiles/rails_4_2.gemfile'
    - 'gemfiles/rails_5_0.gemfile'
    - 'gemfiles/rails_5_1.gemfile'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
  Exclude:
    - 'devise_token_auth.gemspec'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user.rb'

# Offense count: 1
# Cop supports --auto-correct.
Layout/EmptyLinesAroundAccessModifier:
  Exclude:
    - 'app/controllers/devise_token_auth/unlocks_controller.rb'

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Layout/EmptyLinesAroundBlockBody:
  Exclude:
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'test/controllers/demo_user_controller_test.rb'
    - 'test/controllers/devise_token_auth/passwords_controller_test.rb'
    - 'test/dummy/db/schema.rb'

# Offense count: 5
# Cop supports --auto-correct.
Layout/EmptyLinesAroundMethodBody:
  Exclude:
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'
    - 'test/dummy/app/models/user.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
Layout/EmptyLinesAroundModuleBody:
  Exclude:
    - 'lib/devise_token_auth/url.rb'

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Layout/ExtraSpacing:
  Exclude:
    - 'Guardfile'
    - 'test/dummy/bin/rails'
    - 'test/dummy/config.ru'
    - 'test/dummy/config/environments/test.rb'
    - 'test/dummy/config/initializers/omniauth.rb'
    - 'test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: Width, IgnoredPatterns.
Layout/IndentationWidth:
  Exclude:
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'
    - 'app/controllers/devise_token_auth/sessions_controller.rb'

# Offense count: 19
# Cop supports --auto-correct.
Layout/LeadingCommentSpace:
  Exclude:
    - 'app/controllers/devise_token_auth/unlocks_controller.rb'
    - 'test/dummy/config/initializers/devise_token_auth.rb'
    - 'test/dummy/config/initializers/figaro.rb'
    - 'test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb'

# Offense count: 3
# Cop supports --auto-correct.
Layout/MultilineBlockLayout:
  Exclude:
    - 'lib/generators/devise_token_auth/install_generator.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
  Exclude:
    - 'test/controllers/devise_token_auth/sessions_controller_test.rb'

# Offense count: 1
# Cop supports --auto-correct.
Layout/SpaceAfterColon:
  Exclude:
    - 'app/controllers/devise_token_auth/sessions_controller.rb'

# Offense count: 6
# Cop supports --auto-correct.
Layout/SpaceAfterComma:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb'
    - 'lib/devise_token_auth/url.rb'
    - 'lib/generators/devise_token_auth/install_generator.rb'
    - 'test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Layout/SpaceAroundOperators:
  Exclude:
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'test/dummy/app/models/user.rb'
    - 'test/dummy/config/environments/test.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceBeforeBlockBraces:
  Exclude:
    - 'lib/devise_token_auth/rails/routes.rb'
    - 'test/dummy/app/models/user.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideArrayLiteralBrackets:
  Exclude:
    - 'config/initializers/devise.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingBlankLines:
  Exclude:
    - 'app/validators/email_validator.rb'
    - 'test/dummy/config/initializers/cookies_serializer.rb'
    - 'test/dummy/lib/migration_database_helper.rb'
    - 'test/integration/navigation_test.rb'

# Offense count: 1
Lint/AmbiguousBlockAssociation:
  Exclude:
    - 'test/models/user_test.rb'

# Offense count: 1
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
  Exclude:
    - 'test/dummy/bin/spring'

# Offense count: 1
Lint/DuplicateMethods:
  Exclude:
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'

# Offense count: 2
Lint/HandleExceptions:
  Exclude:
    - 'test/dummy/bin/rails'
    - 'test/dummy/bin/rake'

# Offense count: 1
Lint/IneffectiveAccessModifier:
  Exclude:
    - 'lib/generators/devise_token_auth/install_generator.rb'

# Offense count: 2
# Cop supports --auto-correct.
Lint/StringConversionInInterpolation:
  Exclude:
    - 'app/controllers/devise_token_auth/concerns/resource_finder.rb'

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user.rb'
    - 'test/controllers/demo_user_controller_test.rb'
    - 'test/controllers/devise_token_auth/sessions_controller_test.rb'
    - 'test/dummy/app/controllers/custom/registrations_controller.rb'
    - 'test/dummy/config/initializers/omniauth.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument:
  Exclude:
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'
    - 'app/controllers/devise_token_auth/unlocks_controller.rb'
    - 'lib/devise_token_auth/engine.rb'
    - 'lib/generators/devise_token_auth/install_generator.rb'

# Offense count: 3
Lint/UriEscapeUnescape:
  Exclude:
    - 'test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb'
    - 'test/controllers/devise_token_auth/registrations_controller_test.rb'
    - 'test/controllers/overrides/confirmations_controller_test.rb'

# Offense count: 35
Metrics/AbcSize:
  Max: 76

# Offense count: 1
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user.rb'

# Offense count: 15
# Configuration parameters: CountComments.
Metrics/ClassLength:
  Max: 698

# Offense count: 14
Metrics/CyclomaticComplexity:
  Max: 17

# Offense count: 92
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
  Exclude:
    - 'app/controllers/devise_token_auth/application_controller.rb'
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'
    - 'app/controllers/devise_token_auth/passwords_controller.rb'
    - 'app/controllers/devise_token_auth/registrations_controller.rb'
    - 'app/controllers/devise_token_auth/sessions_controller.rb'
    - 'app/controllers/devise_token_auth/unlocks_controller.rb'
    - 'app/models/devise_token_auth/concerns/user.rb'
    - 'app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb'
    - 'app/validators/email_validator.rb'
    - 'lib/devise_token_auth/engine.rb'
    - 'lib/devise_token_auth/rails/routes.rb'
    - 'lib/generators/devise_token_auth/install_generator.rb'

# Offense count: 35
# Configuration parameters: CountComments.
Metrics/MethodLength:
  Max: 63

# Offense count: 2
# Configuration parameters: CountComments.
Metrics/ModuleLength:
  Max: 1037

# Offense count: 13
Metrics/PerceivedComplexity:
  Max: 19

# Offense count: 5
Naming/AccessorMethodName:
  Exclude:
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'
    - 'app/controllers/devise_token_auth/sessions_controller.rb'
    - 'lib/devise_token_auth/rails/routes.rb'
    - 'test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb'

# Offense count: 2
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
  Exclude:
    - 'spec/**/*'
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'lib/generators/devise_token_auth/install_generator.rb'

# Offense count: 2
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to
Naming/UncommunicativeMethodParamName:
  Exclude:
    - 'app/controllers/devise_token_auth/application_controller.rb'
    - 'app/controllers/devise_token_auth/concerns/resource_finder.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: MaxKeyValuePairs.
Performance/RedundantMerge:
  Exclude:
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'

# Offense count: 1
# Cop supports --auto-correct.
Performance/RegexpMatch:
  Exclude:
    - 'app/validators/email_validator.rb'

# Offense count: 4
# Cop supports --auto-correct.
Performance/StringReplacement:
  Exclude:
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'
    - 'lib/devise_token_auth/rails/routes.rb'
    - 'test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
  Exclude:
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/ColonMethodCall:
  Exclude:
    - 'lib/devise_token_auth/engine.rb'
    - 'lib/devise_token_auth/rails/routes.rb'

# Offense count: 3
Style/CommentedKeyword:
  Exclude:
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'test/controllers/demo_user_controller_test.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
  Exclude:
    - 'app/controllers/devise_token_auth/application_controller.rb'
    - 'app/controllers/devise_token_auth/concerns/resource_finder.rb'
    - 'app/controllers/devise_token_auth/registrations_controller.rb'

# Offense count: 2
Style/DateTime:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user.rb'

# Offense count: 24
Style/Documentation:
  Exclude:
    - 'spec/**/*'
    - 'test/**/*'
    - 'app/controllers/devise_token_auth/application_controller.rb'
    - 'app/controllers/devise_token_auth/concerns/resource_finder.rb'
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'app/controllers/devise_token_auth/confirmations_controller.rb'
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'
    - 'app/controllers/devise_token_auth/passwords_controller.rb'
    - 'app/controllers/devise_token_auth/registrations_controller.rb'
    - 'app/controllers/devise_token_auth/sessions_controller.rb'
    - 'app/controllers/devise_token_auth/token_validations_controller.rb'
    - 'app/controllers/devise_token_auth/unlocks_controller.rb'
    - 'app/models/devise_token_auth/concerns/user.rb'
    - 'app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb'
    - 'app/validators/email_validator.rb'
    - 'lib/devise_token_auth.rb'
    - 'lib/devise_token_auth/controllers/helpers.rb'
    - 'lib/devise_token_auth/controllers/url_helpers.rb'
    - 'lib/devise_token_auth/engine.rb'
    - 'lib/devise_token_auth/rails/routes.rb'
    - 'lib/devise_token_auth/url.rb'
    - 'lib/generators/devise_token_auth/install_generator.rb'
    - 'lib/generators/devise_token_auth/install_views_generator.rb'

# Offense count: 3
Style/DoubleNegation:
  Exclude:
    - 'lib/devise_token_auth/url.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/EachWithObject:
  Exclude:
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
  Exclude:
    - 'lib/devise_token_auth/controllers/url_helpers.rb'

# Offense count: 13
# Configuration parameters: MinBodyLength.
Style/GuardClause:
  Exclude:
    - 'app/controllers/devise_token_auth/confirmations_controller.rb'
    - 'app/controllers/devise_token_auth/passwords_controller.rb'
    - 'app/controllers/devise_token_auth/unlocks_controller.rb'
    - 'app/models/devise_token_auth/concerns/user.rb'
    - 'app/validators/email_validator.rb'
    - 'test/dummy/app/controllers/overrides/confirmations_controller.rb'
    - 'test/dummy/app/controllers/overrides/passwords_controller.rb'
    - 'test/dummy/app/models/user.rb'
    - 'test/test_helper.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/MethodCallWithoutArgsParentheses:
  Exclude:
    - 'test/models/user_test.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
Style/MethodDefParentheses:
  Exclude:
    - 'app/controllers/devise_token_auth/passwords_controller.rb'
    - 'app/controllers/devise_token_auth/registrations_controller.rb'

# Offense count: 9
Style/MixinUsage:
  Exclude:
    - 'test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb'
    - 'test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb'
    - 'test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb'
    - 'test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb'
    - 'test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb'
    - 'test/dummy/db/migrate/20150409095712_devise_token_auth_create_nice_users.rb'
    - 'test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb'
    - 'test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb'
    - 'test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineIfModifier:
  Exclude:
    - 'app/controllers/devise_token_auth/application_controller.rb'

# Offense count: 2
Style/MultilineTernaryOperator:
  Exclude:
    - 'test/dummy/config/environments/test.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength.
# SupportedStyles: skip_modifier_ifs, always
Style/Next:
  Exclude:
    - 'app/controllers/devise_token_auth/sessions_controller.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/Not:
  Exclude:
    - 'test/dummy/app/controllers/overrides/sessions_controller.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: Strict.
Style/NumericLiterals:
  MinDigits: 15

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
  Exclude:
    - 'spec/**/*'
    - 'app/controllers/devise_token_auth/confirmations_controller.rb'
    - 'test/dummy/app/models/user.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowSafeAssignment.
Style/ParenthesesAroundCondition:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user.rb'
    - 'lib/devise_token_auth/url.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/RescueModifier:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user.rb'

# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
# Whitelist: present?, blank?, presence, try
Style/SafeNavigation:
  Exclude:
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'app/controllers/devise_token_auth/confirmations_controller.rb'
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'
    - 'app/controllers/devise_token_auth/passwords_controller.rb'
    - 'app/controllers/devise_token_auth/unlocks_controller.rb'
    - 'app/models/devise_token_auth/concerns/user.rb'
    - 'lib/devise_token_auth/engine.rb'
    - 'test/dummy/app/controllers/overrides/confirmations_controller.rb'
    - 'test/dummy/app/controllers/overrides/passwords_controller.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
  Exclude:
    - 'devise_token_auth.gemspec'

# Offense count: 7
# Cop supports --auto-correct.
Style/SymbolLiteral:
  Exclude:
    - 'app/controllers/devise_token_auth/application_controller.rb'
    - 'app/controllers/devise_token_auth/concerns/set_user_by_token.rb'
    - 'app/models/devise_token_auth/concerns/user.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
# IgnoredMethods: respond_to, define_method
Style/SymbolProc:
  Exclude:
    - 'app/models/devise_token_auth/concerns/user.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
  Exclude:
    - 'lib/generators/devise_token_auth/install_generator.rb'
    - 'test/lib/generators/devise_token_auth/install_generator_test.rb'
    - 'test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowNamedUnderscoreVariables.
Style/TrailingUnderscoreVariable:
  Exclude:
    - 'test/controllers/devise_token_auth/sessions_controller_test.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/UnneededPercentQ:
  Exclude:
    - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'