Skip to content

Commit 329015a

Browse files
authored
Merge pull request #134 from schubergphilis/master
Ignore files under the `test/` directory
2 parents 19ba13f + 16a1bd7 commit 329015a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Chef-Guard CHANGELOG
22
====================
33

4+
0.7.4
5+
------------------
6+
- Ignore files under the `test/` directory
7+
48
0.7.3
59
------------------
610
- Switch to using Go modules, but still vendor (`go mod vendor`) for backwards compatibility

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.3
1+
0.7.4

validations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (cg *ChefGuard) searchSourceCookbook() (errCode int, err error) {
295295

296296
func (cg *ChefGuard) ignoreThisFile(file string, ignoreDefaultFiles bool) (ignore bool, err error) {
297297
if ignoreDefaultFiles {
298-
if file == "metadata.rb" || file == "metadata.json" || strings.HasPrefix(file, "spec/") {
298+
if file == "metadata.rb" || file == "metadata.json" || strings.HasPrefix(file, "spec/") || strings.HasPrefix(file, "test/") {
299299
return true, nil
300300
}
301301
}

0 commit comments

Comments
 (0)