-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea5d439
commit 5fca48d
Showing
85 changed files
with
2,722 additions
and
2,939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
service: | ||
golangci-lint-version: 1.52.x | ||
|
||
# full list: https://golangci-lint.run/usage/linters/ | ||
linters: | ||
disable-all: true | ||
enable: | ||
- errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- typecheck | ||
- unused | ||
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
- decorder | ||
- dupl | ||
- goconst | ||
- gocritic | ||
- gofmt | ||
- goimports | ||
- gosec | ||
- noctx | ||
- nolintlint | ||
- prealloc | ||
- revive | ||
- stylecheck | ||
- unconvert | ||
- usestdlibvars | ||
|
||
# full list: https://golangci-lint.run/usage/configuration/ | ||
linters-settings: | ||
staticcheck: | ||
checks: [ "all" ] | ||
stylecheck: | ||
# ignore package comment and naming recommendations | ||
checks: [ "all", "-ST1000", "-ST1003", "-ST10016"] | ||
errcheck: | ||
check-blank: true | ||
govet: | ||
check-shadowing: true | ||
|
||
issues: | ||
new: true | ||
new-from-rev: origin/develop | ||
|
||
# Validates whole file instead of changed lines only, but produces many errors | ||
# on large files. We might consider enabling this flag to start improving the | ||
# source code file by file. Also, with `whole-files` turned off validators don't | ||
# check unchanged lines, even if the change leaded to an issue in other place. | ||
whole-files: false | ||
|
||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- errcheck | ||
- gosec | ||
- govet | ||
- gomnd | ||
- bodyclose | ||
- ineffassign | ||
|
||
include: | ||
- EXC0011 | ||
- EXC0012 | ||
- EXC0014 | ||
|
||
run: | ||
go: "1.19" | ||
skip-files: | ||
- ".*\\.pb\\.go$" # skip protobuf generated code | ||
|
||
output: | ||
format: tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ARG GO_VERSION=alpine | ||
ARG BASE=golang:1.18-alpine | ||
ARG BASE=golang:1.19-alpine | ||
|
||
FROM ${BASE} as builder | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.