Add CodeQL to recognised languages #317
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Greetings, I hope you are doing well. I'm one of the language maintainers for CodeQL, a language for querying codebases in order to find vulnerabilities (which, in fact, you are using here). This PR adds CodeQL to the set of languages that
scc
will recognise and count lines for. Our language specification can be found here if you'd like to double check that what I have done is a sensible representation of that.We have a slight vested interest in this since the CodeQL engine actually uses
scc
under the hood to do some line counting (in particular, if you go to the Security tab for a GitHub repository that is using CodeQL and you are an admin of, then click Code scanning alerts and the total number of lines under Lines scanned is coming fromscc
). We've recently started looking into using CodeQL to analyse our own CodeQL code, so getting this PR in would allow us to get sensible line counts for our own code there.