mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[CI] Adjust linting default excludes to align with goreportcard (#934)
This commit is contained in:
parent
3ba06c2e9d
commit
2f8bcef621
|
@ -21,5 +21,16 @@ linters:
|
||||||
- whitespace
|
- whitespace
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
|
exclude:
|
||||||
|
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
|
||||||
|
- 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-issues-per-linter: 0
|
||||||
max-same-issues: 0
|
max-same-issues: 0
|
|
@ -8,6 +8,7 @@ import (
|
||||||
"github.com/authelia/authelia/internal/utils"
|
"github.com/authelia/authelia/internal/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ValidateKeys determines if a provided key is valid.
|
||||||
func ValidateKeys(validator *schema.StructValidator, keys []string) {
|
func ValidateKeys(validator *schema.StructValidator, keys []string) {
|
||||||
var errStrings []string
|
var errStrings []string
|
||||||
for _, key := range keys {
|
for _, key := range keys {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user