dgryski.semgrep-go.ioutil.deprecated-ioutil-writefile

profile photo of dgryskidgryski
Author
unknown
Download Count*
License

ioutil.WriteFile is deprecated

Run Locally

Run in CI

Defintion

rules:
  - id: deprecated-ioutil-writefile
    pattern: ioutil.WriteFile($F, $D, $P)
    fix: os.WriteFile($F, $D, $P)
    message: ioutil.WriteFile is deprecated
    languages:
      - go
    severity: ERROR
    metadata:
      license: MIT