1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/data/reusables/code-scanning/codeql-language-identifiers-table.md
Ben Ahmady 0466c51c41 Updates language identifiers and adds relevant notes (#42953)
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2023-10-03 10:02:11 +00:00

38 lines
1.3 KiB
Markdown

{% ifversion codeql-language-identifiers-311 %}
| Language | Identifier | Optional alternative identifiers (if any)
|------------------|------------------- | ---------------
| C/C++ | `c-cpp` | `c` or `cpp` |
| C# | `csharp` |
| Go | `go` |
| Java/Kotlin | `java-kotlin` | `java` or `kotlin` |
| JavaScript/TypeScript | `javascript-typescript` | `javascript` or `typescript` |
| Python | `python` |
| Ruby | `ruby`
{%- ifversion codeql-swift-beta %}
| Swift | `swift`
{%- endif %}
{% note %}
**Note:** If you specify one of the alternative identifiers, this is equivalent to using the standard language identifier. For example, specifying `javascript` instead of `javascript-typescript` will not exclude analysis of TypeScript code. You can do this in an advanced setup workflow with the `--paths-ignore` option. For more information, see "[AUTOTITLE](/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#specifying-directories-to-scan)."
{% endnote %}
{% else %}
| Language | Identifier
|------------------|-------------------
| C/C++ | `cpp`
| C# | `csharp`
| Go | `go`
| Java{% ifversion codeql-kotlin-beta %}/Kotlin{% endif %} | `java`
| JavaScript/TypeScript | `javascript`
| Python | `python`
| Ruby | `ruby`
{%- ifversion codeql-swift-beta %}
| Swift | `swift`
{%- endif %}
{% endif %}