We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1a98cb commit 6df550dCopy full SHA for 6df550d
1 file changed
docs/main.go
@@ -91,8 +91,9 @@ func CliDocs() {
91
CmdGroups = append(CmdGroups, thisCmdGroup)
92
}
93
jOut, err := json.MarshalIndent(CmdGroups, "", " ")
94
- os.WriteFile("sl.json", jOut, 0755)
95
checkError(err)
+ err = os.WriteFile("sl.json", jOut, 0755) //#nosec G306 -- This is a false positive
96
+ checkError(err)
97
// fmt.Println(string(jOut))
98
99
@@ -124,7 +125,7 @@ ibmcloud {{.Use}}
124
125
mdTemplate, err := template.New("cmd template").Parse(cmdTemplate)
126
127
filename := fmt.Sprintf("%v.md", cmd.CommandShortLink)
- outfile, err := os.Create(filename)
128
+ outfile, err := os.Create(filename) //#nosec G304 -- This is a false positive
129
defer outfile.Close()
130
err = mdTemplate.Execute(outfile, cmd)
131
0 commit comments