diff --git a/.golangci.yml b/.golangci.yml index cc2469c5d..c16541f76 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,14 +3,12 @@ # SPDX-License-Identifier: CC0-1.0 run: - deadline: 10m - - skip-files: - - "zz_\\..+\\.go$" + timeout: 10m output: # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" - format: colored-line-number + formats: + - format: colored-line-number linters-settings: errcheck: @@ -25,7 +23,8 @@ linters-settings: # [deprecated] comma-separated list of pairs of the form pkg:regex # the regex is used to ignore names within pkg. (default "fmt:.*"). # see https://github.com/kisielk/errcheck#the-deprecated-method for details - ignore: fmt:.*,io/ioutil:^Read.* + exclude-files: + - fmt:.*,io/ioutil:^Read.* govet: # report about shadowed variables @@ -108,17 +107,18 @@ linters-settings: linters: enable: - - megacheck - govet - gocyclo - gocritic - - interfacer - goconst - goimports - gofmt # We enable this as well as goimports for its simplify mode. + - gosimple - prealloc - revive + - staticcheck - unconvert + - unused - misspell - nakedret @@ -129,6 +129,8 @@ linters: issues: + exclude-files: + - "zz_\\..+\\.go$" # Excluding configuration per-path and per-linter exclude-rules: # Exclude some linters from running on tests files. @@ -140,7 +142,7 @@ issues: - gosec - scopelint - unparam - + # Ease some gocritic warnings on test files. - path: _test\.go text: "(unnamedResult|exitAfterDefer)" diff --git a/build b/build index b0dfb8fbe..d3155548b 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit b0dfb8fbe8c626e3e0f0b6efdfac926d750adf48 +Subproject commit d3155548bfab68fc8bea64c5526642b7b565ae33 diff --git a/cluster/images/provider-gcp/Dockerfile b/cluster/images/provider-gcp/Dockerfile index a478cc86a..dcee5f83b 100644 --- a/cluster/images/provider-gcp/Dockerfile +++ b/cluster/images/provider-gcp/Dockerfile @@ -7,9 +7,10 @@ ARG CROSSPLANE_PROVIDER_VERSION ENV USER_ID=65532 # set user agent -ENV GOOGLE_TERRAFORM_USERAGENT_EXTENSION "upbound-provider-gcp/${CROSSPLANE_PROVIDER_VERSION}" +ENV GOOGLE_TERRAFORM_USERAGENT_EXTENSION="upbound-provider-gcp/${CROSSPLANE_PROVIDER_VERSION}" USER ${USER_ID} EXPOSE 8080 -ENTRYPOINT ["provider"] \ No newline at end of file +ENTRYPOINT ["provider"] +