diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-07-30 13:00:37 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-04 21:58:06 +0200 |
commit | 57de50b7d44a077914195c6006af4db3c9c6f1cc (patch) | |
tree | 0f865926fba4a246d6fb0edafa4517c28a9219e4 /.golangci.toml | |
parent | 70bfcfef42578079f211d87cddc49519ee3503dc (diff) | |
download | aerc-57de50b7d44a077914195c6006af4db3c9c6f1cc.tar.gz |
lint: add golangci-lint to the linters
go vet has been removed from the lint step as it is run by the new
linter.
Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to '.golangci.toml')
-rw-r--r-- | .golangci.toml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.golangci.toml b/.golangci.toml new file mode 100644 index 00000000..97c1f7fb --- /dev/null +++ b/.golangci.toml @@ -0,0 +1,19 @@ +[run] +# include notmuch codes +build-tags = ["notmuch"] +# don't lint tests +tests = false + +# enable additional linters +[linters] +enable = [ + "nolintlint", # nolint comments require justification + "errorlint", # check to ensure no problems with wrapped errors + "gocritic", # check for bugs, performance, and style issues + "gofmt", # check that gofmt is satisfied +] + +[linters-settings.nolintlint] +allow-unused = false # don't allow nolint if not required +require-explanation = true # require an explanation when disabling a linter +requre-specific = true # linter exceptions must specify the linter |