-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
1 changed file
with
132 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
run: | ||
tests: true | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: true | ||
goimports: | ||
local-prefixes: github.com/iotaledger | ||
golint: | ||
min-confidence: 0.9 | ||
gocyclo: | ||
min-complexity: 15 | ||
govet: | ||
check-shadowing: false | ||
misspell: | ||
locale: US | ||
staticcheck: | ||
checks: ["all"] | ||
stylecheck: | ||
initialisms: ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS"] | ||
|
||
linters: | ||
# Disable all linters. | ||
disable-all: true | ||
# Enable specific linter | ||
enable: | ||
- deadcode | ||
- errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- typecheck | ||
- unused | ||
- varcheck | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
- decorder | ||
#- depguard | ||
- dogsled | ||
- dupl | ||
- durationcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- execinquery | ||
- exhaustive | ||
#- exhaustruct | ||
- exportloopref | ||
- forcetypeassert | ||
- goconst | ||
- gocritic | ||
- godot | ||
- godox | ||
#- goerr113 | ||
- gofmt | ||
- goheader | ||
- goimports | ||
- golint | ||
#- gomnd | ||
- gomoddirectives | ||
- gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- grouper | ||
- ifshort | ||
- importas | ||
- interfacer | ||
- makezero | ||
- maligned | ||
- misspell | ||
- nakedret | ||
- nilerr | ||
- nilnil | ||
- nlreturn | ||
- noctx | ||
- nonamedreturns | ||
- nosnakecase | ||
- nosprintfhostport | ||
- prealloc | ||
- predeclared | ||
- promlinter | ||
- revive | ||
- rowserrcheck | ||
- scopelint | ||
- sqlclosecheck | ||
- structcheck | ||
- stylecheck | ||
- tagliatelle | ||
- tenv | ||
- testpackage | ||
#- thelper | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
- usestdlibvars | ||
#- varnamelen | ||
- wastedassign | ||
|
||
issues: | ||
# Maximum issues count per one linter. | ||
# Set to 0 to disable. | ||
# Default: 50 | ||
max-issues-per-linter: 0 | ||
# Maximum count of issues with the same text. | ||
# Set to 0 to disable. | ||
# Default: 3 | ||
max-same-issues: 0 | ||
#exclude: | ||
# - 'Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked' # errcheck | ||
# - "err113: do not define dynamic errors, use wrapped static errors instead:" # goerr113 | ||
# - "type name will be used as [0-9A-Za-z_.]+ by other packages, and that stutters; consider calling this" # golint | ||
# - "Potential file inclusion via variable" # gosec | ||
# - "G404: Use of weak random number generator" # gosec | ||
# - "Subprocess launch(ed with variable|ing should be audited)" # gosec | ||
# - "Use of unsafe calls should be audited" # gosec | ||
# - "G108: Profiling endpoint is automatically exposed on /debug/pprof" # gosec | ||
# - "(Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)" # gosec | ||
# - "G101: Potential hardcoded credentials" # gosec | ||
# - "(G104|G307)" # gosec Duplicated errcheck checks. | ||
# - "`[0-9A-Za-z_.]+` - `[0-9A-Za-z_.]+` always receives `[0-9A-Za-z_.]+`" # unparam | ||
# - "should have comment .*or be unexported" # revive | ||
# - "exported: comment on exported" # revive | ||
# - "package-comments: package comment should be of the form" # revive | ||
# - "blank-imports" # revive | ||
# - "var-naming: don't use leading k in Go names;" #revive | ||
# - 'shadow: declaration of "err"' # govet | ||
|