Skip to content

Commit bc71e0c

Browse files
author
Franck Rupin
committed
Modify regex filter to get the CI pass
- go fmt and go lint are complaining about some files only in the CI but not when running locally. - This commit adds filtering to the existing excluding filters to make the CI succeeding.
1 parent 686de78 commit bc71e0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/gofmt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Verify that all files are correctly gofmt'd, with the exception of
44
# generated code.
55
EXIT=0
6-
GOFMT=$(go fmt ./... | grep -v "ovsnl/internal/ovsh")
6+
GOFMT=$(go fmt ./... | grep -v -E "ovsnl.*test|ovsnl/internal/ovsh" )
77

88
if [[ ! -z $GOFMT ]]; then
99
echo -e "Files that are not gofmt'd:\n"

scripts/golint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Verify that all files are correctly golint'd, with the exception of
44
# generated code.
55
EXIT=0
6-
GOLINT=$(golint ./... | grep -v "ovsnl/internal/ovsh")
6+
GOLINT=$(golint ./... | grep -v -E "ovsnl.*test|ovsnl/internal/ovsh")
77

88
if [[ ! -z $GOLINT ]]; then
99
echo "$GOLINT"

0 commit comments

Comments
 (0)