diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e68843c7..310ceb53 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. diff --git a/lib/pry/code/code_file.rb b/lib/pry/code/code_file.rb index fe025cba..5464183a 100644 --- a/lib/pry/code/code_file.rb +++ b/lib/pry/code/code_file.rb @@ -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 = { diff --git a/lib/pry/code_object.rb b/lib/pry/code_object.rb index 20138382..6a967bb7 100644 --- a/lib/pry/code_object.rb +++ b/lib/pry/code_object.rb @@ -78,7 +78,7 @@ class Pry def initialize(str, _pry_, options = {}) options = { - super: 0, + super: 0 }.merge!(options) @str = str