Skip to content

Commit

Permalink
Add rubocop-performance and run auto-correct
Browse files Browse the repository at this point in the history
  • Loading branch information
euglena1215 committed Jan 5, 2024
1 parent de36002 commit 904be3f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require:
- rubocop-performance

AllCops:
TargetRubyVersion: 2.6
SuggestExtensions: false
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-performance (1.20.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
smart_properties (1.17.0)
Expand All @@ -120,6 +123,7 @@ DEPENDENCIES
packwerk_yard!
rake (~> 13.0)
rubocop (~> 1.21)
rubocop-performance

BUNDLED WITH
2.4.18
2 changes: 1 addition & 1 deletion lib/packwerk_yard/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def call(io:, file_path: "<unknown>")
to_ruby_ast(
types.map { |type| to_evaluable_type(type) }
.reject { |type| to_constant(type).nil? }
.inspect.gsub('"', ""),
.inspect.delete('"'),
file_path
)
end
Expand Down
2 changes: 2 additions & 0 deletions packwerk_yard.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ Gem::Specification.new do |spec|

spec.add_dependency "parser"
spec.add_dependency "yard"

spec.add_development_dependency "rubocop-performance"
end

0 comments on commit 904be3f

Please sign in to comment.