Created
December 4, 2012 12:08
-
-
Save mlafeldt/4203151 to your computer and use it in GitHub Desktop.
BP001 foodcritic rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bigpoint's foodcritic rules | |
| rule 'BP001', 'Missing poem in README' do | |
| tags %w(style readme poem) | |
| cookbook do |path| | |
| file = File.join(path, 'README.md') | |
| # XXX FC011 already checks that the README exists. | |
| if File.file?(file) && (File.read(file) !~ /^Poem/) | |
| [ file_match(file) ] | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment