mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-07 02:48:27 +08:00
enable misspell linter
This commit is contained in:
committed by
Mike Farah
parent
3e82171f18
commit
15d7c9e118
@@ -34,7 +34,7 @@ func tryRemoveFile(filename string) {
|
||||
|
||||
// thanks https://stackoverflow.com/questions/21060945/simple-way-to-copy-a-file-in-golang
|
||||
func copyFileContents(src, dst string) (err error) {
|
||||
// ignore CWE-22 gosec issue - that's more targetted for http based apps that run in a public directory,
|
||||
// ignore CWE-22 gosec issue - that's more targeted for http based apps that run in a public directory,
|
||||
// and ensuring that it's not possible to give a path to a file outside thar directory.
|
||||
|
||||
in, err := os.Open(src) // #nosec
|
||||
|
||||
Reference in New Issue
Block a user