1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

rubocop: fix offences of the Style/TrailingCommaInHashLiteral cop

This commit is contained in:
Kyrylo Silin 2019-03-02 16:34:53 +02:00
parent 347530f73b
commit a2b8d98732
3 changed files with 2 additions and 11 deletions

View file

@ -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/TrailingCommaInHashLiteral:
Exclude:
- 'lib/pry/code/code_file.rb'
- 'lib/pry/code_object.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowNamedUnderscoreVariables.

View file

@ -18,7 +18,7 @@ class Pry
%w[.rhtml] => :rhtml,
%w[.yaml .yml] => :yaml,
%w[.cpp .hpp .cc .h .cxx] => :cpp,
%w[.rb .ru .irbrc .gemspec .pryrc .rake] => :ruby,
%w[.rb .ru .irbrc .gemspec .pryrc .rake] => :ruby
}.freeze
FILES = {

View file

@ -78,7 +78,7 @@ class Pry
def initialize(str, _pry_, options = {})
options = {
super: 0,
super: 0
}.merge!(options)
@str = str