yaml.semgrep.consistency.lang-consistency-python.lang-consistency-python

Author
unknown
Download Count*
License
Found '$X' in language config which diverges from semgrep.dev normalization. Please use 'python' instead.
Run Locally
Run in CI
Defintion
rules:
- fix: python
id: lang-consistency-python
languages:
- yaml
message: Found '$X' in language config which diverges from semgrep.dev
normalization. Please use 'python' 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: ^(py)$
severity: WARNING
Short Link: https://sg.run/A572