File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require "benchmark"
7
7
$:. unshift ( File . expand_path ( "../lib" , __dir__ ) )
8
8
require "syntax_tree/prism"
9
9
10
- filepaths = Dir [ File . expand_path ( "../../rails/rails/activerecord/**/*.rb" ) ]
10
+ filepaths = Dir [ ARGV . first ]
11
11
puts "Formatting #{ filepaths . length } files"
12
12
13
13
Benchmark . bmbm do |x |
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require "vernier"
7
7
$:.unshift(File.expand_path(" ../lib" , __dir__))
8
8
require " syntax_tree/prism"
9
9
10
- results = Dir[File.expand_path( " ../../rails/rails/activerecord/**/*.rb " ) ].map { | filepath| Prism.parse_file(filepath) }
10
+ results = Dir[ARGV.first ].map { | filepath| Prism.parse_file(filepath) }
11
11
puts " Profiling #{results.length} files"
12
12
13
13
Vernier.trace(out: " profile.json" ) { results.each(& :format) }
You can’t perform that action at this time.
0 commit comments