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

profile photo of dgryskidgryski
Author
unknown
Download Count*
License

Misspelling of MarshalYAML.

Run Locally

Run in CI

Defintion

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