Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
[BUGFIX] Let foodcritic exclude directories that confuse it
Browse files Browse the repository at this point in the history
Unbelievable. What a mess.

Foodcritic/foodcritic#148

Otherwise FC complains as follows:

> FC011: Missing README in markdown format: spec/README.md:1
> FC031: Cookbook without metadata file: spec/metadata.rb:1
> FC045: Metadata does not contain cookbook name: spec/metadata.rb:1
  • Loading branch information
StephenKing committed Jan 29, 2017
1 parent 9e1f8d3 commit 153c32d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/typo3/chefci/v2/stages/Lint.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class Lint extends AbstractStage {

private def foodcritic(){
script.node {
script.sh('foodcritic .')
// we have to manually disable these directories because foodcritic is stupid by default.
// https://github.com/acrmp/foodcritic/issues/148
script.sh('foodcritic . --exclude spec --exclude test')
}
}

Expand Down

0 comments on commit 153c32d

Please sign in to comment.