Skip to content

Commit

Permalink
Merge pull request #1085 from github/swift-support
Browse files Browse the repository at this point in the history
Add Swift as a possible traced language
  • Loading branch information
Andrew Eisenberg authored and GitHub committed Jun 3, 2022
2 parents 69e0990 + 1b5ea4a commit ccf479d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/languages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/languages.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum Language {
javascript = "javascript",
python = "python",
ruby = "ruby",
swift = "swift",
}

// Additional names for languages
Expand Down Expand Up @@ -37,7 +38,7 @@ export function parseLanguage(language: string): Language | undefined {

export function isTracedLanguage(language: Language): boolean {
return (
["cpp", "java", "csharp"].includes(language) ||
["cpp", "java", "csharp", "swift"].includes(language) ||
(process.env["CODEQL_EXTRACTOR_GO_BUILD_TRACING"] === "on" &&
language === Language.go)
);
Expand Down

0 comments on commit ccf479d

Please sign in to comment.