fix: resolve all SonarQube findings on PR #81#83
Merged
ThePlenkov merged 2 commits intocopilot/support-programs-functional-groupsfrom Mar 14, 2026
Merged
Conversation
Contributor
|
View your CI Pipeline Execution ↗ for commit 6f4ddaa
☁️ Nx Cloud last updated this comment at |
- Extract nested ternary in prog.ts (S3358) - Convert for loops to for-of in build-utils.ts (S4138 x3) - Extract walk helper to reduce cognitive complexity in build-utils.ts (S3776 x2) - Consolidate fs imports to node:fs in cli.ts (S7772, S3863) - Replace findIndex with indexOf in cli.ts (S7753) - Remove useless empty objects in config-loader.ts (S7744 x2) - Extract helpers to reduce loadConfig cognitive complexity (S3776) Co-authored-by: ThePlenkov <6381507+ThePlenkov@users.noreply.github.com>
|
Copilot
AI
changed the title
[WIP] Fix all SonarQube findings and address comments
fix: resolve all SonarQube findings on PR #81
Mar 14, 2026
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
b8513ec
into
copilot/support-programs-functional-groups
4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Addresses all 14 SonarQube findings raised against the PROG/FUGR support branch, plus PR review comments.
config-loader.ts— Cognitive complexity 32→~10 (S3776)discoverConfig(basePath, baseName)to deduplicate the repeated.ts → .js → .jsonfallback chainloadExplicitConfig(configPath)for the--configpath handling|| {}spreads inmergeLocalConfig(S7744 ×2)build-utils.ts— Cognitive complexity reduction (S3776 ×2) + for-of (S4138 ×3)walk()closure into standalonecollectUsedPrefixes(node, set)— eliminates nesting penalty for both the helper andstripUnusedNamespacesforloops overNamedNodeMap/NodeListtofor-ofviaArray.from()cli.ts— Import hygiene (S7772, S3863, S7753)fs/pathimports into singlenode:fs/node:pathimports.findIndex(arg => arg === '--config')→.indexOf('--config')prog.ts— Nested ternary (S3358)PR review threads
candidate.options— already present on line 72 (candidate.options != null &&), no change neededWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/2c3c42a9-93b0-43f3-b12c-fa16ff256d79-logs/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx test adt-plugin-abapgit -c "tsdown" bash h --noprofile -c ripts/log-tool-c--noprofile sh -c "tsdown" jq in/node person.xsd /homenode ts de/node/bin/bashrun s-morph.test.ts --reporter=default(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/2ee66b52-a23b-4d53-a288-e36254fb0c43-logs/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx build ts-xsd conf�� --local user.name alls.sh(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/5385b396-12be-4859-b568-c2fc8c81c2ab/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx test adt-config i/no�� "tsdown" .github/hooks/scadt-cli i/node_modules/.bin/sh abapgit(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/5385b396-12be-4859-b568-c2fc8c81c2ab-logs/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx test adt-config i/no�� "tsdown" .github/hooks/scadt-cli i/node_modules/.bin/sh abapgit(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/59088ecc-2ae1-47b7-bd97-cf08f83fb74d/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx build adt-cli -1 REDACTED(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/7c674b3d-a165-4c1e-83c2-f7db85837027/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx build adt-cli -1 REDACTED(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/8663bac6-ad38-439d-aa40-83a991680959-logs/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx build adt-config --no�� --noprofile -c rkflows.sh(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/95e1bbf3-a5dd-49df-a220-f8d103e20e2d-logs/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx test ts-xsd --no�� --noprofile -c odules/.bin/sh ot%2Ffix-sonarqups --local bin/sh sh bin/�� "tsdown" git /home/REDACTED/work/_temp/ghcca-node/node/bin/node origin copilot/support--c alls.sh node(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/dc43a944-4329-4c41-b786-faa466895f2b-logs/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx build ts-xsd adt-config adt-cli adt-plugin-abapgit /home/REDACTED/work/_temp/ghcca-node/node/bin/git credential.helpesh(http block)https://storage.googleapis.com/prod-north-america/69ab0980542defed8d2aa8f4/e1f9a469-3427-407a-8e56-578c7bb9a659/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/adt-cli/adt-cli/node_modules/.bin/nx build adt-cli -1 REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either:
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.