We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9d941 commit 8fd16e2Copy full SHA for 8fd16e2
Makefile
@@ -44,15 +44,11 @@ PULL_BASE_SHA ?= master
44
45
.PHONY: lint
46
lint:
47
- hack/golangci-lint.sh run --new-from-rev=${PULL_BASE_SHA}
+ hack/golangci-lint.sh run --new-from-rev=${PULL_BASE_SHA} ${EXTRA_ARGS}
48
49
-# While https://github.com/golangci/golangci-lint/issues/1779 is not fixed,
50
-# we need to run the fix separately from the lint command.
51
-# GolangCI-Lint will not actually run the fixer for us.
52
-# In the future we can remove this and have the linter auto-fix.
53
.PHONY: lint-fix
54
-lint-fix:
55
- hack/lint-fix.sh
+lint-fix: EXTRA_ARGS=--fix
+lint-fix: lint
56
57
# Ignore the exit code of the fix lint, it will always error as there are unfixed issues
58
# that cannot be fixed from historic commits.
hack/lint-fix.sh
0 commit comments