mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: regenerate rubocop_todo.yml
This commit is contained in:
parent
9de44365d6
commit
14b2a8d0fa
1 changed files with 44 additions and 127 deletions
|
@ -1,6 +1,6 @@
|
||||||
# This configuration was generated by
|
# This configuration was generated by
|
||||||
# `rubocop --auto-gen-config`
|
# `rubocop --auto-gen-config`
|
||||||
# on 2018-10-06 19:38:37 +0800 using RuboCop version 0.59.2.
|
# on 2018-11-04 17:42:27 +0800 using RuboCop version 0.59.2.
|
||||||
# The point is for the user to remove these configuration records
|
# The point is for the user to remove these configuration records
|
||||||
# one by one as the offenses are removed from the code base.
|
# one by one as the offenses are removed from the code base.
|
||||||
# Note that changes in the inspected code, or installation of new
|
# Note that changes in the inspected code, or installation of new
|
||||||
|
@ -14,14 +14,6 @@ Bundler/InsecureProtocolSource:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/fixtures/Gemfile'
|
- 'spec/fixtures/Gemfile'
|
||||||
|
|
||||||
# Offense count: 4
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
|
||||||
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
||||||
Bundler/OrderedGems:
|
|
||||||
Exclude:
|
|
||||||
- 'Gemfile'
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Configuration parameters: Include.
|
# Configuration parameters: Include.
|
||||||
# Include: **/*.gemspec
|
# Include: **/*.gemspec
|
||||||
|
@ -29,18 +21,15 @@ Gemspec/RequiredRubyVersion:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'pry.gemspec'
|
- 'pry.gemspec'
|
||||||
|
|
||||||
# Offense count: 8
|
# Offense count: 5
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: outdent, indent
|
# SupportedStyles: outdent, indent
|
||||||
Layout/AccessModifierIndentation:
|
Layout/AccessModifierIndentation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/commands/change_inspector.rb'
|
- 'lib/pry/commands/change_inspector.rb'
|
||||||
- 'lib/pry/commands/change_prompt.rb'
|
|
||||||
- 'lib/pry/commands/gem_search.rb'
|
- 'lib/pry/commands/gem_search.rb'
|
||||||
- 'lib/pry/commands/list_inspectors.rb'
|
- 'lib/pry/commands/list_inspectors.rb'
|
||||||
- 'lib/pry/commands/list_prompts.rb'
|
|
||||||
- 'lib/pry/config/behavior.rb'
|
|
||||||
- 'spec/method_spec.rb'
|
- 'spec/method_spec.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 2
|
||||||
|
@ -100,15 +89,6 @@ Layout/BlockEndNewline:
|
||||||
- 'spec/completion_spec.rb'
|
- 'spec/completion_spec.rb'
|
||||||
- 'spec/prompt_spec.rb'
|
- 'spec/prompt_spec.rb'
|
||||||
|
|
||||||
# Offense count: 11
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
|
||||||
# SupportedStyles: case, end
|
|
||||||
Layout/CaseIndentation:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/pry/commands/hist.rb'
|
|
||||||
- 'lib/pry/method.rb'
|
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 3
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/ClosingHeredocIndentation:
|
Layout/ClosingHeredocIndentation:
|
||||||
|
@ -153,13 +133,6 @@ Layout/DotPosition:
|
||||||
- 'spec/pry_defaults_spec.rb'
|
- 'spec/pry_defaults_spec.rb'
|
||||||
- 'spec/sticky_locals_spec.rb'
|
- 'spec/sticky_locals_spec.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Layout/ElseAlignment:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/pry/commands/find_method.rb'
|
|
||||||
- 'lib/pry/editor.rb'
|
|
||||||
|
|
||||||
# Offense count: 4
|
# Offense count: 4
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowBorderComment, AllowMarginComment.
|
# Configuration parameters: AllowBorderComment, AllowMarginComment.
|
||||||
|
@ -167,37 +140,25 @@ Layout/EmptyComment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/command_spec.rb'
|
- 'spec/command_spec.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/EmptyLineAfterMagicComment:
|
Layout/EmptyLineAfterMagicComment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/terminal.rb'
|
- 'lib/pry/terminal.rb'
|
||||||
- 'pry.gemspec'
|
|
||||||
|
|
||||||
# Offense count: 16
|
# Offense count: 10
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/EmptyLinesAroundAccessModifier:
|
Layout/EmptyLinesAroundAccessModifier:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/commands/cat/abstract_formatter.rb'
|
- 'lib/pry/commands/cat/abstract_formatter.rb'
|
||||||
- 'lib/pry/commands/change_inspector.rb'
|
- 'lib/pry/commands/change_inspector.rb'
|
||||||
- 'lib/pry/commands/change_prompt.rb'
|
|
||||||
- 'lib/pry/commands/gem_search.rb'
|
- 'lib/pry/commands/gem_search.rb'
|
||||||
- 'lib/pry/commands/gem_stats.rb'
|
- 'lib/pry/commands/gem_stats.rb'
|
||||||
- 'lib/pry/commands/list_inspectors.rb'
|
- 'lib/pry/commands/list_inspectors.rb'
|
||||||
- 'lib/pry/commands/list_prompts.rb'
|
|
||||||
- 'lib/pry/config/behavior.rb'
|
|
||||||
- 'lib/pry/config/default.rb'
|
|
||||||
- 'lib/pry/helpers/table.rb'
|
- 'lib/pry/helpers/table.rb'
|
||||||
- 'lib/pry/history_array.rb'
|
|
||||||
- 'lib/pry/plugins.rb'
|
- 'lib/pry/plugins.rb'
|
||||||
- 'spec/method_spec.rb'
|
- 'spec/method_spec.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Layout/EmptyLinesAroundArguments:
|
|
||||||
Exclude:
|
|
||||||
- 'spec/command_spec.rb'
|
|
||||||
|
|
||||||
# Offense count: 6
|
# Offense count: 6
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
||||||
|
@ -242,14 +203,12 @@ Layout/FirstParameterIndentation:
|
||||||
- 'spec/commands/ls_spec.rb'
|
- 'spec/commands/ls_spec.rb'
|
||||||
- 'spec/method_spec.rb'
|
- 'spec/method_spec.rb'
|
||||||
|
|
||||||
# Offense count: 11
|
# Offense count: 3
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
||||||
Layout/IndentArray:
|
Layout/IndentArray:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry.rb'
|
|
||||||
- 'lib/pry/config/convenience.rb'
|
|
||||||
- 'lib/pry/input_completer.rb'
|
- 'lib/pry/input_completer.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
|
@ -259,7 +218,7 @@ Layout/IndentAssignment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/helpers/text.rb'
|
- 'lib/pry/helpers/text.rb'
|
||||||
|
|
||||||
# Offense count: 7
|
# Offense count: 6
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
||||||
|
@ -267,7 +226,6 @@ Layout/IndentHash:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/commands/ls.rb'
|
- 'lib/pry/commands/ls.rb'
|
||||||
- 'lib/pry/config/default.rb'
|
- 'lib/pry/config/default.rb'
|
||||||
- 'lib/pry/prompt.rb'
|
|
||||||
- 'lib/pry/pry_instance.rb'
|
- 'lib/pry/pry_instance.rb'
|
||||||
|
|
||||||
# Offense count: 9
|
# Offense count: 9
|
||||||
|
@ -279,29 +237,25 @@ Layout/IndentationConsistency:
|
||||||
- 'spec/commands/show_source_spec.rb'
|
- 'spec/commands/show_source_spec.rb'
|
||||||
- 'spec/indent_spec.rb'
|
- 'spec/indent_spec.rb'
|
||||||
|
|
||||||
# Offense count: 15
|
# Offense count: 12
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: Width, IgnoredPatterns.
|
# Configuration parameters: Width, IgnoredPatterns.
|
||||||
Layout/IndentationWidth:
|
Layout/IndentationWidth:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/commands/edit.rb'
|
- 'lib/pry/commands/edit.rb'
|
||||||
- 'lib/pry/commands/find_method.rb'
|
|
||||||
- 'lib/pry/commands/help.rb'
|
- 'lib/pry/commands/help.rb'
|
||||||
- 'lib/pry/commands/show_doc.rb'
|
|
||||||
- 'lib/pry/editor.rb'
|
|
||||||
- 'lib/pry/method.rb'
|
- 'lib/pry/method.rb'
|
||||||
- 'spec/command_set_spec.rb'
|
- 'spec/command_set_spec.rb'
|
||||||
- 'spec/command_spec.rb'
|
- 'spec/command_spec.rb'
|
||||||
- 'spec/commands/show_source_spec.rb'
|
- 'spec/commands/show_source_spec.rb'
|
||||||
- 'spec/helper.rb'
|
- 'spec/helper.rb'
|
||||||
|
|
||||||
# Offense count: 4
|
# Offense count: 3
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/LeadingCommentSpace:
|
Layout/LeadingCommentSpace:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/commands/ls/instance_vars.rb'
|
- 'lib/pry/commands/ls/instance_vars.rb'
|
||||||
- 'lib/pry/input_completer.rb'
|
- 'lib/pry/input_completer.rb'
|
||||||
- 'spec/commands/edit_spec.rb'
|
|
||||||
- 'spec/fixtures/show_source_doc_examples.rb'
|
- 'spec/fixtures/show_source_doc_examples.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 2
|
||||||
|
@ -344,7 +298,7 @@ Layout/MultilineMethodCallIndentation:
|
||||||
- 'spec/command_set_spec.rb'
|
- 'spec/command_set_spec.rb'
|
||||||
- 'spec/pry_defaults_spec.rb'
|
- 'spec/pry_defaults_spec.rb'
|
||||||
|
|
||||||
# Offense count: 16
|
# Offense count: 14
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: aligned, indented
|
# SupportedStyles: aligned, indented
|
||||||
|
@ -359,7 +313,6 @@ Layout/MultilineOperationIndentation:
|
||||||
- 'lib/pry/pry_instance.rb'
|
- 'lib/pry/pry_instance.rb'
|
||||||
- 'lib/pry/slop/option.rb'
|
- 'lib/pry/slop/option.rb'
|
||||||
- 'lib/pry/wrapped_module.rb'
|
- 'lib/pry/wrapped_module.rb'
|
||||||
- 'spec/helper.rb'
|
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
@ -403,17 +356,6 @@ Layout/SpaceBeforeComma:
|
||||||
- 'spec/pry_defaults_spec.rb'
|
- 'spec/pry_defaults_spec.rb'
|
||||||
- 'spec/sticky_locals_spec.rb'
|
- 'spec/sticky_locals_spec.rb'
|
||||||
|
|
||||||
# Offense count: 12
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: AllowForAlignment.
|
|
||||||
Layout/SpaceBeforeFirstArg:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/pry/command.rb'
|
|
||||||
- 'spec/command_set_spec.rb'
|
|
||||||
- 'spec/commands/edit_spec.rb'
|
|
||||||
- 'spec/completion_spec.rb'
|
|
||||||
- 'spec/pry_repl_spec.rb'
|
|
||||||
|
|
||||||
# Offense count: 5
|
# Offense count: 5
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/SpaceBeforeSemicolon:
|
Layout/SpaceBeforeSemicolon:
|
||||||
|
@ -421,7 +363,7 @@ Layout/SpaceBeforeSemicolon:
|
||||||
- 'spec/commands/show_doc_spec.rb'
|
- 'spec/commands/show_doc_spec.rb'
|
||||||
- 'spec/method_spec.rb'
|
- 'spec/method_spec.rb'
|
||||||
|
|
||||||
# Offense count: 9
|
# Offense count: 7
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
||||||
# SupportedStyles: space, no_space, compact
|
# SupportedStyles: space, no_space, compact
|
||||||
|
@ -429,7 +371,6 @@ Layout/SpaceBeforeSemicolon:
|
||||||
Layout/SpaceInsideArrayLiteralBrackets:
|
Layout/SpaceInsideArrayLiteralBrackets:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/input_completer.rb'
|
- 'lib/pry/input_completer.rb'
|
||||||
- 'lib/pry/repl.rb'
|
|
||||||
- 'spec/history_spec.rb'
|
- 'spec/history_spec.rb'
|
||||||
- 'spec/pry_defaults_spec.rb'
|
- 'spec/pry_defaults_spec.rb'
|
||||||
|
|
||||||
|
@ -439,7 +380,7 @@ Layout/SpaceInsideArrayPercentLiteral:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/helpers/table_spec.rb'
|
- 'spec/helpers/table_spec.rb'
|
||||||
|
|
||||||
# Offense count: 44
|
# Offense count: 42
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
||||||
# SupportedStyles: space, no_space, compact
|
# SupportedStyles: space, no_space, compact
|
||||||
|
@ -465,13 +406,12 @@ Layout/SpaceInsideParens:
|
||||||
- 'spec/pry_defaults_spec.rb'
|
- 'spec/pry_defaults_spec.rb'
|
||||||
- 'spec/sticky_locals_spec.rb'
|
- 'spec/sticky_locals_spec.rb'
|
||||||
|
|
||||||
# Offense count: 25
|
# Offense count: 24
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: space, no_space
|
# SupportedStyles: space, no_space
|
||||||
Layout/SpaceInsideStringInterpolation:
|
Layout/SpaceInsideStringInterpolation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry.rb'
|
|
||||||
- 'lib/pry/code/code_file.rb'
|
- 'lib/pry/code/code_file.rb'
|
||||||
- 'lib/pry/code/loc.rb'
|
- 'lib/pry/code/loc.rb'
|
||||||
- 'lib/pry/commands/gem_install.rb'
|
- 'lib/pry/commands/gem_install.rb'
|
||||||
|
@ -492,7 +432,7 @@ Layout/TrailingBlankLines:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/exception_whitelist_spec.rb'
|
- 'spec/exception_whitelist_spec.rb'
|
||||||
|
|
||||||
# Offense count: 14
|
# Offense count: 13
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowInHeredoc.
|
# Configuration parameters: AllowInHeredoc.
|
||||||
Layout/TrailingWhitespace:
|
Layout/TrailingWhitespace:
|
||||||
|
@ -500,7 +440,6 @@ Layout/TrailingWhitespace:
|
||||||
- 'lib/pry/color_printer.rb'
|
- 'lib/pry/color_printer.rb'
|
||||||
- 'lib/pry/testable/variables.rb'
|
- 'lib/pry/testable/variables.rb'
|
||||||
- 'spec/color_printer_spec.rb'
|
- 'spec/color_printer_spec.rb'
|
||||||
- 'spec/commands/edit_spec.rb'
|
|
||||||
- 'spec/indent_spec.rb'
|
- 'spec/indent_spec.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 3
|
||||||
|
@ -565,7 +504,7 @@ Lint/ShadowedException:
|
||||||
Lint/UnderscorePrefixedVariableName:
|
Lint/UnderscorePrefixedVariableName:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 46
|
# Offense count: 49
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
||||||
Lint/UnusedBlockArgument:
|
Lint/UnusedBlockArgument:
|
||||||
|
@ -582,7 +521,7 @@ Lint/Void:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/helpers/table.rb'
|
- 'lib/pry/helpers/table.rb'
|
||||||
|
|
||||||
# Offense count: 101
|
# Offense count: 100
|
||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
Max: 130
|
Max: 130
|
||||||
|
|
||||||
|
@ -600,13 +539,13 @@ Metrics/BlockNesting:
|
||||||
# Offense count: 20
|
# Offense count: 20
|
||||||
# Configuration parameters: CountComments.
|
# Configuration parameters: CountComments.
|
||||||
Metrics/ClassLength:
|
Metrics/ClassLength:
|
||||||
Max: 366
|
Max: 332
|
||||||
|
|
||||||
# Offense count: 29
|
# Offense count: 30
|
||||||
Metrics/CyclomaticComplexity:
|
Metrics/CyclomaticComplexity:
|
||||||
Max: 32
|
Max: 32
|
||||||
|
|
||||||
# Offense count: 107
|
# Offense count: 108
|
||||||
# Configuration parameters: CountComments, ExcludedMethods.
|
# Configuration parameters: CountComments, ExcludedMethods.
|
||||||
Metrics/MethodLength:
|
Metrics/MethodLength:
|
||||||
Max: 132
|
Max: 132
|
||||||
|
@ -621,7 +560,7 @@ Metrics/ModuleLength:
|
||||||
Metrics/ParameterLists:
|
Metrics/ParameterLists:
|
||||||
Max: 6
|
Max: 6
|
||||||
|
|
||||||
# Offense count: 26
|
# Offense count: 27
|
||||||
Metrics/PerceivedComplexity:
|
Metrics/PerceivedComplexity:
|
||||||
Max: 25
|
Max: 25
|
||||||
|
|
||||||
|
@ -677,21 +616,6 @@ Naming/MemoizedInstanceVariableName:
|
||||||
# SupportedStyles: snake_case, camelCase
|
# SupportedStyles: snake_case, camelCase
|
||||||
Naming/MethodName:
|
Naming/MethodName:
|
||||||
EnforcedStyle: snake_case
|
EnforcedStyle: snake_case
|
||||||
Exclude:
|
|
||||||
- 'spec/code_object_spec.rb'
|
|
||||||
- 'lib/pry/method.rb'
|
|
||||||
- 'lib/pry/wrapped_module.rb'
|
|
||||||
- 'lib/pry/code.rb'
|
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# 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/**/*'
|
|
||||||
|
|
||||||
# Offense count: 26
|
# Offense count: 26
|
||||||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
||||||
|
@ -735,7 +659,7 @@ Performance/RedundantMerge:
|
||||||
- 'lib/pry/slop/commands.rb'
|
- 'lib/pry/slop/commands.rb'
|
||||||
- 'spec/config_spec.rb'
|
- 'spec/config_spec.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 4
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Performance/Size:
|
Performance/Size:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
@ -781,13 +705,12 @@ Security/JSONLoad:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/commands/gem_search.rb'
|
- 'lib/pry/commands/gem_search.rb'
|
||||||
|
|
||||||
# Offense count: 12
|
# Offense count: 11
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: inline, group
|
# SupportedStyles: inline, group
|
||||||
Style/AccessModifierDeclarations:
|
Style/AccessModifierDeclarations:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/command.rb'
|
- 'lib/pry/command.rb'
|
||||||
- 'lib/pry/command_set.rb'
|
|
||||||
- 'lib/pry/forwardable.rb'
|
- 'lib/pry/forwardable.rb'
|
||||||
- 'lib/pry/helpers/base_helpers.rb'
|
- 'lib/pry/helpers/base_helpers.rb'
|
||||||
- 'lib/pry/pry_instance.rb'
|
- 'lib/pry/pry_instance.rb'
|
||||||
|
@ -795,7 +718,7 @@ Style/AccessModifierDeclarations:
|
||||||
- 'spec/helper.rb'
|
- 'spec/helper.rb'
|
||||||
- 'spec/method/patcher_spec.rb'
|
- 'spec/method/patcher_spec.rb'
|
||||||
|
|
||||||
# Offense count: 20
|
# Offense count: 19
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: prefer_alias, prefer_alias_method
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
||||||
|
@ -804,12 +727,11 @@ Style/Alias:
|
||||||
- 'lib/pry/command.rb'
|
- 'lib/pry/command.rb'
|
||||||
- 'lib/pry/command_set.rb'
|
- 'lib/pry/command_set.rb'
|
||||||
- 'lib/pry/config/behavior.rb'
|
- 'lib/pry/config/behavior.rb'
|
||||||
- 'lib/pry/helpers/text.rb'
|
|
||||||
- 'lib/pry/wrapped_module.rb'
|
- 'lib/pry/wrapped_module.rb'
|
||||||
- 'lib/pry/wrapped_module/candidate.rb'
|
- 'lib/pry/wrapped_module/candidate.rb'
|
||||||
- 'spec/method_spec.rb'
|
- 'spec/method_spec.rb'
|
||||||
|
|
||||||
# Offense count: 47
|
# Offense count: 44
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: always, conditionals
|
# SupportedStyles: always, conditionals
|
||||||
|
@ -823,7 +745,7 @@ Style/AsciiComments:
|
||||||
- 'lib/pry/pry_instance.rb'
|
- 'lib/pry/pry_instance.rb'
|
||||||
- 'lib/pry/terminal.rb'
|
- 'lib/pry/terminal.rb'
|
||||||
|
|
||||||
# Offense count: 50
|
# Offense count: 51
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
||||||
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
||||||
|
@ -853,7 +775,7 @@ Style/BracesAroundHashParameters:
|
||||||
Style/CaseEquality:
|
Style/CaseEquality:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 107
|
# Offense count: 96
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
||||||
# SupportedStyles: nested, compact
|
# SupportedStyles: nested, compact
|
||||||
|
@ -891,11 +813,11 @@ Style/ConditionalAssignment:
|
||||||
- 'lib/pry/testable/pry_tester.rb'
|
- 'lib/pry/testable/pry_tester.rb'
|
||||||
- 'lib/pry/wrapped_module.rb'
|
- 'lib/pry/wrapped_module.rb'
|
||||||
|
|
||||||
# Offense count: 164
|
# Offense count: 159
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 19
|
# Offense count: 17
|
||||||
Style/DoubleNegation:
|
Style/DoubleNegation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/code.rb'
|
- 'lib/pry/code.rb'
|
||||||
|
@ -956,13 +878,12 @@ Style/EmptyMethod:
|
||||||
- 'spec/method_spec.rb'
|
- 'spec/method_spec.rb'
|
||||||
- 'spec/wrapped_module_spec.rb'
|
- 'spec/wrapped_module_spec.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/Encoding:
|
Style/Encoding:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/pry_instance.rb'
|
- 'lib/pry/pry_instance.rb'
|
||||||
- 'lib/pry/terminal.rb'
|
- 'lib/pry/terminal.rb'
|
||||||
- 'pry.gemspec'
|
|
||||||
|
|
||||||
# Offense count: 27
|
# Offense count: 27
|
||||||
Style/EvalWithLocation:
|
Style/EvalWithLocation:
|
||||||
|
@ -980,7 +901,7 @@ Style/ExpandPathArguments:
|
||||||
- 'lib/pry/commands.rb'
|
- 'lib/pry/commands.rb'
|
||||||
- 'pry.gemspec'
|
- 'pry.gemspec'
|
||||||
|
|
||||||
# Offense count: 5
|
# Offense count: 4
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: format, sprintf, percent
|
# SupportedStyles: format, sprintf, percent
|
||||||
|
@ -991,7 +912,7 @@ Style/FormatString:
|
||||||
- 'lib/pry/config/behavior.rb'
|
- 'lib/pry/config/behavior.rb'
|
||||||
- 'lib/pry/pry_class.rb'
|
- 'lib/pry/pry_class.rb'
|
||||||
|
|
||||||
# Offense count: 11
|
# Offense count: 9
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: annotated, template, unannotated
|
# SupportedStyles: annotated, template, unannotated
|
||||||
Style/FormatStringToken:
|
Style/FormatStringToken:
|
||||||
|
@ -1007,7 +928,7 @@ Style/GlobalVars:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/commands/edit_spec.rb'
|
- 'spec/commands/edit_spec.rb'
|
||||||
|
|
||||||
# Offense count: 37
|
# Offense count: 38
|
||||||
# Configuration parameters: MinBodyLength.
|
# Configuration parameters: MinBodyLength.
|
||||||
Style/GuardClause:
|
Style/GuardClause:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
@ -1026,7 +947,7 @@ Style/IfInsideElse:
|
||||||
- 'lib/pry/slop/commands.rb'
|
- 'lib/pry/slop/commands.rb'
|
||||||
- 'lib/pry/slop/option.rb'
|
- 'lib/pry/slop/option.rb'
|
||||||
|
|
||||||
# Offense count: 77
|
# Offense count: 79
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/IfUnlessModifier:
|
Style/IfUnlessModifier:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
@ -1065,13 +986,12 @@ Style/MethodCallWithoutArgsParentheses:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/helpers/command_helpers.rb'
|
- 'lib/pry/helpers/command_helpers.rb'
|
||||||
|
|
||||||
# Offense count: 8
|
# Offense count: 6
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
||||||
Style/MethodDefParentheses:
|
Style/MethodDefParentheses:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Rakefile'
|
|
||||||
- 'lib/pry/helpers/table.rb'
|
- 'lib/pry/helpers/table.rb'
|
||||||
- 'lib/pry/terminal.rb'
|
- 'lib/pry/terminal.rb'
|
||||||
|
|
||||||
|
@ -1117,12 +1037,12 @@ Style/MultipleComparison:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/indent.rb'
|
- 'lib/pry/indent.rb'
|
||||||
|
|
||||||
# Offense count: 43
|
# Offense count: 36
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/MutableConstant:
|
Style/MutableConstant:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 26
|
# Offense count: 23
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: both, prefix, postfix
|
# SupportedStyles: both, prefix, postfix
|
||||||
|
@ -1202,7 +1122,7 @@ Style/ParallelAssignment:
|
||||||
- 'spec/prompt_spec.rb'
|
- 'spec/prompt_spec.rb'
|
||||||
- 'spec/pry_defaults_spec.rb'
|
- 'spec/pry_defaults_spec.rb'
|
||||||
|
|
||||||
# Offense count: 58
|
# Offense count: 57
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: PreferredDelimiters.
|
# Configuration parameters: PreferredDelimiters.
|
||||||
Style/PercentLiteralDelimiters:
|
Style/PercentLiteralDelimiters:
|
||||||
|
@ -1318,7 +1238,7 @@ Style/RegexpLiteral:
|
||||||
- 'spec/pry_spec.rb'
|
- 'spec/pry_spec.rb'
|
||||||
- 'spec/sticky_locals_spec.rb'
|
- 'spec/sticky_locals_spec.rb'
|
||||||
|
|
||||||
# Offense count: 13
|
# Offense count: 12
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/RescueModifier:
|
Style/RescueModifier:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
@ -1326,7 +1246,6 @@ Style/RescueModifier:
|
||||||
- 'lib/pry/code_object.rb'
|
- 'lib/pry/code_object.rb'
|
||||||
- 'lib/pry/color_printer.rb'
|
- 'lib/pry/color_printer.rb'
|
||||||
- 'lib/pry/commands/ls/constants.rb'
|
- 'lib/pry/commands/ls/constants.rb'
|
||||||
- 'lib/pry/config/default.rb'
|
|
||||||
- 'lib/pry/input_completer.rb'
|
- 'lib/pry/input_completer.rb'
|
||||||
- 'lib/pry/method.rb'
|
- 'lib/pry/method.rb'
|
||||||
- 'lib/pry/method/patcher.rb'
|
- 'lib/pry/method/patcher.rb'
|
||||||
|
@ -1348,7 +1267,7 @@ Style/RescueStandardError:
|
||||||
- 'spec/commands/ls_spec.rb'
|
- 'spec/commands/ls_spec.rb'
|
||||||
- 'spec/hooks_spec.rb'
|
- 'spec/hooks_spec.rb'
|
||||||
|
|
||||||
# Offense count: 23
|
# Offense count: 16
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowAsExpressionSeparator.
|
# Configuration parameters: AllowAsExpressionSeparator.
|
||||||
Style/Semicolon:
|
Style/Semicolon:
|
||||||
|
@ -1366,13 +1285,13 @@ Style/SignalException:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/command_set.rb'
|
- 'lib/pry/command_set.rb'
|
||||||
|
|
||||||
# Offense count: 118
|
# Offense count: 116
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowIfMethodIsEmpty.
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
||||||
Style/SingleLineMethods:
|
Style/SingleLineMethods:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 9
|
# Offense count: 8
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: use_perl_names, use_english_names
|
# SupportedStyles: use_perl_names, use_english_names
|
||||||
|
@ -1381,7 +1300,6 @@ Style/SpecialGlobalVars:
|
||||||
- 'Rakefile'
|
- 'Rakefile'
|
||||||
- 'lib/pry/color_printer.rb'
|
- 'lib/pry/color_printer.rb'
|
||||||
- 'lib/pry/command.rb'
|
- 'lib/pry/command.rb'
|
||||||
- 'lib/pry/commands/gem_stats.rb'
|
|
||||||
- 'lib/pry/editor.rb'
|
- 'lib/pry/editor.rb'
|
||||||
- 'lib/pry/pager.rb'
|
- 'lib/pry/pager.rb'
|
||||||
- 'lib/pry/slop.rb'
|
- 'lib/pry/slop.rb'
|
||||||
|
@ -1393,7 +1311,7 @@ Style/StderrPuts:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry/slop.rb'
|
- 'lib/pry/slop.rb'
|
||||||
|
|
||||||
# Offense count: 2308
|
# Offense count: 2305
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
||||||
# SupportedStyles: single_quotes, double_quotes
|
# SupportedStyles: single_quotes, double_quotes
|
||||||
|
@ -1415,7 +1333,7 @@ Style/StringLiteralsInInterpolation:
|
||||||
- 'spec/helper.rb'
|
- 'spec/helper.rb'
|
||||||
- 'spec/syntax_checking_spec.rb'
|
- 'spec/syntax_checking_spec.rb'
|
||||||
|
|
||||||
# Offense count: 12
|
# Offense count: 11
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: MinSize.
|
# Configuration parameters: MinSize.
|
||||||
# SupportedStyles: percent, brackets
|
# SupportedStyles: percent, brackets
|
||||||
|
@ -1440,13 +1358,12 @@ Style/SymbolProc:
|
||||||
- 'lib/pry/wrapped_module.rb'
|
- 'lib/pry/wrapped_module.rb'
|
||||||
- 'spec/completion_spec.rb'
|
- 'spec/completion_spec.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyleForMultiline.
|
# Configuration parameters: EnforcedStyleForMultiline.
|
||||||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
||||||
Style/TrailingCommaInArrayLiteral:
|
Style/TrailingCommaInArrayLiteral:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/pry.rb'
|
|
||||||
- 'lib/pry/exceptions.rb'
|
- 'lib/pry/exceptions.rb'
|
||||||
- 'spec/syntax_checking_spec.rb'
|
- 'spec/syntax_checking_spec.rb'
|
||||||
|
|
||||||
|
@ -1554,7 +1471,7 @@ Style/ZeroLengthPredicate:
|
||||||
- 'lib/pry/commands/help.rb'
|
- 'lib/pry/commands/help.rb'
|
||||||
- 'lib/pry/testable/evalable.rb'
|
- 'lib/pry/testable/evalable.rb'
|
||||||
|
|
||||||
# Offense count: 883
|
# Offense count: 854
|
||||||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
||||||
# URISchemes: http, https
|
# URISchemes: http, https
|
||||||
Metrics/LineLength:
|
Metrics/LineLength:
|
||||||
|
|
Loading…
Reference in a new issue