From 4213e766fa7d18528d1ff260b7afb6bbc66b40d4 Mon Sep 17 00:00:00 2001 From: Tronje Krop Date: Tue, 27 Jan 2026 09:34:04 +0100 Subject: [PATCH] feat: add codacy golangci-lint support (#175) Signed-off-by: Tronje Krop --- MANUAL.md | 30 ++++++----- Makefile | 2 +- Makefile.vars | 2 + VERSION | 2 +- config/AGENTS.md | 13 ++++- config/Makefile | 2 +- config/Makefile.base | 53 ++++++++++++------- config/Makefile.vars | 2 + go.mod | 6 +-- go.sum | 15 ++---- .../make/fixtures/targets/go-make-std.out | 6 +++ .../make/fixtures/targets/go-make-trace.out | 6 +++ internal/make/fixtures/targets/std.out | 6 +++ internal/make/fixtures/targets/trace.out | 6 +++ 14 files changed, 101 insertions(+), 50 deletions(-) diff --git a/MANUAL.md b/MANUAL.md index dbfb0bf..3aa472b 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -359,14 +359,15 @@ linting according to different quality levels, i.e. `min`,`base` (default), ```bash make lint # short cut to execute default lint targets make lint-code # lints the go-code using the default custom config -make lint-min # lints the go-code using a minimal config -make lint-base # lints the go-code using a baseline config -make lint-plus # lints the go-code using an advanced config -make lint-max # lints the go-code using an expert config +make lint-min # lints the go-code using a minimal config (golangci-lint) +make lint-base # lints the go-code using a baseline config (golangci-lint) +make lint-plus # lints the go-code using an advanced config (golangci-lint) +make lint-max # lints the go-code using an expert config (golangci-lint) make lint-all # lints the go-code using an insane all-in config make lint-codacy # lints the go-code using codacy client side tools -make lint-markdown # lints the documentation using markdownlint make lint-revive # lints the go-code using the revive standalone linter +make lint-golangci # lints the go-code using the golangci linter (codacy upload) +make lint-markdown # lints the documentation using markdownlint make lint-shell # lints the sh-code using shellcheck to find issues make lint-leaks # lints committed code using gitleaks for leaked secrets make lint-leaks? # lints un-committed code using gitleaks for leaked secrets @@ -484,8 +485,8 @@ make update-go # updates go to the given, current, or latest version make update-deps # updates project dependencies to the latest version make update-make # updates build environment to a given/latest version make update-tools # updates project tools to a given/latest version -make update-mocks # updates generated mock sources to latest version make update-kube # updates generated kubernetes source to latest version +make update-mocks # updates generated mock sources to latest version make update-* # updates a specific tool to a given/latest version ``` @@ -577,14 +578,17 @@ need to call them manually. ```bash -make init # short cut for 'init-git init-hooks init-go init-make' -make init-go # initializes go project files -make init-git # initializes git resource revision control -make init-hooks # initializes git hooks for pre-commit, etc +make init # short cut for 'init-code' +make init-code # initializes project with generated code files +make init-code! # initializes project with generated code and project files +make init-go # initializes the go modules and dependencies +make init-kube # initializes generated kubernetes source files +make init-mocks # initializes generated mock source files +make init-git # initializes the project with git revision management +make init-hooks # initializes the pre-commit and commit-msg hooks make init-codacy # initializes tools for running the codacy targets -make init-code # initializes code by generating mocks and kube-apis -make init-make # initializes project by copying template files -make init-make! # initializes Makefile to contain a copy of Makefile.base +make init-make # initializes template config and project files +make init-make! # initializes the non-template Makefile ``` The `init-make` targets support a `` argument to install the config diff --git a/Makefile b/Makefile index 92791ea..d08836c 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ TMPDIR ?= /tmp # Setup default go-make installation flags. INSTALL_FLAGS ?= -mod=readonly -buildvcs=auto # Setup go-make version to use desired build and config scripts. -GOMAKE_DEP ?= github.com/tkrop/go-make@v0.0.164 +GOMAKE_DEP ?= github.com/tkrop/go-make@v0.0.165 # Request targets from go-make show-targets target. TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \ $(GO) install $(INSTALL_FLAGS) $(GOMAKE_DEP) >&2 && \ diff --git a/Makefile.vars b/Makefile.vars index 875cb59..5917449 100644 --- a/Makefile.vars +++ b/Makefile.vars @@ -9,6 +9,8 @@ CODE_QUALITY := max # Setup codacy integration (default: enabled [enabled, disabled]). #CODACY := enabled +# Setup codacy code quality level (default: same as CODE_QUALITY). +#CODACY_QUALITY := max # Customizing codacy server (default: https://api.codacy.com). #CODACY_API_BASE_URL := https://api.codacy.com # Continue after codacy shows violation (default: false / true [cdp-pipeline]). diff --git a/VERSION b/VERSION index 7721f7c..f9fed35 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.164 +0.0.165 diff --git a/config/AGENTS.md b/config/AGENTS.md index 33e5565..7e5f11d 100644 --- a/config/AGENTS.md +++ b/config/AGENTS.md @@ -24,6 +24,7 @@ generic Go conventions when different. * Add short, concise doc comments for all exported functions, types, and constants. * Be sparse with inline comments and let the code speak. +* Add an empty line before `return` statements. ## Naming & documentation @@ -157,6 +158,14 @@ patterns: * Mocks should be dynamically generated via `go:generate mockgen` using `go.uber.org/mock/mockgen` into `mock__test.go` files. * Mock setup should be based on `github.com/tkrop/go-testing/mock`. + * Mock setup should always prefer `mock.Chain` and `Times(1)` (default) over + `mock.Setup` and `AnyTimes` to validate the correct order of calls. + * If mock calls happen from different go routines, use `mock.Parallel` to + coordinate the different `mock.Chain`s. + * Mocks should avoid `gomock.Any` and instead validate the actual values. +* In test always prefer using `github.com/tkrop/go-testing` methods and modules + over custom implementations. Imporant examples are: `test.Must`, `test.Cast`, + `test.Ptr`, `test.First`, `test.Main`, `test.Recover`, and `test.DeepCopy`. ### Parameter type definition @@ -188,7 +197,9 @@ patterns: * Ensure that parameters are unexported if possible. * Ensure that expectations provide the exact match and can be compared by a single `assert.Equal`. -* Ensure that expectations cover both, validity and outcome. +* Ensure that expectations cover both, validity and outcome by value. +* If test case parameters are set to `nil`, `false`, or `0` they should be + in general omitted instead of being explicitly set. ### Test case declaration diff --git a/config/Makefile b/config/Makefile index 92791ea..d08836c 100644 --- a/config/Makefile +++ b/config/Makefile @@ -18,7 +18,7 @@ TMPDIR ?= /tmp # Setup default go-make installation flags. INSTALL_FLAGS ?= -mod=readonly -buildvcs=auto # Setup go-make version to use desired build and config scripts. -GOMAKE_DEP ?= github.com/tkrop/go-make@v0.0.164 +GOMAKE_DEP ?= github.com/tkrop/go-make@v0.0.165 # Request targets from go-make show-targets target. TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \ $(GO) install $(INSTALL_FLAGS) $(GOMAKE_DEP) >&2 && \ diff --git a/config/Makefile.base b/config/Makefile.base index 71cfb0c..22037d0 100644 --- a/config/Makefile.base +++ b/config/Makefile.base @@ -177,7 +177,7 @@ DIR_CACHE := $(abspath $(TMPDIR))/go-make-$(USER)$(DIR_REAL) $(call cdebug,using DIR_CACHE [$(DIR_CACHE)]) # Setup go-make to use desired build and config scripts. -GOMAKE_DEP := github.com/tkrop/go-make@v0.0.164 +GOMAKE_DEP := github.com/tkrop/go-make@v0.0.165 GOMAKE_PATH := $(GOPATH)/pkg/mod/$(GOMAKE_DEP)/config GOMAKE_MAKEFILE := $(realpath $(firstword $(MAKEFILE_LIST))) GOMAKE_CONFIG := $(patsubst %/,%,$(dir $(GOMAKE_MAKEFILE))) @@ -527,13 +527,14 @@ CODACY_PROVIDER ?= ghe CODACY_USER ?= $(GITOWNER) CODACY_PROJECT ?= $(GITREPO) CODACY_API_BASE_URL ?= https://api.codacy.com +CODACY_QUALITY ?= $(CODE_QUALITY) CODACY_CLIENTS ?= aligncheck -CODACY_BINARIES ?= gosec staticcheck +CODACY_BINARIES ?= golangci gosec staticcheck ifdef CODACY_JRE_HOME JRE_HOME := $(CODACY_JRE_HOME) endif # https://github.com/codacy/codacy-gosec/tags -CODACY_GOSEC_VERSION ?= 1.0.0 +CODACY_GOSEC_VERSION ?= 1.0.2 CODACY_GOSEC_EXTENSION ?= $(CODACY_GOSEC_VERSION) # https://github.com/codacy/codacy-staticcheck/tags CODACY_STATICCHECK_VERSION ?= 3.0.18 @@ -541,9 +542,12 @@ CODACY_STATICCHECK_EXTENSION ?= $(CODACY_STATICCHECK_VERSION) # https://github.com/codacy/codacy-analysis-cli/tags CODACY_ANALYSIS-CLI_VERSION ?= 7.10.0 CODACY_ANALYSIS-CLI_EXTENSION ?= assembly.jar +# https://github.com/codacy/codacy-golangci-lint/tags +CODACY_GOLANGCI_VERSION ?= lint-0.0.4 +CODACY_GOLANGCI_EXTENSION ?= $(CODACY_GOLANGCI_VERSION) # https://github.com/codacy/codacy-coverage-reporter/tags ifneq ($(CODACY_API_BASE_URL),https://api.codacy.com) - CODACY_REPORTER_VERSION ?= 13.13.13 + CODACY_REPORTER_VERSION ?= 14.1.0 else # always use latest version for codacy.com CODACY_REPORTER_VERSION ?= endif @@ -567,8 +571,8 @@ UPDATE_KUBE_TARGETS := install-deepcopy-gen install-client-gen \ # Default target list for all and pipeline builds. -TARGETS_ALL ?= init-hooks test lint build image -TARGETS_INIT ?= init-git init-hooks init-go init-make +TARGETS_ALL ?= test lint build image +TARGETS_INIT ?= init-hooks init-kube init-mocks TARGETS_COMMIT ?= test-go test-unit lint-leaks? lint-$(CODE_QUALITY) lint-markdown TARGETS_TEST ?= test-all $(if $(filter $(CODACY),enabled),test-upload,) TARGETS_LINT ?= lint-leaks? lint-$(CODE_QUALITY) lint-markdown lint-apis \ @@ -1011,8 +1015,17 @@ git-push:: ## Init: targets to initialize tools and (re-)sources. -#@ initialize the project to prepare it for building. -init:: $(TARGETS_INIT) +#@ initialize a project for building, testing, and running. +init:: init-code +#@ initialize a project with generated sources for building, testing, and running. +init-code:: $(TARGETS_INIT) +#@ initialize a new project with generated sources for building, testing, and running. +init-code!:: init-git init-hooks init-make init-go init-code +#@ initialize kubernetes sources (api clients and manifests) with latest version. +init-kube:: update-kube +#@ initialize mock source files using mockgen with latest version. +init-mocks:: update-mocks + #@ initialize the project with git revision management. init-git: @if [ ! -d "$(DIR_GIT)" ]; then \ @@ -1040,21 +1053,14 @@ $(DIR_GIT)/hooks/pre-commit: $(MAKEFILE_LIST) $(git-hooks-pre-commit) >$@; chmod 755 $@; \ fi; -#@ initialize the go module and package dependencies. -init-go:: go.mod +#@ initialize the go modules and dependencies. +init-go:: go.mod go.sum go.sum go.mod&: $(SOURCES) @$(call emsg,info,updating [go.mod&go.sum]); $(if $(SOURCES), \ $(if $(wildcard go.mod),,$(GO) mod init "$(GITURL)" &&) \ - $(GO) mod tidy -x -v -e -compat=$(GOVERSION) && \ - touch go.mod go.sum && $(GO) mod download;) - -#@ initialize the generated sources. -init-code:: init-hooks init-kube init-mocks -#@ initialize kubernetes sources (api clients and manifests) with latest version. -init-kube:: update-kube -#@ initialize mock source files using mockgen to latest version. -init-mocks:: update-mocks + $(GO) mod download all && touch go.mod go.sum && \ + $(GO) mod tidy -x -v -e -compat=$(GOVERSION)) #@ initialize the codacy support. init-codacy:: $(TARGETS_INIT_CODACY) init-jre @@ -1497,6 +1503,11 @@ LINT_ARGS_GOSEC_LOCAL := -log /dev/null -exclude G307 ./... LINT_ARGS_GOSEC_UPLOAD := -log /dev/null -exclude G307 -fmt json ./... LINT_ARGS_STATICCHECK_LOCAL := -tests ./... LINT_ARGS_STATICCHECK_UPLOAD := -tests -f json ./... +LINT_ARGS_GOLANGCI_LOCAL := run $(GOLANGCI_CONFIG) $(LINT_FLAGS) \ + $(LINT_ARGS_$(call upper,$(CODACY_QUALITY))) +LINT_ARGS_GOLANGCI_UPLOAD := run $(GOLANGCI_CONFIG) $(LINT_FLAGS) \ + --output.json.path stdout $(LINT_ARGS_$(call upper,$(CODACY_QUALITY))) \ + 2>/dev/null $(TARGETS_LINT_CODACY_BINARIES):: lint-%: init-code init-% install-% @$(call emsg,info,linting [$*]); COMMIT=$$($(GITHASH)); \ @@ -1721,6 +1732,8 @@ install:: $(TARGETS_INSTALL) #@ install all software created and used by the project. install-all:: $(TARGETS_INSTALL_ALL) #@ install-*: install the matched software command or service. +install-golangci:: install-golangci-lint + ln --symbolic --force "$(GOBIN)/golangci-lint" "$(GOBIN)/golangci"; # install go tools used by the project. $(TARGETS_INSTALL_GO):: install-%: $(GOBIN)/% @@ -1754,6 +1767,8 @@ uninstall:: $(TARGETS_UNINSTALL) #@ uninstall all software created and used by the projct. uninstall-all:: $(TARGETS_UNINSTALL_ALL) #@ uninstall-*: uninstall the matched software command or service. +uninstall-golangci:: uninstall-golangci-lint + @rm --verbose --force "$(GOBIN)/golangci"; # uninstall go tools used by the project. $(TARGETS_UNINSTALL_GO):: uninstall-%: diff --git a/config/Makefile.vars b/config/Makefile.vars index a2ea82a..71f4aa4 100644 --- a/config/Makefile.vars +++ b/config/Makefile.vars @@ -9,6 +9,8 @@ CODE_QUALITY := base # Setup codacy integration (default: enabled [enabled, disabled]). #CODACY := enabled +# Setup codacy code quality level (default: same as CODE_QUALITY). +#CODACY_QUALITY := max # Customizing codacy server (default: https://api.codacy.com). #CODACY_API_BASE_URL := https://api.codacy.com # Continue after codacy shows violation (default: false / true [cdp-pipeline]). diff --git a/go.mod b/go.mod index f16a89b..bf66415 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/tkrop/go-make -go 1.25.5 +go 1.25.6 require ( github.com/stretchr/testify v1.11.1 @@ -13,7 +13,7 @@ require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/kr/pretty v0.3.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/sirupsen/logrus v1.9.3 // indirect - golang.org/x/sys v0.39.0 // indirect + github.com/sirupsen/logrus v1.9.4 // indirect + golang.org/x/sys v0.40.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 155f2bc..f4d67de 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,4 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -8,15 +6,12 @@ github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3x github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= -github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w= +github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/tkrop/go-config v0.0.21 h1:wp6ucwa9W7sggvZizu8LpnrdW3kaP+hph1PSSetcF1Y= @@ -25,12 +20,10 @@ github.com/tkrop/go-testing v0.0.44 h1:axBm94gQ7d0EzuyT/ik/nNrs+fUQZVL9+VzeKkrtD github.com/tkrop/go-testing v0.0.44/go.mod h1:rBKZGfm4PpsQl2R/XVcDZFpnS6uGaNMVvOIwCoOn9YQ= go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= -golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= +golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/make/fixtures/targets/go-make-std.out b/internal/make/fixtures/targets/go-make-std.out index 25276f0..ff669f3 100644 --- a/internal/make/fixtures/targets/go-make-std.out +++ b/internal/make/fixtures/targets/go-make-std.out @@ -132,8 +132,10 @@ init-agents init-analysis-cli init-codacy init-code +init-code! init-git init-go +init-golangci init-gosec init-hooks init-java @@ -160,6 +162,7 @@ install-go-make install-gocognit install-gocyclo install-gojq +install-golangci install-golangci-lint install-gomajor install-gosec @@ -186,6 +189,7 @@ lint-code lint-config lint-gocognit lint-gocyclo +lint-golangci lint-gosec lint-leaks lint-leaks? @@ -223,6 +227,7 @@ test-upload uninstall uninstall-all uninstall-client-gen +uninstall-codacy-golangci uninstall-codacy-gosec uninstall-codacy-staticcheck uninstall-controller-gen @@ -232,6 +237,7 @@ uninstall-go-make uninstall-gocognit uninstall-gocyclo uninstall-gojq +uninstall-golangci uninstall-golangci-lint uninstall-gomajor uninstall-gosec diff --git a/internal/make/fixtures/targets/go-make-trace.out b/internal/make/fixtures/targets/go-make-trace.out index 8b82ee1..282b3bd 100644 --- a/internal/make/fixtures/targets/go-make-trace.out +++ b/internal/make/fixtures/targets/go-make-trace.out @@ -143,8 +143,10 @@ init-agents init-analysis-cli init-codacy init-code +init-code! init-git init-go +init-golangci init-gosec init-hooks init-java @@ -171,6 +173,7 @@ install-go-make install-gocognit install-gocyclo install-gojq +install-golangci install-golangci-lint install-gomajor install-gosec @@ -197,6 +200,7 @@ lint-code lint-config lint-gocognit lint-gocyclo +lint-golangci lint-gosec lint-leaks lint-leaks? @@ -234,6 +238,7 @@ test-upload uninstall uninstall-all uninstall-client-gen +uninstall-codacy-golangci uninstall-codacy-gosec uninstall-codacy-staticcheck uninstall-controller-gen @@ -243,6 +248,7 @@ uninstall-go-make uninstall-gocognit uninstall-gocyclo uninstall-gojq +uninstall-golangci uninstall-golangci-lint uninstall-gomajor uninstall-gosec diff --git a/internal/make/fixtures/targets/std.out b/internal/make/fixtures/targets/std.out index 25276f0..ff669f3 100644 --- a/internal/make/fixtures/targets/std.out +++ b/internal/make/fixtures/targets/std.out @@ -132,8 +132,10 @@ init-agents init-analysis-cli init-codacy init-code +init-code! init-git init-go +init-golangci init-gosec init-hooks init-java @@ -160,6 +162,7 @@ install-go-make install-gocognit install-gocyclo install-gojq +install-golangci install-golangci-lint install-gomajor install-gosec @@ -186,6 +189,7 @@ lint-code lint-config lint-gocognit lint-gocyclo +lint-golangci lint-gosec lint-leaks lint-leaks? @@ -223,6 +227,7 @@ test-upload uninstall uninstall-all uninstall-client-gen +uninstall-codacy-golangci uninstall-codacy-gosec uninstall-codacy-staticcheck uninstall-controller-gen @@ -232,6 +237,7 @@ uninstall-go-make uninstall-gocognit uninstall-gocyclo uninstall-gojq +uninstall-golangci uninstall-golangci-lint uninstall-gomajor uninstall-gosec diff --git a/internal/make/fixtures/targets/trace.out b/internal/make/fixtures/targets/trace.out index f940bae..9e2f21a 100644 --- a/internal/make/fixtures/targets/trace.out +++ b/internal/make/fixtures/targets/trace.out @@ -143,8 +143,10 @@ init-agents init-analysis-cli init-codacy init-code +init-code! init-git init-go +init-golangci init-gosec init-hooks init-java @@ -171,6 +173,7 @@ install-go-make install-gocognit install-gocyclo install-gojq +install-golangci install-golangci-lint install-gomajor install-gosec @@ -197,6 +200,7 @@ lint-code lint-config lint-gocognit lint-gocyclo +lint-golangci lint-gosec lint-leaks lint-leaks? @@ -234,6 +238,7 @@ test-upload uninstall uninstall-all uninstall-client-gen +uninstall-codacy-golangci uninstall-codacy-gosec uninstall-codacy-staticcheck uninstall-controller-gen @@ -243,6 +248,7 @@ uninstall-go-make uninstall-gocognit uninstall-gocyclo uninstall-gojq +uninstall-golangci uninstall-golangci-lint uninstall-gomajor uninstall-gosec