chore: move golangci-lint.yaml to .golangci.yml

This allows local runs of golangci-lint to use the default config path.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
Andrew Rynhard 2020-02-17 16:45:30 -08:00
parent 16594a83a8
commit c9a8605f87
3 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@
!pkg
!vendor
!web
!.golangci.yml
!.markdownlint.json
!go.mod
!go.sum

View File

@ -397,9 +397,9 @@ COPY --from=integration-test-darwin-build /src/integration.test /integration-tes
# The lint target performs linting on the source code.
FROM base AS lint-go
COPY hack/golang/golangci-lint.yaml .
COPY .golangci.yml .
ENV GOGC=50
RUN --mount=type=cache,target=/.cache/go-build golangci-lint run --config golangci-lint.yaml
RUN --mount=type=cache,target=/.cache/go-build golangci-lint run --config .golangci.yml
RUN find . -name '*.pb.go' | xargs rm
RUN FILES="$(gofumports -l -local github.com/talos-systems/talos .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'gofumports -w -local github.com/talos-systems/talos .':\n${FILES}"; exit 1)