Skip to content

feat(codeql): hardcode unsupported languages inside extension instead of requiring consumer config #957

Description

@Dawo9889

Problem

Currently, the codeql extension requires consumers to explicitly list languages not supported by
CodeQL in their configuration under codeql.languages. This means every consumer (e.g. modg) has
to maintain their own list of excluded languages, which is:

  1. Duplicated effort — every consumer must independently research and enumerate languages CodeQL
    cannot analyse.
  2. Fragile — if CodeQL adds or removes language support, every consumer config must be updated
    manually.
  3. Misplaced knowledge — the set of languages CodeQL does not support is a fact about CodeQL
    itself, not about the consumer's environment.

Example of what we currently have to configure:

codeql:
  languages: # excluded languages - not supported by CodeQL
    - yaml
    - dockerfile
    - shell
    - hcl
    - makefile
    - gherkin
    - mustache
    - go template
    - smarty
    - bru
    - mermaid
    - clean

Proposed solution

Move the list of languages not supported by CodeQL into the extension itself. The extension should automatically skip these languages when checking CodeQL coverage,
without requiring any configuration from consumers.

Expected outcome

  • Consumers do not need to list CodeQL-unsupported languages in their config.
  • The extension maintains a single source of truth for which languages CodeQL supports.
  • Consumer configs become simpler and less error-prone.

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions