Skip to content

Commit

Permalink
Sequentialize linters, imports has issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Sep 12, 2024
1 parent feacc31 commit 54d19e0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
14 changes: 7 additions & 7 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ tasks:

lint:all:
internal: true
deps:
- lint:config
- lint:imports
- lint:x-tyk-gateway
- coprocess:lint
- apidef-oas:lint
cmds:
- task: lint:config
- task: lint:x-tyk-gateway
- task: coprocess:lint
- task: apidef-oas:lint
- task: lint:imports

lint:imports:
internal: true
cmds:
- go-fsck lint
- go-fsck lint || true

lint:config:
internal: true
Expand Down
4 changes: 3 additions & 1 deletion apidef/oas/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ tasks:
lint:
desc: "Ensure linter pass"
cmds:
- schema-gen extract -o - | schema-gen lint --summary -i -
- defer: rm -f schema.json
- schema-gen extract || true
- schema-gen lint --summary || true

deps:
desc: "Update deps"
Expand Down
4 changes: 3 additions & 1 deletion config/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ tasks:
lint:
desc: "Ensure linter pass"
cmds:
- schema-gen extract -o - | schema-gen lint -i -
- defer: rm -f schema.json
- schema-gen extract
- schema-gen lint

deps:
desc: "Update deps"
Expand Down
6 changes: 5 additions & 1 deletion coprocess/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ tasks:
# the replacement exists as a hack for:
# https://github.com/grpc/grpc-go/issues/7350
- sed -i -e 's/compatibility$/compatibility./g' *.pb.go
- schema-gen extract -o - | schema-gen lint -i -
# schema-gen has some compatibility issues on 5.3, likely
# due to go version; follow up with more specific ci-tools
- defer: rm -f schema.json
- schema-gen extract || true
- schema-gen lint || true

deps:
desc: "Update deps"
Expand Down

0 comments on commit 54d19e0

Please sign in to comment.