mirror of
https://github.com/sbrow/nix.git
synced 2026-06-27 10:48:33 -04:00
Compare commits
2 Commits
e815d8745b
...
4b6e7072da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b6e7072da | ||
|
|
0caabaf5a2 |
1
templates/go/.air.toml
Normal file
1
templates/go/.air.toml
Normal file
@@ -0,0 +1 @@
|
||||
tmp_dir = "var/air"
|
||||
@@ -1,12 +1,15 @@
|
||||
version: "2"
|
||||
linters:
|
||||
default: standard
|
||||
# default: all
|
||||
enable:
|
||||
- bidichk
|
||||
- containedctx
|
||||
- contextcheck
|
||||
- decorder
|
||||
- err13
|
||||
- depguard
|
||||
- err113
|
||||
- errchkjson
|
||||
- errorlint
|
||||
- exhaustive
|
||||
- fatcontext
|
||||
@@ -16,14 +19,53 @@ linters:
|
||||
- intrange
|
||||
- maintidx
|
||||
- modernize
|
||||
- nilnil
|
||||
- nlreturn
|
||||
- noctx
|
||||
- prealloc
|
||||
- recvcheck
|
||||
- sloglint
|
||||
- unparam
|
||||
- unused
|
||||
- usestdlibvars
|
||||
- whitespace
|
||||
disable:
|
||||
# Deprecateed
|
||||
- gomodguard
|
||||
- wsl
|
||||
|
||||
# Comment checker
|
||||
- revive
|
||||
- wrapcheck # reinclude
|
||||
|
||||
# Not useful
|
||||
- cyclop
|
||||
- funlen
|
||||
- gocognit
|
||||
- gocyclo
|
||||
- nestif
|
||||
- noinlineerr
|
||||
- tagalign
|
||||
- tagliatelle
|
||||
- varnamelen
|
||||
- wsl_v5
|
||||
settings:
|
||||
depguard:
|
||||
rules:
|
||||
main:
|
||||
list-mode: strict
|
||||
files:
|
||||
"**/main.go"
|
||||
allow:
|
||||
- "$gostd"
|
||||
catchall:
|
||||
list-mode: strict
|
||||
files:
|
||||
- "!$test"
|
||||
- "!**/main.go"
|
||||
- "**/internal/**"
|
||||
allow:
|
||||
- "$gostd"
|
||||
- "golang.org/**"
|
||||
recvcheck:
|
||||
disable-builtin: false
|
||||
exclusions:
|
||||
@@ -31,3 +73,4 @@ linters:
|
||||
formatters:
|
||||
enable:
|
||||
- goimports
|
||||
- golines
|
||||
|
||||
Reference in New Issue
Block a user