mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Style/Next cop
This commit is contained in:
parent
937b7bcf35
commit
239541045e
2 changed files with 8 additions and 17 deletions
|
@ -305,15 +305,6 @@ Style/MultipleComparison:
|
|||
Exclude:
|
||||
- 'lib/pry/indent.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
||||
# SupportedStyles: skip_modifier_ifs, always
|
||||
Style/Next:
|
||||
Exclude:
|
||||
- 'lib/pry/commands/gist.rb'
|
||||
- 'lib/pry/pager.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
|
|
@ -107,15 +107,15 @@ class Pry
|
|||
@out.print line
|
||||
@tracker.record line
|
||||
|
||||
if @tracker.page?
|
||||
@out.print "\n"
|
||||
@out.print "\e[0m"
|
||||
@out.print "<page break> --- Press enter to continue " \
|
||||
"( q<enter> to break ) --- <page break>\n"
|
||||
raise StopPaging if Readline.readline("").chomp == "q"
|
||||
next unless @tracker.page?
|
||||
|
||||
@tracker.reset
|
||||
end
|
||||
@out.print "\n"
|
||||
@out.print "\e[0m"
|
||||
@out.print "<page break> --- Press enter to continue " \
|
||||
"( q<enter> to break ) --- <page break>\n"
|
||||
raise StopPaging if Readline.readline("").chomp == "q"
|
||||
|
||||
@tracker.reset
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue