Skip to content

Commit

Permalink
golangci-lint: enable all linters for specific repo for gray testing
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlJi committed May 31, 2024
1 parent 0b81ffe commit 9d297f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \

ENV PATH /usr/local/go/bin:$PATH

RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/go/bin v1.56.2
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/go/bin 1.59.0

# install shellcheck lint tools
RUN apt-get update && apt-get install -y shellcheck \
Expand Down
8 changes: 8 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ customConfig: # custom config for specific orgs or repos
luacheck:
enable: true
workDir: "nginx" # only run in the nginx directory since there are .luacheckrc files in this directory
qbox/net-cache:
golangci-lint:
enable: true
args: ["run", "--enable-all","-D", "staticcheck", "--timeout 5m0s"] # disable staticcheck globally since we have a separate linter for it
qbox/net-gslb:
golangci-lint:
enable: true
args: ["run", "--enable-all","-D", "staticcheck","--timeout 5m0s"] # disable staticcheck globally since we have a separate linter for it

qbox/kodo:
staticcheck:
Expand Down

0 comments on commit 9d297f9

Please sign in to comment.