Skip to content

Commit fa0b6ff

Browse files
committed
Clarify meaning of Language enum
1 parent 3b57965 commit fa0b6ff

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

lib/languages.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/languages.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy.js

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/languages.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
// All the languages supported by CodeQL
1+
/**
2+
* A CodeQL language.
3+
*
4+
* To facilitate adding new languages, this is _not_ an exhaustive list of
5+
* languages supported by CodeQL.
6+
*/
27
export enum Language {
3-
actions = "actions",
48
csharp = "csharp",
59
cpp = "cpp",
610
go = "go",

src/start-proxy.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,14 @@ export type Credential = {
1111
token?: string;
1212
};
1313

14-
const LANGUAGE_TO_REGISTRY_TYPE: Record<Language, string> = {
14+
const LANGUAGE_TO_REGISTRY_TYPE: Partial<Record<Language, string>> = {
1515
java: "maven_repository",
1616
csharp: "nuget_feed",
1717
javascript: "npm_registry",
1818
python: "python_index",
1919
ruby: "rubygems_server",
2020
rust: "cargo_registry",
2121
go: "goproxy_server",
22-
// We do not have an established proxy type for these languages, thus leaving empty.
23-
actions: "",
24-
cpp: "",
25-
swift: "",
2622
} as const;
2723

2824
// getCredentials returns registry credentials from action inputs.

0 commit comments

Comments
 (0)