1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/.rubocop_todo.yml

322 lines
7.4 KiB
YAML
Raw Normal View History

# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-02-24 19:58:43 +0200 using RuboCop version 0.65.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'pry.gemspec'
# Offense count: 3
Lint/Debugger:
Exclude:
- 'spec/commands/play_spec.rb'
- 'spec/pry_spec.rb'
# Offense count: 2
Lint/EmptyWhen:
Exclude:
- 'lib/pry/input_completer.rb'
# Offense count: 6
Lint/HandleExceptions:
Exclude:
- 'lib/pry/command.rb'
- 'lib/pry/commands/find_method.rb'
- 'lib/pry/commands/gist.rb'
- 'lib/pry/pager.rb'
- 'lib/pry/terminal.rb'
# Offense count: 16
Lint/InterpolationCheck:
Exclude:
- 'spec/command_integration_spec.rb'
- 'spec/command_set_spec.rb'
- 'spec/command_spec.rb'
- 'spec/commands/amend_line_spec.rb'
- 'spec/commands/edit_spec.rb'
- 'spec/pry_spec.rb'
# Offense count: 1
Lint/Loop:
Exclude:
- 'lib/pry/object_path.rb'
# Offense count: 1
Lint/RescueException:
Exclude:
- 'lib/pry/color_printer.rb'
# Offense count: 1
Lint/ReturnInVoidContext:
Exclude:
- 'lib/pry/command_set.rb'
# Offense count: 1
Lint/ShadowedException:
Exclude:
- 'lib/pry/method.rb'
# Offense count: 33
Lint/UnderscorePrefixedVariableName:
Enabled: false
# Offense count: 1
Lint/UselessAssignment:
Exclude:
- 'lib/pry/pry_instance.rb'
# Offense count: 1
# Configuration parameters: CheckForMethodsWithNoSideEffects.
Lint/Void:
Exclude:
- 'lib/pry/helpers/table.rb'
# Offense count: 103
Metrics/AbcSize:
Max: 48
# Offense count: 178
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 760
# Offense count: 1
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 4
# Offense count: 19
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 333
# Offense count: 31
Metrics/CyclomaticComplexity:
Max: 32
# Offense count: 116
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 132
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
# Offense count: 28
Metrics/PerceivedComplexity:
Max: 25
# Offense count: 1
Naming/AccessorMethodName:
Exclude:
- 'lib/pry/method/weird_method_locator.rb'
# Offense count: 1
Naming/BinaryOperatorParameterName:
Exclude:
- 'lib/pry/method.rb'
# Offense count: 6
Naming/ConstantName:
Exclude:
- 'lib/pry/input_completer.rb'
- 'spec/completion_spec.rb'
# Offense count: 2
# Configuration parameters: EnforcedStyle.
# SupportedStyles: lowercase, uppercase
Naming/HeredocDelimiterCase:
Exclude:
- 'spec/helpers/table_spec.rb'
# Offense count: 16
# Configuration parameters: Blacklist.
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'lib/pry/commands/easter_eggs.rb'
- 'lib/pry/commands/stat.rb'
- 'lib/pry/core_extensions.rb'
- 'lib/pry/pry_class.rb'
- 'spec/command_spec.rb'
- 'spec/commands/cat_spec.rb'
- 'spec/commands/edit_spec.rb'
- 'spec/commands/show_source_spec.rb'
- 'spec/commands/whereami_spec.rb'
- 'spec/helpers/table_spec.rb'
- 'spec/pry_repl_spec.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/pry/wrapped_module/candidate.rb'
# Offense count: 26
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Naming/UncommunicativeMethodParamName:
Enabled: false
# Offense count: 10
Security/Eval:
Exclude:
- 'Rakefile'
- 'lib/pry/cli.rb'
- 'lib/pry/commands/show_info.rb'
- 'lib/pry/input_completer.rb'
- 'spec/indent_spec.rb'
- 'spec/wrapped_module_spec.rb'
2018-11-04 04:42:51 -05:00
# Offense count: 11
# Configuration parameters: EnforcedStyle.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
Exclude:
- 'lib/pry/command.rb'
- 'lib/pry/forwardable.rb'
- 'lib/pry/helpers/base_helpers.rb'
- 'lib/pry/pry_instance.rb'
- 'spec/editor_spec.rb'
- 'spec/helper.rb'
- 'spec/method/patcher_spec.rb'
# Offense count: 2
# Configuration parameters: AllowedChars.
Style/AsciiComments:
Exclude:
- 'lib/pry/pry_instance.rb'
- 'lib/pry/terminal.rb'
# Offense count: 39
Style/CaseEquality:
Enabled: false
# Offense count: 1
Style/ClassVars:
Exclude:
- 'lib/pry/method/patcher.rb'
# Offense count: 27
Style/CommentedKeyword:
Exclude:
- 'spec/fixtures/example_nesting.rb'
# Offense count: 154
Style/Documentation:
Enabled: false
# Offense count: 11
Style/DoubleNegation:
Exclude:
- 'lib/pry/code.rb'
- 'lib/pry/command_set.rb'
- 'lib/pry/commands/gist.rb'
- 'lib/pry/commands/whereami.rb'
- 'lib/pry/method.rb'
- 'lib/pry/method/weird_method_locator.rb'
- 'lib/pry/pager.rb'
- 'lib/pry/slop/option.rb'
- 'lib/pry/wrapped_module.rb'
# Offense count: 27
Style/EvalWithLocation:
Exclude:
- 'lib/pry/core_extensions.rb'
- 'lib/pry/input_completer.rb'
- 'spec/commands/edit_spec.rb'
- 'spec/commands/watch_expression_spec.rb'
- 'spec/method_spec.rb'
2018-11-04 04:42:51 -05:00
# Offense count: 9
# Configuration parameters: EnforcedStyle.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
Exclude:
- 'lib/pry/commands/gem_stats.rb'
- 'lib/pry/commands/ls/local_vars.rb'
- 'lib/pry/config/behavior.rb'
- 'lib/pry/pry_class.rb'
# Offense count: 2
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'spec/commands/edit_spec.rb'
# Offense count: 37
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# Offense count: 2
Style/IdenticalConditionalBranches:
Exclude:
- 'lib/pry/slop/commands.rb'
# Offense count: 5
Style/IfInsideElse:
Exclude:
- 'lib/pry/commands/edit.rb'
- 'lib/pry/pry_class.rb'
- 'lib/pry/repl.rb'
- 'lib/pry/slop/commands.rb'
- 'lib/pry/slop/option.rb'
# Offense count: 7
Style/MethodMissingSuper:
Exclude:
- 'lib/pry/code.rb'
- 'lib/pry/config/behavior.rb'
- 'lib/pry/method.rb'
- 'lib/pry/method/disowned.rb'
- 'lib/pry/output.rb'
- 'lib/pry/plugins.rb'
- 'lib/pry/wrapped_module.rb'
# Offense count: 4
Style/MissingRespondToMissing:
Exclude:
- 'lib/pry/method.rb'
- 'lib/pry/method/disowned.rb'
- 'lib/pry/plugins.rb'
- 'lib/pry/wrapped_module.rb'
# Offense count: 8
Style/MultilineBlockChain:
Exclude:
- 'lib/pry/command_set.rb'
- 'lib/pry/commands/ls/local_vars.rb'
- 'spec/cli_spec.rb'
# Offense count: 2
Style/MultipleComparison:
Exclude:
- 'lib/pry/indent.rb'
# Offense count: 10
# Cop supports --auto-correct.
Style/PerlBackrefs:
Exclude:
- 'lib/pry/input_completer.rb'
- 'lib/pry/last_exception.rb'
- 'lib/pry/method.rb'
- 'lib/pry/rubygem.rb'
# Offense count: 869
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 205