File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 34
34
run : make lint-yaml
35
35
- name : shellcheck
36
36
run : make lint-shell
37
+ - name : go imports ordering
38
+ run : |
39
+ go install -v github.com/incu6us/goimports-reviser/v3@latest
40
+ make lint-imports
37
41
38
42
test-unit :
39
43
runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change @@ -70,7 +70,13 @@ clean:
70
70
lint : lint-go lint-yaml lint-shell
71
71
72
72
lint-go :
73
- cd $(MAKEFILE_DIR ) && golangci-lint run $(VERBOSE_FLAG_LONG )
73
+ cd $(MAKEFILE_DIR ) && golangci-lint run $(VERBOSE_FLAG_LONG ) ./...
74
+
75
+ lint-imports :
76
+ cd $(MAKEFILE_DIR ) && goimports-reviser -list-diff -company-prefixes " github.com/containerd" ./...
77
+
78
+ lint-fix-imports :
79
+ cd $(MAKEFILE_DIR ) && goimports-reviser -company-prefixes " github.com/containerd" ./...
74
80
75
81
lint-yaml :
76
82
cd $(MAKEFILE_DIR ) && yamllint .
You can’t perform that action at this time.
0 commit comments