Add linters to check Golang code #16
Annotations
10 errors and 1 warning
build
ifElseChain: rewrite if-else to switch statement (gocritic)
|
build
regexpMust: for const patterns like "\"(.*)\"", use regexp.MustCompile (gocritic)
|
build
ifElseChain: rewrite if-else to switch statement (gocritic)
|
build
Comment should end in a period (godot)
|
build
G505: Blocklisted import crypto/sha1: weak cryptographic primitive (gosec)
|
build
G306: Expect WriteFile permissions to be 0600 or less (gosec)
|
build
G401: Use of weak cryptographic primitive (gosec)
|
build
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
build
var-naming: don't use underscores in Go names; func parameter dir_path should be dirPath (revive)
|
build
var-naming: don't use underscores in Go names; func parameter source_dir_path should be sourceDirPath (revive)
|
build
Restore cache failed: Dependencies file is not found in /home/runner/work/embed-code/embed-code. Supported file pattern: go.sum
|