codeql-action/src
Andrew Eisenberg e8b2a9884b Use the prefix id for keying into metrics rules
Fixes a bug where we were looking for incorrect keys for metrics rules.
Previously, we were using full language names in the keys. Now, we use
the short language names in the metric ids. This is done through a
simplification of the code.

Also, this change does two smaller things:

1. Prints out the baseline count to the logs
2. Adds the `assertNever` function to ensure we never miss a case in
   a switch statement. This function is borrowed from vscode-codeql.
2021-05-13 11:11:13 -07:00
..
testdata Avoid analyzing excluded language files for line counting 2021-04-28 16:07:55 -07:00
actions-util.test.ts Address comments 2021-05-05 12:30:20 +02:00
actions-util.ts Fix undefined environment 2021-05-05 15:46:49 +02:00
analysis-paths.test.ts Convert GitHub variant to an enum. 2021-02-15 09:30:16 +00:00
analysis-paths.ts Fix spelling errors 2021-03-18 09:40:47 -07:00
analyze-action.ts Forward category input to codeql cli 2021-05-03 19:41:53 +02:00
analyze.test.ts Use the prefix id for keying into metrics rules 2021-05-13 11:11:13 -07:00
analyze.ts Use the prefix id for keying into metrics rules 2021-05-13 11:11:13 -07:00
api-client.test.ts Use externalRepoAuth when getting a remote config 2021-04-09 15:00:57 -07:00
api-client.ts Use externalRepoAuth when getting a remote config 2021-04-09 15:00:57 -07:00
api-compatibility.json Update supported GitHub Enterprise Server versions. 2021-02-20 00:26:14 +00:00
autobuild-action.ts Allow overriding path of temporary files. 2021-02-01 15:34:13 +00:00
autobuild.ts Switching to import/order instead of sort-imports 2020-10-01 11:03:46 +01:00
codeql.test.ts Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
codeql.ts Merge branch 'main' into daverlo/categoryInput 2021-05-10 14:54:09 +02:00
config-utils.test.ts Add external git repositories to search path for custom queries 2021-04-21 17:40:56 +01:00
config-utils.ts Add external git repositories to search path for custom queries 2021-04-21 17:40:56 +01:00
count-loc.test.ts Use the prefix id for keying into metrics rules 2021-05-13 11:11:13 -07:00
count-loc.ts Use the prefix id for keying into metrics rules 2021-05-13 11:11:13 -07:00
defaults.json Update CodeQL bundle to 20210503 / 2.5.4 2021-05-03 14:41:51 -07:00
error-matcher.test.ts Merge branch 'main' into nickfyson/error_wrapper 2020-09-14 13:30:37 +01:00
error-matcher.ts Merge branch 'main' into nickfyson/error_wrapper 2020-09-14 13:30:37 +01:00
external-queries.test.ts only insert external repos token if supplied 2021-01-19 15:42:57 +00:00
external-queries.ts only insert external repos token if supplied 2021-01-19 15:42:57 +00:00
fingerprints.test.ts Avoid fingerprinting directories 2021-05-05 13:37:17 -07:00
fingerprints.ts fix typos in logging 2021-05-06 09:26:42 +01:00
init-action.ts Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
init.ts Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
languages.test.ts Fix typos in src 2020-11-20 11:00:55 +01:00
languages.ts Check CODEQL_EXTRACTOR_GO_BUILD_TRACING 2020-10-30 16:44:11 +00:00
logging.ts Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
repository.ts Running lint-fix 2020-09-14 10:44:43 +01:00
runner.ts Merge branch 'main' into daverlo/categoryInput 2021-05-10 14:54:09 +02:00
sarif_v2.1.0_schema.json Fixes a regex for language and locale recognition 2021-04-14 08:10:56 -07:00
shared-environment.ts Running lint-fix 2020-09-14 10:44:43 +01:00
testing-utils.ts Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
toolcache.ts fix typo 2021-04-23 10:01:50 +01:00
toolrunner-error-catcher.test.ts Switching to import/order instead of sort-imports 2020-10-01 11:03:46 +01:00
toolrunner-error-catcher.ts Fix typos in src 2020-11-20 11:00:55 +01:00
tracer-config.test.ts Output environment file for Windows 2021-05-10 20:43:49 +01:00
tracer-config.ts Output environment file for Windows 2021-05-10 20:43:49 +01:00
upload-lib.test.ts Use actionsUtil.computeAutomationID on upload-lib 2021-05-03 19:56:04 +02:00
upload-lib.ts Address comments 2021-05-05 12:30:20 +02:00
upload-sarif-action.ts Remove parameters from uploadFromActions 2021-01-28 15:37:09 +00:00
util.test.ts Fix spelling errors 2021-03-18 09:40:47 -07:00
util.ts Use the prefix id for keying into metrics rules 2021-05-13 11:11:13 -07:00