diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6dd413357d0d6decec00cb277a0df586a4e5a0b9..ca7d177314f2f7cb718128b02942abb58cc0393a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -308,8 +308,9 @@ lint-strict: retry: 2 script: - go version - # b7e24f70b (Add graph from graffle, 2016-11-14) is the root commit - - GOLANGCI_LINT_OPTIONS="--new-from-rev='b7e24f70b71ae8aeb0b6a0d91bf49960e17cb3a3'" make lint + - make lint-strict + rules: + - if: '$CI_PIPELINE_SOURCE == "schedule"' objectinfo_fuzz_test: extends: .fuzz_base diff --git a/Makefile b/Makefile index 930fbe916d5c04674390821c95f9be5551aecef0..ca839bf9375be511dded9ac963cb535a4b04317a 100644 --- a/Makefile +++ b/Makefile @@ -264,6 +264,11 @@ check-mod-tidy: lint: ${GOLANGCI_LINT} libgit2 ${Q}${GOLANGCI_LINT} cache clean && ${GOLANGCI_LINT} run --build-tags "${GO_BUILD_TAGS}" --out-format tab --config ${SOURCE_DIR}/.golangci.yml ${GOLANGCI_LINT_OPTIONS} +.PHONY: lint-strict +lint-strict: + # b7e24f70b (Add graph from graffle, 2016-11-14) is the root commit + ${Q}GOLANGCI_LINT_OPTIONS="--new-from-rev='b7e24f70b71ae8aeb0b6a0d91bf49960e17cb3a3'" $(MAKE) lint + .PHONY: check-formatting check-formatting: ${GOIMPORTS} ${GITALYFMT} ${Q}${GOIMPORTS} -l $(call find_go_sources) | awk '{ print } END { if(NR>0) { print "goimports error, run make format"; exit(1) } }'