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

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
Short Link: https://sg.run/kDj2