英文:
gosec linter: G101: Potential hardcoded credentials
问题
我从gosec
linter收到了这条消息:
foo/cloud.go:34:2: G101: Potential hardcoded credentials (gosec)
fooAPIKeyENVVar = "Foo_API_KEY"
如何禁用这个警告?
英文:
I get this message from the gosec
linter:
foo/cloud.go:34:2: G101: Potential hardcoded credentials (gosec)
fooAPIKeyENVVar = "Foo_API_KEY"
How to disable this warning?
答案1
得分: 2
这使得警告被跳过:
fooAPIKeyENVVar = "Foo_API_KEY" // #nosec G101
英文:
This make the warning to get skipped:
fooAPIKeyENVVar = "Foo_API_KEY" // #nosec G101
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论