Skip to content

Commit

Permalink
Correctly exclude generated mocks from license check
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed Mar 22, 2024
1 parent 8723db7 commit 720d71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bpm/license_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var _ = Describe("our go source code", func() {
}

// Skip generated code
if strings.HasPrefix(filepath.Base(path), "mock_") {
if strings.HasPrefix(filepath.Base(path), "mocks") {
return nil
}

Expand Down

0 comments on commit 720d71b

Please sign in to comment.