GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Merge main into releases/v3 by github-actions[bot] · Pull Request #3012 · github/codeql-action Conversation
|
| File | Description |
|---|---|
| lib/util.js | Added async utility functions and removed String() wrappers from environment variable exports |
| lib/upload-sarif-action.js | Added category fixing for code quality uploads |
| lib/upload-lib.test.js | Removed feature flag parameter from test function calls |
| lib/upload-lib.js | Removed feature flag dependency for SARIF file combining logic |
| lib/tracer-config.js | Updated to use async language checking instead of hardcoded language lists |
| lib/languages.js | Simplified to only export KnownLanguage enum, removing parsing and type checking functions |
| lib/analyze-action.js | Removed cleanup-level input handling and automated database cleanup |
| lib/codeql.js | Added language type checking methods and updated database cleanup to work on clusters |
| lib/actions-util.js | Added code quality category mapping functionality |
| lib/defaults.json | Updated CodeQL bundle version to 2.22.3 |
| analyze/action.yml | Deprecated cleanup-level input with updated description |
| CHANGELOG.md | Added entry for version 3.29.6 with deprecation notice and version update |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| async function asyncSome(array, predicate) { | ||
| const results = await Promise.all(array.map(predicate)); | ||
| return results.some((result) => result); | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The new asyncFilter and asyncSome utility functions lack JSDoc documentation. These functions should have documentation explaining their purpose, parameters, return values, and usage examples since they are exported from the util module.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| function tryGetTagNameFromUrl(url, logger) { | ||
| const matches = [...url.matchAll(/\/(codeql-bundle-[^/]*)\//g)]; | ||
| if (!matches.length) { | ||
| if (matches.length === 0) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Using matches.length === 0 is more explicit and clearer than the original !matches.length. This change improves code readability by making the intent more obvious.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ...getExtraOptionsFromEnv(["database", "cleanup"]), | ||
| ]; | ||
| await runCli(cmd, codeqlArgs); | ||
| for (const language of config.languages) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The databaseCleanupCluster method now processes languages sequentially with for...of. If cleanup operations are independent, consider using Promise.all() to process them in parallel for better performance.
| for (const language of config.languages) { | |
| await Promise.all(config.languages.map(async (language) => { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (fs.existsSync(config.dbLocation) && | ||
| (fs.statSync(config.dbLocation).isFile() || | ||
| fs.readdirSync(config.dbLocation).length)) { | ||
| fs.readdirSync(config.dbLocation).length > 0)) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Using .length > 0 instead of .length makes the boolean intent more explicit and consistent with the style change seen elsewhere in the codebase.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| logger.info(`Warning: '${warning.instance}' is not a valid URI in '${warning.property}'.`); | ||
| } | ||
| if (errors.length) { | ||
| if (errors.length > 0) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Using errors.length > 0 instead of errors.length makes the boolean intent more explicit and consistent with the style improvements throughout the codebase.
| if (errors.length > 0) { | |
| if (errors.length) { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.