yaml.semgrep.consistency.lang-consistency-js.lang-consistency-js

profile photo of returntocorpreturntocorp
Author
unknown
Download Count*

Found '$X' in language config which diverges from semgrep.dev normalization. Please use 'js' instead.

Run Locally

Run in CI

Defintion

rules:
  - fix: js
    id: lang-consistency-js
    languages:
      - yaml
    message: Found '$X' in language config which diverges from semgrep.dev
      normalization. Please use 'js' instead.
    metadata:
      category: correctness
      technology:
        - semgrep
      license: Commons Clause License Condition v1.0[LGPL-2.1-only]
    patterns:
      - pattern: $X
      - pattern-inside: "languages: ..."
      - metavariable-regex:
          metavariable: $X
          regex: ^(javascript)$
    severity: WARNING