Skip to content

Commit a897ddf

Browse files
committed
Exclude generated code from Go package list
This list is used for linting and formatting checks, which don't apply to tool generated code.
1 parent c09c9aa commit a897ddf

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ vars:
278278
PROJECT_NAME: "arduino-lint"
279279
DIST_DIR: "dist"
280280
DEFAULT_GO_PACKAGES:
281-
sh: echo `go list ./... | tr '\n' ' '`
281+
sh: echo `go list ./... | grep --invert-match 'github.com/arduino/arduino-lint/internal/rule/schema/schemadata' | tr '\n' ' '`
282282
# build vars
283283
COMMIT:
284284
sh: echo "$(git log -n 1 --format=%h)"

internal/rule/schema/schemadata/bindata.go

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"strings"
3232
"time"
3333
)
34-
3534
type asset struct {
3635
bytes []byte
3736
info os.FileInfo

internal/rule/schema/testdata/bindata.go

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"strings"
1717
"time"
1818
)
19-
2019
type asset struct {
2120
bytes []byte
2221
info os.FileInfo

0 commit comments

Comments
 (0)