mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Layout/EmptyLinesAroundMethodBody cop
This commit is contained in:
parent
46f06e5924
commit
1e46f17b4f
3 changed files with 0 additions and 9 deletions
|
@ -13,13 +13,6 @@ Gemspec/RequiredRubyVersion:
|
|||
Exclude:
|
||||
- 'pry.gemspec'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLinesAroundMethodBody:
|
||||
Exclude:
|
||||
- 'lib/pry/code_object.rb'
|
||||
- 'lib/pry/indent.rb'
|
||||
|
||||
# Offense count: 16
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
|
|
@ -112,7 +112,6 @@ class Pry
|
|||
|
||||
# lookup variables and constants and `self` that are not modules
|
||||
def default_lookup
|
||||
|
||||
# we skip instance methods as we want those to fall through to method_or_class_lookup()
|
||||
if safe_to_evaluate?(str) && !looks_like_an_instance_method?(str)
|
||||
obj = target.eval(str)
|
||||
|
|
|
@ -193,7 +193,6 @@ class Pry
|
|||
# @return [Array[Integer]]
|
||||
#
|
||||
def indentation_delta(tokens)
|
||||
|
||||
# We need to keep track of whether we've seen a "for" on this line because
|
||||
# if the line ends with "do" then that "do" should be discounted (i.e. we're
|
||||
# only opening one level not two) To do this robustly we want to keep track
|
||||
|
|
Loading…
Reference in a new issue