mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Layout/IndentHash cop
This commit is contained in:
parent
8d59d3b960
commit
322b095c9b
3 changed files with 15 additions and 24 deletions
|
@ -13,15 +13,6 @@ Gemspec/RequiredRubyVersion:
|
|||
Exclude:
|
||||
- 'pry.gemspec'
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
||||
Layout/IndentHash:
|
||||
Exclude:
|
||||
- 'lib/pry/commands/ls.rb'
|
||||
- 'lib/pry/pry_instance.rb'
|
||||
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
|
|
@ -77,13 +77,13 @@ class Pry
|
|||
def process
|
||||
@interrogatee = args.empty? ? target_self : target.eval(args.join(' '))
|
||||
raise_errors_if_arguments_are_weird
|
||||
ls_entity = LsEntity.new({
|
||||
ls_entity = LsEntity.new(
|
||||
interrogatee: @interrogatee,
|
||||
no_user_opts: no_user_opts?,
|
||||
opts: opts,
|
||||
args: args,
|
||||
_pry_: _pry_
|
||||
})
|
||||
)
|
||||
|
||||
_pry_.pager.page ls_entity.entities_table
|
||||
end
|
||||
|
|
|
@ -540,19 +540,19 @@ class Pry
|
|||
object = current_binding.eval('self')
|
||||
open_token = @indent.open_delimiters.last || @indent.stack.last
|
||||
|
||||
c = Pry::Config.assign({
|
||||
object: object,
|
||||
nesting_level: binding_stack.size - 1,
|
||||
open_token: open_token,
|
||||
session_line: Pry.history.session_line_count + 1,
|
||||
history_line: Pry.history.history_line_count + 1,
|
||||
expr_number: input_ring.count,
|
||||
_pry_: self,
|
||||
binding_stack: binding_stack,
|
||||
input_ring: input_ring,
|
||||
eval_string: @eval_string,
|
||||
cont: !@eval_string.empty?
|
||||
})
|
||||
c = Pry::Config.assign(
|
||||
object: object,
|
||||
nesting_level: binding_stack.size - 1,
|
||||
open_token: open_token,
|
||||
session_line: Pry.history.session_line_count + 1,
|
||||
history_line: Pry.history.history_line_count + 1,
|
||||
expr_number: input_ring.count,
|
||||
_pry_: self,
|
||||
binding_stack: binding_stack,
|
||||
input_ring: input_ring,
|
||||
eval_string: @eval_string,
|
||||
cont: !@eval_string.empty?
|
||||
)
|
||||
|
||||
Pry.critical_section do
|
||||
# If input buffer is empty, then use normal prompt. Otherwise use the wait
|
||||
|
|
Loading…
Add table
Reference in a new issue