mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
d33d6c2f00
This change implements yamllint and adjusts all yaml files to abide by our linting setup. This excludes config.template.yml as this will be done in an alternate commit.
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
---
|
|
run:
|
|
timeout: 3m
|
|
|
|
linters-settings:
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 2
|
|
gocyclo:
|
|
min-complexity: 15
|
|
godot:
|
|
check-all: true
|
|
goimports:
|
|
local-prefixes: github.com/authelia/authelia
|
|
|
|
linters:
|
|
enable:
|
|
- asciicheck
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- godot
|
|
- gofmt
|
|
- goimports
|
|
- golint
|
|
- gosec
|
|
- misspell
|
|
- nolintlint
|
|
- prealloc
|
|
- unconvert
|
|
- unparam
|
|
- whitespace
|
|
- wsl
|
|
|
|
issues:
|
|
exclude:
|
|
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked # yamllint disable-line rule:line-length
|
|
- func name will be used as test\.Test.* by other packages, and that stutters; consider calling this
|
|
- (possible misuse of unsafe.Pointer|should have signature)
|
|
- ineffective break statement. Did you mean to break out of the outer loop
|
|
- Use of unsafe calls should be audited
|
|
- Subprocess launch(ed with variable|ing should be audited)
|
|
- (G104|G307)
|
|
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
|
|
- Potential file inclusion via variable
|
|
exclude-use-default: false
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
...
|