chore: upgrade golangci-lint to 1.51.1

This commit is contained in:
Oleg Lobanov
2023-02-16 09:11:12 +01:00
parent fa95299df4
commit 10d628aecc
11 changed files with 307 additions and 719 deletions

View File

@@ -67,9 +67,9 @@ func parseUnixCommand(cmd string) ([]string, error) {
// returns the command and the arguments as an array. It
// should be able to parse commonly used command lines.
// Only basic syntax is supported:
// - spaces in double quotes are not token delimiters
// - double quotes are escaped by either backspace or another double quote
// - except for the above case backspaces are path separators (not special)
// - spaces in double quotes are not token delimiters
// - double quotes are escaped by either backspace or another double quote
// - except for the above case backspaces are path separators (not special)
//
// Many sources point out that escaping quotes using backslash can be unsafe.
// Use two double quotes when possible. (Source: http://stackoverflow.com/a/31413730/2616179 )