class Diecut::Cli::Lint

Public Instance Methods

lint() click to toggle source
# File lib/diecut/cli.rb, line 71
def lint
  require 'diecut/linter'
  require 'diecut/error-report'
  mill = Mill.new(self.class.kind)
  Diecut.issue_handler = Diecut::ErrorHandling::Reporter.new(mill)

  if options["all_on"]
    mill.activate_plugins{ true }
  else
    mill.activate_plugins{|name| options["with-#{name}"] }
  end

  puts Linter.new(mill).report
end