Class: ThorFoodCritic::Tasks

Inherits:
Thor
  • Object
show all
Defined in:
lib/thor-foodcritic.rb

Instance Method Summary collapse

Instance Method Details

#lintObject



29
30
31
32
33
34
35
36
37
38
# File 'lib/thor-foodcritic.rb', line 29

def lint
  review = ::FoodCritic::Linter.new.check(Dir.pwd, 
    tags: options[:tags],
    include_rules: options[:include],
    fail_tags: options[:epic_fail],
    exclude_paths: options[:exclude_paths]
  )
  say(review, :red)
  exit_if_failure(review)
end