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

Author
unknown
Download Count*
License
Misspelling of MarshalJSON.
Run Locally
Run in CI
Defintion
rules:
- id: marshal-json-misspell
pattern-either:
- patterns:
- pattern-regex: (?i)func \((.+)\) marshal[l]?json\((.*)\)
- pattern-not-regex: func \(.+\) MarshalJSON\(
fix: func ($1) MarshalJSON($2)
message: |
Misspelling of MarshalJSON.
languages:
- go
severity: ERROR
metadata:
license: MIT
Short Link: https://sg.run/NjZz