Skip to content

Commit d70d1f6

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent 63309df commit d70d1f6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.golangci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ linters:
138138
- G112
139139
# created file permissions are restricted by umask if necessary
140140
- G306
141+
# the following lints cause false-positives in many repositories, should be fixed with the next release. (see https://github.com/securego/gosec/issues/1500)
142+
- G701
143+
- G702
144+
- G703
145+
- G704
146+
- G705
147+
- G706
141148
govet:
142149
disable:
143150
- fieldalignment

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ license-headers: FORCE install-addlicense install-reuse
143143
@printf "\e[1;36m>> addlicense (for license headers on source code files)\e[0m\n"
144144
@printf "%s\0" $(patsubst $(shell awk '$$1 == "module" {print $$2}' go.mod)%,.%/*.go,$(shell go list ./...)) | $(XARGS) -0 -I{} bash -c 'year="$$(grep 'Copyright' {} | head -n1 | grep -E -o '"'"'[0-9]{4}(-[0-9]{4})?'"'"')"; if [[ -z "$$year" ]]; then year=$$(date +%Y); fi; gawk -i inplace '"'"'{if (display) {print} else {!/^\/\*/ && !/^\*/}}; {if (!display && $$0 ~ /^(package |$$)/) {display=1} else { }}'"'"' {}; addlicense -c "SAP SE or an SAP affiliate company" -s=only -y "$$year" -- {}; $(SED) -i '"'"'1s+// Copyright +// SPDX-FileCopyrightText: +'"'"' {}; '
145145
@printf "\e[1;36m>> reuse annotate (for license headers on other files)\e[0m\n"
146-
@reuse lint -j | jq -r '.non_compliant.missing_licensing_info[]' | grep -vw vendor | $(XARGS) reuse annotate -c 'SAP SE or an SAP affiliate company' -l Apache-2.0 --skip-unrecognised
146+
@reuse lint -j | jq -r '.non_compliant.missing_licensing_info[]' | sed '/\<vendor\>/d' | $(XARGS) reuse annotate -c 'SAP SE or an SAP affiliate company' -l Apache-2.0 --skip-unrecognised
147147
@printf "\e[1;36m>> reuse download --all\e[0m\n"
148148
@reuse download --all
149149
@printf "\e[1;35mPlease review the changes. If *.license files were generated, consider instructing go-makefile-maker to add overrides to REUSE.toml instead.\e[0m\n"

0 commit comments

Comments
 (0)