Exclude globs as arguments

Examples:

  $ ameba path/to/shard/*.cr !path/to/shard/lib
  $ ameba . !lib
This commit is contained in:
Vitalii Elenhaupt 2019-01-12 23:19:00 +02:00
parent 5aa7ee4854
commit 3c5e3cdef4
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706
9 changed files with 125 additions and 32 deletions

View file

@ -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