We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05634fb commit e9c509bCopy full SHA for e9c509b
Makefile
@@ -11,4 +11,10 @@ unused-package-check:
11
@tidy=$$(go mod tidy); \
12
if [ -n "$${tidy}" ]; then \
13
echo "go mod tidy checking failed!"; echo "$${tidy}"; echo; \
14
- fi
+ fi
15
+.PHONY: format_and_lint
16
+format_and_lint:
17
+ @echo "------------------"
18
+ @echo "--> Formatting and linting the code"
19
20
+ @bash scripts/lint-check.sh
scripts/lint-check.sh
@@ -0,0 +1,2 @@
1
+find . -name '*.go' -type f -exec gofmt -s -w {} \;
2
+golangci-lint run --enable goimports --enable gofmt --timeout 10m
0 commit comments