dgryski.semgrep-go.marshalyaml.unmarshal-yaml-misspell

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