-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- change json format to yaml - skip G204 (gosec) - fix others lint errors Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
- Loading branch information
1 parent
e487f04
commit e6c1457
Showing
6 changed files
with
56 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
linters: | ||
disable-all: true | ||
enable: | ||
- goimports | ||
- gofmt | ||
- misspell | ||
- revive | ||
- gosec | ||
- prealloc | ||
run: | ||
skip-files: | ||
- /zz_generated_ | ||
- _generated | ||
skip-dirs: | ||
- generated | ||
deadline: 5m | ||
tests: true | ||
build-tags: | ||
- test | ||
linters-settings: | ||
gosec: | ||
# https://github.com/securego/gosec#available-rules | ||
excludes: | ||
- G101 # Look for hard coded credentials | ||
- G108 # Profiling endpoint is automatically exposed on /debug/pprof | ||
- G401 # Use of weak cryptographic primitive | ||
- G402 # TLS InsecureSkipVerify set true | ||
- G505 # Blocklisted import crypto/md5: weak cryptographic primitive | ||
config: | ||
G306: "0644" # Poor file permissions used when writing to a new file |
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
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
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
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