mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Exclude globs as arguments
Examples: $ ameba path/to/shard/*.cr !path/to/shard/lib $ ameba . !lib
This commit is contained in:
parent
5aa7ee4854
commit
3c5e3cdef4
9 changed files with 125 additions and 32 deletions
|
@ -18,7 +18,7 @@ Benchmark.ips do |x|
|
|||
].each do |n|
|
||||
config = Ameba::Config.load
|
||||
config.formatter = Ameba::Formatter::BaseFormatter.new
|
||||
config.files = get_files(n)
|
||||
config.globs = get_files(n)
|
||||
s = n == 1 ? "" : "s"
|
||||
x.report("#{n} source#{s}") { Ameba.run config }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue