dgryski.semgrep-go.oserrors.os-error-is-exist

Author
unknown
Download Count*
License
New code should use errors.Is with the appropriate error type
Run Locally
Run in CI
Defintion
rules:
- id: os-error-is-exist
patterns:
- pattern: os.IsExist($ERR)
fix: errors.Is($ERR, fs.ErrExist)
message: New code should use errors.Is with the appropriate error type
languages:
- go
severity: ERROR
metadata:
license: MIT
Short Link: https://sg.run/Rl2O