mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Style/TrailingCommaInArrayLiteral cop
This commit is contained in:
parent
68f90bc675
commit
347530f73b
2 changed files with 1 additions and 10 deletions
|
@ -314,15 +314,6 @@ Style/PerlBackrefs:
|
|||
- 'lib/pry/method.rb'
|
||||
- 'lib/pry/rubygem.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyleForMultiline.
|
||||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
||||
Style/TrailingCommaInArrayLiteral:
|
||||
Exclude:
|
||||
- 'lib/pry/exceptions.rb'
|
||||
- 'spec/syntax_checking_spec.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyleForMultiline.
|
||||
|
|
|
@ -10,7 +10,7 @@ describe Pry do
|
|||
["[", ":lets,", "'list',", "[/nested/", "], things ]"],
|
||||
["abc =~ /hello", "/"],
|
||||
["issue = %W/", "343/"],
|
||||
["pouts(<<HI, 'foo", "bar", "HI", "baz')"],
|
||||
["pouts(<<HI, 'foo", "bar", "HI", "baz')"]
|
||||
].each do |foo|
|
||||
it "should not raise an error on broken lines: #{foo.join('\\n')}" do
|
||||
redirect_pry_io(InputTester.new(*foo), @str_output) do
|
||||
|
|
Loading…
Add table
Reference in a new issue