Skip to content

Commit d46d312

Browse files
committed
ignore enterprise imports in custom linters
1 parent 44a9dd6 commit d46d312

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/check_enterprise_imports.sh

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ find . -regex ".*\.go" |
1313
grep -v "./enterprise" |
1414
grep -v ./scripts/auditdocgen/ --include="*.go" |
1515
grep -v ./scripts/clidocgen/ --include="*.go" |
16+
grep -v ./scripts/rules.go |
1617
xargs grep -n "github.com/coder/coder/v2/enterprise"
1718
# reverse the exit code because we want this script to fail if grep finds anything.
1819
status=$?

0 commit comments

Comments
 (0)