Open alcasim opened 7 years ago
I've looked into the foodcritic's code and it should be loading that file: https://github.com/Foodcritic/foodcritic/blob/master/lib/foodcritic/linter.rb#L204
I've made some tests and it I had the following in my configuration:
plugins:
foodcritic:
tags: ['any']
replacing it with:
plugins:
foodcritic:
epic_fail: true
makes spork respect the .foodcritic
file is this expected behavior?
This is indeed not expected behaviour - I'll take a look! Thanks for the report!
I have added an exception into .foodcritic file in order to disable notification when a certain rule fails. Checking the cookbook with knife spork and the foodcritic plugin enabled alerts about the offending rule, although the exception is included.
outputs: cat .foodcritic ~FC078
when knife spork checks: /Users/acasimiro/workingCopies/code/bitbucket/chef-cookbooks/ptc-chef-server ERROR: Foodcritic failed! ERROR: FC078: Ensure cookbook shared under an OSI-approved open source license:
Should I do anything to force knife spork to use the .foodcritic file?