aboutsummaryrefslogtreecommitdiffstats
path: root/.golangci.toml
diff options
context:
space:
mode:
Diffstat (limited to '.golangci.toml')
-rw-r--r--.golangci.toml19
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