dgryski.semgrep-go.marshaljson.unmarshal-json-misspell

profile photo of dgryskidgryski
Author
unknown
Download Count*
License

Misspelling of UnmarshalJSON.

Run Locally

Run in CI

Defintion

rules:
  - id: unmarshal-json-misspell
    pattern-either:
      - patterns:
          - pattern-regex: (?i)func \((.+)\) unmarshal[l]?json\((.*)\)
          - pattern-not-regex: func \(.+\) UnmarshalJSON\(
    fix: func ($1) UnmarshalJSON($2)
    message: |
      Misspelling of UnmarshalJSON.
    languages:
      - go
    severity: ERROR
    metadata:
      license: MIT