Sha256: d651362ff4942765e5aa74b842267c21a8946bbee09a9f64a938cd0c3d986603

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))

require 'simplabs/excellent'
require 'pathname'

excellent = Simplabs::Excellent::Core::ParseTreeRunner.new

ARGV.each do |arg|
  Dir.glob(arg).each { |file| excellent.check_file(file) }
end

puts "\nExcellent found #{excellent.errors.size} errors.\n"
excellent.errors.each do |error|
  puts "  * File #{error.filename}, line #{error.line_number}: #{error.message}"
end
puts ''

exit 0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplabs-excellent-1.0.1 bin/excellent