Class: ThorFoodCritic::Tasks
- Inherits:
-
Thor
- Object
- Thor
- ThorFoodCritic::Tasks
- Defined in:
- lib/thor-foodcritic.rb
Instance Method Summary collapse
Instance Method Details
#lint ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/thor-foodcritic.rb', line 39 def lint review = ::FoodCritic::Linter.new.check( cookbook_paths: [:cookbook_path], role_paths: [:role_path], tags: [:tags], include_rules: [:include], fail_tags: [:epic_fail], exclude_paths: [:exclude_paths] ) say(review, :red) exit_if_failure(review) end |