Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AllCops:
- '**/*.rake'
- 'Gemfile'
- 'Gemfile.triage'
TargetRubyVersion: 3.1
TargetRubyVersion: 3.2
Exclude:
- tmp/**/*
- vendor/**/*
Expand Down
4 changes: 2 additions & 2 deletions bin/corpus
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ module Unparser

# Unparser corpus CLI implementation
class CLI
def self.run(*arguments)
new(*arguments).exit_status
def self.run(*)
new(*).exit_status
end

def initialize(arguments)
Expand Down
1 change: 0 additions & 1 deletion lib/unparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require 'diff/lcs'
require 'diff/lcs/hunk'
require 'optparse'
require 'set'

require 'unparser/equalizer'
require 'unparser/adamantium'
Expand Down
8 changes: 4 additions & 4 deletions lib/unparser/ast/local_variable_scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def initialize(stack:)
end

# Enumerate each node with its local variable scope
def self.each(node:, stack:, &block)
new(stack: stack).each(node: node, &block)
def self.each(node:, stack:, &)
new(stack: stack).each(node: node, &)
end

# Enumerate local variable scope scope
Expand All @@ -121,8 +121,8 @@ def self.each(node:, stack:, &block)
#
# @api private
#
def each(node:, &block)
visit(node, &block)
def each(node:, &)
visit(node, &)
end

private
Expand Down
4 changes: 2 additions & 2 deletions lib/unparser/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def literal_validation
# @api private
#
# mutant:disable
def self.run(*arguments)
new(*arguments).exit_status
def self.run(*)
new(*).exit_status
end

# Initialize object
Expand Down
4 changes: 2 additions & 2 deletions lib/unparser/comments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Comments
#
# @api private
#
def source_range(*arguments)
self.class.source_range(*arguments)
def source_range(*)
self.class.source_range(*)
end

# Initialize object
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/unparser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def foo(bar)
)
end

if RUBY_VERSION < '3.1.'
if RUBY_VERSION < '3.2.'
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a bug, we should have added the 31.rb contents to the regular corpus.

excludes.concat(
%w[
test/corpus/literal/since/31.rb
Expand Down
2 changes: 1 addition & 1 deletion unparser.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
gem.extra_rdoc_files = %w[README.md]
gem.executables = %w[unparser]

gem.required_ruby_version = '>= 3.1'
gem.required_ruby_version = '>= 3.2'

gem.add_dependency('diff-lcs', '~> 1.6')
gem.add_dependency('parser', '>= 3.3.0')
Expand Down