Public report of carbon-design-system/carbon, published 15 November 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 15 November 2026, 06:49 UTC · Survey ID cd_57e39f605e3a4a5b90fd21bf2b388f50

carbon-design-system/carbon

Measured 15 November 2026, 06:43 UTC, at code version fa75d78

CAI score 49out of 100 At risk Down 1 since the last survey

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A large codebase: 203,217 lines of product code in 39 projects, tests not counted · Estimated rebuild effort: about 2.2 person-years · Weakest lens: Production Readiness, 43

Findings by how serious they are

155 critical 1247 serious 396 minor

5 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
15 November 2026, 06:43 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that implements it, and today the Canine Code Analyzer is the only one that does.

A critical security finding is open, such as a library with a known critical vulnerability or a password or key found in the code. The score itself is unchanged, but its band shows At risk until the finding is fixed. See the Security and Compliance lens.

The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

80of 80 dimensions measured by tools.
1681of 1798 findings point to an exact file and line, so you can open each one in the code. The other 117 concern the repository as a whole, such as missing documentation.
80dimensions across 7 lenses, read from 203,217 lines of product code in 39 projects.
Chapters

Executive summary

carbon-design-system/carbon is rated At risk because critical security findings are open. Its score is held back in part because it has uses of packages that aren't listed. It scores 49 out of 100, which the At risk rating leaves unchanged.

Production Readiness, at 43, is the weakest lens and counts most in the score. The best first step for the work it takes is making the three tests that check nothing check their results, worth about 3 points. Planning backups and recovery would lift Production Readiness itself, worth about 5 points. Raising Production Readiness to 70 would lift the score to about 54.

Thirty-six known security holes in the packages the code depends on can be used by attackers. Sixteen secrets can leak from the build pipeline, and ten pipeline steps put outside input straight into a shell command, so an attacker can run commands in the build pipeline. Updating the vulnerable packages, limiting each secret to its own step and passing outside input through environment variables would close these risks. Pinning each tool to an exact version would fix the nine pipeline tools referenced by a changeable name, and the four passwords or keys in the code's history need replacing, with the old ones switched off. The 18 labels or groups of fields with no name need connecting to their fields or naming.

The product code is 203,217 lines, about €320,000 to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Production Readiness 43 · counts for 46%Security and Compliance 51 · counts for 25%Code Health 51 · counts for 14%Accessibility 56 · counts for 8%Architecture 61 · counts for 4%Performance 70 · counts for 2%Maturity 75 · counts for 1%

If Production Readiness rose from 43 to 70, the lowest score rated Strong, the score would rise from 49 to about 54.

Code composition: what the lines of code are
Product code 59%Tests 41%
New since the last survey: 96 findings

These 96 critical or serious findings weren't in the previous survey, on 30 October 2026.

We compare every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.

Fixed since the last survey: 1797 findings

These 1797 critical or serious findings were in the previous survey, on 30 October 2026, and are gone from this one. The first 100 are listed here.

  • Cyclomatic Complexity · fixEventsPlugin.fixEventsPlugin (cyclomatic 36) packages/react/src/components/DatePicker/plugins/fixEventsPlugin.ts
  • Cyclomatic Complexity · focus-plugin.default (cyclomatic 21) packages/web-components/src/components/date-picker/focus-plugin.ts
  • Cognitive Complexity · fixEventsPlugin.fixEventsPlugin (cognitive 37) packages/react/src/components/DatePicker/plugins/fixEventsPlugin.ts
  • Cognitive Complexity · focus-plugin.default (cognitive 24) packages/web-components/src/components/date-picker/focus-plugin.ts
  • God Classes · ClassTooLong: actions packages/utilities/src/date-picker/primitives/actions.ts
  • God Classes · FileTooLong: primitives/actions.ts packages/utilities/src/date-picker/primitives/actions.ts
  • Churn × Complexity Hotspots · Hotspot: packages/web-components/src/components/text-input/text-input.ts packages/web-components/src/components/text-input/text-input.ts
  • Churn × Complexity Hotspots · Hotspot: packages/web-components/src/components/password-input/password-input.ts packages/web-components/src/components/password-input/password-input.ts
  • Churn × Complexity Hotspots · Repeated repair: packages/web-components/src/components/text-input/__tests__/text-input-test.js packages/web-components/src/components/text-input/__tests__/text-input-test.js
  • Explicit Debt · TodoComment packages/utilities/src/date-picker/primitives/actions.ts
  • Explicit Debt · TodoComment packages/react/src/components/Slider/Slider.tsx
  • Explicit Debt · TodoComment packages/react/src/components/Slider/Slider.tsx
  • Explicit Debt · TodoComment packages/react/src/components/Slider/Slider.tsx
  • Explicit Debt · TodoComment packages/react/src/components/Slider/Slider.tsx
  • Explicit Debt · TodoComment packages/react/src/components/Slider/Slider.tsx
  • Explicit Debt · TodoComment packages/react/src/components/Slider/Slider.tsx
  • Explicit Debt · TodoComment packages/react/src/components/Slider/Slider.tsx
  • Static Analysis (SAST) · Medium: insecure-request packages/icon-build-helpers/src/builders/vue/utils.js
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Change Coupling · Change coupling: CheckboxGroup.tsx ↔ RadioButtonGroup.tsx packages/react/src/components/CheckboxGroup/CheckboxGroup.tsx
  • Supply-chain Provenance & Signing · Job-level write token spans steps that do not need it .github/workflows/next-release.yml
  • Code Duplication · Duplicated block with local edits (89 matched lines × 2 locations) packages/utilities/src/date-picker/primitives/actions.ts
  • Code Duplication · Duplicated block with local edits (50 matched lines × 2 locations) packages/react/src/components/Menu/Menu.tsx
  • Code Duplication · Duplicated block (49 lines × 2 locations) packages/react/src/components/IconIndicator/index.tsx
  • Code Duplication · Duplicated block with local edits (49 matched lines × 2 locations) packages/react/src/internal/FloatingMenu.tsx
  • Code Duplication · Duplicated block (48 lines × 2 locations) packages/react/src/components/CodeSnippet/CodeSnippet.tsx
  • Code Duplication · Duplicated block (48 lines × 2 locations) packages/react/src/components/Tearsheet/TearsheetBody.tsx
  • Code Duplication · Duplicated block (47 lines × 2 locations) packages/react/src/components/Copy/Copy.tsx
  • Code Duplication · Duplicated block (44 lines × 2 locations) packages/react/.storybook/preview.js
  • Code Duplication · Duplicated block with local edits (44 matched lines × 2 locations) packages/react/src/components/OverflowMenu/OverflowMenu-test.js
  • Code Duplication · Duplicated block (42 lines × 2 locations) packages/react/src/components/ComboButton/index.tsx
  • Code Duplication · Duplicated block with local edits (42 matched lines × 2 locations) packages/react/src/components/DatePicker/DatePicker-test.js
  • Code Duplication · Duplicated block with local edits (41 matched lines × 2 locations) packages/react/src/components/CopyButton/CopyButton.tsx
  • Code Duplication · Duplicated block (41 lines × 2 locations) packages/react/src/components/IconButton/index.tsx
  • Code Duplication · Duplicated block with local edits (41 matched lines × 2 locations) packages/react/src/components/PageHeader/utils.ts
  • Code Duplication · Duplicated block with local edits (40 matched lines × 2 locations) packages/react/src/components/DataTable/TableSelectAll.tsx
  • Code Duplication · Duplicated block with local edits (40 matched lines × 2 locations) packages/react/src/components/OverflowMenu/next/OverflowMenu-test.js
  • Code Duplication · Duplicated block with local edits (40 matched lines × 2 locations) packages/react/src/components/TextArea/TextArea-test.js
  • Code Duplication · Duplicated block with local edits (40 matched lines × 2 locations) packages/react/tasks/build.js
  • Code Duplication · Duplicated block (39 lines × 2 locations) packages/react/code-connect/DatePicker/DatePickerSimple.figma.ts
  • Code Duplication · Duplicated block (39 lines × 2 locations) packages/react/code-connect/Tooltip/Tooltip.figma.ts
  • Code Duplication · Duplicated block (38 lines × 2 locations) packages/react/code-connect/MenuButton/MenuButton.figma.ts
  • Code Duplication · Duplicated block (38 lines × 2 locations) packages/react/code-connect/Notification/InlineNotification.figma.ts
  • Code Duplication · Duplicated block with local edits (38 matched lines × 2 locations) packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.tsx
  • Code Duplication · Duplicated block with local edits (38 matched lines × 2 locations) packages/react/src/components/Copy/Copy-test.js
  • Code Duplication · Duplicated block with local edits (37 matched lines × 2 locations) packages/react/code-connect/PasswordInput/FluidPasswordInput.figma.ts
  • Code Duplication · Duplicated block (37 lines × 2 locations) packages/react/code-connect/Toggletip/Toggletip.figma.ts
  • Code Duplication · Duplicated block (37 lines × 2 locations) packages/react/src/components/CheckboxGroup/CheckboxGroup-test.js
  • Code Duplication · Duplicated block (37 lines × 2 locations) packages/react/src/components/TextArea/TextArea-test.js
  • Code Duplication · Duplicated block (37 lines × 2 locations) packages/scss-generator/src/types/definitions.js
  • Code Duplication · Duplicated block (37 lines × 2 locations) packages/themes/src/metadata.ts
  • Code Duplication · Duplicated block with local edits (37 matched lines × 2 locations) packages/web-components/src/components/tile/expandable-tile.ts
  • Code Duplication · Duplicated block (36 lines × 2 locations) packages/react/code-connect/Tag/Tag.figma.ts
  • Code Duplication · Duplicated block (36 lines × 2 locations) packages/react/src/components/Modal/Modal.tsx
  • Code Duplication · Duplicated block (36 lines × 2 locations) packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet.ts
  • Code Duplication · Duplicated block (35 lines × 2 locations) packages/react/src/components/ComboButton/ComboButton-test.js
  • Code Duplication · Duplicated block (35 lines × 3 locations) packages/react/src/components/DatePicker/DatePicker-test.js
  • Code Duplication · Duplicated block (35 lines × 3 locations) packages/web-components/code-connect/tag/operational-tag.figma.ts
  • Code Duplication · Duplicated block with local edits (34 matched lines × 2 locations) packages/react/src/components/OrderedList/OrderedList-test.js
  • Code Duplication · Duplicated block with local edits (34 matched lines × 2 locations) packages/upgrade/transforms/ibm-products-update-pdlc-status.js
  • Code Duplication · Duplicated block with local edits (34 matched lines × 2 locations) packages/web-components/src/components/icon-indicator/icon-indicator.ts
  • Code Duplication · Duplicated block (34 lines × 2 locations) packages/web-components/src/utilities/step-flow/_story-assets/step-full-page.ts
  • Code Duplication · Duplicated block (33 lines × 3 locations) packages/react/code-connect/Tag/OperationalTag.figma.ts
  • Code Duplication · Duplicated block (32 lines × 2 locations) packages/react/code-connect/Checkbox/Checkbox.figma.ts
  • Code Duplication · Duplicated block (32 lines × 2 locations) packages/react/code-connect/TextArea/TextArea.figma.ts
  • Code Duplication · Duplicated block (32 lines × 2 locations) packages/react/src/components/Dialog/Dialog.tsx
  • Code Duplication · Duplicated block (32 lines × 2 locations) packages/react/src/components/Tabs/Tabs.tsx
  • Code Duplication · Duplicated block (32 lines × 2 locations) packages/web-components/src/components/file-uploader/file-uploader-button.ts
  • Code Duplication · Duplicated block (31 lines × 2 locations) packages/react/code-connect/Dropdown/Dropdown.figma.ts
  • Code Duplication · Duplicated block (31 lines × 2 locations) packages/react/code-connect/Select/Select.figma.ts
  • Code Duplication · Duplicated block (31 lines × 2 locations) packages/react/code-connect/Slider/Slider.figma.ts
  • Code Duplication · Duplicated block (31 lines × 2 locations) packages/react/src/components/ComposedModal/ComposedModal-test.js
  • Code Duplication · Duplicated block (30 lines × 2 locations) packages/react/code-connect/DatePicker/FluidDatePickerRange.figma.ts
  • Code Duplication · Duplicated block (30 lines × 4 locations) packages/react/src/components/ComposedModal/ModalFooter.tsx
  • Code Duplication · Duplicated block (30 lines × 2 locations) packages/react/src/components/DatePicker/DatePicker-test.js
  • Code Duplication · Duplicated block (30 lines × 2 locations) packages/react/src/components/Dropdown/Dropdown.tsx
  • Code Duplication · Duplicated block (30 lines × 2 locations) packages/utilities/src/overflowHandler/overflowHandler-test.js
  • Code Duplication · Duplicated block (30 lines × 3 locations) packages/web-components/src/components/modal/modal-base.ts
  • Code Duplication · Duplicated block (29 lines × 2 locations) packages/utilities/src/date-picker/primitives/actions.ts
  • Code Duplication · Duplicated block with local edits (28 matched lines × 2 locations) packages/icon-build-helpers/src/metadata/extensions/icons.js
  • Code Duplication · Duplicated block (28 lines × 2 locations) packages/react/code-connect/Slider/SliderTwoHandles.figma.ts
  • Code Duplication · Duplicated block (28 lines × 2 locations) packages/react/src/components/Dialog/Dialog.tsx
  • Code Duplication · Duplicated block (28 lines × 2 locations) packages/react/src/components/Modal/Modal-test.js
  • Code Duplication · Duplicated block (28 lines × 2 locations) packages/react/src/components/Modal/Modal-test.js
  • Code Duplication · Duplicated block (28 lines × 2 locations) packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx
  • Code Duplication · Duplicated block with local edits (28 matched lines × 2 locations) packages/react/src/components/PageHeader/PageHeaderContentText.tsx
  • Code Duplication · Duplicated block (28 lines × 2 locations) packages/web-components/code-connect/notification/inline-notification.figma.ts
  • Code Duplication · Duplicated block (28 lines × 2 locations) packages/web-components/src/components/tag/dismissible-tag.ts
  • Code Duplication · Duplicated block (27 lines × 2 locations) packages/react/code-connect/RadioButton/RadioButtonGroup.figma.ts
  • Code Duplication · Duplicated block (27 lines × 2 locations) packages/react/code-connect/Tabs/Tabs.figma.ts
  • Code Duplication · Duplicated block with local edits (27 matched lines × 2 locations) packages/react/src/components/AddSelect/AddSelectItemPanel.tsx
  • Code Duplication · Duplicated block (27 lines × 2 locations) packages/upgrade/src/upgrades.js
  • Code Duplication · Duplicated block (27 lines × 4 locations) packages/utilities/src/date-picker/primitives/actions.ts
  • Code Duplication · Duplicated block (27 lines × 2 locations) packages/web-components/src/components/date-picker/date-picker-input-skeleton.ts
Rebuild cost: about €320,000 · Estimate
Cost to rebuild€100,000 to €530,000, for 1,745 to 5,535 hours of work, about 2.2 person-years for 1 to 5 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 49. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeLarge: 203,217 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Resolve the 3 No assertions (empty test) finding(s) in Test Quality — start with accordion-test.js (2), AILabel-test.tsx.
Raises the score by about 3 points · Low effort · Test Quality
2
Resolve the 49 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (49).
Raises the score by about 5 points · Medium effort · Dependency Hygiene
3
Resolve the 1 finding(s) in DR & Backup.
Raises the score by about 5 points · Medium effort · DR & Backup

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Where the investment is most exposed · Value at risk
This code would cost about €320,000 to build again, about 2.2 person-years of work. Its weakest lens is Production Readiness, at 43 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Resolve the 3 No assertions (empty test) finding(s) in Test Quality. Of all the actions in this report, it raises the score most for the work it takes: about 3 points for low effort, because it clears the 3 Test Quality findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 4.9 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 8% to 17% on every change. The history of the code shows how much it changes: about 330,357 lines over the last 90 days, which is about 1,339,781 lines a year. At that pace, the extra work comes to an estimated 256.1 to 1536.7 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

Architecture — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.

arch @carbon/cli cli @carbon/cli-reporter cli-reporter @carbon/cli->@carbon/cli-reporter @carbon/colors colors @carbon/elements elements @carbon/elements->@carbon/colors @carbon/grid grid @carbon/elements->@carbon/grid @carbon/icons icons @carbon/elements->@carbon/icons @carbon/layout layout @carbon/elements->@carbon/layout @carbon/motion motion @carbon/elements->@carbon/motion @carbon/themes themes @carbon/elements->@carbon/themes @carbon/type type @carbon/elements->@carbon/type @carbon/feature-flags feature-flags @carbon/grid->@carbon/layout @carbon/icon-helpers icon-helpers @carbon/icons-react icons-react @carbon/icons-react->@carbon/icon-helpers @carbon/icons-vue icons-vue @carbon/icons-vue->@carbon/icon-helpers @carbon/pictograms-react pictograms-react @carbon/pictograms-react->@carbon/icon-helpers @carbon/react react @carbon/react->@carbon/feature-flags @carbon/react->@carbon/icons-react @carbon/react->@carbon/layout @carbon/react->@carbon/motion @carbon/styles styles @carbon/react->@carbon/styles @carbon/utilities utilities @carbon/react->@carbon/utilities @carbon/styles->@carbon/colors @carbon/styles->@carbon/feature-flags @carbon/styles->@carbon/grid @carbon/styles->@carbon/layout @carbon/styles->@carbon/motion @carbon/styles->@carbon/themes @carbon/styles->@carbon/type @carbon/themes->@carbon/colors @carbon/themes->@carbon/layout @carbon/themes->@carbon/type @carbon/type->@carbon/grid @carbon/type->@carbon/layout @carbon/web-components web-components @carbon/web-components->@carbon/icon-helpers @carbon/web-components->@carbon/icons @carbon/web-components->@carbon/styles @carbon/web-components->@carbon/utilities carbon-components-react carbon-components-react carbon-components-react->@carbon/react carbon-components-react->@carbon/styles __more__ +17 more projects

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

1152 modules, with 432 dependencies between them. Every module uses only modules listed above it, so there are no loops.

The table shows the 40 modules with the most connections; 1112 more are left out to keep it readable.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 motion.src.tokens2 react.src.components.AISkeleton3 react.src.components.Accordion4 react.src.components.AddSelect.AddSelectBody5 react.src.components.Card.Card_types6 react.src.components.Checkbox.Checkbox7 react.src.components.ComboBox.ComboBox8 react.src.components.DataTable.state.sortStates9 react.src.components.FileUploader10 react.src.components.FluidMultiSelect11 react.src.components.FullPageError.assets12 react.src.components.IconButton13 react.src.components.ListBox14 react.src.components.PageHeader15 react.src.components.Popover16 react.src.components.UIShell17 react.src.internal.FloatingMenu18 utilities.src.date-picker.primitives.states19 web-components.src.components.button.button20 web-components.src.components.date-picker21 web-components.src.components.date-picker.defs22 web-components.src.components.dropdown.dropdown23 web-components.src.components.interstitial-screen.interstitial-screen-context24 web-components.src.components.tearsheet.tearsheet-context25 motion.src.surfaces26 react.src.components.AddSelect.AddSelectRow27 react.src.components.AddSelect.AddSelectSelectionSummaryItem28 react.src.components.Card29 react.src.components.DataTable.DataTable30 react.src.internal31 utilities.src.date-picker.primitives.types32 web-components.src.components.overflow-menu.overflow-menu-body33 web-components.src.components.text-input.text-input34 react.src.components.DataTable35 react.src.components.DataTable.state.sorting36 react.src.components.DatePicker.next.hooks.useDatePicker37 utilities.src.date-picker.primitives38 web-components.src.components.date-picker.next.adapters.web-component-adapter39 web-components.src.components.number-input.number-input40 react.src.components.DataTable.state
1 motion.src.tokens
2 react.src.components.AISkeleton
3 react.src.components.Accordion
4 react.src.components.AddSelect.AddSelectBody
5 react.src.components.Card.Card_types
6 react.src.components.Checkbox.Checkbox
7 react.src.components.ComboBox.ComboBox
8 react.src.components.DataTable.state.sortStates
9 react.src.components.FileUploader
10 react.src.components.FluidMultiSelect
11 react.src.components.FullPageError.assets
12 react.src.components.IconButton
13 react.src.components.ListBox
14 react.src.components.PageHeader
15 react.src.components.Popover
16 react.src.components.UIShell
17 react.src.internal.FloatingMenu
18 utilities.src.date-picker.primitives.states
19 web-components.src.components.button.button
20 web-components.src.components.date-picker
21 web-components.src.components.date-picker.defs
22 web-components.src.components.dropdown.dropdown
23 web-components.src.components.interstitial-screen.interstitial-screen-context
24 web-components.src.components.tearsheet.tearsheet-context
25 motion.src.surfaces3
26 react.src.components.AddSelect.AddSelectRow11
27 react.src.components.AddSelect.AddSelectSelectionSummaryItem1
28 react.src.components.Card1
29 react.src.components.DataTable.DataTable1
30 react.src.internal2
31 utilities.src.date-picker.primitives.types1
32 web-components.src.components.overflow-menu.overflow-menu-body1
33 web-components.src.components.text-input.text-input1
34 react.src.components.DataTable1
35 react.src.components.DataTable.state.sorting21
36 react.src.components.DatePicker.next.hooks.useDatePicker11
37 utilities.src.date-picker.primitives67
38 web-components.src.components.date-picker.next.adapters.web-component-adapter13
39 web-components.src.components.number-input.number-input11
40 react.src.components.DataTable.state12
Uses a module listed above itPart of a loopThe module itself
1 motion.src.tokens2 react.src.components.AISkeleton3 react.src.components.Accordion4 react.src.components.AddSelect.AddSelectBody5 react.src.components.Card.Card_types6 react.src.components.Checkbox.Checkbox7 react.src.components.ComboBox.ComboBox8 react.src.components.DataTable.state.sortStates9 react.src.components.FileUploader10 react.src.components.FluidMultiSelect11 react.src.components.FullPageError.assets12 react.src.components.IconButton13 react.src.components.ListBox14 react.src.components.PageHeader15 react.src.components.Popover16 react.src.components.UIShell17 react.src.internal.FloatingMenu18 utilities.src.date-picker.primitives.states19 web-components.src.components.button.button20 web-components.src.components.date-picker21 web-components.src.components.date-picker.defs22 web-components.src.components.dropdown.dropdown23 web-components.src.components.interstitial-screen.interstitial-screen-context24 web-components.src.components.tearsheet.tearsheet-context25 motion.src.surfaces26 react.src.components.AddSelect.AddSelectRow27 react.src.components.AddSelect.AddSelectSelectionSummaryItem28 react.src.components.Card29 react.src.components.DataTable.DataTable30 react.src.internal31 utilities.src.date-picker.primitives.types32 web-components.src.components.overflow-menu.overflow-menu-body33 web-components.src.components.text-input.text-input34 react.src.components.DataTable35 react.src.components.DataTable.state.sorting36 react.src.components.DatePicker.next.hooks.useDatePicker37 utilities.src.date-picker.primitives38 web-components.src.components.date-picker.next.adapters.web-component-adapter39 web-components.src.components.number-input.number-input40 react.src.components.DataTable.statemotion.src.tokens1react.src.components.AISkeleton2react.src.components.Accordion3react.src.components.AddSelect.AddSelectBody4react.src.components.Card.Card_types5react.src.components.Checkbox.Checkbox6react.src.components.ComboBox.ComboBox7react.src.components.DataTable.state.sortStates8react.src.components.FileUploader9react.src.components.FluidMultiSelect10react.src.components.FullPageError.assets11react.src.components.IconButton12react.src.components.ListBox13react.src.components.PageHeader14react.src.components.Popover15react.src.components.UIShell16react.src.internal.FloatingMenu17utilities.src.date-picker.primitives.states18web-components.src.components.button.button19web-components.src.components.date-picker20web-components.src.components.date-picker.defs21web-components.src.components.dropdown.dropdown22web-components.src.components.interstitial-screen.interstitial-screen-context23web-components.src.components.tearsheet.tearsheet-context24motion.src.surfaces25react.src.components.AddSelect.AddSelectRow26react.src.components.AddSelect.AddSelectSelectionSummaryItem27react.src.components.Card28react.src.components.DataTable.DataTable29react.src.internal30utilities.src.date-picker.primitives.types31web-components.src.components.overflow-menu.overflow-menu-body32web-components.src.components.text-input.text-input33react.src.components.DataTable34react.src.components.DataTable.state.sorting35react.src.components.DatePicker.next.hooks.useDatePicker36utilities.src.date-picker.primitives37web-components.src.components.date-picker.next.adapters.web-component-adapter38web-components.src.components.number-input.number-input39react.src.components.DataTable.state4031111121111211167131112+1112 more modules (most-connected shown)

At a glance — Code Health · 51% · Adequate · gated by D2, R10 ·

At a glance — Architecture · 61% · Adequate · gated by R9 ·

At a glance — Maturity · 75% · Strong ·

At a glance — Readiness · 43% · Weak · gated by R8, P5 ·

At a glance — Security · 51% · Adequate · gated by D29 ·

At a glance — Accessibility · 56% · Adequate ·

At a glance — Performance · 70% · Strong ·

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A03:2025 — Software Supply Chain Failures82High / Critical
A05:2025 — Injection51High / Critical
A02:2025 — Security Misconfiguration13High / Critical
A07:2025 — Authentication Failures5High / Critical

Roadmap

Top priorities: Resolve the 49 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (49); Resolve the 1 finding(s) in DR & Backup; Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Resolve the 3 No assertions (empty test) finding(s) in Test Quality — start with accordion-test.js (2), AILabel-test.tsx.+3.0 ptsLowTest Quality
Resolve the 49 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (49).+4.6 ptsMediumDependency Hygiene
Resolve the 1 finding(s) in DR & Backup.+4.6 ptsMediumDR & Backup
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+4.6 ptsMediumDependency Hygiene
Resolve the 14 Outdated (npm) finding(s) in Dependency Hygiene — start with package.json (14).+2.0 ptsMediumDependency Hygiene
Review each MD5/SHA1 use by what it protects: replace it with SHA-256+ (or a KDF for passwords) where the digest is security-relevant, and switch it to a non-cryptographic hash (xxhash, murmurhash) where it only derives an identifier such as a cache key.+1.7 ptsMediumWeb-Security Posture
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.+1.6 ptsMediumObservability
Resolve the 33 Low coverage finding(s) in Code Coverage — start with index.js (2), builder.js (2), tools.js.+1.2 ptsMediumCode Coverage

File quality

Per-file score 0–10 — a quality signature. Of 411 files carrying findings, judged against the Production bar: 1% slop · 52% mixed · 47% near-clean.

FileScoreBandWorst signal
REDACTED0.0SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED1.6SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.7SlopSecrets (history): REDACTED: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.1MixedIaC & Container Security: High IaC: REDACTED
REDACTED4.1MixedIaC & Container Security: High IaC: REDACTED
REDACTED4.1MixedIaC & Container Security: High IaC: REDACTED
REDACTED4.1MixedIaC & Container Security: High IaC: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): High: REDACTED
packages/web-components/src/components/accordion/__tests__/accordion-test.js5.5MixedTest Quality: No assertions (empty test): should be an ol if prop ordered is passed as true
packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx5.6MixedCyclomatic Complexity: FilterableMultiSelect.FilterableMultiSelect (cyclomatic 44)
packages/icon-build-helpers/src/metadata/extensions/output/optimizer.js5.8MixedCyclomatic Complexity: fn::enter (cyclomatic 20)
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
packages/web-components/src/components/notification/actionable-notification.ts5.9MixedCyclomatic Complexity: CDSActionableNotification._handleBlur (cyclomatic 26)
packages/web-components/src/components/select/select.ts5.9MixedCyclomatic Complexity: CDSSelect.render (cyclomatic 26)
packages/react/src/components/DatePicker/DatePicker.tsx6.0MixedExplicit Debt: TodoComment
packages/react/src/components/Popover/index.tsx6.0MixedExplicit Debt: TodoComment

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 155

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 1247

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 396

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 5

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 80 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.

Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.

What we checked — 80 dimensions across the health lenses
D1D2D3D5D6D7D8D10D11D12D13D15D16D17D19D20D21D23D24D25D26D28D29D30D31D34D35D36D37D43D44AC1AC2AC3AC4AC5AC6AX10AX3AX4AX6AX8GD1IC1M1M2M3M4P1P10P2P3P4P5P6PF3R1R10R11R2R3R4R6R7R8R9S1X1X12X13X16X17X21X23X24X28X29X3X30X5

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 1681 of 1798 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Canine Code Analyzer duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3 · 3.2.533✓ deterministic

Every finding is locatable in findings.md. Run 01a1ddf2-b3e0-709b-89da-2d9546e17bef.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D8 Code Coverage — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 199 test file(s) failed while being loaded here, so none of their cases ran (typically a native addon or generated module the package's install scripts build, which the analyzer's scripts-off install does not run). The 281 production file(s) those files import that read under half covered are unmeasured in this run, not untested, so their figures are left out of the per-file rows and the 59.0% rather than published as low coverage. You can widen what we reach: optional: commit the lcov report of a run where those test files load, and their modules are read from it.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22's deterministic call-shape rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
  • D23 Boundary Type-Coupling — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind measured 0/40 valid on a seeded held-out sample of its rows on 98 C# repositories (docs/plans/deterministic-engine/adjudication/P5c-D23-units.md, "Version 1 ON MAIN"): the noise rows were dependencies on layer folders, shared cores and grouping folders read as contexts. By the pre-registered fallback (PREREGISTRATION v37) it publishes no row until version 4 passes its gate. The candidates are counted here, not reported as findings, and the score does not include them.
  • D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `packages/react/src/components/BadgeIndicator/index.tsx`, `packages/react/src/components/Breadcrumb/BreadcrumbItem.tsx`, `packages/react/src/components/DataTable/TableCell.tsx`, `packages/react/src/components/DataTable/TableHeader.tsx`, `packages/react/src/components/DataTable/TableRow.tsx`, … (+26 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • AC6 Visual & motion safety — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 34 further occurrence(s) are not listed individually; the score already reflects all 74.
  • AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DevServer (dev). the dev server (`npm run dev`) exited before it served a page. Likely cause (the repository): package.json has no "dev" script, so `npm run dev` could not start the app. Last output: "npm error Missing script: "dev" / npm error / npm error To see a list of scripts, run: / npm error npm run / npm error A complete log of this run can be found in: <path>" No runtime evidence was gathered.
  • IC1 Incompleteness & stubs — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 164 further occurrence(s) are not listed individually; the score already reflects all 204.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. A badge or prose version claim scored 9/17 in its adjudication (docs/plans/deterministic-engine/adjudication/M4-v3.md: badges 9/9, prose 0/8, where prose versions are minimums or history), short of the 95 % precision gate, so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them. The .NET and Node.js version checks are a different kind and still publish.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • R10 Code Duplication — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 706 further occurrence(s) are not listed individually; the score already reflects all 746.
  • R11 Import Boundaries — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 3 further occurrence(s) are not listed individually; the score already reflects all 43.
  • R2 Cyclomatic Complexity — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 168 further occurrence(s) are not listed individually; the score already reflects all 208.
  • R3 Large Files — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 124 further occurrence(s) are not listed individually; the score already reflects all 164.
  • R4 Test Coverage — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 441 further occurrence(s) are not listed individually; the score already reflects all 481.
  • R7 Dead Code — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 700 further occurrence(s) are not listed individually; the score already reflects all 740.
  • R8 Dependency Hygiene — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 29 further occurrence(s) are not listed individually; the score already reflects all 69.
  • X10 Duplicated predicate — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 84 further occurrence(s) are not listed individually; the score already reflects all 124.
  • X2 Cancellation propagation — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch, got, undici, node:http; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X4 Structured logging — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP log through no library that carries a message's values as fields (pino, winston, bunyan, tslog, LogTape, roarr; Python's logging, structlog; PHP's PSR-3 loggers), so its log calls cannot be judged, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

Repo exclusion declarations: 43 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

Limitations & what we did not check

We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
  • D8 Code Coverage: Coverage is measured by building and running the test suite inside our isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D11 Test Reliability: Flakiness is inferred from history/markers — we run the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
  • D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • D25 ADR Conformance: ADR conformance checks only decisions stated in a checkable form (a ruled-out element, package or dependency, an adr-rules block, a declared delivery status): a decision written only as prose is unverifiable, and decisions never written down are not checked.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity4.0 / 10Weak✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented → Verified → Prevented · effective 4.0 / 10 · rule-coverage 100% · ceiling Prevented

161 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ComboBox.ComboBox at 183. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being size-prop-update.transform at 16 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: packages/upgrade/transforms/size-prop-update.js (size-prop-update.transform at 16). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

SidePanel.SidePanel::renderHeader (cyclomatic 31) · ×2packages/react/src/components/SidePanel/SidePanel.tsx:848
ComboBox.ComboBox (cyclomatic 183)packages/react/src/components/ComboBox/ComboBox.tsx:384
Slider.Slider (cyclomatic 151)packages/react/src/components/Slider/Slider.tsx:350
DatePicker.DatePicker (cyclomatic 121)packages/react/src/components/DatePicker/DatePicker.tsx:386
Modal.ModalDialog (cyclomatic 114)packages/react/src/components/Modal/Modal.tsx:288

+ 144 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 3 bodies over 120 down to 120 or less in Cyclomatic Complexity — start with ComboBox.ComboBox (cyclomatic 183), Slider.Slider (cyclomatic 151), DatePicker.DatePicker (cyclomatic 121). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cyclomatic Complexity from 4.0 to about 4.7/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity2.6 / 10Weak✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: Documented → Verified → Prevented · effective 2.6 / 10 · rule-coverage 100% · ceiling Prevented

202 method(s) exceeded the cognitive complexity threshold of 15; the worst was ComboBox.ComboBox at 231.

TreeView.TreeView::handleKeyDown (cognitive 38) · ×2packages/react/src/components/TreeView/TreeView.tsx:178
ComboBox.ComboBox (cognitive 231)packages/react/src/components/ComboBox/ComboBox.tsx:384
DatePicker.DatePicker (cognitive 125)packages/react/src/components/DatePicker/DatePicker.tsx:386
TextArea.TextArea (cognitive 106)packages/react/src/components/TextArea/TextArea.tsx:215
Modal.ModalDialog (cognitive 99)packages/react/src/components/Modal/Modal.tsx:288

+ 180 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 2 bodies over 120 down to 120 or less in Cognitive Complexity — start with ComboBox.ComboBox (cognitive 231), DatePicker.DatePicker (cognitive 125). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 2.6 to about 3.9/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes7.8 / 10Strong✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: Documented → Verified → Prevented · effective 7.8 / 10 · rule-coverage 100% · ceiling Prevented

112 god class(es) detected.

FunctionTooLong: Slider.Slider · ×50packages/react/src/components/Slider/Slider.tsx:350
FileTooLong: Slider/Slider.tsx · ×25packages/react/src/components/Slider/Slider.tsx
MethodTooLong: CDSTextInput.render · ×21packages/web-components/src/components/text-input/text-input.ts:349
ClassTooLong: SliderProps · ×14packages/react/src/components/Slider/Slider.tsx:157
TooManyMethods: CDSDropdown · ×2packages/web-components/src/components/dropdown/dropdown.ts:67

What to do

  1. Resolve the 50 FunctionTooLong finding(s) in God Classes — start with DatePicker.tsx (2), Slider.tsx, Error403SVG.tsx. — One of this dimension's main actionable groups (50 warning-level).
  2. Resolve the 25 FileTooLong finding(s) in God Classes — start with Slider.tsx, Tabs.tsx, ComboBox.tsx. — One of this dimension's main actionable groups (25 warning-level).
  3. Resolve the 21 MethodTooLong finding(s) in God Classes — start with text-input.ts, password-input.ts, stacking-tearsheet.ts. — One of this dimension's main actionable groups (21 warning-level).

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D5 · Coupling8.6 / 10Strong✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 8.6 / 10 · rule-coverage 100% · ceiling Prevented

37 production modules (npm), 0 dependency cycle(s), 1 unstable depended-on module(s). Read from the build's own module declarations; 5 module(s) off the main sequence, with abstractness counted on 14 of the 37 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

Off the main sequence: @carbon/colors · ×5
Unstable project @carbon/react

What to do

  1. Resolve the 5 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (5 warning-level).
  2. Resolve the 1 Unstable project @carbon/react finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.

D6 · Cohesion (LCOM4)8.2 / 10Strong✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 8.2 / 10 · rule-coverage 100% · ceiling Verified

25 of 168 classes have LCOM4 above 3.

Low cohesion: CDSCheckbox (LCOM4 6) · ×25packages/web-components/src/components/checkbox/checkbox.ts:29

What to do

  1. Resolve the 25 Low cohesion finding(s) in Cohesion (LCOM4) — start with date-picker-input.ts (2), checkbox.ts, table-row.ts. — One of this dimension's main actionable groups (25 warning-level).

Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.

D7 · Architectural Integrity6.0 / 10Adequate✓ Tool-verified

What it measures: Whether the code respects its intended layering / architecture rules.

Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Prevented

No mechanizable ADR was identified, so enforcement is not measured. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).

Detailed fixes: d7_recommendation.md.

D8 · Code Coverage9.2 / 10Stronggated by 33 serious findings✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from the analyzer's own run of the suite, computed per-file with structured exclusions for generated, trivial, and glue code. A coverage report found in the repository is never read. When the suite can't be built/run in-image, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.2 / 10 · rule-coverage 100% · ceiling Verified

Line coverage 59.0% — 33 file(s) below 50%. Measured from the JavaScript/TypeScript suite (jest via `yarn install --immutable --mode=skip-build` in the repository root; web-test-runner in packages/web-components/: not run).

Low coverage: packages/icon-build-helpers/src/index.js · ×33packages/icon-build-helpers/src/index.js:1

What to do

  1. Resolve the 33 Low coverage finding(s) in Code Coverage — start with index.js (2), builder.js (2), tools.js. — One of this dimension's main actionable groups (33 warning-level).

Detailed fixes: d8_recommendation.md · top locations in Appendix A, every location in findings.md.

D10 · Test Quality9.7 / 10Adequategated by 3 critical findings✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Prevented

115 skipped (1 with a documented reason), 28 zero-assertion, 6 synchronised by a fixed sleep, no mocking-framework packages referenced (hand-written doubles or no mocking) across 7888 tests.

No assertions (empty test): should be an ol if prop ordered is passed as true · ×3packages/web-components/src/components/accordion/__tests__/accordion-test.js:162
Skipped test: Should render the expando · ×114packages/web-components/tests/spec/code-snippet_spec.ts:173
No assertions: should fire cancel click event · ×25packages/web-components/src/components/data-table/__tests__/table-batch-actions-test.js:34
Fixed-sleep synchronisation: should close menu when a menu item is clicked · ×6packages/web-components/src/components/overflow-menu/__tests__/overflow-menu-test.js:320
Test project verifies nothing: packages/react/examples/react-router-vitepackages/react/examples/react-router-vite/src/App-test.js:5

+ 2 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 3 No assertions (empty test) finding(s) in Test Quality — start with accordion-test.js (2), AILabel-test.tsx. — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 114 Skipped test finding(s) in Test Quality — start with multi-select_spec.ts (11), file-uploader_spec.ts (9), data-table_spec.ts (8). — One of this dimension's main actionable groups (114 warning-level).
  3. Resolve the 25 No assertions finding(s) in Test Quality — start with EditInPlace-test.js (3), ActionSet-test.js (3), table-batch-actions-test.js (2). — One of this dimension's main actionable groups (25 warning-level).

Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.

D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests pass reliably, with no flakiness.

Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 flaky across 1 measured tier(s). JavaScript/TypeScript (jest via `yarn install --immutable --mode=skip-build` in the repository root (3008 tests)): measured (0 flaky).

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

D12 · Dependency Hygiene8.0 / 10Strong✓ Tool-verified

What it measures: Whether dependencies are current, not deprecated, and not bloated. Known vulnerabilities are D30's.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (capped-linear for deprecation, prerelease and outdated) per KLoC. Known-vulnerable packages are D30's and are not charged here (rubric-2026.11.2). Exhaustive.

Maturity: Documented → Verified → Prevented · effective 8.0 / 10 · rule-coverage 100% · ceiling Verified

80 outdated direct production npm dependency(ies) of 123 graded, 0 pinning defect(s), across 152 package.json (37 of them the product) and 1 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 0 direct dependency(ies) — production, development or optional — are marked DEPRECATED by their publisher (the registry's per-version mark, or the lockfile's copy of it when the registry could not be asked); deprecated transitive packages are listed but not charged. Whether any is UNMAINTAINED is not graded — the registry publishes no maintenance status, and release age does not stand in for one. Whether any is UNUSED is not graded either: that is a source question, and the frontend dependency lens (R8) answers it in this same run. Known CVEs in this dependency graph are D30's question, read from the manifest there.

Deprecated: @ungap/structured-clone · ×49REDACTED:8443
Outdated (npm): @carbon/cli-reporter · ×14packages/cli-reporter/package.json:2
Outdated (npm): @babel/core · ×66

What to do

  1. Resolve the 49 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (49). — One of this dimension's main actionable groups (49 recommendation-level).
  2. Resolve the 14 Outdated (npm) finding(s) in Dependency Hygiene — start with package.json (14). — One of this dimension's main actionable groups (14 recommendation-level).

Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · REDACTED Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

REDACTED scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots9.7 / 10Stronggated by 46 serious findings✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: Documented → Verified → Prevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: packages/react/src/components/MultiSelect/MultiSelect.tsx (8×104=832); packages/react/src/components/ComboBox/ComboBox.tsx (4×183=732); packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx (6×118=708) Repeated repair below the complexity floor: packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js (6 of 7 changes were fixes); packages/react/src/components/DatePicker/DatePicker-test.js (5 of 6 changes were fixes); packages/react/src/components/Slider/__tests__/Slider-test.js (5 of 5 changes were fixes)

Hotspot: packages/react/src/components/MultiSelect/MultiSelect.tsx · ×35packages/react/src/components/MultiSelect/MultiSelect.tsx:299
Repeated repair: packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js · ×11packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js:1423

What to do

  1. Resolve the 35 Hotspot finding(s) in Churn × Complexity Hotspots — start with MultiSelect.tsx, ComboBox.tsx, FilterableMultiSelect.tsx. — One of this dimension's main actionable groups (35 warning-level).
  2. Resolve the 11 Repeated repair finding(s) in Churn × Complexity Hotspots — start with index.tsx (2), MultiSelect-test.js, DatePicker-test.js. — One of this dimension's main actionable groups (11 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D16 · Bus Factor9.3 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

Maturity: Documented → Verified → Prevented · effective 9.3 / 10 · rule-coverage 100% · ceiling Documented

65 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is packages/react/src/components/Card/Card.stories.js. Counted over 897 of the 2119 production source files in this repository: 1220 are under the ~2,400-byte size floor this dimension measures over, and the remaining 2 have no attributable history left to measure.

Off-boarding risk: anonymized user #1 · ×8
Further sole-owners (lower concentration)

✓ On the Gold path — maintain.

Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt9.9 / 10Stronggated by 99 serious findings✓ Tool-verified

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Prevented

121 deducted task-comment markers across 169237 LoC (0.1/KLoC) → score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

TodoComment · ×96packages/web-components/tests/spec/file-uploader_spec.ts:175
FixmeCommentpackages/web-components/src/components/text-input/text-input.ts:318
TodoComment repeated across 17 filespackages/web-components/src/components/overflow-menu/overflow-menu.ts:467
HackCommentpackages/react/previewer/storybookStyles/index.tsx:20

What to do

  1. Resolve the 96 TodoComment finding(s) in Explicit Debt — start with index.ts (19), toggle.ts (6), text-input.ts (6). — One of this dimension's main actionable groups (96 warning-level).
  2. Resolve the 1 FixmeComment finding(s) in Explicit Debt — start with text-input.ts. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 TodoComment repeated across 17 files finding(s) in Explicit Debt — start with overflow-menu.ts. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

2 of 2 documentation facets pass in full. 178 document(s) read across 39 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 of 10 evaluated ADRs have a defect readable from the log itself (a missing or empty section, no title, a single option, consequences with no cost, no status, a missing enforcement field, a status the log contradicts, a dangling link, an unlinked second decision on one question, a date that is no calendar day). How well each record argues its case is not measured.

✓ On the Gold path — maintain.

Detailed fixes: d20_recommendation.md.

D21 · Naming Consistency8.4 / 10Strong✓ Tool-verified

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.

Maturity: Documented → Verified → Prevented · effective 8.4 / 10 · rule-coverage 100% · ceiling Verified

2 naming inconsistencies among 124 declarations measured against a convention their peers follow.

`_timeoutID` spells `ID` where 122 names in the project spell it `Id`packages/web-components/src/components/notification/inline-notification.ts:55
`timeoutID` spells `ID` where 122 names in the project spell it `Id`packages/web-components/src/components/notification/inline-notification.ts:67

What to do

  1. Resolve the 1 `_timeoutID` spells `ID` where 122 names in the project spell it `Id` finding(s) in Naming Consistency — start with inline-notification.ts. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 `timeoutID` spells `ID` where 122 names in the project spell it `Id` finding(s) in Naming Consistency — start with inline-notification.ts. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d21_recommendation.md · top locations in Appendix A, every location in findings.md.

D23 · Boundary Type-Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether domain types (IDs, enums, value objects) leak across bounded-context boundaries.

Method: Cross-context domain-type leakage via Roslyn structural classification (strongly-typed IDs / value objects) over every public surface. Exhaustive, deterministic, type-level aggregate-boundary check.

Coverage: Bounded contexts derived from NAMESPACE prefix (or graph-inferred where available); cross-boundary domain-type leakage then checked exhaustively over every public member of every type.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

10 domain type(s) cross context boundaries across 33 contexts; they are measured and withheld (not published, not scored). Contexts: babel-preset-carbon, carbon-components, carbon-components-react, cli, cli-reporter, colors, feature-flags, grid, icon-build-helpers, icon-helpers, icons, icons-react and 21 more.

✓ On the Gold path — maintain.

Detailed fixes: d23_recommendation.md.

D24 · Comment Value8.4 7.8 / 10Strong✓ Tool-verified

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 7.8 / 10 · rule-coverage 93% · ceiling Documented

69 of 4222 judged comments only repeat the code they sit on (1.6 %). 451 comment(s) in another language or script were not judged.

redundant comment · ×65e2e/components/FileUploader/FileUploader-test.avt.e2e.js:114
doc comments repeat the names · ×3packages/react/src/components/AddSelect/AddSelect.tsx:26

What to do

  1. Resolve the 65 redundant comment finding(s) in Comment Value — start with token-output-test.js (4), PageHeader-test.js (4), modal-test.js (4). — One of this dimension's main actionable groups (65 recommendation-level).

Detailed fixes: d24_recommendation.md · top locations in Appendix A, every location in findings.md.

D25 · ADR Conformance0.0 / 10Critical✓ Tool-verified

What it measures: Whether the code actually follows the decisions recorded in the project's ADRs.

Method: Each binding ADR read for checkable forms: a backticked element its Decision section rules out, a ruled-out package the manifests declare, a forbidden module dependency, an opt-in adr-rules block, and a declared delivery status the code does not yet carry. A prose decision with no checkable form is unverifiable, neither a finding nor a pass. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Verified

1 of 1 checkable records are broken by the code or by their own declared delivery (1 of 8 binding records state a rule in checkable form or declare their delivery; prose decisions are unverifiable).

ADR not followed: 3. Use `preview` moniker instead of `experimental`docs/decisions/0003-use-preview-moniker.md:42detected by adr-prohibition

What to do

  1. Resolve the 1 ADR not followed finding(s) in ADR Conformance — start with 0003-use-preview-moniker.md. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d25_recommendation.md · top locations in Appendix A, every location in findings.md.

D26 · Project Cohesion9.0 / 10Strong✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic.

Maturity: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

2 of 39 build units (npm) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion

What to do

  1. Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.

D28 · Secrets (history)6.0 / 10Adequate✓ Tool-verified

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Documented

4 finding(s): 0 critical, 4 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

REDACTED
REDACTED

What to do

  1. Resolve the 4 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (4 issue-level).
  2. Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.

D29 · Static Analysis (SAST)0.0 / 10Critical✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

51 finding(s): 0 critical, 39 high, 12 medium, 0 low. 9 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 33 file(s) — `packages/react/.storybook/manager-head.html` (lines 40–43), `packages/react/src/components/BadgeIndicator/index.tsx` (line 30), `packages/react/src/components/Breadcrumb/BreadcrumbItem.tsx` (line 43), `packages/react/src/components/DataTable/TableCell.tsx` (line 40), `packages/react/src/components/DataTable/TableHeader.tsx` (line 149), … (+28 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 8 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 7 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 13 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (12), REDACTED. — One of this dimension's main actionable groups (13 issue-level).
  2. Resolve the 10 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (9), REDACTED. — One of this dimension's main actionable groups (10 issue-level).
  3. No action in Static Analysis (SAST) — all 9 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (9 issue-level, 0 of them charged here).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D30 · Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

54 finding(s): 5 critical, 31 high, 15 medium, 3 low.

REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 31 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (31). — One of this dimension's main actionable groups (31 issue-level).
  2. Resolve the 15 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (15). — One of this dimension's main actionable groups (15 warning-level).
  3. Resolve the 5 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (5). — One of this dimension's main actionable groups (5 issue-level).

Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.

D31 · IaC & Container Security7.8 / 10Adequategated by 4 critical findings✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (REDACTED/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

Maturity: Documented → Verified → Prevented · effective 7.8 / 10 · rule-coverage 100% · ceiling Documented

13 finding(s): 0 critical, 4 high, 9 medium, 0 low.

REDACTED
REDACTED

What to do

  1. Resolve the 4 High IaC finding(s) in IaC & Container Security — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).
  2. Resolve the 9 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (8), REDACTED. — One of this dimension's main actionable groups (9 warning-level).

Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness9.0 / 10Adequategated by 2 critical findings✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

90 of 899 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is packages/react/src/components/PaginationNav/PaginationNav.tsx. Counted over 899 of the 2119 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned knowledge · ×2packages/react/src/components/PaginationNav/PaginationNav.tsx:1
Orphaned file · ×88packages/react/src/components/ComposedModal/ModalFooter.tsx:1
Further orphaned files (smaller)

What to do

  1. Resolve the 2 Orphaned knowledge finding(s) in Knowledge Freshness — start with PaginationNav.tsx, definitions.js. — One of this dimension's main actionable groups (2 issue-level).
  2. Resolve the 88 Orphaned file finding(s) in Knowledge Freshness — start with index.js (4), tokens.ts (2), workspace.js (2). — One of this dimension's main actionable groups (88 recommendation-level).
  3. Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.

D35 · Change Coupling10.0 / 10Stronggated by 4 serious findings✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: OperationalTag.tsx↔SelectableTag.tsx 73%; DismissibleTag.tsx↔OperationalTag.tsx 73%; DismissibleTag.tsx↔SelectableTag.tsx 62%

Change coupling: product-migrated-components.mjs ↔ index.ts · ×3packages/react/product-migrated-components.mjs:1
Change coupling clique: DismissibleTag.tsx, OperationalTag.tsx, SelectableTag.tsxpackages/react/src/components/Tag/DismissibleTag.tsx

What to do

  1. Resolve the 3 Change coupling finding(s) in Change Coupling — start with product-migrated-components.mjs, ControlledPasswordInput.tsx, FilterableMultiSelect.tsx. — One of this dimension's main actionable groups (3 warning-level).
  2. Resolve the 1 Change coupling clique finding(s) in Change Coupling — start with DismissibleTag.tsx. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D36 · Supply-chain Provenance & Signing5.0 / 10Adequate✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

Maturity: Documented → Verified → Prevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Documented

2/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 5 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 17 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (17 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  3. Resolve the 3 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 warning-level).

Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.

Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 1 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.

AC2 · Forms & labels5.4 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. — packages/react/src/components/TreeView/TreeView.tsx:291
  • A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label. (×3) — packages/web-components/src/components/button/button-skeleton.ts:54, packages/web-components/src/components/date-picker/date-picker.ts:568, packages/web-components/src/components/date-picker/date-picker.ts:575
  • A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). — packages/web-components/src/components/button/button-skeleton.ts:68
  • This <slot> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label. — packages/web-components/src/components/content-switcher/content-switcher.ts:519
  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. (×3) — packages/web-components/src/components/multi-select/multi-select.ts:490, packages/web-components/src/components/password-input/password-input.ts:316, packages/web-components/src/components/time-picker/time-picker.ts:252
  • This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×17) — packages/web-components/src/components/password-input/password-input.ts:260, packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:78, packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:82, …
  • A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one. (×2) — packages/web-components/src/components/radio-button/radio-button-group.ts:296, packages/web-components/src/components/tile/tile-group.ts:268
  • This <div> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label. (×2) — packages/web-components/src/components/side-panel/side-panel.ts:1113, packages/web-components/src/components/ui-shell/side-nav.ts:249
  • This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×2) — packages/web-components/src/components/slider/slider-input.ts:248, packages/web-components/src/components/structured-list/structured-list-row.ts:217

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure5.7 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.

Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). — packages/web-components/.storybook/basic-example-cdn.html:2
  • A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>. — packages/web-components/.storybook/basic-example-cdn.html:2
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — packages/web-components/.storybook/basic-example-cdn.html:2
  • Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. — packages/web-components/src/components/tearsheet/tearsheet-helpers.ts:173

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics4.7 / 10Weak✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".

  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler. — packages/react/src/components/TreeView/TreeNode.tsx:587
  • An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. — packages/web-components/.storybook/templates/with-feature-flags.ts:32
  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×5) — packages/web-components/src/components/date-picker/date-picker-input.ts:351, packages/web-components/src/components/dialog/dialog.ts:278, packages/web-components/src/components/tree-view/tree-node.ts:331, …
  • This <div> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabindex="0", so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabindex="0"="0" so the element can receive that focus. (×2) — packages/web-components/src/components/dropdown/dropdown.ts:1360, packages/web-components/src/components/ui-shell/side-nav.ts:252
  • This <div role="dialog"> is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close. — packages/web-components/src/components/notification-panel/notification-panel.ts:195
  • An <a href="#"> (or javascript:) with a click handler is a button dressed as a link — it announces the wrong role and stops working without JS. Use a <button> for an action. — packages/web-components/src/components/ui-shell/header-menu.ts:153

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.

Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AC6 · Visual & motion safety4.0 / 10Weak✓ Tool-verified

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • `:host( -user-avatar) . __tooltip-trigger` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/user-avatar/user-avatar.scss:60
  • `:host( -header-nav-item)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/ui-shell/header.scss:45
  • `:host( -header-menu)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/ui-shell/header.scss:51
  • `:host( -header-menu-item)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/ui-shell/header.scss:55
  • `:host( -header-menu-button)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/ui-shell/header.scss:119
  • `:host( -side-nav-link)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/ui-shell/side-nav.scss:30
  • `:host( -side-nav-menu-item)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/ui-shell/side-nav.scss:114
  • `:host( -tree-node:focus-visible)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/tree-view/tree-view.scss:41
  • `:host( -toggletip)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/toggle-tip/toggletip.scss:28
  • `:host( -toggle)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/toggle/toggle.scss:17
  • `:host( -clickable-tile)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/tile/tile.scss:44
  • `:host( -radio-tile)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/tile/tile.scss:92
  • `:host( -selectable-tile)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/tile/tile.scss:105
  • `:host( -expandable-tile[with-interactive]):focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/tile/tile.scss:182
  • `:host( -expandable-tile:not([with-interactive])) . --tile__chevron` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/tile/tile.scss:195
  • `:host( -textarea)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/textarea/textarea.scss:20
  • `:host( -text-input)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/text-input/text-input.scss:29
  • `:host( -tab)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/tabs/tabs.scss:293
  • `:host( -tab[disabled][role]) . --tabs__nav-link` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/tabs/tabs.scss:485
  • `:host( -slider)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/slider/slider.scss:20
  • `:host( -select)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/select/select.scss:35
  • `:host( -search)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/search/search.scss:26
  • `:host([expandable]:focus-within) . --search-magnifier ~ . --search-input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/search/search.scss:37
  • `:host([expandable][expanded]:focus-within) . --search-magnifier` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/search/search.scss:42
  • `:host( -search[disabled]) . --search-close` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/search/search.scss:79
  • `:host( -radio-button)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/radio-button/radio-button.scss:56
  • `:host( -progress-step)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/progress-indicator/progress-indicator.scss:35
  • `:host( -password-input)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/password-input/password-input.scss:25
  • `:host( -pagination)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/pagination/pagination.scss:24
  • `:host( -overflow-menu-item)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/overflow-menu/overflow-menu.scss:101
  • `:host( -number-input)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/number-input/number-input.scss:36
  • `:host( -actionable-notification)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/notification/actionable-notification.scss:30
  • `:host( -callout-notification)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/notification/actionable-notification.scss:202
  • `:host( -inline-notification)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/notification/inline-notification.scss:26
  • `:host( -toast-notification)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/notification/toast-notification.scss:25
  • `:host( -multi-select) . --list-box__menu` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/multi-select/multi-select.scss:45
  • `:host( -multi-select)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/multi-select/multi-select.scss:27
  • `:host( -multi-select) . --list-box__field.no-focus-style:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/multi-select/multi-select.scss:541
  • `:host( -multi-select[disabled]) . --list-box__field:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/multi-select/multi-select.scss:620
  • `:host( -modal-close-button)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/web-components/src/components/modal/modal.scss:73

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AX10 · Code composition9.9 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

AX6 · Interface segregation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.

  • `DataTableRenderProps` declares 16 required operations: `getHeaderProps`, `getExpandHeaderProps`, `getRowProps`, `getExpandedRowProps`, `getSelectionProps`, `getToolbarProps`, `getBatchActionProps`, `getTableProps`, `getTableContainerProps`, `getCellProps`, `onInputChange`, `sortBy`, `selectAll`, `selectRow`, `expandRow`, `expandAll`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — packages/react/src/components/DataTable/DataTable.tsx:121

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX8 · Test isolation7.5 / 10Strong✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

  • `jest-config-carbon` ships in a production host and references `babel-jest`, a package that exists only to test. It puts a test framework, double or assertion library into the shipped product. Move the code that uses it into a test project, or replace it with production code. If `jest-config-carbon` is itself a plugin, matcher or preset of the test framework, declare the framework under `peerDependencies` (and `devDependencies`) instead of `dependencies`. — config/jest-config-carbon/package.json:33

What to do

  • Remove every production → test project reference: extract any shared test helper into a production support library (which the tests reference), or invert the dependency so the test project depends on production — not the reverse.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unreviewed-generation residue in this repository's JavaScript/TypeScript: functions whose whole body still throws a "not implemented" error, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings and JSX of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

  • A placeholder string ("<cds-slug size="xs" alignment="bottom-ri…") is still in shipped code — typical of generated boilerplate that was never filled in. — packages/web-components/src/components/side-panel/_story-assets/index.ts:194

What to do

  • Finish or delete the functions that still throw "not implemented", and replace placeholder text before shipping.
IC1 · Incompleteness & stubs5.3 / 10Adequate✓ Tool-verified

Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's JavaScript/TypeScript: functions that only throw a "not implemented" error, functions that take inputs and return a constant or do nothing, async functions that never await, dead `if (false)` branches, and skeleton classes most of whose methods are holes.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • `validateHeadings` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — actions/validate-pr-template/index.js:155
  • `validateChecklistItems` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — actions/validate-pr-template/index.js:182
  • `main` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/cli/src/cli.js:40
  • `emitDeclarations` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/cli/src/commands/bundle/tsdown.js:116
  • `writeTsDefinitions` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/icon-build-helpers/src/builders/react/next/typescript.js:88
  • `write` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/icon-build-helpers/src/metadata/adapters/memory.js:37
  • `compileIconComponent` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/pictograms-react/tasks/build.js:53
  • `onChange` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. — packages/react/src/components/Form/stories/form-demo.js:253
  • `onClick` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. (×4) — packages/upgrade/transforms/__testfixtures__/enable-v12-overflowmenu-nowrap.input.js:19, packages/upgrade/transforms/__testfixtures__/enable-v12-overflowmenu-nowrap.output.js:21, packages/upgrade/transforms/__testfixtures__/enable-v12-overflowmenu.input.js:18, …
  • `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. (×28) — packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-alias.input.tsx:16, packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-alias.output.tsx:14, packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:13, …

What to do

  • Clear the softer debt: re-enable or delete skipped tests, decide whether each empty function is a deliberate no-op (and say so in a comment), and replace blanket `eslint-disable` / `@ts-nocheck` with targeted, justified suppressions.
M1 · Documentation (README)8.0 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy4.3 / 10Weak✓ Tool-verified

Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.

Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.

  • docs/postmortems/README.md links to `./00-template.md`, but `docs/postmortems/00-template.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/postmortems/README.md:15
  • packages/carbon-components/README.md links to `./docs/sass.md#configuration`, but `packages/carbon-components/docs/sass.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/carbon-components/README.md:46
  • packages/icon-build-helpers/src/metadata/README.md links to `./registry.js`, but `packages/icon-build-helpers/src/metadata/registry.js` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/icon-build-helpers/src/metadata/README.md:28
  • packages/react/src/internal/README.md links to `./FeatureFlags.js`, but `packages/react/src/internal/FeatureFlags.js` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/react/src/internal/README.md:3

What to do

  • Reconcile the README with reality: docs/postmortems/README.md links to `./00-template.md`, but `docs/postmortems/00-template.md` does not exist; packages/carbon-components/README.md links to `./docs/sass.md#configuration`, but `packages/carbon-components/docs/sass.md` does not exist; packages/icon-build-helpers/src/metadata/README.md links to `./registry.js`, but `packages/icon-build-helpers/src/metadata/registry.js` does not exist; packages/react/src/internal/README.md links to `./FeatureFlags.js`, but `packages/react/src/internal/FeatureFlags.js` does not exist.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.

P2 · Observability6.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • Only 2/3 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `packages/web-components`.
  • `packages/upgrade/transforms/icons-react-size-prop.js` reports through `console.*` at line 321 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/icons-react-size-prop.js:321
  • `packages/upgrade/transforms/wc-report-non-barrel-imports.js` reports through `console.*` at line 141 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/wc-report-non-barrel-imports.js:141
  • `packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.input.js` reports through `console.*` at line 48 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.input.js:48
  • `packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.input.js` reports through `console.*` at line 52 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.input.js:52
  • `packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.output.js` reports through `console.*` at line 48 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.output.js:48
  • `packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.output.js` reports through `console.*` at line 52 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.output.js:52
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 49 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:49
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 55 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:55
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 71 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:71
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 77 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:77
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 132 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:132
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 141 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:141
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 47 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:47
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 53 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:53
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 67 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:67
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 73 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:73
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 120 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:120
  • `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 128 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:128

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
  • Route service-code `console.*` output through the module's structured logger (with named fields), so delivery outcomes and failures reach the log pipeline with a level.
  • Add a health-check endpoint (@godaddy/terminus or a /health route) so orchestrators and load balancers can probe liveness/readiness.
P3 · Security & performance tooling7.0 / 10Strong✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

  • `REDACTED` schedules updates, but no `package-ecosystem` entry covers `npm`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the `updates:` list. — REDACTED:2

What to do

  • Dependabot is configured but does not watch `npm` — add that `package-ecosystem` entry to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

P5 · DR & Backup0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

  • A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

PF3 · Async & latency hygiene7.0 / 10Strong✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

  • `fs.existsSync` in `inlineSassDependencies` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/cli/src/commands/inline.js:48
  • `fs.existsSync` in `loadWorkspace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/upgrade/src/workspace.js:110

What to do

  • TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety5.9 / 10Adequate✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

  • 1614 typed · 1138 plain JS — the untyped files are achecker.js, actions/issues/src/conditions.js, actions/issues/src/manage-comment-test.js, actions/issues/src/manage-comment.js, actions/issues/src/plugins/bob-bug-triage-test.js, actions/issues/src/plugins/bob-bug-triage.js (+1132 more). 0 production file(s) opt out entirely with @ts-nocheck · 99 @ts-ignore suppression(s).
R10 · Code Duplication3.4 / 10Weak✓ Tool-verified

React / JS · Code Health — The share of the scored frontend lines inside a near-exact copy-pasted block of substantial extent (the D4 clone algorithm over JS/TS tokens, D-386; each line once, 10 at none and 0 at a quarter of the lines, as D4): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.

Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Scored on the share of the scored frontend lines inside a reported copy, on the same curve as D4. Deterministic.

  • 218 duplicated blocks under packages/react/src/components/ have copies in at least two of the sibling directories AISkeleton, AspectRatio, BadgeIndicator, BigNumber, Breadcrumb, Button (+101 more sibling(s) not listed) — 94 of them are reported below, and 124 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 218 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 218 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 218 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/react/src/components/TextArea/TextArea.tsx:45
  • 135 duplicated blocks under packages/ have copies in at least two of the sibling directories carbon-components, carbon-components-react, cli, feature-flags, icons, icons-react (+10 more sibling(s) not listed) — 115 of them are reported below, and 20 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 135 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 135 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 135 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/react/src/components/PageHeader/overflowHandler.ts:27
  • 120 duplicated blocks under packages/web-components/src/components/ have copies in at least two of the sibling directories accordion, action-set, add-select, ai-label, ai-skeleton, big-number (+73 more sibling(s) not listed) — 87 of them are reported below, and 33 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 120 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 120 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 120 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/web-components/src/components/password-input/password-input.ts:136
  • 30 duplicated blocks under packages/web-components/code-connect/ have copies in at least two of the sibling directories breadcrumb, button, checkbox, combo-box, combo-button, content-switcher (+31 more sibling(s) not listed) — 13 of them are reported below, and 17 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 30 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 30 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 30 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/web-components/code-connect/checkbox/checkbox.figma.ts:59
  • 20 duplicated blocks under packages/react/code-connect/ have copies in at least two of the sibling directories AILabel, Accordion, Breadcrumb, Button, Checkbox, CodeSnippet (+32 more sibling(s) not listed) — 11 of them are reported below, and 9 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 20 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/react/code-connect/FileUploader/FileUploader.figma.ts:72
  • packages/react/src/components/TextArea/TextArea.tsx:45 · packages/react/src/components/TextInput/TextInput.tsx:35 — the two spans are one implementation copied and then locally edited — 996 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/TextArea/TextArea.tsx:45
  • packages/react/src/components/ComposedModal/ComposedModal.tsx:257 · packages/react/src/components/Modal/Modal.tsx:252 — the two spans are one implementation copied and then locally edited — 986 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/ComposedModal/ComposedModal.tsx:257
  • packages/react/src/components/ComposedModal/ComposedModal-test.js:1068 · packages/react/src/components/Modal/Modal-test.js:960 — the two spans are one implementation copied and then locally edited — 1121 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/ComposedModal/ComposedModal-test.js:1068
  • packages/web-components/src/components/password-input/password-input.ts:136 · packages/web-components/src/components/text-input/text-input.ts:345 — the two spans are one implementation copied and then locally edited — 755 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/web-components/src/components/password-input/password-input.ts:136
  • packages/themes/src/v10/g10.ts:8 · packages/themes/src/v10/white.ts:8 — these 2 files are line-for-line copies of one another — 143 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/themes/src/v10/g10.ts:8
  • packages/themes/src/v10/g100.ts:8 · packages/themes/src/v10/g90.ts:8 — these 2 files are line-for-line copies of one another — 125 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/themes/src/v10/g100.ts:8
  • packages/web-components/src/components/date-picker/date-picker-input.ts:245 · packages/web-components/src/components/date-picker/next/components/date-picker-input.ts:293 — the two spans are one implementation copied and then locally edited — 577 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/web-components/src/components/date-picker/date-picker-input.ts:245
  • packages/react/src/components/TextInput/PasswordInput.tsx:280 · packages/react/src/components/TextInput/TextInput.tsx:308 — the two spans are one implementation copied and then locally edited — 519 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/TextInput/PasswordInput.tsx:280
  • packages/react/src/components/PageHeader/overflowHandler.ts:27 · packages/web-components/src/components/page-header/_story-assets/overflowHandler.ts:21 — these 2 files are line-for-line copies of one another — 99 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/react/src/components/PageHeader/overflowHandler.ts:27
  • packages/upgrade/transforms/enable-v12-tile-default-icons.js:14 · packages/upgrade/transforms/enable-v12-tile-radio-icons.js:14 — these 2 files are line-for-line copies of one another — 88 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/upgrade/transforms/enable-v12-tile-default-icons.js:14
  • packages/react/code-connect/DatePicker/DatePickerRange.figma.ts:20 · packages/react/code-connect/DatePicker/FluidDatePickerRange.figma.ts:20 — the two spans are one implementation copied and then locally edited — 409 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/code-connect/DatePicker/DatePickerRange.figma.ts:20
  • packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet-preview.ts:120 · packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet.ts:109 — the two spans are one implementation copied and then locally edited — 360 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet-preview.ts:120
  • packages/web-components/src/components/date-picker/date-picker-input.ts:30 · packages/web-components/src/components/date-picker/next/components/date-picker-input.ts:33 — the two spans are one implementation copied and then locally edited — 511 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/web-components/src/components/date-picker/date-picker-input.ts:30
  • packages/react/code-connect/MultiSelect/FluidFilterableMultiSelect.figma.ts:17 · packages/react/code-connect/MultiSelect/FluidMultiSelect.figma.ts:17 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — packages/react/code-connect/MultiSelect/FluidFilterableMultiSelect.figma.ts:17
  • packages/web-components/src/components/tag/operational-tag.ts:8 · packages/web-components/src/components/tag/selectable-tag.ts:8 — these 2 files are line-for-line copies of one another — 71 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/web-components/src/components/tag/operational-tag.ts:8
  • packages/react/src/components/FluidMultiSelect/FluidFilterableMultiSelect.tsx:8 · packages/react/src/components/FluidMultiSelect/FluidMultiSelect.tsx:8 — these 2 files are line-for-line copies of one another — 70 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/react/src/components/FluidMultiSelect/FluidFilterableMultiSelect.tsx:8
  • packages/web-components/code-connect/date-picker/date-picker-range.figma.ts:18 · packages/web-components/code-connect/date-picker/fluid-date-picker-range.figma.ts:18 — the two spans are one implementation copied and then locally edited — 289 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/web-components/code-connect/date-picker/date-picker-range.figma.ts:18
  • packages/web-components/src/components/dialog/dialog.ts:107 · packages/web-components/src/components/modal/modal.ts:288 — the two spans are one implementation copied and then locally edited — 364 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/web-components/src/components/dialog/dialog.ts:107
  • packages/react/code-connect/DataTable/DataTable.figma.ts:14 · packages/web-components/code-connect/data-table/data-table.figma.ts:18 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited. — packages/react/code-connect/DataTable/DataTable.figma.ts:14
  • packages/web-components/code-connect/date-picker/date-picker-simple.figma.ts:24 · packages/web-components/code-connect/date-picker/date-picker-single.figma.ts:20 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — packages/web-components/code-connect/date-picker/date-picker-simple.figma.ts:24
  • packages/react/src/components/PageHeader/PageHeaderContentPageActions.tsx:67 · packages/react/src/components/PageHeaderDeprecated/PageHeader.tsx:357 — the two spans are one implementation copied and then locally edited — 374 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/PageHeader/PageHeaderContentPageActions.tsx:67
  • packages/react/src/components/Checkbox/Checkbox.tsx:172 · packages/react/src/components/RadioButtonGroup/RadioButtonGroup.tsx:230 — the two spans are one implementation copied and then locally edited — 298 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/Checkbox/Checkbox.tsx:172
  • packages/react/code-connect/MultiSelect/FilterableMultiSelect.figma.ts:14 · packages/react/code-connect/MultiSelect/MultiSelect.figma.ts:14 — the two spans are one implementation copied and then locally edited — 294 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/code-connect/MultiSelect/FilterableMultiSelect.figma.ts:14
  • packages/react/src/components/Tag/OperationalTag.tsx:102 · packages/react/src/components/Tag/SelectableTag.tsx:114 — the two spans are one implementation copied and then locally edited — 318 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/Tag/OperationalTag.tsx:102
  • packages/web-components/src/components/checkbox/checkbox-group.ts:167 · packages/web-components/src/components/checkbox/checkbox.ts:248 — the two spans are one implementation copied and then locally edited — 240 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/web-components/src/components/checkbox/checkbox-group.ts:167
  • packages/utilities/src/overflowHandler/overflowHandler.ts:57 · packages/web-components/src/components/page-header/_story-assets/overflowHandler.ts:61 — the two spans are one implementation copied and then locally edited — 402 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/utilities/src/overflowHandler/overflowHandler.ts:57
  • packages/web-components/src/components/ai-label/ai-label.ts:8 · packages/web-components/src/components/slug/slug.ts:8 — these 2 files are line-for-line copies of one another — 59 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/web-components/src/components/ai-label/ai-label.ts:8
  • packages/react/src/components/TextInput/ControlledPasswordInput.tsx:208 · packages/react/src/components/TextInput/PasswordInput.tsx:315 — the two spans are one implementation copied and then locally edited — 259 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/TextInput/ControlledPasswordInput.tsx:208
  • packages/react/src/components/FluidComboBox/FluidComboBox.tsx:20 · packages/react/src/components/FluidDropdown/FluidDropdown.tsx:15 — the two spans are one implementation copied and then locally edited — 330 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/FluidComboBox/FluidComboBox.tsx:20
  • packages/react/code-connect/DatePicker/FluidDatePickerSimple.figma.ts:19 · packages/react/code-connect/DatePicker/FluidDatePickerSingle.figma.ts:19 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — packages/react/code-connect/DatePicker/FluidDatePickerSimple.figma.ts:19
  • packages/react/src/components/ComposedModal/ComposedModalPresence.tsx:22 · packages/react/src/components/Modal/ModalPresence.tsx:21 — the two spans are one implementation copied and then locally edited — 275 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/ComposedModal/ComposedModalPresence.tsx:22
  • packages/react/src/components/AddSelect/AddSelectBody.tsx:206 · packages/web-components/src/components/add-select/add-select-body.ts:140 — the two spans are one implementation copied and then locally edited — 185 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/react/src/components/AddSelect/AddSelectBody.tsx:206
  • packages/web-components/code-connect/date-picker/fluid-date-picker-simple.figma.ts:23 · packages/web-components/code-connect/date-picker/fluid-date-picker-single.figma.ts:23 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — packages/web-components/code-connect/date-picker/fluid-date-picker-simple.figma.ts:23
  • packages/web-components/code-connect/slider/slider-two-handles.figma.ts:18 · packages/web-components/code-connect/slider/slider.figma.ts:18 — the two spans are one implementation copied and then locally edited — 263 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/web-components/code-connect/slider/slider-two-handles.figma.ts:18
  • packages/react/code-connect/ContainedList/ContainedList.figma.ts:14 · packages/web-components/code-connect/contained-list/contained-list.figma.ts:15 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — packages/react/code-connect/ContainedList/ContainedList.figma.ts:14

What to do

  • Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R11 · Import Boundaries8.3 / 10Strong✓ Tool-verified

React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).

Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.

  • packages/icons-react/tasks/build.js:11 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/icons-react/tasks/build.js:11
  • packages/icons-vue/tasks/build.js:11 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/icons-vue/tasks/build.js:11
  • packages/icons-vue/tasks/build.js:11 imports @carbon/icon-build-helpers, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies. — packages/icons-vue/tasks/build.js:11
  • packages/icons/tasks/build.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/icons/tasks/build.js:10
  • packages/icons/tasks/ci-check.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/icons/tasks/ci-check.js:10
  • packages/icons/tasks/scaffold.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/icons/tasks/scaffold.js:10
  • packages/pictograms-react/tasks/build.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/pictograms-react/tasks/build.js:10
  • packages/pictograms/tasks/build.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/pictograms/tasks/build.js:10
  • packages/pictograms/tasks/ci-check.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/pictograms/tasks/ci-check.js:10
  • packages/pictograms/tasks/scaffold.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/pictograms/tasks/scaffold.js:10
  • packages/react/src/components/Coachmark/CoachmarkContentHeader.tsx:21 reaches into another package with a relative path (../../../../utilities/src/makeDraggable) — import the package by name instead. — packages/react/src/components/Coachmark/CoachmarkContentHeader.tsx:21
  • packages/react/src/components/DatePicker/DatePicker.tsx:21 imports flatpickr/dist/l10n/index, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/react/src/components/DatePicker/DatePicker.tsx:21
  • packages/react/src/components/DatePicker/plugins/rangePlugin.ts:8 imports flatpickr/dist/plugins/rangePlugin, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/react/src/components/DatePicker/plugins/rangePlugin.ts:8
  • packages/react/src/components/Guidebanner/Guidebanner.tsx:11 imports @carbon/colors, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies. — packages/react/src/components/Guidebanner/Guidebanner.tsx:11
  • packages/react/src/components/Tearsheet/TearsheetWithSteps.jsx:10 reaches into another package with a relative path (../../../../utilities-react/src/StepFlow) — import the package by name instead. — packages/react/src/components/Tearsheet/TearsheetWithSteps.jsx:10
  • packages/upgrade/src/jscodeshift.js:8 imports jscodeshift/src/Runner, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/upgrade/src/jscodeshift.js:8
  • packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header2.input.js:6 imports @carbon/web-components/lib/components/page-header/page-header-tabs.js, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header2.input.js:6
  • packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header2.output.js:6 imports @carbon/ibm-products-web-components/lib/components/page-header/page-header-tabs.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header2.output.js:6
  • packages/utilities-react/src/StepFlow/StepFlow-test.js:11 imports @carbon/react, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies. — packages/utilities-react/src/StepFlow/StepFlow-test.js:11
  • packages/web-components/src/components/date-picker/append-to-plugin.ts:8 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/append-to-plugin.ts:8
  • packages/web-components/src/components/date-picker/append-to-plugin.ts:9 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/append-to-plugin.ts:9
  • packages/web-components/src/components/date-picker/css-class-plugin.ts:8 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/css-class-plugin.ts:8
  • packages/web-components/src/components/date-picker/css-class-plugin.ts:9 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/css-class-plugin.ts:9
  • packages/web-components/src/components/date-picker/date-picker.ts:11 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/date-picker.ts:11
  • packages/web-components/src/components/date-picker/date-picker.ts:12 imports flatpickr/dist/types/locale, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/date-picker.ts:12
  • packages/web-components/src/components/date-picker/date-picker.ts:13 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/date-picker.ts:13
  • packages/web-components/src/components/date-picker/fix-events-plugin.ts:8 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/fix-events-plugin.ts:8
  • packages/web-components/src/components/date-picker/fix-events-plugin.ts:9 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/fix-events-plugin.ts:9
  • packages/web-components/src/components/date-picker/focus-plugin.ts:8 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/focus-plugin.ts:8
  • packages/web-components/src/components/date-picker/focus-plugin.ts:9 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/focus-plugin.ts:9
  • packages/web-components/src/components/date-picker/icon-plugin.ts:9 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/icon-plugin.ts:9
  • packages/web-components/src/components/date-picker/icon-plugin.ts:10 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/icon-plugin.ts:10
  • packages/web-components/src/components/date-picker/month-select-plugin.ts:8 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/month-select-plugin.ts:8
  • packages/web-components/src/components/date-picker/month-select-plugin.ts:9 imports flatpickr/dist/types/locale, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/month-select-plugin.ts:9
  • packages/web-components/src/components/date-picker/month-select-plugin.ts:10 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/month-select-plugin.ts:10
  • packages/web-components/src/components/date-picker/range-plugin.ts:8 imports flatpickr/dist/esm/plugins/rangePlugin.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/range-plugin.ts:8
  • packages/web-components/src/components/date-picker/range-plugin.ts:10 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/range-plugin.ts:10
  • packages/web-components/src/components/date-picker/range-plugin.ts:11 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/range-plugin.ts:11
  • packages/web-components/src/components/date-picker/shadow-dom-events-plugin.ts:8 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/shadow-dom-events-plugin.ts:8
  • packages/web-components/src/components/date-picker/shadow-dom-events-plugin.ts:9 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/web-components/src/components/date-picker/shadow-dom-events-plugin.ts:9

What to do

  • Fix the listed violations: import through the target package's declared public entry rather than a deep path into its internals or a relative path into its directory (30 rows); move the shared test helper into a source directory production code may depend on (9 rows); declare the workspace packages these files import in the importing package's own package.json dependencies (4 rows) — those imports are already bare package specifiers, so the import statements do not change, only the manifest.
R2 · Cyclomatic Complexity8.0 / 10Strong✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • (anonymous) has cyclomatic complexity 56 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/Slider/Slider.tsx:350
  • ModalDialog has cyclomatic complexity 55 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/Modal/Modal.tsx:288
  • (anonymous) has cyclomatic complexity 54 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/TextArea/TextArea.tsx:215
  • (anonymous) has cyclomatic complexity 51 and cognitive complexity 87; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/ComboBox/ComboBox.tsx:611
  • _handleKeyDown has cyclomatic complexity 44 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/date-picker/next/components/date-picker.ts:641
  • (anonymous) has cyclomatic complexity 41 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/ComboBox/ComboBox.tsx:384
  • (anonymous) has cyclomatic complexity 40 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/Dropdown/Dropdown.tsx:291
  • (anonymous) has cyclomatic complexity 38 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/MultiSelect/MultiSelect.tsx:299
  • (anonymous) has cyclomatic complexity 37 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:594
  • (anonymous) has cyclomatic complexity 36 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/TextInput/PasswordInput.tsx:182
  • render has cyclomatic complexity 35 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/password-input/password-input.ts:140
  • _handleStateChange has cyclomatic complexity 34 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/date-picker/next/components/date-picker.ts:245
  • stateReducer has cyclomatic complexity 34 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:694
  • computePlacement has cyclomatic complexity 34 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/globals/controllers/floating-controller.ts:76
  • (anonymous) has cyclomatic complexity 33 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/ComboBox/ComboBox.tsx:1179
  • FilterableMultiSelect has cyclomatic complexity 32 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:331
  • _fitValue has cyclomatic complexity 32 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/menu/menu.ts:344
  • handleKeyDown has cyclomatic complexity 30 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/TreeView/TreeView.tsx:178
  • handleKeyDown has cyclomatic complexity 30 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/DatePicker/next/hooks/useDatePicker.ts:487
  • (anonymous) has cyclomatic complexity 30 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/Card/CardActions.tsx:94
  • fitValue has cyclomatic complexity 30 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/Menu/Menu.tsx:301
  • (anonymous) has cyclomatic complexity 29 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/upgrade/transforms/ibm-products-update-page-header-composable.js:99
  • CodeSnippet has cyclomatic complexity 29 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/CodeSnippet/CodeSnippet.tsx:156
  • handleStep has cyclomatic complexity 28 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:845
  • updated has cyclomatic complexity 28 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/overflow-menu/overflow-menu.ts:410
  • (anonymous) has cyclomatic complexity 28 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/TreeView/TreeNode.tsx:250
  • (top-level) has cyclomatic complexity 28 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/tabs/tab.ts:8
  • (anonymous) has cyclomatic complexity 28 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/TextInput/TextInput.tsx:192
  • (anonymous) has cyclomatic complexity 27 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/Select/Select.tsx:149
  • _handleBlur has cyclomatic complexity 26 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/notification/actionable-notification.ts:151
  • (anonymous) has cyclomatic complexity 26 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/RadioButtonGroup/RadioButtonGroup.tsx:144
  • _handleStep has cyclomatic complexity 25 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/number-input/number-input.ts:683
  • DatePickerInput has cyclomatic complexity 25 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/DatePicker/next/components/DatePickerInput.tsx:181
  • renderHeader has cyclomatic complexity 25 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/SidePanel/SidePanel.tsx:848
  • updated has cyclomatic complexity 24 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/dialog/dialog.ts:177
  • (anonymous) has cyclomatic complexity 24 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/Search/Search.tsx:138
  • render has cyclomatic complexity 24 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/web-components/src/components/number-input/number-input.ts:833
  • (anonymous) has cyclomatic complexity 24 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/Tabs/Tabs.tsx:1303
  • (anonymous) has cyclomatic complexity 23 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:463
  • (anonymous) has cyclomatic complexity 23 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/react/src/components/DatePicker/DatePicker.tsx:550
R3 · Large Files6.8 / 10Adequate✓ Tool-verified

React / JS · Code Health — How many source files exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

  • packages/react/src/components/DatePicker/DatePicker-test.js has 2043 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/DatePicker/DatePicker-test.js:1
  • packages/react/src/components/Tearsheet/Tearsheet.stories.js has 1744 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Tearsheet/Tearsheet.stories.js:1
  • packages/react/src/components/ComboBox/ComboBox-test.js has 1724 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/ComboBox/ComboBox-test.js:1
  • packages/react/src/components/Card/Card.stories.js has 1690 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Card/Card.stories.js:1
  • packages/react/src/components/Tabs/Tabs.tsx has 1666 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Tabs/Tabs.tsx:1
  • packages/react/src/components/Slider/Slider.tsx has 1631 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Slider/Slider.tsx:1
  • packages/react/src/components/Modal/Modal-test.js has 1601 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Modal/Modal-test.js:1
  • packages/react/src/components/ComboBox/ComboBox.tsx has 1462 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/ComboBox/ComboBox.tsx:1
  • packages/web-components/src/components/tabs/tabs.stories.ts has 1462 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/tabs/tabs.stories.ts:1
  • packages/react/src/components/Tabs/Tabs.stories.js has 1405 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Tabs/Tabs.stories.js:1
  • packages/web-components/src/components/dropdown/dropdown.ts has 1385 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/dropdown/dropdown.ts:1
  • packages/web-components/src/components/card/card.stories.ts has 1358 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/card/card.stories.ts:1
  • REDACTED has 1322 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • packages/react/src/components/Notification/Notification.tsx has 1299 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Notification/Notification.tsx:1
  • packages/web-components/src/components/ui-shell/ui-shell.stories.ts has 1270 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/ui-shell/ui-shell.stories.ts:1
  • packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx has 1254 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:1
  • packages/web-components/src/components/slider/slider.ts has 1213 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/slider/slider.ts:1
  • packages/web-components/src/components/multi-select/multi-select.stories.ts has 1177 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/multi-select/multi-select.stories.ts:1
  • packages/react/src/components/ComposedModal/ComposedModal-test.js has 1173 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/ComposedModal/ComposedModal-test.js:1
  • packages/web-components/src/components/page-header/page-header.stories.ts has 1100 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/page-header/page-header.stories.ts:1
  • packages/web-components/src/components/side-panel/side-panel.ts has 1096 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/side-panel/side-panel.ts:1
  • packages/react/src/components/DatePicker/DatePicker.tsx has 1077 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/DatePicker/DatePicker.tsx:1
  • packages/web-components/src/components/date-picker/next/components/date-picker.ts has 1075 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/date-picker/next/components/date-picker.ts:1
  • packages/react/src/components/Modal/Modal.tsx has 1069 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Modal/Modal.tsx:1
  • packages/react/src/components/AddSelect/AddSelect.stories.js has 1068 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/AddSelect/AddSelect.stories.js:1
  • packages/upgrade/src/upgrades.js has 1068 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/upgrade/src/upgrades.js:1
  • packages/react/src/components/PageHeader/PageHeader.stories.js has 1067 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/PageHeader/PageHeader.stories.js:1
  • packages/react/src/components/MultiSelect/MultiSelect.tsx has 1065 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/MultiSelect/MultiSelect.tsx:1
  • packages/web-components/src/components/data-table/table.ts has 1000 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/data-table/table.ts:1
  • packages/react/src/components/Tile/Tile.tsx has 999 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Tile/Tile.tsx:1
  • packages/react/src/components/SidePanel/SidePanel.tsx has 977 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/SidePanel/SidePanel.tsx:1
  • packages/web-components/src/components/add-select/add-select.stories.ts has 969 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/add-select/add-select.stories.ts:1
  • packages/web-components/src/components/multi-select/multi-select.ts has 963 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/multi-select/multi-select.ts:1
  • packages/web-components/src/components/modal/modal.stories.ts has 959 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/modal/modal.stories.ts:1
  • packages/react/src/components/Dialog/Dialog.tsx has 933 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Dialog/Dialog.tsx:1
  • packages/react/src/components/DataTable/DataTable.tsx has 925 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/DataTable/DataTable.tsx:1
  • packages/web-components/src/components/number-input/number-input.ts has 907 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/web-components/src/components/number-input/number-input.ts:1
  • packages/react/src/components/Resizer/Resizer.stories.js has 889 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Resizer/Resizer.stories.js:1
  • packages/react/src/components/Dropdown/Dropdown.tsx has 850 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/Dropdown/Dropdown.tsx:1
  • packages/react/src/components/TreeView/Treeview.stories.js has 839 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/react/src/components/TreeView/Treeview.stories.js:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage7.2 / 10Strong✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • packages/web-components/tests/spec/accordion_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/accordion_spec.ts:9
  • packages/web-components/tests/spec/code-snippet_spec.ts:9 imports '../../src/components/code-snippet/code-snippet-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/code-snippet_spec.ts:9
  • packages/web-components/tests/spec/combo-box_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/combo-box_spec.ts:9
  • packages/web-components/tests/spec/content-switcher_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/content-switcher_spec.ts:9
  • packages/web-components/tests/spec/data-table_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/data-table_spec.ts:9
  • packages/web-components/tests/spec/date-picker_spec.ts:11 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/date-picker_spec.ts:11
  • packages/web-components/tests/spec/dropdown_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/dropdown_spec.ts:9
  • packages/web-components/tests/spec/file-uploader_spec.ts:12 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/file-uploader_spec.ts:12
  • packages/web-components/tests/spec/modal_spec.ts:8 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/modal_spec.ts:8
  • packages/web-components/tests/spec/multi-select_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/multi-select_spec.ts:9
  • packages/web-components/tests/spec/notification_spec.ts:12 imports '../../src/components/notification/inline-notification-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/notification_spec.ts:12
  • packages/web-components/tests/spec/number-input_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/number-input_spec.ts:9
  • packages/web-components/tests/spec/pagination_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/pagination_spec.ts:9
  • packages/web-components/tests/spec/progress-bar_spec.ts:9 imports '../../src/components/progress-bar/progress-bar-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/progress-bar_spec.ts:9
  • packages/web-components/tests/spec/progress-indicator_spec.ts:10 imports '../../src/components/progress-indicator/progress-indicator-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/progress-indicator_spec.ts:10
  • packages/web-components/tests/spec/radio-button_spec.ts:13 imports '../../src/components/radio-button/radio-button-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/radio-button_spec.ts:13
  • packages/web-components/tests/spec/search_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/search_spec.ts:9
  • packages/web-components/tests/spec/select_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/select_spec.ts:9
  • packages/web-components/tests/spec/slider_spec.ts:9 imports '../../src/components/slider/slider-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/slider_spec.ts:9
  • packages/web-components/tests/spec/tabs_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/tabs_spec.ts:9
  • packages/web-components/tests/spec/tag_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/tag_spec.ts:9
  • packages/web-components/tests/spec/text-input_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/text-input_spec.ts:9
  • packages/web-components/tests/spec/textarea_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/textarea_spec.ts:9
  • packages/web-components/tests/spec/tile_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/tile_spec.ts:9
  • packages/web-components/tests/spec/ui-shell_spec.ts:14 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — packages/web-components/tests/spec/ui-shell_spec.ts:14
  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×15) — packages/react/src/components/DatePicker/DatePicker-test.js:1, packages/react/src/components/ComboBox/ComboBox-test.js:1, packages/react/src/components/Modal/Modal-test.js:1, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • This repository declares test tooling, and the ✓ above records that declaration — but packages/web-components/tests/spec/accordion_spec.ts and 24 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) — each one is reported with its failing import under Test Coverage — then the declared script exercises what it claims to. — packages/web-components/tests/spec/accordion_spec.ts:9
R7 · Dead Code6.1 / 10Adequate✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • 12 file(s) (~2829 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package. — actions/issues
  • 11 file(s) (~694 LoC) were excluded from dead-code analysis. This package's entry point(s) resolved, but the walk stopped one hop in: packages/colors/src/index.ts imports '../js/generated/colors.js', which is not in the scanned tree. That is usually a generated or build-output module, so reachability cannot see past it and no dead-code claim is made about this package. Nothing is necessarily wrong here. — packages/colors
  • 8 file(s) (~851 LoC) were excluded from dead-code analysis. This package's entry point(s) resolved, but the walk stopped one hop in: packages/feature-flags/src/index.ts imports './generated/feature-flags', which is not in the scanned tree. That is usually a generated or build-output module, so reachability cannot see past it and no dead-code claim is made about this package. Nothing is necessarily wrong here. — packages/feature-flags
  • 1 file(s) (~55 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package. — packages/grid
  • 8 file(s) (~1215 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package. — packages/test-utils
  • 40 file(s) (~7256 LoC) were excluded from dead-code analysis. This package's entry point(s) resolved, but the walk stopped one hop in: packages/themes/src/index.ts imports '../js/generated/themes/white.js', which is not in the scanned tree. That is usually a generated or build-output module, so reachability cannot see past it and no dead-code claim is made about this package. Nothing is necessarily wrong here. — packages/themes
  • Unreachable from the 197 application, 51 tooling and 1028 test entry point(s) detected in this repo. Gate removals on `yarn run build` — an undetected custom entry would make these reachable.
  • no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×33) — packages/react/src/components/DatePicker/DatePicker-test.js, packages/react/src/components/ComboBox/ComboBox-test.js, packages/react/src/components/Modal/Modal-test.js, …

What to do

  • Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene0.0 / 10Critical✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

  • Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×17) — config/jest-config-carbon/setup/setup.js:8, packages/cli/src/changelog.js:8, packages/cli/src/changelog.js:9, …
  • Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)
  • Declared in config/babel-preset-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×10)
  • Declared in packages/carbon-components/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Declared in packages/carbon-components-react/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2)
  • Declared in packages/cli/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2)
  • Declared in packages/colors/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2)
  • Declared in packages/elements/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2)

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports0.0 / 10Critical✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

  • packages/react/src/components/Button/Button.tsx → packages/react/src/components/IconButton/index.tsx → packages/react/src/components/Button/index.ts → packages/react/src/components/Button/Button.tsx — packages/react/src/components/Button/Button.tsx:10
  • packages/utilities-react/src/StepFlow/StepGroup.tsx → packages/utilities-react/src/StepFlow/index.ts → packages/utilities-react/src/StepFlow/StepGroup.tsx — packages/utilities-react/src/StepFlow/StepGroup.tsx:9
  • packages/web-components/src/components/data-table/table-expanded-row.ts → packages/web-components/src/components/data-table/table-row.ts → packages/web-components/src/components/data-table/table-expanded-row.ts — packages/web-components/src/components/data-table/table-expanded-row.ts:16
  • packages/web-components/src/components/data-table/table.ts → packages/web-components/src/index.ts → packages/web-components/src/components/data-table/table.ts — packages/web-components/src/components/data-table/table.ts:18
  • packages/web-components/src/components/date-picker/date-picker.ts → packages/web-components/src/components/date-picker/state-handshake-plugin.ts → packages/web-components/src/components/date-picker/date-picker.ts — packages/web-components/src/components/date-picker/date-picker.ts:31
  • packages/web-components/src/components/dropdown/dropdown-item.ts → packages/web-components/src/components/dropdown/dropdown.ts → packages/web-components/src/components/dropdown/dropdown-item.ts — packages/web-components/src/components/dropdown/dropdown-item.ts:13
  • packages/web-components/src/components/menu/menu-item.ts → packages/web-components/src/components/menu/menu.ts → packages/web-components/src/components/menu/menu-item.ts — packages/web-components/src/components/menu/menu-item.ts:22
  • packages/web-components/src/components/ui-shell/header-menu-button.ts → packages/web-components/src/components/ui-shell/side-nav.ts → packages/web-components/src/components/ui-shell/header-menu-button.ts — packages/web-components/src/components/ui-shell/header-menu-button.ts:17

What to do

  • Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Web-Security Posture4.0 / 10Weak✓ Tool-verified

Other · Security — Read from this repository's JavaScript/TypeScript source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS (certificate validation, protocol version) — facts about code that hold whether or not it serves anything itself. Markup this repository SHIPS is scored for third-party script integrity whether or not the repository serves it itself, since a page handed to a consumer runs in that consumer’s origin. This repository commits the configuration that serves its own HTTP surface, so that configuration was read in full for the security response headers it sets. Of the server controls, two are read where the source shows them: every session or sign-in cookie the code sets is read for HttpOnly, Secure and SameSite at the line that sets it (a raw `Set-Cookie` header, Express, Fastify, Hono, Koa, Next.js, `cookie.serialize`, express-session and cookie-session), and every Node listener for HTTPS enforcement. HSTS, security response headers and input validation are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.

  • MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call. — config/jest-config-carbon/transform/cssTransform.js:76
  • `https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/footer.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time — the executed bytes can change with nobody touching this repository. 3 such include(s) across the repository's markup. — packages/react/.storybook/manager-head.html:37
  • None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `netlify.toml` configures this repository's static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.) — netlify.toml:1

What to do

  • Review each MD5/SHA1 use by what it protects: replace it with SHA-256+ (or a KDF for passwords) where the digest is security-relevant, and switch it to a non-cryptographic hash (xxhash, murmurhash) where it only derives an identifier such as a cache key.
  • Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-…"` hash alongside `crossorigin="anonymous"` (both are required — an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the app’s own origin, so no consumer inherits a third-party dependency they did not choose.
  • Set security response headers on the surface this repository serves: an `add_header` directive per header in the nginx/Caddy/Apache config, a `_headers` / `vercel.json` / `netlify.toml` entry for a static host, or `helmet()` in the HTTP server. `Content-Security-Policy` is the one that pays for itself first — it is what contains an injected script once one reaches the page — followed by `X-Content-Type-Options: nosniff` and a frame policy (`X-Frame-Options: DENY`, or CSP `frame-ancestors`). Where the app is served from a build container, the header configuration belongs in the image beside the built assets, so it ships with them rather than depending on where it lands.
X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.

Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.

X17 · Uncapped recursion over a caller-supplied document3.5 / 10Weak✓ Tool-verified

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

  • `toDtsTypeLiteral` is exported and takes `value: object` from its caller, and it calls itself at line 33 (`toDtsTypeLiteral`) with a piece of `value` (and at line 44) — and nowhere in `toDtsTypeLiteral` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `toDtsTypeLiteral` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/motion/style-dictionary/utils/dts-type-literal.js:33

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

X23 · Unguarded diagnostic materialisation10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

X24 · Document value interpolated into markup unescaped7.8 / 10Strong✓ Tool-verified

Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.

Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.

  • `this.textContent?.trim()?`Remove ${this.textContent.trim()} tab`:'Remove tab'` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the `title` attribute of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `this.textContent?.trim()?`Remove ${this.textContent.trim()} tab`:'Remove tab'` at this site, or validate it against the shape the position accepts before interpolating it. — packages/web-components/src/components/tabs/tab.ts:202
  • `accessibleLabel` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `accessibleLabel` at this site, or validate it against the shape the position accepts before interpolating it. — packages/web-components/src/components/tabs/tab.ts:261
  • `this.innerText` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the `title` attribute of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `this.innerText` at this site, or validate it against the shape the position accepts before interpolating it. — packages/web-components/src/components/data-table/table-header-cell.ts:223
  • `label` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `label` at this site, or validate it against the shape the position accepts before interpolating it. (×2) — packages/web-components/code-connect/tooltip/tooltip.figma.ts:64, packages/web-components/code-connect/tooltip/tooltip.figma.ts:83
  • `content` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `content` at this site, or validate it against the shape the position accepts before interpolating it. — packages/web-components/code-connect/toggletip/toggletip.figma.ts:61
  • `description` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `description` at this site, or validate it against the shape the position accepts before interpolating it. — packages/web-components/code-connect/loading/loading.figma.ts:43
  • `children` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `children` at this site, or validate it against the shape the position accepts before interpolating it. (×2) — packages/web-components/code-connect/code-snippet/code-snippet-inline.figma.ts:45, packages/web-components/code-connect/code-snippet/code-snippet-single.figma.ts:32
  • `currentItem.innerHTML.replace(/\s+/g,'')` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/react/src/components/DatePicker/DatePicker.tsx:209
  • `item.innerHTML.replace(/\s+/g,'')` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/web-components/src/components/date-picker/css-class-plugin.ts:127

What to do

  • Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X29 · Per-element action decided by a fixed element7.0 / 10Strong✓ Tool-verified

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.

  • This loop runs once per element of `nodes`, and the statement it guards acts on the element it is on — `node`. The test deciding whether that statement runs does not: `!withLinks` reads `nodes[0]`, a subscript that does not move, so whatever it answers for that one element it answers for ALL of them. One `if` names the same collection at two different subscripts — the fixed one at line 83, which is the contradiction: either the test was meant to be per-element, in which case every element that differs from the fixed one is handled wrongly and all in the same direction, or it really is one answer for the whole collection, in which case it is being re-asked on every pass and belongs above the loop. The `if` is in the wrong place under both readings. Give the test the loop variable, or hoist it out. — packages/web-components/src/components/tree-view/tree-view.ts:138

What to do

  • Each finding names the test and the statement it guards, which index the same collection at two different subscripts — one fixed, one the loop variable. Confirm from the two, then decide which subscript the test meant. If it was meant to be per-element, give it the loop variable so each element is judged on itself. If it really is one answer for the whole collection, hoist the test OUT of the loop, where a reader can see it is asked once and where it is not re-evaluated on every pass — leaving it inside, reading a fixed element, is the one arrangement that cannot be right under either reading.
X3 · Exception handling5.6 / 10Adequate✓ Tool-verified

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×8) — packages/web-components/tasks/build-dist.js:54, packages/web-components/src/components/resizer/defs.ts:140, packages/web-components/src/components/combo-box/combo-box.ts:299, …

What to do

  • Swallowed exception (empty catch)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

X5 · Nullable reference types5.1 / 10Adequate✓ Tool-verified

Other · Code Health — Whether strict null checking is enabled and not undermined by heavy `!` assertion — TypeScript's `strictNullChecks` (which `strict` turns on) is what makes `string` exclude `null` and `undefined`, and the postfix `!` is the operator that silences it.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

  • 17/40 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
  • ~1.5 `!` null assertions per 1k TypeScript source lines — 279 assertion(s) across the 191143 source line(s) of the 1520 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: packages/web-components/src/components/date-picker/date-picker.ts (14), packages/web-components/src/components/code-snippet/code-snippet.ts (12), packages/web-components/src/components/date-picker/date-picker-input.ts (11). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.

What to do

  • The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).

WCAG coverage — what static analysis assessed

Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria (27%; ≈30% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 40 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC1 · Text alternatives1.1.1, 1.2.2, 1.2.5Partial signal
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC4 · Keyboard semantics2.1.1, 2.4.3Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only

Not statically assessed — these 40 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.2.1, 1.2.3, 1.2.4, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health51%Adequate — gated by D2, R10Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture61%Adequate — gated by R9Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity75%StrongStrongest area.
Readiness43%Weak — gated by R8, P5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security51%Adequate — gated by D29Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility56%AdequateAcceptable, with room to improve.
Performance70%StrongSolid.
Unscored — 4 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • SC1 Supply-chain hygiene — 8 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X10 Duplicated predicate — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 5 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not included — 45 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AX1 Captive dependencies — Not applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's TypeScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
  • AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — the dev server (`npm run dev`) exited before it served a page. Likely cause (the repository): package.json has no "dev" script, so `npm run dev` could not start the app. Last output: "npm error Missing script: "dev" / npm error / npm error To see a list of scripts, run: / npm error npm run / npm error A complete log of this run can be found in: <path>" No runtime evidence was gathered. This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no data at rest for these controls to protect. If it does persist personal data (through a hosted backend configured outside this repository, for instance), the controls belong to wherever that data is stored.
  • C2 Access Controls — No access-control surface detected in the analyzed source — this repository stands up no server (no Express, Fastify, Koa, Hono, NestJS or similar app, no Next.js/SvelteKit/Nuxt server route, no edge function), creates no Supabase tables and talks to no hosted backend. Access control is therefore N/A here — a browser application or library is authorized by the server it calls, not by itself; a client-side route guard hides a page and authorizes nothing. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound. If it does (through a hosted backend configured outside this repository, for instance), the limit belongs wherever that data is stored.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over. If it does (through a hosted backend configured outside this repository, for instance), the rights are served wherever that data is stored.
  • D14 License Compliance — Not scored — this repository's 1383 shipped npm package(s) were resolved from its committed lockfile, but registry.npmjs.org could not be asked for the licence of 8 of them (registry returned 429), and a licence verdict over part of a dependency graph is not a licence verdict. Nothing is asserted about this repository's licensing in either direction.
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D22 Internal API Consistency — API consistency is measured on C# only; the exposed JavaScript surface was not measured.
  • D27 Navigability — symbol resolution incomplete — navigability not assessed
  • D32 Data Compliance (PII/GDPR) — 31 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • D4 Code Duplication — This repository's production source (.ts, .tsx) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (1 domain event(s); its domain events are published by services or handlers — no domain entity raises one)
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JavaScript/TypeScript source, so there is no service whose uptime a failing dependency could take down
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — coverage data present for 419 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a package.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
  • PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • R5 Dependency Freshness — uses a yarn lockfile — dependency freshness not measured here; JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
  • X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X18 Disposal-pattern correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X25 Inert configuration knob — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
  • X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Critical — 155 finding(s)
D30 · Dependency Vulnerabilities · High CVE · ×31
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 6 more in this group — see findings.md.
AC2 · Forms & labels · <label> that labels no control · ×18
  • <label> that labels no control packages/react/src/components/TreeView/TreeView.tsx:291 — This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/password-input/password-input.ts:260 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:78 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:82 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:86 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:90 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:94 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:155 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:208 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:261 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet-preview.ts:207 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet.ts:197 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/tearsheet-helpers.ts:150 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/tearsheet-helpers.ts:154 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/tearsheet-helpers.ts:158 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/tearsheet-helpers.ts:162 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/tearsheet/tearsheet-helpers.ts:166 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control packages/web-components/src/components/time-picker/time-picker.ts:244 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R9 · Circular Imports · Import cycle (2 files) · ×7
  • Import cycle (2 files) packages/utilities-react/src/StepFlow/StepGroup.tsx:9 — packages/utilities-react/src/StepFlow/StepGroup.tsx → packages/utilities-react/src/StepFlow/index.ts → packages/utilities-react/src/StepFlow/StepGroup.tsx
  • Import cycle (2 files) packages/web-components/src/components/data-table/table-expanded-row.ts:16 — packages/web-components/src/components/data-table/table-expanded-row.ts → packages/web-components/src/components/data-table/table-row.ts → packages/web-components/src/components/data-table/table-expanded-row.ts
  • Import cycle (2 files) packages/web-components/src/components/data-table/table.ts:18 — packages/web-components/src/components/data-table/table.ts → packages/web-components/src/index.ts → packages/web-components/src/components/data-table/table.ts
  • Import cycle (2 files) packages/web-components/src/components/date-picker/date-picker.ts:31 — packages/web-components/src/components/date-picker/date-picker.ts → packages/web-components/src/components/date-picker/state-handshake-plugin.ts → packages/web-components/src/components/date-picker/date-picker.ts
  • Import cycle (2 files) packages/web-components/src/components/dropdown/dropdown-item.ts:13 — packages/web-components/src/components/dropdown/dropdown-item.ts → packages/web-components/src/components/dropdown/dropdown.ts → packages/web-components/src/components/dropdown/dropdown-item.ts
  • Import cycle (2 files) packages/web-components/src/components/menu/menu-item.ts:22 — packages/web-components/src/components/menu/menu-item.ts → packages/web-components/src/components/menu/menu.ts → packages/web-components/src/components/menu/menu-item.ts
  • Import cycle (2 files) packages/web-components/src/components/ui-shell/header-menu-button.ts:17 — packages/web-components/src/components/ui-shell/header-menu-button.ts → packages/web-components/src/components/ui-shell/side-nav.ts → packages/web-components/src/components/ui-shell/header-menu-button.ts
AC2 · Forms & labels · <input> without a programmatic label · ×5
  • <input> without a programmatic label packages/web-components/src/components/multi-select/multi-select.ts:490 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label packages/web-components/src/components/password-input/password-input.ts:316 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label packages/web-components/src/components/slider/slider-input.ts:248 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label packages/web-components/src/components/structured-list/structured-list-row.ts:217 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label packages/web-components/src/components/time-picker/time-picker.ts:252 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
D30 · Dependency Vulnerabilities · Critical CVE · ×5
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D28 · Secrets (history) · REDACTED · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D31 · IaC & Container Security · High IaC · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · Link with no accessible name · ×3
  • Link with no accessible name packages/web-components/src/components/button/button-skeleton.ts:54 — A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label.
  • Link with no accessible name packages/web-components/src/components/date-picker/date-picker.ts:568 — A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label.
  • Link with no accessible name packages/web-components/src/components/date-picker/date-picker.ts:575 — A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label.
AC4 · Keyboard semantics · Click handler on a non-interactive <span> · ×3
  • Click handler on a non-interactive <span> packages/react/src/components/TreeView/TreeNode.tsx:587 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • Click handler on a non-interactive <span> packages/web-components/src/components/tree-view/tree-node.ts:331 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <span> packages/web-components/src/components/tree-view/tree-node.ts:352 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
AC4 · Keyboard semantics · Click handler on a non-interactive <div> · ×3
  • Click handler on a non-interactive <div> packages/web-components/src/components/date-picker/date-picker-input.ts:351 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <div> packages/web-components/src/components/dialog/dialog.ts:278 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <div> packages/web-components/src/components/ui-shell/side-nav.ts:249 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
D10 · Test Quality · No assertions (empty test) · ×3
  • No assertions (empty test): should be an ol if prop ordered is passed as true packages/web-components/src/components/accordion/__tests__/accordion-test.js:162 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): should be a ul if prop ordered is passed as false packages/web-components/src/components/accordion/__tests__/accordion-test.js:163 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): should handle revert click packages/react/src/components/AILabel/__tests__/AILabel-test.tsx:122 — Test method has an empty body — it asserts nothing and exercises no code.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · Custom control with no accessible name on <div> · ×2
  • Custom control with no accessible name on <div> packages/web-components/src/components/side-panel/side-panel.ts:1113 — This <div> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label.
  • Custom control with no accessible name on <div> packages/web-components/src/components/ui-shell/side-nav.ts:249 — This <div> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label.
AC4 · Keyboard semantics · Hover-only interaction on <div> · ×2
  • Hover-only interaction on <div> packages/web-components/src/components/dropdown/dropdown.ts:1360 — This <div> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabindex="0", so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabindex="0"="0" so the element can receive that focus.
  • Hover-only interaction on <div> packages/web-components/src/components/ui-shell/side-nav.ts:252 — This <div> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabindex="0", so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabindex="0"="0" so the element can receive that focus.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D34 · Knowledge Freshness · Orphaned knowledge · ×2
  • Orphaned knowledge packages/react/src/components/PaginationNav/PaginationNav.tsx:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/scss-generator/src/types/definitions.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
R8 · Dependency Hygiene · Unlisted import '@jest/globals' · ×2
  • Unlisted import '@jest/globals' config/jest-config-carbon/setup/setup.js:8 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
  • Unlisted import '@jest/globals' packages/react/src/components/ListBox/test-helpers.ts:10 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'typescript' · ×2
  • Unlisted import 'typescript' packages/icon-build-helpers/src/builders/react/next.js:15 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
  • Unlisted import 'typescript' packages/pictograms-react/tasks/build.js:14 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
AC2 · Forms & labels · <button> with no accessible text · ×1
  • <button> with no accessible text packages/web-components/src/components/button/button-skeleton.ts:68 — A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
AC2 · Forms & labels · Custom control with no accessible name on <slot> · ×1
  • Custom control with no accessible name on <slot> packages/web-components/src/components/content-switcher/content-switcher.ts:519 — This <slot> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label.
AC3 · Page structure · <html> without a lang · ×1
  • <html> without a lang packages/web-components/.storybook/basic-example-cdn.html:2 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
AC3 · Page structure · Document without a <title> · ×1
  • Document without a <title> packages/web-components/.storybook/basic-example-cdn.html:2 — A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>.
AX8 · Test isolation · Production project references a test package · ×1
  • Production project references a test package: jest-config-carbon → babel-jest config/jest-config-carbon/package.json:33 — `jest-config-carbon` ships in a production host and references `babel-jest`, a package that exists only to test. It puts a test framework, double or assertion library into the shipped product. Move the code that uses it into a test project, or replace it with production code. If `jest-config-carbon` is itself a plugin, matcher or preset of the test framework, declare the framework under `peerDependencies` (and `devDependencies`) instead of `dependencies`.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
R8 · Dependency Hygiene · Unlisted import '@commitlint/parse' · ×1
  • Unlisted import '@commitlint/parse' packages/cli/src/changelog.js:8 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'execa' · ×1
  • Unlisted import 'execa' packages/cli/src/changelog.js:9 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'semver' · ×1
  • Unlisted import 'semver' packages/cli/src/commands/publish.js:10 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'rollup-plugin-strip-banner' · ×1
  • Unlisted import 'rollup-plugin-strip-banner' packages/feature-flags/rollup.config.js:12 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'lodash.clonedeep' · ×1
  • Unlisted import 'lodash.clonedeep' packages/icon-build-helpers/src/metadata/migrations/2020-01-27.js:14 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'vue' · ×1
  • Unlisted import 'vue' packages/icon-build-helpers/src/builders/vue/utils.js:9 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'react-fast-compare' · ×1
  • Unlisted import 'react-fast-compare' packages/styles/scss/__tests__/zone-test.js:14 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'commander' · ×1
  • Unlisted import 'commander' packages/web-components/tools/check-license.js:12 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'fast-glob' · ×1
  • Unlisted import 'fast-glob' packages/web-components/.storybook/main.ts:13 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'lit-element' · ×1
  • Unlisted import 'lit-element' packages/web-components/src/components/pagination-nav/pagination-nav.stories.ts:9 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'lit-html' · ×1
  • Unlisted import 'lit-html' packages/web-components/src/components/tearsheet/tearsheet-body.ts:15 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'postcss' · ×1
  • Unlisted import 'postcss' packages/web-components/tasks/build-dist.js:15 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'postcss-selector-parser' · ×1
  • Unlisted import 'postcss-selector-parser' packages/web-components/tools/postcss-fix-host-pseudo.js:8 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R9 · Circular Imports · Import cycle (3 files) · ×1
  • Import cycle (3 files) packages/react/src/components/Button/Button.tsx:10 — packages/react/src/components/Button/Button.tsx → packages/react/src/components/IconButton/index.tsx → packages/react/src/components/Button/index.ts → packages/react/src/components/Button/Button.tsx
Serious — 1247 finding(s)
D10 · Test Quality · Skipped test · ×114
  • Skipped test: Should render the expando packages/web-components/tests/spec/code-snippet_spec.ts:173 — Skipped — switched off by xit
  • Skipped test: Should change the button text by expanding/collapsing packages/web-components/tests/spec/code-snippet_spec.ts:192 — Skipped — switched off by xit
  • Skipped test: Should highlight the item user types packages/web-components/tests/spec/combo-box_spec.ts:312 — Skipped — switched off by xit
  • Skipped test: Should support selecting an item after typing packages/web-components/tests/spec/combo-box_spec.ts:470 — Skipped — switched off by xit
  • Skipped test: should add/remove "selected" attribute packages/web-components/tests/spec/content-switcher_spec.ts:22 — Skipped — switched off by xit
  • Skipped test: should provide a way to switch item with a value packages/web-components/tests/spec/content-switcher_spec.ts:50 — Skipped — switched off by xit
  • Skipped test: should provide a way to cancel switching item packages/web-components/tests/spec/content-switcher_spec.ts:67 — Skipped — switched off by xit
  • Skipped test: should add/remove "hide-divider" attribute packages/web-components/tests/spec/content-switcher_spec.ts:101 — Skipped — switched off by xit
  • Skipped test: Should show the tooltip for 2 seconds by default packages/web-components/tests/spec/copy-button_spec.ts:56 — Skipped — switched off by xit
  • Skipped test: Should support changing the duration packages/web-components/tests/spec/copy-button_spec.ts:80 — Skipped — switched off by xit
  • Skipped test: should support setting zebra stripe to rows packages/web-components/tests/spec/data-table_spec.ts:162 — Skipped — switched off by xit
  • Skipped test: should fire cds-table-row-change-selection event upon selecting packages/web-components/tests/spec/data-table_spec.ts:392 — Skipped — switched off by xit
  • Skipped test: should fire cds-table-row-change-selection event upon unselecting packages/web-components/tests/spec/data-table_spec.ts:412 — Skipped — switched off by xit
  • Skipped test: should support preventing table row selection from being toggled upon user gesture packages/web-components/tests/spec/data-table_spec.ts:433 — Skipped — switched off by xit
  • Skipped test: should expand and collapse packages/web-components/tests/spec/data-table_spec.ts:486 — Skipped — switched off by xit
  • Skipped test: should fire cds-table-row-expando-beingtoggled/cds-table-row-expando-toggled events upon expanding packages/web-components/tests/spec/data-table_spec.ts:510 — Skipped — switched off by xit
  • Skipped test: should fire cds-table-row-expando-beingtoggled/cds-table-row-expando-toggled events upon collapsing packages/web-components/tests/spec/data-table_spec.ts:533 — Skipped — switched off by xit
  • Skipped test: should support preventing table row from being toggled upon user gesture packages/web-components/tests/spec/data-table_spec.ts:556 — Skipped — switched off by xit
  • Skipped test: Should not instantiate Flatpickr packages/web-components/tests/spec/date-picker_spec.ts:82 — Skipped — switched off by xit
  • Skipped test: Should support opening calendar dropdown by clicking on calendar icon for the start date packages/web-components/tests/spec/date-picker_spec.ts:224 — Skipped — switched off by xit
  • Skipped test: Should support opening calendar dropdown by clicking on calendar icon for the end date packages/web-components/tests/spec/date-picker_spec.ts:236 — Skipped — switched off by xit
  • Skipped test: should support checking if required value exists packages/web-components/tests/spec/date-picker_spec.ts:259 — Skipped — switched off by xit
  • Skipped test: should treat non-empty custom validity message as invalid packages/web-components/tests/spec/date-picker_spec.ts:292 — Skipped — switched off by xit
  • Skipped test: Should respond to `formdata` event packages/web-components/tests/spec/date-picker_spec.ts:301 — Skipped — switched off by xit
  • Skipped test: Should not respond to `formdata` event if disabled packages/web-components/tests/spec/date-picker_spec.ts:320 — Skipped — switched off by xit
  • + 89 more in this group — see findings.md.
D17 · Explicit Debt · TodoComment · ×96
  • TodoComment packages/web-components/tests/spec/file-uploader_spec.ts:175 — // TODO: See if we can get around TS2683 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/tests/spec/notification_spec.ts:85 — // TODO: See if we can get around TS2683 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/tests/spec/select_spec.ts:262 — // TODO: See if we can get around TS2683 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/tests/spec/tooltip_spec.ts:132 — // TODO: Figure out why `spyOnProperty()` with a property name that actually exists causes a TS error — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/index.ts:121 — // TODO: uncomment in v12 — remove from product-migrated-components.mjs too — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/index.ts:224 — // TODO: uncomment in v12 — remove from product-migrated-components.mjs and excludeProductsComponents too — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/index.ts:252 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:15 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:25 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:48 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:69 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:85 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:97 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:108 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:113 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:119 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:611 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:817 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/react/src/index.ts:823 — // TODO: uncomment in v12 — also remove from excludeProductsComponents — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/globals/controllers/floating-controller.ts:254 — // TODO: remove reference to slug in v12 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/components/toggle/toggle.ts:50 — // TODO: remove in v12 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/components/toggle/toggle.ts:72 — // TODO: remove in v12 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/components/toggle/toggle.ts:78 — // TODO: remove in v12 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/components/toggle/toggle.ts:92 — // TODO: remove get() and set() in v12 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/web-components/src/components/toggle/toggle.ts:115 — // TODO: swap value with labelB in v12 to match React — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • + 71 more in this group — see findings.md.
D3 · God Classes · FunctionTooLong · ×50
  • FunctionTooLong: Slider.Slider packages/react/src/components/Slider/Slider.tsx:350 — FunctionTooLong — Slider runs 885 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 785 over it, 8.85× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: Error403SVG.Error403SVG packages/react/src/components/FullPageError/assets/Error403SVG.tsx:15 — FunctionTooLong — Error403SVG runs 809 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 709 over it, 8.09× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: ErrorGenericSVG.ErrorGenericSVG packages/react/src/components/FullPageError/assets/ErrorGenericSVG.tsx:15 — FunctionTooLong — ErrorGenericSVG runs 808 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 708 over it, 8.08× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: Error404SVG.Error404SVG packages/react/src/components/FullPageError/assets/Error404SVG.tsx:15 — FunctionTooLong — Error404SVG runs 713 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 613 over it, 7.13× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: FilterableMultiSelect.FilterableMultiSelect packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:331 — FunctionTooLong — FilterableMultiSelect runs 615 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 515 over it, 6.15× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: DatePicker.DatePicker packages/react/src/components/DatePicker/DatePicker.tsx:386 — FunctionTooLong — DatePicker runs 443 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 343 over it, 4.43× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: form-demo.FormDemo packages/react/src/components/Form/stories/form-demo.js:73 — FunctionTooLong — FormDemo runs 387 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 287 over it, 3.87× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: ConditionGroupBuilder.ConditionGroupBuilder packages/react/src/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.tsx:60 — FunctionTooLong — ConditionGroupBuilder runs 378 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 278 over it, 3.78× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: DataTable.DataTable packages/react/src/components/DataTable/DataTable.tsx:351 — FunctionTooLong — DataTable runs 359 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 259 over it, 3.59× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: TextArea.TextArea packages/react/src/components/TextArea/TextArea.tsx:215 — FunctionTooLong — TextArea runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: ibm-products-update-coachmark.transform packages/upgrade/transforms/ibm-products-update-coachmark.js:39 — FunctionTooLong — transform runs 317 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 217 over it, 3.17× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: carousel.initCarousel packages/utilities/src/carousel/carousel.ts:36 — FunctionTooLong — initCarousel runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.63× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: ConditionBlock.ConditionBlock packages/react/src/components/ConditionBuilder/ConditionBlock/ConditionBlock.tsx:71 — FunctionTooLong — ConditionBlock runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.49× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: NotificationsEmptyState.NotificationsIllustration packages/react/src/components/NotificationsPanel/NotificationsEmptyState.tsx:30 — FunctionTooLong — NotificationsIllustration runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: Menu.Menu packages/react/src/components/Menu/Menu.tsx:123 — FunctionTooLong — Menu runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.30× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: ibm-products-update-page-header-composable.transform packages/upgrade/transforms/ibm-products-update-page-header-composable.js:40 — FunctionTooLong — transform runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.14× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: FloatingMenu.FloatingMenu packages/react/src/internal/FloatingMenu.tsx:237 — FunctionTooLong — FloatingMenu runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: ConditionBuilderItem.ConditionBuilderItem packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.tsx:64 — FunctionTooLong — ConditionBuilderItem runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: ConditionBuilderContent.ConditionBuilderContent packages/react/src/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.tsx:41 — FunctionTooLong — ConditionBuilderContent runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: examples.main tasks/examples.js:62 — FunctionTooLong — main runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: Calendar.Calendar packages/react/src/components/DatePicker/next/components/Calendar.tsx:53 — FunctionTooLong — Calendar runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: TreeView.TreeView packages/react/src/components/TreeView/TreeView.tsx:80 — FunctionTooLong — TreeView runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: ItemOptionForValueField.ItemOptionForValueField packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.tsx:43 — FunctionTooLong — ItemOptionForValueField runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: TearsheetWithSteps.TearsheetWithStepsInner packages/react/src/components/Tearsheet/TearsheetWithSteps.jsx:172 — FunctionTooLong — TearsheetWithStepsInner runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: useGuidebannerScroll.useGuidebannerScroll packages/react/src/components/Guidebanner/useGuidebannerScroll.ts:24 — FunctionTooLong — useGuidebannerScroll runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 25 more in this group — see findings.md.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×40
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/user-avatar/user-avatar.scss:60 — `:host( -user-avatar) . __tooltip-trigger` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/ui-shell/header.scss:45 — `:host( -header-nav-item)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/ui-shell/header.scss:51 — `:host( -header-menu)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/ui-shell/header.scss:55 — `:host( -header-menu-item)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/ui-shell/header.scss:119 — `:host( -header-menu-button)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/ui-shell/side-nav.scss:30 — `:host( -side-nav-link)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/ui-shell/side-nav.scss:114 — `:host( -side-nav-menu-item)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/tree-view/tree-view.scss:41 — `:host( -tree-node:focus-visible)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/toggle-tip/toggletip.scss:28 — `:host( -toggletip)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/toggle/toggle.scss:17 — `:host( -toggle)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/tile/tile.scss:44 — `:host( -clickable-tile)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/tile/tile.scss:92 — `:host( -radio-tile)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/tile/tile.scss:105 — `:host( -selectable-tile)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/tile/tile.scss:182 — `:host( -expandable-tile[with-interactive]):focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/tile/tile.scss:195 — `:host( -expandable-tile:not([with-interactive])) . --tile__chevron` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/textarea/textarea.scss:20 — `:host( -textarea)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/text-input/text-input.scss:29 — `:host( -text-input)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/tabs/tabs.scss:293 — `:host( -tab)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/tabs/tabs.scss:485 — `:host( -tab[disabled][role]) . --tabs__nav-link` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/slider/slider.scss:20 — `:host( -slider)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/select/select.scss:35 — `:host( -select)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/search/search.scss:26 — `:host( -search)` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/search/search.scss:37 — `:host([expandable]:focus-within) . --search-magnifier ~ . --search-input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/search/search.scss:42 — `:host([expandable][expanded]:focus-within) . --search-magnifier` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement packages/web-components/src/components/search/search.scss:79 — `:host( -search[disabled]) . --search-close` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • + 15 more in this group — see findings.md.
R11 · Import Boundaries · Boundary violation [package · ×40
  • Boundary violation [package:test-suite-dependency] packages/icons-react/tasks/build.js:11 — packages/icons-react/tasks/build.js:11 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:test-suite-dependency] packages/icons-vue/tasks/build.js:11 — packages/icons-vue/tasks/build.js:11 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:undeclared-workspace-dep] packages/icons-vue/tasks/build.js:11 — packages/icons-vue/tasks/build.js:11 imports @carbon/icon-build-helpers, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies.
  • Boundary violation [package:test-suite-dependency] packages/icons/tasks/build.js:10 — packages/icons/tasks/build.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:test-suite-dependency] packages/icons/tasks/ci-check.js:10 — packages/icons/tasks/ci-check.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:test-suite-dependency] packages/icons/tasks/scaffold.js:10 — packages/icons/tasks/scaffold.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:test-suite-dependency] packages/pictograms-react/tasks/build.js:10 — packages/pictograms-react/tasks/build.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:test-suite-dependency] packages/pictograms/tasks/build.js:10 — packages/pictograms/tasks/build.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:test-suite-dependency] packages/pictograms/tasks/ci-check.js:10 — packages/pictograms/tasks/ci-check.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:test-suite-dependency] packages/pictograms/tasks/scaffold.js:10 — packages/pictograms/tasks/scaffold.js:10 imports packages/icon-build-helpers/src/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:relative-cross-package] packages/react/src/components/Coachmark/CoachmarkContentHeader.tsx:21 — packages/react/src/components/Coachmark/CoachmarkContentHeader.tsx:21 reaches into another package with a relative path (../../../../utilities/src/makeDraggable) — import the package by name instead.
  • Boundary violation [package:third-party-deep-import] packages/react/src/components/DatePicker/DatePicker.tsx:21 — packages/react/src/components/DatePicker/DatePicker.tsx:21 imports flatpickr/dist/l10n/index, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] packages/react/src/components/DatePicker/plugins/rangePlugin.ts:8 — packages/react/src/components/DatePicker/plugins/rangePlugin.ts:8 imports flatpickr/dist/plugins/rangePlugin, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:undeclared-workspace-dep] packages/react/src/components/Guidebanner/Guidebanner.tsx:11 — packages/react/src/components/Guidebanner/Guidebanner.tsx:11 imports @carbon/colors, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies.
  • Boundary violation [package:relative-cross-package] packages/react/src/components/Tearsheet/TearsheetWithSteps.jsx:10 — packages/react/src/components/Tearsheet/TearsheetWithSteps.jsx:10 reaches into another package with a relative path (../../../../utilities-react/src/StepFlow) — import the package by name instead.
  • Boundary violation [package:third-party-deep-import] packages/upgrade/src/jscodeshift.js:8 — packages/upgrade/src/jscodeshift.js:8 imports jscodeshift/src/Runner, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:deep-import] packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header2.input.js:6 — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header2.input.js:6 imports @carbon/web-components/lib/components/page-header/page-header-tabs.js, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath.
  • Boundary violation [package:third-party-deep-import] packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header2.output.js:6 — packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header2.output.js:6 imports @carbon/ibm-products-web-components/lib/components/page-header/page-header-tabs.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:undeclared-workspace-dep] packages/utilities-react/src/StepFlow/StepFlow-test.js:11 — packages/utilities-react/src/StepFlow/StepFlow-test.js:11 imports @carbon/react, a package this repository publishes, but this package's own package.json does not list it in dependencies (or peer/optional dependencies) — it resolves only through the workspace link, so an installed copy of this package is missing it. Add it to this package's dependencies.
  • Boundary violation [package:third-party-deep-import] packages/web-components/src/components/date-picker/append-to-plugin.ts:8 — packages/web-components/src/components/date-picker/append-to-plugin.ts:8 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] packages/web-components/src/components/date-picker/append-to-plugin.ts:9 — packages/web-components/src/components/date-picker/append-to-plugin.ts:9 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] packages/web-components/src/components/date-picker/css-class-plugin.ts:8 — packages/web-components/src/components/date-picker/css-class-plugin.ts:8 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] packages/web-components/src/components/date-picker/css-class-plugin.ts:9 — packages/web-components/src/components/date-picker/css-class-plugin.ts:9 imports flatpickr/dist/types/options, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] packages/web-components/src/components/date-picker/date-picker.ts:11 — packages/web-components/src/components/date-picker/date-picker.ts:11 imports flatpickr/dist/types/instance, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] packages/web-components/src/components/date-picker/date-picker.ts:12 — packages/web-components/src/components/date-picker/date-picker.ts:12 imports flatpickr/dist/types/locale, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • + 15 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×35
  • Hotspot: packages/react/src/components/MultiSelect/MultiSelect.tsx packages/react/src/components/MultiSelect/MultiSelect.tsx:299 — packages/react/src/components/MultiSelect/MultiSelect.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 104 in MultiSelect.MultiSelect at line 299. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/MultiSelect/MultiSelect.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/ComboBox/ComboBox.tsx packages/react/src/components/ComboBox/ComboBox.tsx:384 — packages/react/src/components/ComboBox/ComboBox.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 183 in ComboBox.ComboBox at line 384. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/ComboBox/ComboBox.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:331 — packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 118 in FilterableMultiSelect.FilterableMultiSelect at line 331. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/DatePicker/DatePicker.tsx packages/react/src/components/DatePicker/DatePicker.tsx:386 — packages/react/src/components/DatePicker/DatePicker.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 121 in DatePicker.DatePicker at line 386. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/DatePicker/DatePicker.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Slider/Slider.tsx packages/react/src/components/Slider/Slider.tsx:350 — packages/react/src/components/Slider/Slider.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 151 in Slider.Slider at line 350. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Slider/Slider.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: REDACTED REDACTED:594 — REDACTED changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 117 in NumberInput.NumberInput at line 594. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/TextArea/TextArea.tsx packages/react/src/components/TextArea/TextArea.tsx:215 — packages/react/src/components/TextArea/TextArea.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in TextArea.TextArea at line 215. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/TextArea/TextArea.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Popover/index.tsx packages/react/src/components/Popover/index.tsx:176 — packages/react/src/components/Popover/index.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 89 in index.Popover at line 176. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Popover/index.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Dropdown/Dropdown.tsx packages/react/src/components/Dropdown/Dropdown.tsx:291 — packages/react/src/components/Dropdown/Dropdown.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in Dropdown.Dropdown at line 291. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Dropdown/Dropdown.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/ComposedModal/ComposedModal.tsx packages/react/src/components/ComposedModal/ComposedModal.tsx:298 — packages/react/src/components/ComposedModal/ComposedModal.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in ComposedModal.ComposedModalDialog at line 298. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/ComposedModal/ComposedModal.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Tabs/Tabs.tsx packages/react/src/components/Tabs/Tabs.tsx:450 — packages/react/src/components/Tabs/Tabs.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in Tabs.TabList at line 450. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Tabs/Tabs.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Search/Search.tsx packages/react/src/components/Search/Search.tsx:138 — packages/react/src/components/Search/Search.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in Search.Search at line 138. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Search/Search.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/web-components/src/components/dropdown/dropdown.ts packages/web-components/src/components/dropdown/dropdown.ts:1301 — packages/web-components/src/components/dropdown/dropdown.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in CDSDropdown.render at line 1301. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/web-components/src/components/dropdown/dropdown.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Tag/Tag.tsx packages/react/src/components/Tag/Tag.tsx:143 — packages/react/src/components/Tag/Tag.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in Tag.TagBase at line 143. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Tag/Tag.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/TextInput/TextInput.tsx packages/react/src/components/TextInput/TextInput.tsx:192 — packages/react/src/components/TextInput/TextInput.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in TextInput.TextInput at line 192. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/TextInput/TextInput.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: tasks/examples.js tasks/examples.js:62 — tasks/examples.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in examples.main at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- tasks/examples.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Card/CardActions.tsx packages/react/src/components/Card/CardActions.tsx:79 — packages/react/src/components/Card/CardActions.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in CardActions.CardActions at line 79. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Card/CardActions.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/web-components/src/components/menu/menu.ts packages/web-components/src/components/menu/menu.ts:344 — packages/web-components/src/components/menu/menu.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in CDSMenu._fitValue at line 344. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/web-components/src/components/menu/menu.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/CodeSnippet/CodeSnippet.tsx packages/react/src/components/CodeSnippet/CodeSnippet.tsx:156 — packages/react/src/components/CodeSnippet/CodeSnippet.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in CodeSnippet.CodeSnippet at line 156. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/CodeSnippet/CodeSnippet.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Menu/MenuItem.tsx packages/react/src/components/Menu/MenuItem.tsx:98 — packages/react/src/components/Menu/MenuItem.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in MenuItem.MenuItem at line 98. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Menu/MenuItem.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/TextInput/PasswordInput.tsx packages/react/src/components/TextInput/PasswordInput.tsx:182 — packages/react/src/components/TextInput/PasswordInput.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in PasswordInput.PasswordInput at line 182. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/TextInput/PasswordInput.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/ProgressBar/ProgressBar.tsx packages/react/src/components/ProgressBar/ProgressBar.tsx:64 — packages/react/src/components/ProgressBar/ProgressBar.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ProgressBar.ProgressBar at line 64. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/ProgressBar/ProgressBar.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/DatePickerInput/DatePickerInput.tsx packages/react/src/components/DatePickerInput/DatePickerInput.tsx:152 — packages/react/src/components/DatePickerInput/DatePickerInput.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in DatePickerInput.DatePickerInput at line 152. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/DatePickerInput/DatePickerInput.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/react/src/components/Select/Select.tsx packages/react/src/components/Select/Select.tsx:149 — packages/react/src/components/Select/Select.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in Select.Select at line 149. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Select/Select.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/web-components/src/components/number-input/number-input.ts packages/web-components/src/components/number-input/number-input.ts:833 — packages/web-components/src/components/number-input/number-input.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in CDSNumberInput.render at line 833. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/web-components/src/components/number-input/number-input.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 10 more in this group — see findings.md.
D8 · Code Coverage · Low coverage · ×33
  • Low coverage: packages/icon-build-helpers/src/index.js packages/icon-build-helpers/src/index.js:1 — 0.0% line coverage (0/4).
  • Low coverage: packages/icon-build-helpers/src/tools.js packages/icon-build-helpers/src/tools.js:1 — 0.0% line coverage (0/3).
  • Low coverage: packages/icon-build-helpers/src/builders/index.js packages/icon-build-helpers/src/builders/index.js:1 — 0.0% line coverage (0/7).
  • Low coverage: packages/icon-build-helpers/src/builders/svg.js packages/icon-build-helpers/src/builders/svg.js:1 — 0.0% line coverage (0/10).
  • Low coverage: packages/icon-build-helpers/src/builders/vanilla.js packages/icon-build-helpers/src/builders/vanilla.js:1 — 0.0% line coverage (0/27).
  • Low coverage: packages/icon-build-helpers/src/builders/plugins/virtual.js packages/icon-build-helpers/src/builders/plugins/virtual.js:1 — 0.0% line coverage (0/18).
  • Low coverage: packages/icon-build-helpers/src/builders/react/builder.js packages/icon-build-helpers/src/builders/react/builder.js:1 — 0.0% line coverage (0/66).
  • Low coverage: packages/icon-build-helpers/src/builders/react/next.js packages/icon-build-helpers/src/builders/react/next.js:1 — 0.0% line coverage (0/85).
  • Low coverage: packages/icon-build-helpers/src/builders/react/next/convert.js packages/icon-build-helpers/src/builders/react/next/convert.js:1 — 0.0% line coverage (0/38).
  • Low coverage: packages/icon-build-helpers/src/builders/react/next/typescript.js packages/icon-build-helpers/src/builders/react/next/typescript.js:1 — 0.0% line coverage (0/42).
  • Low coverage: packages/icon-build-helpers/src/builders/vue/builder.js packages/icon-build-helpers/src/builders/vue/builder.js:1 — 0.0% line coverage (0/30).
  • Low coverage: packages/icon-build-helpers/src/builders/vue/utils.js packages/icon-build-helpers/src/builders/vue/utils.js:1 — 0.0% line coverage (0/21).
  • Low coverage: packages/icon-build-helpers/src/metadata/extensions/module-info.js packages/icon-build-helpers/src/metadata/extensions/module-info.js:1 — 17.1% line coverage (6/35).
  • Low coverage: packages/icon-build-helpers/src/metadata/extensions/module-name.js packages/icon-build-helpers/src/metadata/extensions/module-name.js:1 — 23.1% line coverage (3/13).
  • Low coverage: packages/icon-build-helpers/src/metadata/extensions/output/optimizer.js packages/icon-build-helpers/src/metadata/extensions/output/optimizer.js:1 — 32.4% line coverage (11/34).
  • Low coverage: packages/icon-build-helpers/src/metadata/migrations/2020-01-27.js packages/icon-build-helpers/src/metadata/migrations/2020-01-27.js:1 — 0.0% line coverage (0/23).
  • Low coverage: packages/icon-build-helpers/src/metadata/migrations/2020-02-17-remove-usage-fields.js packages/icon-build-helpers/src/metadata/migrations/2020-02-17-remove-usage-fields.js:1 — 0.0% line coverage (0/12).
  • Low coverage: packages/icon-build-helpers/src/metadata/migrations/2020-02-17-update-pictogram-files.js packages/icon-build-helpers/src/metadata/migrations/2020-02-17-update-pictogram-files.js:1 — 0.0% line coverage (0/26).
  • Low coverage: packages/react/src/components/Accordion/Accordion.stories.tsx packages/react/src/components/Accordion/Accordion.stories.tsx:1 — 0.0% line coverage (0/39).
  • Low coverage: packages/react/src/components/ActionSet/ActionSet.stories.internal.js packages/react/src/components/ActionSet/ActionSet.stories.internal.js:1 — 0.0% line coverage (0/17).
  • Low coverage: packages/react/src/components/ActionSet/actions.js packages/react/src/components/ActionSet/actions.js:1 — 0.0% line coverage (0/16).
  • Low coverage: packages/react/src/components/Button/__story__/fluid-button-set-args.js packages/react/src/components/Button/__story__/fluid-button-set-args.js:1 — 0.0% line coverage (0/17).
  • Low coverage: packages/react/src/components/DatePicker/next/__stories__/DatePickerV2.stories.tsx packages/react/src/components/DatePicker/next/__stories__/DatePickerV2.stories.tsx:1 — 0.0% line coverage (0/32).
  • Low coverage: packages/react/src/components/NotificationsPanel/UnreadNotificationBell.js packages/react/src/components/NotificationsPanel/UnreadNotificationBell.js:1 — 0.0% line coverage (0/2).
  • Low coverage: packages/react/src/components/PageHeader/_story-assets/pageActionButtonItems.tsx packages/react/src/components/PageHeader/_story-assets/pageActionButtonItems.tsx:1 — 0.0% line coverage (0/1).
  • + 8 more in this group — see findings.md.
IC1 · Incompleteness & stubs · Markup wires an event to an empty handler · ×33
  • Markup wires an event to an empty handler packages/react/src/components/Form/stories/form-demo.js:253 — `onChange` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/enable-v12-overflowmenu-nowrap.input.js:19 — `onClick` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/enable-v12-overflowmenu-nowrap.output.js:21 — `onClick` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/enable-v12-overflowmenu.input.js:18 — `onClick` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/enable-v12-overflowmenu.output.js:22 — `onClick` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-alias.input.tsx:16 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-alias.output.tsx:14 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:13 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:16 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:43 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:62 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:64 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:75 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:87 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:100 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.input.tsx:111 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:12 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:24 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:65 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:99 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:107 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:130 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:150 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:169 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet-edge-cases.output.tsx:187 — `onClose` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • + 8 more in this group — see findings.md.
D10 · Test Quality · No assertions · ×25
  • No assertions: should fire cancel click event packages/web-components/src/components/data-table/__tests__/table-batch-actions-test.js:34 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should fire select all click event when select all button is rendered packages/web-components/src/components/data-table/__tests__/table-batch-actions-test.js:47 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should fire content change event on slot change packages/web-components/src/components/data-table/__tests__/table-body-test.js:17 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should render packages/web-components/src/components/accordion/__tests__/accordion-test.js:27 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: adds additional props to the containing node packages/react/src/components/UserAvatar/__tests__/UserAvatar-test.js:48 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders packages/react/src/components/TruncatedText/__tests__/TruncatedText-test.js:44 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: expands and collapses with mouse packages/react/src/components/TruncatedText/__tests__/TruncatedText-test.js:54 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should render without errors when composed with ToggletipButton, ToggletipContent, ToggletipActions packages/react/src/components/Toggletip/__tests__/Toggletip-test.js:228 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: adds additional props to the containing node packages/react/src/components/TagOverflow/__tests__/TagOverflow-test.js:55 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders all as visible tags when space is available packages/react/src/components/TagOverflow/__tests__/TagOverflow-test.js:74 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should be able to click on a selected row packages/react/src/components/StructuredList/__tests__/StructuredList-test.js:275 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: adds additional properties to the containing node packages/react/src/components/SidePanel/SidePanel-test.js:483 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: removes event listeners on unmount packages/react/src/components/Resizer/__tests__/Resizer-test.js:129 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders children packages/react/src/components/OptionsTile/__tests__/OptionsTile-test.js:88 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: adds additional props to the containing node packages/react/src/components/OptionsTile/__tests__/OptionsTile-test.js:98 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders children packages/react/src/components/Guidebanner/__tests__/Guidebanner-test.js:75 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: adds additional props to the containing node packages/react/src/components/Guidebanner/__tests__/Guidebanner-test.js:86 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders EditInPlace packages/react/src/components/EditInPlace/__tests__/EditInPlace-test.js:33 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: handles keydown packages/react/src/components/EditInPlace/__tests__/EditInPlace-test.js:219 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: adds additional properties to the containing node packages/react/src/components/EditInPlace/__tests__/EditInPlace-test.js:277 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders one action button packages/react/src/components/ActionSet/__tests__/ActionSet-test.js:48 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: adds additional properties to an action button packages/react/src/components/ActionSet/__tests__/ActionSet-test.js:140 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: adds additional properties to the containing node packages/react/src/components/ActionSet/__tests__/ActionSet-test.js:156 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders without crashing packages/react/examples/react-router-vite/src/App-test.js:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders without crashing packages/react/examples/react-router/src/App-test.js:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
D3 · God Classes · FileTooLong · ×25
  • FileTooLong: Slider/Slider.tsx packages/react/src/components/Slider/Slider.tsx — FileTooLong — 1093 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: SliderProps (157-1830). The bar is 500 significant lines; this is 593 over it, 2.19× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: Tabs/Tabs.tsx packages/react/src/components/Tabs/Tabs.tsx — FileTooLong — 1011 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 511 over it, 2.02× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: ComboBox/ComboBox.tsx packages/react/src/components/ComboBox/ComboBox.tsx — FileTooLong — 930 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: ComboBox (383-1385). The bar is 500 significant lines; this is 430 over it, 1.86× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: dropdown/dropdown.ts packages/web-components/src/components/dropdown/dropdown.ts — FileTooLong — 910 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 410 over it, 1.82× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: slider/slider.ts packages/web-components/src/components/slider/slider.ts — FileTooLong — 850 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 350 over it, 1.70× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: assets/Error403SVG.tsx packages/react/src/components/FullPageError/assets/Error403SVG.tsx — FileTooLong — 812 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Error403SVG (15-825). The bar is 500 significant lines; this is 312 over it, 1.62× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: assets/ErrorGenericSVG.tsx packages/react/src/components/FullPageError/assets/ErrorGenericSVG.tsx — FileTooLong — 811 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ErrorGenericSVG (15-824). The bar is 500 significant lines; this is 311 over it, 1.62× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: MultiSelect/FilterableMultiSelect.tsx packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx — FileTooLong — 804 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 304 over it, 1.61× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/upgrades.js packages/upgrade/src/upgrades.js — FileTooLong — 799 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 299 over it, 1.60× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 777 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 277 over it, 1.55× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: side-panel/side-panel.ts packages/web-components/src/components/side-panel/side-panel.ts — FileTooLong — 737 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CDSSidePanel (65-1254). The bar is 500 significant lines; this is 237 over it, 1.47× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: Notification/Notification.tsx packages/react/src/components/Notification/Notification.tsx — FileTooLong — 735 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 235 over it, 1.47× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: assets/Error404SVG.tsx packages/react/src/components/FullPageError/assets/Error404SVG.tsx — FileTooLong — 716 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Error404SVG (15-729). The bar is 500 significant lines; this is 216 over it, 1.43× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: Modal/Modal.tsx packages/react/src/components/Modal/Modal.tsx — FileTooLong — 703 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 203 over it, 1.41× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: SidePanel/SidePanel.tsx packages/react/src/components/SidePanel/SidePanel.tsx — FileTooLong — 680 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: SidePanel (247-1074). The bar is 500 significant lines; this is 180 over it, 1.36× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: MultiSelect/MultiSelect.tsx packages/react/src/components/MultiSelect/MultiSelect.tsx — FileTooLong — 667 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 167 over it, 1.33× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: DatePicker/DatePicker.tsx packages/react/src/components/DatePicker/DatePicker.tsx — FileTooLong — 658 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: DatePicker (386-1049). The bar is 500 significant lines; this is 158 over it, 1.32× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: multi-select/multi-select.ts packages/web-components/src/components/multi-select/multi-select.ts — FileTooLong — 649 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CDSMultiSelect (50-1077). The bar is 500 significant lines; this is 149 over it, 1.30× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: DataTable/DataTable.tsx packages/react/src/components/DataTable/DataTable.tsx — FileTooLong — 647 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 147 over it, 1.29× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Tile/Tile.tsx packages/react/src/components/Tile/Tile.tsx — FileTooLong — 596 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 96 over it, 1.19× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: components/date-picker.ts packages/web-components/src/components/date-picker/next/components/date-picker.ts — FileTooLong — 571 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 71 over it, 1.14× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: number-input/number-input.ts packages/web-components/src/components/number-input/number-input.ts — FileTooLong — 568 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CDSNumberInput (55-1033). The bar is 500 significant lines; this is 68 over it, 1.14× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: NotificationsPanel/NotificationsPanel.tsx packages/react/src/components/NotificationsPanel/NotificationsPanel.tsx — FileTooLong — 538 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 38 over it, 1.08× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: data-table/table.ts packages/web-components/src/components/data-table/table.ts — FileTooLong — 532 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CDSTable (58-1139). The bar is 500 significant lines; this is 32 over it, 1.06× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: Dropdown/Dropdown.tsx packages/react/src/components/Dropdown/Dropdown.tsx — FileTooLong — 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
D6 · Cohesion (LCOM4) · Low cohesion · ×25
  • Low cohesion: CDSCheckbox (LCOM4 6) packages/web-components/src/components/checkbox/checkbox.ts:29 — CDSCheckbox's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSTableRow (LCOM4 6) packages/web-components/src/components/data-table/table-row.ts:43 — CDSTableRow's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSSelect (LCOM4 6) packages/web-components/src/components/select/select.ts:34 — CDSSelect's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSSideNavMenu (LCOM4 6) packages/web-components/src/components/ui-shell/side-nav-menu.ts:35 — CDSSideNavMenu's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSRadioButtonGroup (LCOM4 5) packages/web-components/src/components/radio-button/radio-button-group.ts:35 — CDSRadioButtonGroup's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSDropdownItem (LCOM4 5) packages/web-components/src/components/dropdown/dropdown-item.ts:23 — CDSDropdownItem's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSContainedListItem (LCOM4 5) packages/web-components/src/components/contained-list/contained-list-item.ts:24 — CDSContainedListItem's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSDatePickerInput (LCOM4 5) packages/web-components/src/components/date-picker/date-picker-input.ts:30 — CDSDatePickerInput's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSModal (LCOM4 5) packages/web-components/src/components/modal/modal.ts:31 — CDSModal's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSActionableNotification (LCOM4 5) packages/web-components/src/components/notification/actionable-notification.ts:92 — CDSActionableNotification's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSTreeView (LCOM4 5) packages/web-components/src/components/tree-view/tree-view.ts:25 — CDSTreeView's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSDatePickerInput (LCOM4 5) packages/web-components/src/components/date-picker/next/components/date-picker-input.ts:33 — CDSDatePickerInput's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSTag (LCOM4 4) packages/web-components/src/components/tag/tag.ts:28 — CDSTag's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSTooltip (LCOM4 4) packages/web-components/src/components/tooltip/tooltip.ts:25 — CDSTooltip's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSOverflowMenuBody (LCOM4 4) packages/web-components/src/components/overflow-menu/overflow-menu-body.ts:46 — CDSOverflowMenuBody's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSAddSelectColumn (LCOM4 4) packages/web-components/src/components/add-select/add-select-column.ts:32 — CDSAddSelectColumn's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSmenuItemSelectable (LCOM4 4) packages/web-components/src/components/menu/menu-item-selectable.ts:20 — CDSmenuItemSelectable's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSModalBase (LCOM4 4) packages/web-components/src/components/modal/modal-base.ts:19 — CDSModalBase's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSDialog (LCOM4 4) packages/web-components/src/components/dialog/dialog.ts:28 — CDSDialog's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSTab (LCOM4 4) packages/web-components/src/components/tabs/tab.ts:32 — CDSTab's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSExpandableTile (LCOM4 4) packages/web-components/src/components/tile/expandable-tile.ts:31 — CDSExpandableTile's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSHeaderMenu (LCOM4 4) packages/web-components/src/components/ui-shell/header-menu.ts:31 — CDSHeaderMenu's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSTimePicker (LCOM4 4) packages/web-components/src/components/time-picker/time-picker.ts:29 — CDSTimePicker's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSTimePickerSelect (LCOM4 4) packages/web-components/src/components/time-picker/time-picker-select.ts:26 — CDSTimePickerSelect's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CDSOptionsTile (LCOM4 4) packages/web-components/src/components/options-tile/options-tile.ts:34 — CDSOptionsTile's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
R4 · Test Coverage · This test file cannot be loaded · ×25
  • This test file cannot be loaded packages/web-components/tests/spec/accordion_spec.ts:9 — packages/web-components/tests/spec/accordion_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/code-snippet_spec.ts:9 — packages/web-components/tests/spec/code-snippet_spec.ts:9 imports '../../src/components/code-snippet/code-snippet-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/combo-box_spec.ts:9 — packages/web-components/tests/spec/combo-box_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/content-switcher_spec.ts:9 — packages/web-components/tests/spec/content-switcher_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/data-table_spec.ts:9 — packages/web-components/tests/spec/data-table_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/date-picker_spec.ts:11 — packages/web-components/tests/spec/date-picker_spec.ts:11 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/dropdown_spec.ts:9 — packages/web-components/tests/spec/dropdown_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/file-uploader_spec.ts:12 — packages/web-components/tests/spec/file-uploader_spec.ts:12 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/modal_spec.ts:8 — packages/web-components/tests/spec/modal_spec.ts:8 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/multi-select_spec.ts:9 — packages/web-components/tests/spec/multi-select_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/notification_spec.ts:12 — packages/web-components/tests/spec/notification_spec.ts:12 imports '../../src/components/notification/inline-notification-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/number-input_spec.ts:9 — packages/web-components/tests/spec/number-input_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/pagination_spec.ts:9 — packages/web-components/tests/spec/pagination_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/progress-bar_spec.ts:9 — packages/web-components/tests/spec/progress-bar_spec.ts:9 imports '../../src/components/progress-bar/progress-bar-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/progress-indicator_spec.ts:10 — packages/web-components/tests/spec/progress-indicator_spec.ts:10 imports '../../src/components/progress-indicator/progress-indicator-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/radio-button_spec.ts:13 — packages/web-components/tests/spec/radio-button_spec.ts:13 imports '../../src/components/radio-button/radio-button-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/search_spec.ts:9 — packages/web-components/tests/spec/search_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/select_spec.ts:9 — packages/web-components/tests/spec/select_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/slider_spec.ts:9 — packages/web-components/tests/spec/slider_spec.ts:9 imports '../../src/components/slider/slider-story', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/tabs_spec.ts:9 — packages/web-components/tests/spec/tabs_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/tag_spec.ts:9 — packages/web-components/tests/spec/tag_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/text-input_spec.ts:9 — packages/web-components/tests/spec/text-input_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/textarea_spec.ts:9 — packages/web-components/tests/spec/textarea_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/tile_spec.ts:9 — packages/web-components/tests/spec/tile_spec.ts:9 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded packages/web-components/tests/spec/ui-shell_spec.ts:14 — packages/web-components/tests/spec/ui-shell_spec.ts:14 imports '../utils/event-manager', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
D3 · God Classes · MethodTooLong · ×21
  • MethodTooLong: CDSTextInput.render packages/web-components/src/components/text-input/text-input.ts:349 — MethodTooLong — render runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.08× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSPasswordInput.render packages/web-components/src/components/password-input/password-input.ts:140 — MethodTooLong — render runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: StackingTearsheetDemo.render packages/web-components/src/components/tearsheet/_story-assets/stacking-tearsheet.ts:74 — MethodTooLong — render runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSSidePanel.render packages/web-components/src/components/side-panel/side-panel.ts:924 — MethodTooLong — render runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSNumberInput.render packages/web-components/src/components/number-input/number-input.ts:833 — MethodTooLong — render runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSButton.render packages/web-components/src/components/button/button.ts:268 — MethodTooLong — render runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: FloatingController.computePlacement packages/web-components/src/globals/controllers/floating-controller.ts:76 — MethodTooLong — computePlacement runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSAddSelectRow.render packages/web-components/src/components/add-select/add-select-row.ts:239 — MethodTooLong — render runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSPagination.render packages/web-components/src/components/pagination/pagination.ts:426 — MethodTooLong — render runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSSelect.render packages/web-components/src/components/select/select.ts:414 — MethodTooLong — render runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: StepFullPage.render packages/web-components/src/utilities/step-flow/_story-assets/step-full-page.ts:95 — MethodTooLong — render runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSTearsheetHeaderContent.render packages/web-components/src/components/tearsheet/tearsheet-header-content.ts:379 — MethodTooLong — render runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSPageHeaderTagsSet.render packages/web-components/src/components/page-header/page-header-tags-set/page-header-tags-set.ts:172 — MethodTooLong — render runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSAddSelectBody.render packages/web-components/src/components/add-select/add-select-body.ts:277 — MethodTooLong — render runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: StepTearsheet.render packages/web-components/src/utilities/step-flow/_story-assets/step-tearsheet.ts:101 — MethodTooLong — render runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSAddSelectSelectionSummaryItem.render packages/web-components/src/components/add-select/add-select-selection-summary-item.ts:166 — MethodTooLong — render runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: StepSidePanel.render packages/web-components/src/utilities/step-flow/_story-assets/step-side-panel.ts:100 — MethodTooLong — render runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSTreeNode.render packages/web-components/src/components/tree-view/tree-node.ts:258 — MethodTooLong — render runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSDatePickerInput.render packages/web-components/src/components/date-picker/next/components/date-picker-input.ts:300 — MethodTooLong — render runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSTextarea.render packages/web-components/src/components/textarea/textarea.ts:170 — MethodTooLong — render runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CDSCodeSnippet.render packages/web-components/src/components/code-snippet/code-snippet.ts:372 — MethodTooLong — render runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Medium CVE · ×15
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R4 · Test Coverage · No test reaches this file · ×15
  • No test reaches this file packages/react/src/components/DatePicker/DatePicker-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/ComboBox/ComboBox-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/Modal/Modal-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/ComposedModal/ComposedModal-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/upgrade/src/upgrades.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/TextArea/TextArea-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/Tile/Tile-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/PageHeaderDeprecated/PageHeader-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/SidePanel/SidePanel-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/TreeView/TreeView-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/utilities/src/overflowHandler/overflowHandler-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/Loading/Loading-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file tasks/prepare-v12-storybook.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/react/src/components/Menu/Menu-test.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
D3 · God Classes · ClassTooLong · ×14
  • ClassTooLong: SliderProps packages/react/src/components/Slider/Slider.tsx:157 — ClassTooLong — 981 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 581 over it, 2.45× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: Error403SVG packages/react/src/components/FullPageError/assets/Error403SVG.tsx:1 — ClassTooLong — 809 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 409 over it, 2.02× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ErrorGenericSVG packages/react/src/components/FullPageError/assets/ErrorGenericSVG.tsx:1 — ClassTooLong — 808 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 408 over it, 2.02× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: Error404SVG packages/react/src/components/FullPageError/assets/Error404SVG.tsx:1 — ClassTooLong — 713 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 313 over it, 1.78× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ComboBox packages/react/src/components/ComboBox/ComboBox.tsx:1 — ClassTooLong — 706 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 306 over it, 1.77× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: CDSSidePanel packages/web-components/src/components/side-panel/side-panel.ts:64 — ClassTooLong — 705 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 305 over it, 1.76× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: CDSMultiSelect packages/web-components/src/components/multi-select/multi-select.ts:49 — ClassTooLong — 623 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 223 over it, 1.56× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: SidePanel packages/react/src/components/SidePanel/SidePanel.tsx:1 — ClassTooLong — 603 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 203 over it, 1.51× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: CDSNumberInput packages/web-components/src/components/number-input/number-input.ts:54 — ClassTooLong — 543 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 143 over it, 1.36× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: CDSTable packages/web-components/src/components/data-table/table.ts:57 — ClassTooLong — 510 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 110 over it, 1.28× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: DatePicker packages/react/src/components/DatePicker/DatePicker.tsx:1 — ClassTooLong — 443 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 43 over it, 1.11× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: CDSTabs packages/web-components/src/components/tabs/tabs.ts:51 — ClassTooLong — 431 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 31 over it, 1.08× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: CDSComboBox packages/web-components/src/components/combo-box/combo-box.ts:43 — ClassTooLong — 413 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 13 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: CDSOverflowMenu packages/web-components/src/components/overflow-menu/overflow-menu.ts:64 — ClassTooLong — 409 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 9 over it, 1.02× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D15 · Churn × Complexity Hotspots · Repeated repair · ×11
  • Repeated repair: packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js:1423 — packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is (anonymous) at line 1423), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(MultiSelect): exclude option checkboxes from tab order (#24024)”; “fix(MultiSelect): keep highlight and selection in sync with custom sortItems (#23821)”; “fix(MultiSelect): omit empty aria-activedescendant on the toggle button (#23819)”; “fix(Dropdown): Cap floating menu height via availableHeight on flip (#20696) (#23389)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/DatePicker/DatePicker-test.js packages/react/src/components/DatePicker/DatePicker-test.js:1496 — packages/react/src/components/DatePicker/DatePicker-test.js changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 2 (its worst body is DatePickerExample at line 1496), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(DatePicker): call onChange for typed dates (#23165)”; “fix(react): warn for interactive labels in v11 (#23391)”; “fix: sync DatePicker month on controlled value update (#23239)”; “fix(a11y): prevent nested interactive decorators (#22751)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/DatePicker/DatePicker-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/Slider/__tests__/Slider-test.js packages/react/src/components/Slider/__tests__/Slider-test.js:70 — packages/react/src/components/Slider/__tests__/Slider-test.js changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 5 (its worst body is createDOMRect at line 70), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: improve Slider state and invalid input handling (#23828)”; “fix: added forward ref to slider (#23799)”; “fix(react): warn for interactive labels in v11 (#23391)”; “fix(a11y): prevent nested interactive decorators (#22751)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Slider/__tests__/Slider-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/MultiSelect/__tests__/FilterableMultiSelect-test.js packages/react/src/components/MultiSelect/__tests__/FilterableMultiSelect-test.js:679 — packages/react/src/components/MultiSelect/__tests__/FilterableMultiSelect-test.js changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 3 (its worst body is customCompareItems at line 679), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(filterable-multiselect): scope internal ids per instance (#23342)”; “fix(Dropdown): Cap floating menu height via availableHeight on flip (#20696) (#23389)”; “fix(react): warn for interactive labels in v11 (#23391)”; “fix(a11y): prevent nested interactive decorators (#22751)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/MultiSelect/__tests__/FilterableMultiSelect-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/Search/Search-test.js packages/react/src/components/Search/Search-test.js:88 — packages/react/src/components/Search/Search-test.js changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 2 (its worst body is (anonymous) at line 88), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(Search): apply tabIndex to the collapsed expandable search button (#23580)”; “fix(react): warn for interactive labels in v11 (#23391)”; “fix(a11y): prevent nested interactive decorators (#22751)”; “fix(search): prevent disabled expandable search from expanding (#23172)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Search/Search-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/ComposedModal/ComposedModal-test.js packages/react/src/components/ComposedModal/ComposedModal-test.js:106 — packages/react/src/components/ComposedModal/ComposedModal-test.js changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 2 (its worst body is (anonymous) at line 106), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: close passive modals on first Escape (#23042)”; “fix(modal): onCancel is not wired (#23157)”; “fix(composed-modal): move focus before setting aria-hidden (#23047)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/ComposedModal/ComposedModal-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/IconButton/index.tsx packages/react/src/components/IconButton/index.tsx:160 — packages/react/src/components/IconButton/index.tsx changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is index.IconButton at line 160), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(IconButton): support danger tertiary kind (#23582)”; “fix/(OverflowMenu): surface icon button props in featureflag enable-v12-overflowmenu (#22966)”; “fix(react): resolve display-name eslint suppressions (#23188)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/IconButton/index.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/Dropdown/__tests__/Dropdown-test.js packages/react/src/components/Dropdown/__tests__/Dropdown-test.js:774 — packages/react/src/components/Dropdown/__tests__/Dropdown-test.js changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is (anonymous) at line 774), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(Dropdown): Cap floating menu height via availableHeight on flip (#20696) (#23389)”; “fix(react): warn for interactive labels in v11 (#23391)”; “fix(a11y): prevent nested interactive decorators (#22751)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Dropdown/__tests__/Dropdown-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/OverflowMenu/next/index.tsx packages/react/src/components/OverflowMenu/next/index.tsx:137 — packages/react/src/components/OverflowMenu/next/index.tsx changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 12 (its worst body is index.OverflowMenu at line 137), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix/(OverflowMenu): surface icon button props in featureflag enable-v12-overflowmenu (#22966)”; “fix(react): resolve display-name eslint suppressions (#23206)”; “fix(OverflowMenu): export v12 prop types and extend div props (#23148)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/OverflowMenu/next/index.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/ComboBox/ComboBox-test.js packages/react/src/components/ComboBox/ComboBox-test.js:40 — packages/react/src/components/ComboBox/ComboBox-test.js changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 3 (its worst body is ControlledComboBox at line 40), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(combobox): highlight selected item when the menu opens (#23704)”; “fix(react): warn for interactive labels in v11 (#23391)”; “fix(a11y): prevent nested interactive decorators (#22751)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/ComboBox/ComboBox-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/react/src/components/Tile/Tile-test.js packages/react/src/components/Tile/Tile-test.js:677 — packages/react/src/components/Tile/Tile-test.js changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 3 (its worst body is checkExpandedState at line 677), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(react): warn for interactive labels in v11 (#23391)”; “fix(a11y): prevent nested interactive decorators (#22751)”; “fix(SelectableTile): remove hardcoded default title prop value (#22749)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 16:27:55 +00:00' --until='2026-11-13 16:27:55 +00:00' --full-history --no-merges -- packages/react/src/components/Tile/Tile-test.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D31 · IaC & Container Security · Medium IaC · ×9
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
X24 · Document value interpolated into markup unescaped · Document value reaches a markup attribute unescaped · ×9
  • Document value reaches a markup attribute unescaped packages/web-components/src/components/tabs/tab.ts:202 — `this.textContent?.trim()?`Remove ${this.textContent.trim()} tab`:'Remove tab'` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the `title` attribute of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `this.textContent?.trim()?`Remove ${this.textContent.trim()} tab`:'Remove tab'` at this site, or validate it against the shape the position accepts before interpolating it.
  • Document value reaches a markup attribute unescaped packages/web-components/src/components/tabs/tab.ts:261 — `accessibleLabel` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `accessibleLabel` at this site, or validate it against the shape the position accepts before interpolating it.
  • Document value reaches a markup attribute unescaped packages/web-components/src/components/data-table/table-header-cell.ts:223 — `this.innerText` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the `title` attribute of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `this.innerText` at this site, or validate it against the shape the position accepts before interpolating it.
  • Document value reaches a markup attribute unescaped packages/web-components/code-connect/tooltip/tooltip.figma.ts:64 — `label` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `label` at this site, or validate it against the shape the position accepts before interpolating it.
  • Document value reaches a markup attribute unescaped packages/web-components/code-connect/tooltip/tooltip.figma.ts:83 — `label` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `label` at this site, or validate it against the shape the position accepts before interpolating it.
  • Document value reaches a markup attribute unescaped packages/web-components/code-connect/toggletip/toggletip.figma.ts:61 — `content` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `content` at this site, or validate it against the shape the position accepts before interpolating it.
  • Document value reaches a markup attribute unescaped packages/web-components/code-connect/loading/loading.figma.ts:43 — `description` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `description` at this site, or validate it against the shape the position accepts before interpolating it.
  • Document value reaches a markup attribute unescaped packages/web-components/code-connect/code-snippet/code-snippet-inline.figma.ts:45 — `children` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `children` at this site, or validate it against the shape the position accepts before interpolating it.
  • Document value reaches a markup attribute unescaped packages/web-components/code-connect/code-snippet/code-snippet-single.figma.ts:32 — `children` carries text this program read out of a document — an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again — and it is written straight into the text of an element of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another — a crafted document becomes markup in what this code renders. Escape `children` at this site, or validate it against the shape the position accepts before interpolating it.
SC1 · Supply-chain hygiene · JavaScript dependencies are not locked · ×8
  • JavaScript dependencies are not locked examples/class-prefix/package.json:25 — examples/class-prefix/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / REDACTED / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked examples/codesandbox-styles/package.json:23 — examples/codesandbox-styles/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / REDACTED / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked examples/custom-theme/package.json:25 — examples/custom-theme/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / REDACTED / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked examples/id-prefix/package.json:25 — examples/id-prefix/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / REDACTED / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked examples/light-dark-mode/package.json:11 — examples/light-dark-mode/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / REDACTED / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked examples/nextjs/package.json:11 — examples/nextjs/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / REDACTED / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked examples/v10-token-compat-in-v11/package.json:25 — examples/v10-token-compat-in-v11/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / REDACTED / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked examples/vite/package.json:25 — examples/vite/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / REDACTED / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
X3 · Exception handling · Swallowed exception (empty catch) · ×8
  • Swallowed exception (empty catch) packages/web-components/tasks/build-dist.js:54 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/web-components/src/components/resizer/defs.ts:140 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/web-components/src/components/combo-box/combo-box.ts:299 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/web-components/src/components/combo-box/combo-box.ts:418 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/web-components/src/components/combo-box/combo-box.ts:613 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/upgrade/transforms/wc-report-non-barrel-imports.js:136 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/react/src/components/FileUploader/FileUploaderDropContainer.tsx:218 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/react/.storybook/main.ts:121 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
D29 · Static Analysis (SAST) · REDACTED · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
IC1 · Incompleteness & stubs · Fake-async · ×7
  • Fake-async — async method never awaits actions/validate-pr-template/index.js:155 — `validateHeadings` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits actions/validate-pr-template/index.js:182 — `validateChecklistItems` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/cli/src/cli.js:40 — `main` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/cli/src/commands/bundle/tsdown.js:116 — `emitDeclarations` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/icon-build-helpers/src/builders/react/next/typescript.js:88 — `writeTsDefinitions` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/icon-build-helpers/src/metadata/adapters/memory.js:37 — `write` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/pictograms-react/tasks/build.js:53 — `compileIconComponent` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
D10 · Test Quality · Fixed-sleep synchronisation · ×6
  • Fixed-sleep synchronisation: should close menu when a menu item is clicked packages/web-components/src/components/overflow-menu/__tests__/overflow-menu-test.js:320 — This test starts work it did not wait for (`menuBody`, still running when the sleep starts) and then orders itself against it with `new Promise((r) => setTimeout(r, 0))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: should close the root menu when the managed menu emits a close event packages/web-components/src/components/overflow-menu/__tests__/overflow-menu-test.js:652 — This test starts work it did not wait for (`el`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => { setTimeout(resolve, 0); })` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: should close when opened from the trigger and the menu emits focusout close packages/web-components/src/components/overflow-menu/__tests__/overflow-menu-test.js:752 — This test starts work it did not wait for (`el`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => { setTimeout(resolve, 0); })` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: should not forward clicks from disabled overflow menu items packages/web-components/src/components/card/__tests__/card-test.js:796 — This test starts work it did not wait for (`actions`, still running when the sleep starts) and then orders itself against it with `new Promise((r) => setTimeout(r, 300))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: should collapse text actions into the overflow menu when they do not fit packages/web-components/src/components/card/__tests__/card-test.js:838 — This test starts work it did not wait for (`actions`, still running when the sleep starts) and then orders itself against it with `new Promise((r) => setTimeout(r, 300))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: should reflect label and disabled changes made after the first render in the overflow menu packages/web-components/src/components/card/__tests__/card-test.js:881 — This test starts work it did not wait for (`actions`, still running when the sleep starts) and then orders itself against it with `new Promise((r) => setTimeout(r, 300))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
D5 · Coupling · Off the main sequence · ×5
  • Off the main sequence: @carbon/colors — @carbon/colors: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: @carbon/feature-flags — @carbon/feature-flags: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
  • Off the main sequence: @carbon/icon-helpers — @carbon/icon-helpers: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
  • Off the main sequence: @carbon/layout — @carbon/layout: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
  • Off the main sequence: @carbon/motion — @carbon/motion: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
R8 · Dependency Hygiene · Unused dependency '@ibm/telemetry-js' · ×5
  • Unused dependency '@ibm/telemetry-js' — Declared in packages/carbon-components/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency '@ibm/telemetry-js' — Declared in packages/carbon-components-react/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency '@ibm/telemetry-js' — Declared in packages/cli/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency '@ibm/telemetry-js' — Declared in packages/colors/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency '@ibm/telemetry-js' — Declared in packages/elements/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R7 · Dead Code · Dead file (~275 LoC) · ×4
  • Dead file (~275 LoC) packages/upgrade/transforms/__testfixtures__/enable-v12-structured-list-visible-icons.input.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~275 LoC) packages/upgrade/transforms/__testfixtures__/enable-v12-structured-list-visible-icons.input.tsx — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~275 LoC) packages/upgrade/transforms/__testfixtures__/enable-v12-structured-list-visible-icons.output.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~275 LoC) packages/upgrade/transforms/__testfixtures__/enable-v12-structured-list-visible-icons.output.tsx — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
D35 · Change Coupling · Change coupling · ×3
  • Change coupling: product-migrated-components.mjs ↔ index.ts packages/react/product-migrated-components.mjs:1 — `packages/react/product-migrated-components.mjs` and `packages/react/src/index.ts` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `e096e778` feat(react): migrate BigNumber from carbon-for-ibm-products (#22977); `c50eedb1` feat(react): migrate ScrollGradient from carbon-for-ibm-products (#22…; `94437ffb` feat(react): migrate FullPageError from carbon-for-ibm-products (#23034) — run `git show` on any of them.
  • Change coupling: ControlledPasswordInput.tsx ↔ PasswordInput.tsx packages/react/src/components/TextInput/ControlledPasswordInput.tsx:1 — `packages/react/src/components/TextInput/ControlledPasswordInput.tsx` and `packages/react/src/components/TextInput/PasswordInput.tsx` change together 57% of the time (13 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are `6898a87e` fix: ignore empty helperText across form controls (#21995); `7ab92488` fix: modify show condition for `labelText` and `helperText` (#21094); `8f5ff43e` refactor: update forwardRef components to use generics (#21316) — run `git show` on any of them.
  • Change coupling: FilterableMultiSelect.tsx ↔ MultiSelect.tsx packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:1 — `packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx` and `packages/react/src/components/MultiSelect/MultiSelect.tsx` change together 52% of the time (34 of the 66 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 34 shared commits counted here, the most recent 3 are `84a093c9` fix(Dropdown): Cap floating menu height via availableHeight on flip (…; `30a1e032` refactor: unify disabled item checks in dropdowns (#22204); `aa1c85a3` refactor: extract MultiSelect select-all item helper for reuse (#22206) — run `git show` on any of them.
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R10 · Code Duplication · Duplicated block with local edits (60 matched lines × 2 locations) · ×3
  • Duplicated block with local edits (60 matched lines × 2 locations) packages/react/code-connect/MultiSelect/FilterableMultiSelect.figma.ts:14 — packages/react/code-connect/MultiSelect/FilterableMultiSelect.figma.ts:14 · packages/react/code-connect/MultiSelect/MultiSelect.figma.ts:14 — the two spans are one implementation copied and then locally edited — 294 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
  • Duplicated block with local edits (60 matched lines × 2 locations) packages/react/src/components/Tag/OperationalTag.tsx:102 — packages/react/src/components/Tag/OperationalTag.tsx:102 · packages/react/src/components/Tag/SelectableTag.tsx:114 — the two spans are one implementation copied and then locally edited — 318 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
  • Duplicated block with local edits (60 matched lines × 2 locations) packages/web-components/src/components/checkbox/checkbox-group.ts:167 — packages/web-components/src/components/checkbox/checkbox-group.ts:167 · packages/web-components/src/components/checkbox/checkbox.ts:248 — the two spans are one implementation copied and then locally edited — 240 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
AC2 · Forms & labels · <fieldset> without a <legend> · ×2
  • <fieldset> without a <legend> packages/web-components/src/components/radio-button/radio-button-group.ts:296 — A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one.
  • <fieldset> without a <legend> packages/web-components/src/components/tile/tile-group.ts:268 — A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one.
D1 · Cyclomatic Complexity · SidePanel.SidePanel · ×2
  • SidePanel.SidePanel::renderHeader (cyclomatic 31) packages/react/src/components/SidePanel/SidePanel.tsx:848 — SidePanel.SidePanel::renderHeader has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (SidePanel.SidePanel::checkSetDoAnimateTitle) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • SidePanel.SidePanel::checkSetDoAnimateTitle (cyclomatic 16) packages/react/src/components/SidePanel/SidePanel.tsx:551 — SidePanel.SidePanel::checkSetDoAnimateTitle has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (SidePanel.SidePanel::renderHeader) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · TreeView.TreeView · ×2
  • TreeView.TreeView::handleKeyDown (cognitive 38) packages/react/src/components/TreeView/TreeView.tsx:178 — TreeView.TreeView::handleKeyDown has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 2 (6 pts), boolean chains 5, ternaries 1 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TreeView.TreeView::handleTreeSelect) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • TreeView.TreeView::handleTreeSelect (cognitive 16) packages/react/src/components/TreeView/TreeView.tsx:138 — TreeView.TreeView::handleTreeSelect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TreeView.TreeView::handleKeyDown) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D3 · God Classes · TooManyMethods · ×2
  • TooManyMethods: CDSDropdown packages/web-components/src/components/dropdown/dropdown.ts:67 — TooManyMethods — 41 methods. The bar is 30 methods; this is 11 over it, 1.37× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: CDSSidePanel packages/web-components/src/components/side-panel/side-panel.ts:64 — TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×2
  • Sync-over-async blocking packages/cli/src/commands/inline.js:48 — `fs.existsSync` in `inlineSassDependencies` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/upgrade/src/workspace.js:110 — `fs.existsSync` in `loadWorkspace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
R10 · Code Duplication · Duplicated block with local edits (52 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (52 matched lines × 2 locations) packages/react/src/components/AddSelect/AddSelectBody.tsx:206 — packages/react/src/components/AddSelect/AddSelectBody.tsx:206 · packages/web-components/src/components/add-select/add-select-body.ts:140 — the two spans are one implementation copied and then locally edited — 185 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
  • Duplicated block with local edits (52 matched lines × 2 locations) packages/web-components/code-connect/slider/slider-two-handles.figma.ts:18 — packages/web-components/code-connect/slider/slider-two-handles.figma.ts:18 · packages/web-components/code-connect/slider/slider.figma.ts:18 — the two spans are one implementation copied and then locally edited — 263 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R8 · Dependency Hygiene · Unused dependency 'browserslist-config-carbon' · ×2
  • Unused dependency 'browserslist-config-carbon' — Declared in config/babel-preset-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'browserslist-config-carbon' — Declared in packages/carbon-components-react/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×2
  • Untrusted text written into markup unescaped packages/react/src/components/DatePicker/DatePicker.tsx:209 — `currentItem.innerHTML.replace(/\s+/g,'')` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped packages/web-components/src/components/date-picker/css-class-plugin.ts:127 — `item.innerHTML.replace(/\s+/g,'')` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
AC3 · Page structure · Page without a main landmark · ×1
  • Page without a main landmark packages/web-components/.storybook/basic-example-cdn.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
AC3 · Page structure · Heading level jumps from h2 to h4 · ×1
  • Heading level jumps from h2 to h4 packages/web-components/src/components/tearsheet/tearsheet-helpers.ts:173 — Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
AC4 · Keyboard semantics · Anchor without href · ×1
  • Anchor without href packages/web-components/.storybook/templates/with-feature-flags.ts:32 — An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
AC4 · Keyboard semantics · Modal dialog does not manage focus · ×1
  • Modal dialog does not manage focus packages/web-components/src/components/notification-panel/notification-panel.ts:195 — This <div role="dialog"> is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
AC4 · Keyboard semantics · Link used as a button (placeholder href) · ×1
  • Link used as a button (placeholder href) packages/web-components/src/components/ui-shell/header-menu.ts:153 — An <a href="#"> (or javascript:) with a click handler is a button dressed as a link — it announces the wrong role and stops working without JS. Use a <button> for an action.
D1 · Cyclomatic Complexity · ComboBox.ComboBox (cyclomatic 183) · ×1
  • ComboBox.ComboBox (cyclomatic 183) packages/react/src/components/ComboBox/ComboBox.tsx:384 — ComboBox.ComboBox has cyclomatic complexity 183 (threshold 15). Of this number, 42 points are the body's own statements and 141 belong to 25 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Slider.Slider (cyclomatic 151) · ×1
  • Slider.Slider (cyclomatic 151) packages/react/src/components/Slider/Slider.tsx:350 — Slider.Slider has cyclomatic complexity 151 (threshold 15). Of this number, 55 points are the body's own statements and 96 belong to 26 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DatePicker.DatePicker (cyclomatic 121) · ×1
  • DatePicker.DatePicker (cyclomatic 121) packages/react/src/components/DatePicker/DatePicker.tsx:386 — DatePicker.DatePicker has cyclomatic complexity 121 (threshold 15). Most of this is not in the body itself: 2 of the 121 points are its own statements and the rest belongs to 24 function items inside it that branch (a function literal at line 550, a function literal at line 699, a function literal at line 807, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Modal.ModalDialog (cyclomatic 114) · ×1
  • Modal.ModalDialog (cyclomatic 114) packages/react/src/components/Modal/Modal.tsx:288 — Modal.ModalDialog has cyclomatic complexity 114 (threshold 15). Of this number, 54 points are the body's own statements and 60 belong to 17 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · TextArea.TextArea (cyclomatic 103) · ×1
  • TextArea.TextArea (cyclomatic 103) packages/react/src/components/TextArea/TextArea.tsx:215 — TextArea.TextArea has cyclomatic complexity 103 (threshold 15). Of this number, 53 points are the body's own statements and 50 belong to 11 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.Popover (cyclomatic 89) · ×1
  • index.Popover (cyclomatic 89) packages/react/src/components/Popover/index.tsx:176 — index.Popover has cyclomatic complexity 89 (threshold 15). Of this number, 23 points are the body's own statements and 66 belong to 11 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ComposedModal.ComposedModalDialog (cyclomatic 74) · ×1
  • ComposedModal.ComposedModalDialog (cyclomatic 74) packages/react/src/components/ComposedModal/ComposedModal.tsx:298 — ComposedModal.ComposedModalDialog has cyclomatic complexity 74 (threshold 15). Of this number, 21 points are the body's own statements and 53 belong to 14 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Dropdown.Dropdown (cyclomatic 64) · ×1
  • Dropdown.Dropdown (cyclomatic 64) packages/react/src/components/Dropdown/Dropdown.tsx:291 — Dropdown.Dropdown has cyclomatic complexity 64 (threshold 15). Of this number, 37 points are the body's own statements and 27 belong to 10 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ibm-products-update-page-header-composable.transform (cyclomatic 60) · ×1
  • ibm-products-update-page-header-composable.transform (cyclomatic 60) packages/upgrade/transforms/ibm-products-update-page-header-composable.js:40 — ibm-products-update-page-header-composable.transform has cyclomatic complexity 60 (threshold 15). Most of this is not in the body itself: 3 of the 60 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 99, a function literal at line 131, a function literal at line 51, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ibm-products-update-coachmark.transform (cyclomatic 57) · ×1
  • ibm-products-update-coachmark.transform (cyclomatic 57) packages/upgrade/transforms/ibm-products-update-coachmark.js:39 — ibm-products-update-coachmark.transform has cyclomatic complexity 57 (threshold 15). Most of this is not in the body itself: 4 of the 57 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 219, a function literal at line 443, a function literal at line 208, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · useDatePicker.useDatePicker (cyclomatic 56) · ×1
  • useDatePicker.useDatePicker (cyclomatic 56) packages/react/src/components/DatePicker/next/hooks/useDatePicker.ts:195 — useDatePicker.useDatePicker has cyclomatic complexity 56 (threshold 15). Most of this is not in the body itself: 1 of the 56 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 487, 307, 337, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · Pagination.Pagination (cyclomatic 53) · ×1
  • Pagination.Pagination (cyclomatic 53) packages/react/src/components/Pagination/Pagination.tsx:212 — Pagination.Pagination has cyclomatic complexity 53 (threshold 15). Of this number, 19 points are the body's own statements and 34 belong to 13 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Tabs.TabList (cyclomatic 53) · ×1
  • Tabs.TabList (cyclomatic 53) packages/react/src/components/Tabs/Tabs.tsx:450 — Tabs.TabList has cyclomatic complexity 53 (threshold 15). Of this number, 23 points are the body's own statements and 30 belong to 15 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ConditionBuilderItem.ConditionBuilderItem (cyclomatic 53) · ×1
  • ConditionBuilderItem.ConditionBuilderItem (cyclomatic 53) packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.tsx:64 — ConditionBuilderItem.ConditionBuilderItem has cyclomatic complexity 53 (threshold 15). Most of this is not in the body itself: 8 of the 53 points are its own statements and the rest belongs to 12 function items inside it that branch (getPropertyDetails, a function literal at line 159, a function literal at line 206, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ConditionGroupBuilder.ConditionGroupBuilder (cyclomatic 51) · ×1
  • ConditionGroupBuilder.ConditionGroupBuilder (cyclomatic 51) packages/react/src/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.tsx:60 — ConditionGroupBuilder.ConditionGroupBuilder has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 3 of the 51 points are its own statements and the rest belongs to 15 function items inside it that branch (onRemoveHandler, a function literal at line 104, getScrollableParent, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · NotificationsPanel.NotificationsPanel (cyclomatic 51) · ×1
  • NotificationsPanel.NotificationsPanel (cyclomatic 51) packages/react/src/components/NotificationsPanel/NotificationsPanel.tsx:350 — NotificationsPanel.NotificationsPanel has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 13 of the 51 points are its own statements and the rest belongs to 13 function items inside it that branch (renderNotification, isActionableElement, handleAnimationEnd, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · OverflowMenu.OverflowMenu (cyclomatic 50) · ×1
  • OverflowMenu.OverflowMenu (cyclomatic 50) packages/react/src/components/OverflowMenu/OverflowMenu.tsx:260 — OverflowMenu.OverflowMenu has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 8 of the 50 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 351, a function literal at line 361, a function literal at line 505, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · FilterableMultiSelect.FilterableMultiSelect (cyclomatic 44) · ×1
  • FilterableMultiSelect.FilterableMultiSelect (cyclomatic 44) packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:331 — FilterableMultiSelect.FilterableMultiSelect has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (FilterableMultiSelect.FilterableMultiSelect::stateReducer) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · CDSDatePicker._handleKeyDown (cyclomatic 44) · ×1
  • CDSDatePicker._handleKeyDown (cyclomatic 44) packages/web-components/src/components/date-picker/next/components/date-picker.ts:641 — CDSDatePicker._handleKeyDown has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CodeSnippet.CodeSnippet (cyclomatic 43) · ×1
  • CodeSnippet.CodeSnippet (cyclomatic 43) packages/react/src/components/CodeSnippet/CodeSnippet.tsx:156 — CodeSnippet.CodeSnippet has cyclomatic complexity 43 (threshold 15). Of this number, 29 points are the body's own statements and 14 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FloatingMenu.FloatingMenu (cyclomatic 43) · ×1
  • FloatingMenu.FloatingMenu (cyclomatic 43) packages/react/src/internal/FloatingMenu.tsx:237 — FloatingMenu.FloatingMenu has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 9 of the 43 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 264, focusMenuContent, a function literal at line 386, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · MenuItem.MenuItem (cyclomatic 42) · ×1
  • MenuItem.MenuItem (cyclomatic 42) packages/react/src/components/Menu/MenuItem.tsx:98 — MenuItem.MenuItem has cyclomatic complexity 42 (threshold 15). Of this number, 16 points are the body's own statements and 26 belong to 11 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MultiSelect.MultiSelect (cyclomatic 41) · ×1
  • MultiSelect.MultiSelect (cyclomatic 41) packages/react/src/components/MultiSelect/MultiSelect.tsx:299 — MultiSelect.MultiSelect has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (MultiSelect.MultiSelect::stateReducer) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · Tabs.Tab (cyclomatic 40) · ×1
  • Tabs.Tab (cyclomatic 40) packages/react/src/components/Tabs/Tabs.tsx:1303 — Tabs.Tab has cyclomatic complexity 40 (threshold 15). Of this number, 23 points are the body's own statements and 17 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Resizer.Resizer (cyclomatic 40) · ×1
  • Resizer.Resizer (cyclomatic 40) packages/react/src/components/Resizer/Resizer.tsx:56 — Resizer.Resizer has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 1 of the 40 points is its own statement and the rest belongs to 16 function items inside it that branch (a function literal at line 193, a function literal at line 118, handleDoubleClick, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · PasswordInput.PasswordInput (cyclomatic 39) · ×1
  • PasswordInput.PasswordInput (cyclomatic 39) packages/react/src/components/TextInput/PasswordInput.tsx:182 — PasswordInput.PasswordInput has cyclomatic complexity 39 (threshold 15). Of this number, 36 points are the body's own statements and 3 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · Tag.TagBase (cyclomatic 38) · ×1
  • Tag.TagBase (cyclomatic 38) packages/react/src/components/Tag/Tag.tsx:143 — Tag.TagBase has cyclomatic complexity 38 (threshold 15). Of this number, 37 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · icons-react-size-prop.transform (cyclomatic 38) · ×1
  • icons-react-size-prop.transform (cyclomatic 38) packages/upgrade/transforms/icons-react-size-prop.js:16 — icons-react-size-prop.transform has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 4 of the 38 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 98, 147, 55, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · TextInput.TextInput (cyclomatic 37) · ×1
  • TextInput.TextInput (cyclomatic 37) packages/react/src/components/TextInput/TextInput.tsx:192 — TextInput.TextInput has cyclomatic complexity 37 (threshold 15). Of this number, 27 points are the body's own statements and 10 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · EditInPlace.EditInPlace (cyclomatic 37) · ×1
  • EditInPlace.EditInPlace (cyclomatic 37) packages/react/src/components/EditInPlace/EditInPlace.tsx:140 — EditInPlace.EditInPlace has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 11 of the 37 points are its own statements and the rest belongs to 11 function items inside it that branch (onBlurHandler, handleToolbarMouseDown, onKeyHandler, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CDSTextInput.render (cyclomatic 37) · ×1
  • CDSTextInput.render (cyclomatic 37) packages/web-components/src/components/text-input/text-input.ts:349 — CDSTextInput.render has cyclomatic complexity 37 (threshold 15). Of this number, 36 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · fixEventsPlugin.fixEventsPlugin.<returned closure> (cyclomatic 36) · ×1
  • fixEventsPlugin.fixEventsPlugin.<returned closure> (cyclomatic 36) packages/react/src/components/DatePicker/plugins/fixEventsPlugin.ts:19 — fixEventsPlugin.fixEventsPlugin.<returned closure> has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 1 of the 36 points is its own statement and the rest belongs to 6 function items inside it that branch (isEventInside, handleBlur, handleKeydown, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · NumberInput.NumberInput (cyclomatic 36) · ×1
  • NumberInput.NumberInput (cyclomatic 36) REDACTED:594 — NumberInput.NumberInput has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (NumberInput.NumberInput::handleStep) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · Search.Search (cyclomatic 35) · ×1
  • Search.Search (cyclomatic 35) packages/react/src/components/Search/Search.tsx:138 — Search.Search has cyclomatic complexity 35 (threshold 15). Of this number, 23 points are the body's own statements and 12 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Select.Select (cyclomatic 35) · ×1
  • Select.Select (cyclomatic 35) packages/react/src/components/Select/Select.tsx:149 — Select.Select has cyclomatic complexity 35 (threshold 15). Of this number, 26 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SideNav.SideNav (cyclomatic 35) · ×1
  • SideNav.SideNav (cyclomatic 35) packages/react/src/components/UIShell/SideNav.tsx:53 — SideNav.SideNav has cyclomatic complexity 35 (threshold 15). Of this number, 16 points are the body's own statements and 19 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSPasswordInput.render (cyclomatic 35) · ×1
  • CDSPasswordInput.render (cyclomatic 35) packages/web-components/src/components/password-input/password-input.ts:140 — CDSPasswordInput.render has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CardActions.CardActions (cyclomatic 34) · ×1
  • CardActions.CardActions (cyclomatic 34) packages/react/src/components/Card/CardActions.tsx:79 — CardActions.CardActions has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 94, 160, 173). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · DataTable.DataTable (cyclomatic 34) · ×1
  • DataTable.DataTable (cyclomatic 34) packages/react/src/components/DataTable/DataTable.tsx:351 — DataTable.DataTable has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 4 of the 34 points are its own statements and the rest belongs to 13 function items inside it that branch (getSelectionProps, a function literal at line 380, getExpandHeaderProps, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · FilterableMultiSelect.FilterableMultiSelect · ×1
  • FilterableMultiSelect.FilterableMultiSelect::stateReducer (cyclomatic 33) packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:694 — FilterableMultiSelect.FilterableMultiSelect::stateReducer has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (FilterableMultiSelect.FilterableMultiSelect) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · Tile.ExpandableTile (cyclomatic 33) · ×1
  • Tile.ExpandableTile (cyclomatic 33) packages/react/src/components/Tile/Tile.tsx:780 — Tile.ExpandableTile has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 11 of the 33 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 876, a function literal at line 891, a function literal at line 861, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CDSDropdown.render (cyclomatic 33) · ×1
  • CDSDropdown.render (cyclomatic 33) packages/web-components/src/components/dropdown/dropdown.ts:1301 — CDSDropdown.render has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSDatePicker._handleStateChange (cyclomatic 33) · ×1
  • CDSDatePicker._handleStateChange (cyclomatic 33) packages/web-components/src/components/date-picker/next/components/date-picker.ts:245 — CDSDatePicker._handleStateChange has cyclomatic complexity 33 (threshold 15). Of this number, 32 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FileUploader.FileUploader (cyclomatic 32) · ×1
  • FileUploader.FileUploader (cyclomatic 32) packages/react/src/components/FileUploader/FileUploader.tsx:175 — FileUploader.FileUploader has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 4 of the 32 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 250, a function literal at line 330, a function literal at line 398, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · PaginationNav.PaginationNav (cyclomatic 32) · ×1
  • PaginationNav.PaginationNav (cyclomatic 32) packages/react/src/components/PaginationNav/PaginationNav.tsx:361 — PaginationNav.PaginationNav has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 14 of the 32 points are its own statements and the rest belongs to 6 function items inside it that branch (pageWouldBeHidden, a function literal at line 466, jumpToItem, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · AddSelectBody.AddSelectBody (cyclomatic 32) · ×1
  • AddSelectBody.AddSelectBody (cyclomatic 32) packages/react/src/components/AddSelect/AddSelectBody.tsx:130 — AddSelectBody.AddSelectBody has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 12 of the 32 points are its own statements and the rest belongs to 5 function items inside it that branch (handleKeyDown, getItems, a function literal at line 191, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CDSCodeSnippet.render (cyclomatic 32) · ×1
  • CDSCodeSnippet.render (cyclomatic 32) packages/web-components/src/components/code-snippet/code-snippet.ts:372 — CDSCodeSnippet.render has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · FloatingController.computePlacement (cyclomatic 31) · ×1
  • FloatingController.computePlacement (cyclomatic 31) packages/web-components/src/globals/controllers/floating-controller.ts:76 — FloatingController.computePlacement has cyclomatic complexity 31 (threshold 15). Of this number, 30 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSMenu._fitValue (cyclomatic 31) · ×1
  • CDSMenu._fitValue (cyclomatic 31) packages/web-components/src/components/menu/menu.ts:344 — CDSMenu._fitValue has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Menu.Menu · ×1
  • Menu.Menu::fitValue (cyclomatic 30) packages/react/src/components/Menu/Menu.tsx:301 — Menu.Menu::fitValue has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · Calendar.Calendar (cyclomatic 30) · ×1
  • Calendar.Calendar (cyclomatic 30) packages/react/src/components/DatePicker/next/components/Calendar.tsx:53 — Calendar.Calendar has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 2 of the 30 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 114, 249, 97, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · RadioButtonGroup.RadioButtonGroup (cyclomatic 30) · ×1
  • RadioButtonGroup.RadioButtonGroup (cyclomatic 30) packages/react/src/components/RadioButtonGroup/RadioButtonGroup.tsx:144 — RadioButtonGroup.RadioButtonGroup has cyclomatic complexity 30 (threshold 15). Of this number, 24 points are the body's own statements and 6 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · TreeView.TreeView · ×1
  • TreeView.TreeView::handleKeyDown (cyclomatic 30) packages/react/src/components/TreeView/TreeView.tsx:178 — TreeView.TreeView::handleKeyDown has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSSidePanel.render (cyclomatic 30) · ×1
  • CDSSidePanel.render (cyclomatic 30) packages/web-components/src/components/side-panel/side-panel.ts:924 — CDSSidePanel.render has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSOverflowMenu.updated (cyclomatic 29) · ×1
  • CDSOverflowMenu.updated (cyclomatic 29) packages/web-components/src/components/overflow-menu/overflow-menu.ts:410 — CDSOverflowMenu.updated has cyclomatic complexity 29 (threshold 15). Of this number, 27 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · form-associated.FormAssociatedMixin (cyclomatic 29) · ×1
  • form-associated.FormAssociatedMixin (cyclomatic 29) packages/web-components/src/globals/mixins/form-associated.ts:43 — form-associated.FormAssociatedMixin has cyclomatic complexity 29 (threshold 15). Of this number, 26 points are the body's own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Notification.ActionableNotification (cyclomatic 28) · ×1
  • Notification.ActionableNotification (cyclomatic 28) packages/react/src/components/Notification/Notification.tsx:929 — Notification.ActionableNotification has cyclomatic complexity 28 (threshold 15). Of this number, 16 points are the body's own statements and 12 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ItemOptionForValueField.ItemOptionForValueField (cyclomatic 28) · ×1
  • ItemOptionForValueField.ItemOptionForValueField (cyclomatic 28) packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.tsx:43 — ItemOptionForValueField.ItemOptionForValueField has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 9 of the 28 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 220, onClickHandler, a function literal at line 101, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ConditionBuilderContent.ConditionBuilderContent (cyclomatic 28) · ×1
  • ConditionBuilderContent.ConditionBuilderContent (cyclomatic 28) packages/react/src/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.tsx:41 — ConditionBuilderContent.ConditionBuilderContent has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 11 of the 28 points are its own statements and the rest belongs to 6 function items inside it that branch (onStartConditionBuilder, onChangeHandler, a function literal at line 91, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Tearsheet.TearsheetInternal (cyclomatic 28) · ×1
  • Tearsheet.TearsheetInternal (cyclomatic 28) packages/react/src/components/Tearsheet/Tearsheet.tsx:190 — Tearsheet.TearsheetInternal has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 12 of the 28 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 269, 342, 256, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · CDSRadioButton.updated (cyclomatic 28) · ×1
  • CDSRadioButton.updated (cyclomatic 28) packages/web-components/src/components/radio-button/radio-button.ts:383 — CDSRadioButton.updated has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · InterstitialScreenFooter.InterstitialScreenFooter (cyclomatic 27) · ×1
  • InterstitialScreenFooter.InterstitialScreenFooter (cyclomatic 27) packages/react/src/components/InterstitialScreen/InterstitialScreenFooter.tsx:72 — InterstitialScreenFooter.InterstitialScreenFooter has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 4 of the 27 points are its own statements and the rest belongs to 4 function items inside it that branch (getFooterContent, handleAction, a function literal at line 147, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CheckboxGroup.CheckboxGroup (cyclomatic 26) · ×1
  • CheckboxGroup.CheckboxGroup (cyclomatic 26) packages/react/src/components/CheckboxGroup/CheckboxGroup.tsx:54 — CheckboxGroup.CheckboxGroup has cyclomatic complexity 26 (threshold 15). Of this number, 16 points are the body's own statements and 10 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NumberInput.NumberInput · ×1
  • NumberInput.NumberInput::handleStep (cyclomatic 26) REDACTED:845 — NumberInput.NumberInput::handleStep has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (NumberInput.NumberInput) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · useGuidebannerScroll.useGuidebannerScroll (cyclomatic 26) · ×1
  • useGuidebannerScroll.useGuidebannerScroll (cyclomatic 26) packages/react/src/components/Guidebanner/useGuidebannerScroll.ts:24 — useGuidebannerScroll.useGuidebannerScroll has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 15 function literals inside it that branch (lines 208, 57, 108, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · OptionsTile.OptionsTile (cyclomatic 26) · ×1
  • OptionsTile.OptionsTile (cyclomatic 26) packages/react/src/components/OptionsTile/OptionsTile.tsx:123 — OptionsTile.OptionsTile has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 9 of the 26 points are its own statements and the rest belongs to 4 function items inside it that branch (renderTitle, expand, collapse, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ScrollGradient.ScrollGradient (cyclomatic 26) · ×1
  • ScrollGradient.ScrollGradient (cyclomatic 26) packages/react/src/components/ScrollGradient/ScrollGradient.tsx:41 — ScrollGradient.ScrollGradient has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 8 of the 26 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 83, a function literal at line 130, a function literal at line 127, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CDSActionableNotification._handleBlur (cyclomatic 26) · ×1
  • CDSActionableNotification._handleBlur (cyclomatic 26) packages/web-components/src/components/notification/actionable-notification.ts:148 — CDSActionableNotification._handleBlur has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CDSSelect.render (cyclomatic 26) · ×1
  • CDSSelect.render (cyclomatic 26) packages/web-components/src/components/select/select.ts:414 — CDSSelect.render has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DatePickerInput.DatePickerInput (cyclomatic 25) · ×1
  • DatePickerInput.DatePickerInput (cyclomatic 25) packages/react/src/components/DatePicker/next/components/DatePickerInput.tsx:181 — DatePickerInput.DatePickerInput has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · DatePicker.DatePicker (cyclomatic 25) · ×1
  • DatePicker.DatePicker (cyclomatic 25) packages/react/src/components/DatePicker/next/components/DatePicker.tsx:107 — DatePicker.DatePicker has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 176, a function literal at line 226, handleIconClick, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · enable-v12-overflowmenu.transform (cyclomatic 25) · ×1
  • enable-v12-overflowmenu.transform (cyclomatic 25) packages/upgrade/transforms/enable-v12-overflowmenu.js:29 — enable-v12-overflowmenu.transform has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 95, a function literal at line 86, a function literal at line 38, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · refactor-to-callout.transform (cyclomatic 25) · ×1
  • refactor-to-callout.transform (cyclomatic 25) packages/upgrade/transforms/refactor-to-callout.js:15 — refactor-to-callout.transform has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 41, a function literal at line 135, isCarbonReactImport, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CDSNumberInput._handleStep (cyclomatic 25) · ×1
  • CDSNumberInput._handleStep (cyclomatic 25) packages/web-components/src/components/number-input/number-input.ts:683 — CDSNumberInput._handleStep has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSSlider.render (cyclomatic 25) · ×1
  • CDSSlider.render (cyclomatic 25) packages/web-components/src/components/slider/slider.ts:969 — CDSSlider.render has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSSidePanel.updated (cyclomatic 25) · ×1
  • CDSSidePanel.updated (cyclomatic 25) packages/web-components/src/components/side-panel/side-panel.ts:1125 — CDSSidePanel.updated has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DatePickerInput.DatePickerInput (cyclomatic 24) · ×1
  • DatePickerInput.DatePickerInput (cyclomatic 24) packages/react/src/components/DatePickerInput/DatePickerInput.tsx:152 — DatePickerInput.DatePickerInput has cyclomatic complexity 24 (threshold 15). Of this number, 22 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ProgressBar.ProgressBar (cyclomatic 24) · ×1
  • ProgressBar.ProgressBar (cyclomatic 24) packages/react/src/components/ProgressBar/ProgressBar.tsx:64 — ProgressBar.ProgressBar has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSDialog.updated (cyclomatic 24) · ×1
  • CDSDialog.updated (cyclomatic 24) packages/web-components/src/components/dialog/dialog.ts:177 — CDSDialog.updated has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSSlider.shouldUpdate (cyclomatic 24) · ×1
  • CDSSlider.shouldUpdate (cyclomatic 24) packages/web-components/src/components/slider/slider.ts:896 — CDSSlider.shouldUpdate has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 902, 933, 943). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · Card.CardComponent (cyclomatic 23) · ×1
  • Card.CardComponent (cyclomatic 23) packages/react/src/components/Card/Card.tsx:35 — Card.CardComponent has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body's own statements and 8 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · Dialog.Dialog (cyclomatic 23) · ×1
  • Dialog.Dialog (cyclomatic 23) packages/react/src/components/Dialog/Dialog.tsx:138 — Dialog.Dialog has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 235, handleModalBackdropClick, a function literal at line 191, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · MultiSelect.MultiSelect · ×1
  • MultiSelect.MultiSelect::stateReducer (cyclomatic 23) packages/react/src/components/MultiSelect/MultiSelect.tsx:616 — MultiSelect.MultiSelect::stateReducer has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (MultiSelect.MultiSelect) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · NumberInput.validateNumberSeparators (cyclomatic 23) · ×1
  • NumberInput.validateNumberSeparators (cyclomatic 23) REDACTED:460 — NumberInput.validateNumberSeparators has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSNumberInput.render (cyclomatic 23) · ×1
  • CDSNumberInput.render (cyclomatic 23) packages/web-components/src/components/number-input/number-input.ts:833 — CDSNumberInput.render has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Tooltip.Tooltip (cyclomatic 22) · ×1
  • Tooltip.Tooltip (cyclomatic 22) packages/react/src/components/Tooltip/Tooltip.tsx:118 — Tooltip.Tooltip has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 189, a function literal at line 155, a function literal at line 160, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · useResizeObserver.useResizeObserver (cyclomatic 22) · ×1
  • useResizeObserver.useResizeObserver (cyclomatic 22) packages/react/src/internal/useResizeObserver.ts:10 — useResizeObserver.useResizeObserver has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 33, 76, 32, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · TimePicker.TimePicker (cyclomatic 22) · ×1
  • TimePicker.TimePicker (cyclomatic 22) packages/react/src/components/TimePicker/TimePicker.tsx:144 — TimePicker.TimePicker has cyclomatic complexity 22 (threshold 15). Of this number, 14 points are the body's own statements and 8 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ConditionBuilderItemDate.ConditionBuilderItemDate (cyclomatic 22) · ×1
  • ConditionBuilderItemDate.ConditionBuilderItemDate (cyclomatic 22) packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.tsx:26 — ConditionBuilderItemDate.ConditionBuilderItemDate has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 4 function items inside it that branch (getParsedDate, onCloseHandler, onKeyPressHandler, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · storySort (cyclomatic 22) · ×1
  • storySort (cyclomatic 22) packages/react/.storybook/preview.js:231 — storySort has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ContentSwitcher.ContentSwitcher (cyclomatic 21) · ×1
  • ContentSwitcher.ContentSwitcher (cyclomatic 21) packages/react/src/components/ContentSwitcher/ContentSwitcher.tsx:75 — ContentSwitcher.ContentSwitcher has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 6 function items inside it that branch (handleChildChange, a function literal at line 184, hasKey, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · FileUploaderDropContainer.FileUploaderDropContainer (cyclomatic 21) · ×1
  • FileUploaderDropContainer.FileUploaderDropContainer (cyclomatic 21) packages/react/src/components/FileUploader/FileUploaderDropContainer.tsx:112 — FileUploaderDropContainer.FileUploaderDropContainer has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 149, handleDrop, a function literal at line 193, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · NumberInput.parseNumberWithLocale (cyclomatic 21) · ×1
  • NumberInput.parseNumberWithLocale (cyclomatic 21) REDACTED:371 — NumberInput.parseNumberWithLocale has cyclomatic complexity 21 (threshold 15). Of this number, 13 points are the body's own statements and 8 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Pagination.Pagination (cyclomatic 21) · ×1
  • Pagination.Pagination (cyclomatic 21) packages/react/src/components/Pagination/experimental/Pagination.js:21 — Pagination.Pagination has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CDSDatePickerInput.render (cyclomatic 21) · ×1
  • CDSDatePickerInput.render (cyclomatic 21) packages/web-components/src/components/date-picker/date-picker-input.ts:247 — CDSDatePickerInput.render has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CDSDatePicker._setCalendar (cyclomatic 21) · ×1
  • CDSDatePicker._setCalendar (cyclomatic 21) packages/web-components/src/components/date-picker/date-picker.ts:286 — CDSDatePicker._setCalendar has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSDatePicker.updated (cyclomatic 21) · ×1
  • CDSDatePicker.updated (cyclomatic 21) packages/web-components/src/components/date-picker/next/components/date-picker.ts:946 — CDSDatePicker.updated has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Checkbox.Checkbox (cyclomatic 20) · ×1
  • Checkbox.Checkbox (cyclomatic 20) packages/react/src/components/Checkbox/Checkbox.tsx:114 — Checkbox.Checkbox has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Tabs.TabListVertical (cyclomatic 20) · ×1
  • Tabs.TabListVertical (cyclomatic 20) packages/react/src/components/Tabs/Tabs.tsx:974 — Tabs.TabListVertical has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 7 function items inside it that branch (onKeyDown, a function literal at line 1057, handleBlur, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Tile.ClickableTile (cyclomatic 20) · ×1
  • Tile.ClickableTile (cyclomatic 20) packages/react/src/components/Tile/Tile.tsx:222 — Tile.ClickableTile has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CDSCoachmark.updated (cyclomatic 20) · ×1
  • CDSCoachmark.updated (cyclomatic 20) packages/web-components/src/components/coachmark/coachmark.ts:227 — CDSCoachmark.updated has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body's own statements and 9 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSTable.updated (cyclomatic 20) · ×1
  • CDSTable.updated (cyclomatic 20) packages/web-components/src/components/data-table/table.ts:742 — CDSTable.updated has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSResizerHandle._handleKeyDown (cyclomatic 20) · ×1
  • CDSResizerHandle._handleKeyDown (cyclomatic 20) packages/web-components/src/components/resizer/resizer-handle.ts:328 — CDSResizerHandle._handleKeyDown has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · executeBob (cyclomatic 20) · ×1
  • executeBob (cyclomatic 20) actions/issues/src/plugins/bob-bug-triage.js:309 — executeBob has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 426, (anonymous)::handleStdoutLine, a function literal at line 373, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · fn · ×1
  • fn::enter (cyclomatic 20) packages/icon-build-helpers/src/metadata/extensions/output/optimizer.js:32 — fn::enter has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TreeNode.TreeNode · ×1
  • TreeNode.TreeNode::handleKeyDown (cyclomatic 19) packages/react/src/components/TreeView/TreeNode.tsx:398 — TreeNode.TreeNode::handleKeyDown has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (TreeNode.TreeNode) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · HeaderMenu.HeaderMenu (cyclomatic 19) · ×1
  • HeaderMenu.HeaderMenu (cyclomatic 19) packages/react/src/components/UIShell/HeaderMenu.tsx:103 — HeaderMenu.HeaderMenu has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 201, handleOnClick, handleMenuClose, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · InterstitialScreenBody.InterstitialScreenBody (cyclomatic 19) · ×1
  • InterstitialScreenBody.InterstitialScreenBody (cyclomatic 19) packages/react/src/components/InterstitialScreen/InterstitialScreenBody.tsx:56 — InterstitialScreenBody.InterstitialScreenBody has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 139, renderBody, a function literal at line 81, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · PageHeader.PageHeader (cyclomatic 19) · ×1
  • PageHeader.PageHeader (cyclomatic 19) packages/react/src/components/PageHeader/PageHeader.tsx:117 — PageHeader.PageHeader has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 188, 150, 154, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · CDSRadioButtonGroup.render (cyclomatic 19) · ×1
  • CDSRadioButtonGroup.render (cyclomatic 19) packages/web-components/src/components/radio-button/radio-button-group.ts:243 — CDSRadioButtonGroup.render has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSAddSelectSelectionSummaryItem.render (cyclomatic 19) · ×1
  • CDSAddSelectSelectionSummaryItem.render (cyclomatic 19) packages/web-components/src/components/add-select/add-select-selection-summary-item.ts:166 — CDSAddSelectSelectionSummaryItem.render has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · TreeNode.TreeNode (cyclomatic 18) · ×1
  • TreeNode.TreeNode (cyclomatic 18) packages/react/src/components/TreeView/TreeNode.tsx:250 — TreeNode.TreeNode has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (TreeNode.TreeNode::handleKeyDown) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · AddSelectRow.AddSelectRow (cyclomatic 18) · ×1
  • AddSelectRow.AddSelectRow (cyclomatic 18) packages/react/src/components/AddSelect/AddSelectRow.tsx:152 — AddSelectRow.AddSelectRow has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body's own statements and 4 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ibm-products-update-tearsheet.transform (cyclomatic 18) · ×1
  • ibm-products-update-tearsheet.transform (cyclomatic 18) packages/upgrade/transforms/ibm-products-update-tearsheet.js:309 — ibm-products-update-tearsheet.transform has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 397, 326, 345, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · CDSOverflowMenuBody._handleKeydown (cyclomatic 18) · ×1
  • CDSOverflowMenuBody._handleKeydown (cyclomatic 18) packages/web-components/src/components/overflow-menu/overflow-menu-body.ts:135 — CDSOverflowMenuBody._handleKeydown has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body's own statements and 6 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSCheckboxGroup.render (cyclomatic 18) · ×1
  • CDSCheckboxGroup.render (cyclomatic 18) packages/web-components/src/components/checkbox/checkbox-group.ts:152 — CDSCheckboxGroup.render has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CDSDropdown._handleKeydownInner (cyclomatic 18) · ×1
  • CDSDropdown._handleKeydownInner (cyclomatic 18) packages/web-components/src/components/dropdown/dropdown.ts:229 — CDSDropdown._handleKeydownInner has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body's own statements and 8 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSComboBox._filterItems (cyclomatic 18) · ×1
  • CDSComboBox._filterItems (cyclomatic 18) packages/web-components/src/components/combo-box/combo-box.ts:201 — CDSComboBox._filterItems has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 208, 225). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · CDSNumberInput._getInputValidity (cyclomatic 18) · ×1
  • CDSNumberInput._getInputValidity (cyclomatic 18) packages/web-components/src/components/number-input/number-input.ts:604 — CDSNumberInput._getInputValidity has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSSlider._handleClick (cyclomatic 18) · ×1
  • CDSSlider._handleClick (cyclomatic 18) packages/web-components/src/components/slider/slider.ts:376 — CDSSlider._handleClick has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · parseBobStreamLine (cyclomatic 18) · ×1
  • parseBobStreamLine (cyclomatic 18) actions/issues/src/plugins/bob-bug-triage.js:205 — parseBobStreamLine has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ButtonBase.ButtonBase (cyclomatic 17) · ×1
  • ButtonBase.ButtonBase (cyclomatic 17) packages/react/src/components/Button/ButtonBase.tsx:14 — ButtonBase.ButtonBase has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.Toggletip (cyclomatic 17) · ×1
  • index.Toggletip (cyclomatic 17) packages/react/src/components/Toggletip/index.tsx:103 — index.Toggletip has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 6 function items inside it that branch (a function literal at line 173, a function literal at line 180, onKeyDown, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · TableToolbarSearch.TableToolbarSearch (cyclomatic 17) · ×1
  • TableToolbarSearch.TableToolbarSearch (cyclomatic 17) packages/react/src/components/DataTable/TableToolbarSearch.tsx:135 — TableToolbarSearch.TableToolbarSearch has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body's own statements and 8 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Toggle.Toggle (cyclomatic 17) · ×1
  • Toggle.Toggle (cyclomatic 17) packages/react/src/components/Toggle/Toggle.tsx:102 — Toggle.Toggle has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CoachmarkContent.CoachmarkContent (cyclomatic 17) · ×1
  • CoachmarkContent.CoachmarkContent (cyclomatic 17) packages/react/src/components/Coachmark/CoachmarkContent.tsx:50 — CoachmarkContent.CoachmarkContent has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 84, 97, 121, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · TearsheetHeaderContent.TearsheetHeaderContent (cyclomatic 17) · ×1
  • TearsheetHeaderContent.TearsheetHeaderContent (cyclomatic 17) packages/react/src/components/Tearsheet/TearsheetHeaderContent.tsx:61 — TearsheetHeaderContent.TearsheetHeaderContent has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · json-pointer-references.jsonPointerReferences (cyclomatic 17) · ×1
  • json-pointer-references.jsonPointerReferences (cyclomatic 17) packages/themes/style-dictionary/preprocessors/json-pointer-references.js:29 — json-pointer-references.jsonPointerReferences has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 3 function items inside it that branch (lookup, walk, resolve). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ibm-products-update-tearsheet.transformTearsheetElement (cyclomatic 17) · ×1
  • ibm-products-update-tearsheet.transformTearsheetElement (cyclomatic 17) packages/upgrade/transforms/ibm-products-update-tearsheet.js:208 — ibm-products-update-tearsheet.transformTearsheetElement has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 222). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · wc-add-barrel-imports.transform (cyclomatic 17) · ×1
  • wc-add-barrel-imports.transform (cyclomatic 17) packages/upgrade/transforms/wc-add-barrel-imports.js:35 — wc-add-barrel-imports.transform has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body's own statements and 7 belong to 5 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · CDSButton.render (cyclomatic 17) · ×1
  • CDSButton.render (cyclomatic 17) packages/web-components/src/components/button/button.ts:268 — CDSButton.render has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSMultiSelect.shouldUpdate (cyclomatic 17) · ×1
  • CDSMultiSelect.shouldUpdate (cyclomatic 17) packages/web-components/src/components/multi-select/multi-select.ts:791 — CDSMultiSelect.shouldUpdate has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CDSMultiSelect.updated (cyclomatic 17) · ×1
  • CDSMultiSelect.updated (cyclomatic 17) packages/web-components/src/components/multi-select/multi-select.ts:866 — CDSMultiSelect.updated has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSTimePicker.render (cyclomatic 17) · ×1
  • CDSTimePicker.render (cyclomatic 17) packages/web-components/src/components/time-picker/time-picker.ts:189 — CDSTimePicker.render has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CDSTreeView._handleKeyDown (cyclomatic 17) · ×1
  • CDSTreeView._handleKeyDown (cyclomatic 17) packages/web-components/src/components/tree-view/tree-view.ts:68 — CDSTreeView._handleKeyDown has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body's own statements and 3 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSSidePanel.getFocusable (cyclomatic 17) · ×1
  • CDSSidePanel.getFocusable (cyclomatic 17) packages/web-components/src/components/side-panel/side-panel.ts:149 — CDSSidePanel.getFocusable has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · examples.main (cyclomatic 17) · ×1
  • examples.main (cyclomatic 17) tasks/examples.js:62 — examples.main has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 129, 96, 75, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · handleKeyPressForPopover (cyclomatic 17) · ×1
  • handleKeyPressForPopover (cyclomatic 17) packages/react/src/components/ConditionBuilder/utils/handleKeyboardEvents.js:68 — handleKeyPressForPopover has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · manage-comment.manageComment (cyclomatic 16) · ×1
  • manage-comment.manageComment (cyclomatic 16) actions/issues/src/manage-comment.js:124 — manage-comment.manageComment has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CoachmarkContentHeader.CoachmarkContentHeader (cyclomatic 16) · ×1
  • CoachmarkContentHeader.CoachmarkContentHeader (cyclomatic 16) packages/react/src/components/Coachmark/CoachmarkContentHeader.tsx:49 — CoachmarkContentHeader.CoachmarkContentHeader has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 78, 104, 117). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · Coachmark.Coachmark (cyclomatic 16) · ×1
  • Coachmark.Coachmark (cyclomatic 16) packages/react/src/components/Coachmark/Coachmark.tsx:108 — Coachmark.Coachmark has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 155, a function literal at line 163, setOpen, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ConditionBuilderItemNumber.ConditionBuilderItemNumber (cyclomatic 16) · ×1
  • ConditionBuilderItemNumber.ConditionBuilderItemNumber (cyclomatic 16) packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.tsx:21 — ConditionBuilderItemNumber.ConditionBuilderItemNumber has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 2 function items inside it that branch (checkIfValid, onChangeHandler). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · swipeEvents.registerSwipeEvents (cyclomatic 16) · ×1
  • swipeEvents.registerSwipeEvents (cyclomatic 16) packages/utilities/src/carousel/swipeEvents.ts:9 — swipeEvents.registerSwipeEvents has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (mouseUpHandler, touchEndHandler, wheelHandler, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CDSNumberInput.willUpdate (cyclomatic 16) · ×1
  • CDSNumberInput.willUpdate (cyclomatic 16) packages/web-components/src/components/number-input/number-input.ts:504 — CDSNumberInput.willUpdate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CDSTextarea.render (cyclomatic 16) · ×1
  • CDSTextarea.render (cyclomatic 16) packages/web-components/src/components/textarea/textarea.ts:170 — CDSTextarea.render has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSTab.render (cyclomatic 16) · ×1
  • CDSTab.render (cyclomatic 16) packages/web-components/src/components/tabs/tab.ts:179 — CDSTab.render has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CDSPageHeaderActionsSet.setupOverflowDetection (cyclomatic 16) · ×1
  • CDSPageHeaderActionsSet.setupOverflowDetection (cyclomatic 16) packages/web-components/src/components/page-header/page-header-actions-set/page-header-actions-set.ts:102 — CDSPageHeaderActionsSet.setupOverflowDetection has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (checkOverflow, a function literal at line 172, a function literal at line 198). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CDSTearsheetHeaderContent.render (cyclomatic 16) · ×1
  • CDSTearsheetHeaderContent.render (cyclomatic 16) packages/web-components/src/components/tearsheet/tearsheet-header-content.ts:379 — CDSTearsheetHeaderContent.render has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D10 · Test Quality · Test project verifies nothing · ×1
  • Test project verifies nothing: packages/react/examples/react-router-vite packages/react/examples/react-router-vite/src/App-test.js:5 — No conventional assertion call was detected in 1 of 1 tests in `packages/react/examples/react-router-vite` — the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail.
D17 · Explicit Debt · FixmeComment · ×1
  • FixmeComment packages/web-components/src/components/text-input/text-input.ts:318 — // FIXME: Figure out how to deal with TS2611 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D17 · Explicit Debt · TodoComment repeated across 17 files · ×1
  • TodoComment repeated across 17 files packages/web-components/src/components/overflow-menu/overflow-menu.ts:467 — The identical TodoComment appears in 17 files (23 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 23 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO: V12 - Remove this class". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
D17 · Explicit Debt · HackComment · ×1
  • HackComment packages/react/previewer/storybookStyles/index.tsx:20 — // hack to enable zoom feature to trigger — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
D2 · Cognitive Complexity · ComboBox.ComboBox (cognitive 231) · ×1
  • ComboBox.ComboBox (cognitive 231) packages/react/src/components/ComboBox/ComboBox.tsx:384 — ComboBox.ComboBox has cognitive complexity 231 (threshold 15). Drivers by points: if/else 68 (120 pts), boolean chains 58, ternaries 27 (52 pts), match/switch 1 (nesting depth added 77). Of this number, 37 points are the body's own statements and 194 belong to 25 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DatePicker.DatePicker (cognitive 125) · ×1
  • DatePicker.DatePicker (cognitive 125) packages/react/src/components/DatePicker/DatePicker.tsx:386 — DatePicker.DatePicker has cognitive complexity 125 (threshold 15). Drivers by points: if/else 68 (83 pts), boolean chains 35, ternaries 6 (7 pts) (nesting depth added 16). Most of this is not in the body itself: 1 of the 125 points is its own statement and the rest belongs to 24 function items inside it that branch (a function literal at line 550, a function literal at line 699, a function literal at line 764, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · TextArea.TextArea (cognitive 106) · ×1
  • TextArea.TextArea (cognitive 106) packages/react/src/components/TextArea/TextArea.tsx:215 — TextArea.TextArea has cognitive complexity 106 (threshold 15). Drivers by points: if/else 32 (51 pts), boolean chains 37, ternaries 15 (18 pts) (nesting depth added 22). Of this number, 45 points are the body's own statements and 61 belong to 11 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Modal.ModalDialog (cognitive 99) · ×1
  • Modal.ModalDialog (cognitive 99) packages/react/src/components/Modal/Modal.tsx:288 — Modal.ModalDialog has cognitive complexity 99 (threshold 15). Drivers by points: boolean chains 53, if/else 23 (28 pts), ternaries 12 (18 pts) (nesting depth added 11). Of this number, 49 points are the body's own statements and 50 belong to 17 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.Popover (cognitive 94) · ×1
  • index.Popover (cognitive 94) packages/react/src/components/Popover/index.tsx:176 — index.Popover has cognitive complexity 94 (threshold 15). Drivers by points: if/else 29 (43 pts), boolean chains 28, ternaries 13 (22 pts), loops 1 (nesting depth added 23). Of this number, 26 points are the body's own statements and 68 belong to 11 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · transform (cognitive 78) · ×1
  • transform (cognitive 78) packages/upgrade/transforms/ibm-products-update-page-header-composable.js:40 — transform has cognitive complexity 78 (threshold 15). Drivers by points: if/else 41 (63 pts), boolean chains 8, ternaries 3 (7 pts) (nesting depth added 26). Most of this is not in the body itself: 2 of the 78 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 99, a function literal at line 131, a function literal at line 51, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · transform (cognitive 77) · ×1
  • transform (cognitive 77) packages/upgrade/transforms/ibm-products-update-coachmark.js:39 — transform has cognitive complexity 77 (threshold 15). Drivers by points: if/else 40 (50 pts), ternaries 11 (20 pts), boolean chains 7 (nesting depth added 19). Most of this is not in the body itself: 3 of the 77 points are its own statements and the rest belongs to 24 function items inside it that branch (a function literal at line 219, a function literal at line 208, a function literal at line 296, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ComposedModal.ComposedModalDialog (cognitive 75) · ×1
  • ComposedModal.ComposedModalDialog (cognitive 75) packages/react/src/components/ComposedModal/ComposedModal.tsx:298 — ComposedModal.ComposedModalDialog has cognitive complexity 75 (threshold 15). Drivers by points: boolean chains 29, if/else 20 (24 pts), ternaries 11 (22 pts) (nesting depth added 15). Of this number, 28 points are the body's own statements and 47 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Dropdown.Dropdown (cognitive 69) · ×1
  • Dropdown.Dropdown (cognitive 69) packages/react/src/components/Dropdown/Dropdown.tsx:291 — Dropdown.Dropdown has cognitive complexity 69 (threshold 15). Drivers by points: boolean chains 25, ternaries 17 (23 pts), if/else 16 (21 pts) (nesting depth added 11). Of this number, 37 points are the body's own statements and 32 belong to 10 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · useDatePicker.useDatePicker (cognitive 64) · ×1
  • useDatePicker.useDatePicker (cognitive 64) packages/react/src/components/DatePicker/next/hooks/useDatePicker.ts:195 — useDatePicker.useDatePicker has cognitive complexity 64 (threshold 15). Drivers by points: if/else 30 (43 pts), boolean chains 16, ternaries 3 (5 pts) (nesting depth added 15). None of this is in the body itself: all 64 points belong to 9 function literals inside it that branch (lines 487, 307, 337, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSDatePicker._handleKeyDown (cognitive 64) · ×1
  • CDSDatePicker._handleKeyDown (cognitive 64) packages/web-components/src/components/date-picker/next/components/date-picker.ts:641 — CDSDatePicker._handleKeyDown has cognitive complexity 64 (threshold 15). Drivers by points: if/else 23 (48 pts), boolean chains 12, ternaries 2 (4 pts) (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · ConditionGroupBuilder.ConditionGroupBuilder (cognitive 60) · ×1
  • ConditionGroupBuilder.ConditionGroupBuilder (cognitive 60) packages/react/src/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.tsx:60 — ConditionGroupBuilder.ConditionGroupBuilder has cognitive complexity 60 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 17, ternaries 12 (13 pts), loops 1 (nesting depth added 9). Most of this is not in the body itself: 2 of the 60 points are its own statements and the rest belongs to 15 function items inside it that branch (onRemoveHandler, handleFocusOnCloseHierarchical, a function literal at line 104, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Tabs.TabList (cognitive 58) · ×1
  • Tabs.TabList (cognitive 58) packages/react/src/components/Tabs/Tabs.tsx:450 — Tabs.TabList has cognitive complexity 58 (threshold 15). Drivers by points: if/else 26 (33 pts), boolean chains 13, ternaries 11 (12 pts) (nesting depth added 8). Of this number, 22 points are the body's own statements and 36 belong to 15 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · Slider.Slider (cognitive 55) · ×1
  • Slider.Slider (cognitive 55) packages/react/src/components/Slider/Slider.tsx:350 — Slider.Slider has cognitive complexity 55 (threshold 15). Drivers by points: if/else 58 (65 pts), ternaries 44 (63 pts), boolean chains 42 (nesting depth added 26). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (Slider.Slider::onDragStart) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · CodeSnippet.CodeSnippet (cognitive 54) · ×1
  • CodeSnippet.CodeSnippet (cognitive 54) packages/react/src/components/CodeSnippet/CodeSnippet.tsx:156 — CodeSnippet.CodeSnippet has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 12, ternaries 10 (nesting depth added 13). Of this number, 38 points are the body's own statements and 16 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Pagination.Pagination (cognitive 54) · ×1
  • Pagination.Pagination (cognitive 54) packages/react/src/components/Pagination/Pagination.tsx:212 — Pagination.Pagination has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (21 pts), boolean chains 17, ternaries 13 (16 pts) (nesting depth added 4). Of this number, 21 points are the body's own statements and 33 belong to 13 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · ConditionBuilderItem.ConditionBuilderItem (cognitive 54) · ×1
  • ConditionBuilderItem.ConditionBuilderItem (cognitive 54) packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.tsx:64 — ConditionBuilderItem.ConditionBuilderItem has cognitive complexity 54 (threshold 15). Drivers by points: if/else 23 (26 pts), boolean chains 22, ternaries 5 (6 pts) (nesting depth added 4). Most of this is not in the body itself: 7 of the 54 points are its own statements and the rest belongs to 12 function items inside it that branch (getPropertyDetails, a function literal at line 159, getLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSDialog.updated (cognitive 53) · ×1
  • CDSDialog.updated (cognitive 53) packages/web-components/src/components/dialog/dialog.ts:177 — CDSDialog.updated has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (47 pts), boolean chains 6 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · FileUploader.FileUploader (cognitive 52) · ×1
  • FileUploader.FileUploader (cognitive 52) packages/react/src/components/FileUploader/FileUploader.tsx:175 — FileUploader.FileUploader has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (36 pts), boolean chains 8, ternaries 6 (8 pts) (nesting depth added 17). Most of this is not in the body itself: 3 of the 52 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 330, a function literal at line 250, a function literal at line 398, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · MenuItem.MenuItem (cognitive 49) · ×1
  • MenuItem.MenuItem (cognitive 49) packages/react/src/components/Menu/MenuItem.tsx:98 — MenuItem.MenuItem has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 17, ternaries 7 (8 pts) (nesting depth added 7). Most of this is not in the body itself: 13 of the 49 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 130, handleClick, handleKeyDown, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSDatePicker._handleStateChange (cognitive 48) · ×1
  • CDSDatePicker._handleStateChange (cognitive 48) packages/web-components/src/components/date-picker/next/components/date-picker.ts:245 — CDSDatePicker._handleStateChange has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 8, ternaries 3 (7 pts) (nesting depth added 18). Of this number, 46 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSDatePicker.updated (cognitive 47) · ×1
  • CDSDatePicker.updated (cognitive 47) packages/web-components/src/components/date-picker/next/components/date-picker.ts:946 — CDSDatePicker.updated has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (37 pts), boolean chains 5, ternaries 1 (5 pts) (nesting depth added 27). Of this number, 44 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CDSCoachmark.updated (cognitive 46) · ×1
  • CDSCoachmark.updated (cognitive 46) packages/web-components/src/components/coachmark/coachmark.ts:227 — CDSCoachmark.updated has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (34 pts), ternaries 2 (9 pts), boolean chains 3 (nesting depth added 26). Of this number, 22 points are the body's own statements and 24 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · FilterableMultiSelect.FilterableMultiSelect (cognitive 45) · ×1
  • FilterableMultiSelect.FilterableMultiSelect (cognitive 45) packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:331 — FilterableMultiSelect.FilterableMultiSelect has cognitive complexity 45 (threshold 15). Drivers by points: if/else 47 (67 pts), boolean chains 34, ternaries 22 (32 pts), match/switch 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (FilterableMultiSelect.FilterableMultiSelect::stateReducer) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · EditInPlace.EditInPlace (cognitive 44) · ×1
  • EditInPlace.EditInPlace (cognitive 44) packages/react/src/components/EditInPlace/EditInPlace.tsx:140 — EditInPlace.EditInPlace has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 13, ternaries 3 (4 pts), loops 1, match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 11 of the 44 points are its own statements and the rest belongs to 11 function items inside it that branch (onBlurHandler, handleToolbarMouseDown, onSaveHandler, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · FloatingMenu.FloatingMenu (cognitive 43) · ×1
  • FloatingMenu.FloatingMenu (cognitive 43) packages/react/src/internal/FloatingMenu.tsx:237 — FloatingMenu.FloatingMenu has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 12, ternaries 7 (10 pts) (nesting depth added 9). Most of this is not in the body itself: 11 of the 43 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 264, a function literal at line 386, focusMenuContent, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · OverflowMenu.OverflowMenu (cognitive 43) · ×1
  • OverflowMenu.OverflowMenu (cognitive 43) packages/react/src/components/OverflowMenu/OverflowMenu.tsx:260 — OverflowMenu.OverflowMenu has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21, boolean chains 16, ternaries 5, match/switch 1. Most of this is not in the body itself: 6 of the 43 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 339, a function literal at line 351, a function literal at line 361, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Tag.TagBase (cognitive 42) · ×1
  • Tag.TagBase (cognitive 42) packages/react/src/components/Tag/Tag.tsx:143 — Tag.TagBase has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 16 (25 pts), boolean chains 13, if/else 4 (nesting depth added 9). Of this number, 41 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NotificationsPanel.NotificationsPanel (cognitive 41) · ×1
  • NotificationsPanel.NotificationsPanel (cognitive 41) packages/react/src/components/NotificationsPanel/NotificationsPanel.tsx:350 — NotificationsPanel.NotificationsPanel has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 21, if/else 14 (17 pts), ternaries 3 (nesting depth added 3). Most of this is not in the body itself: 10 of the 41 points are its own statements and the rest belongs to 13 function items inside it that branch (renderNotification, a function literal at line 457, handleAnimationEnd, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Tabs.Tab (cognitive 40) · ×1
  • Tabs.Tab (cognitive 40) packages/react/src/components/Tabs/Tabs.tsx:1303 — Tabs.Tab has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 16, ternaries 6 (7 pts) (nesting depth added 6). Of this number, 17 points are the body's own statements and 23 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ibm-products-update-tearsheet.transform (cognitive 40) · ×1
  • ibm-products-update-tearsheet.transform (cognitive 40) packages/upgrade/transforms/ibm-products-update-tearsheet.js:309 — ibm-products-update-tearsheet.transform has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (32 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 21). Most of this is not in the body itself: 1 of the 40 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 397, 326, 345, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · icons-react-size-prop.transform (cognitive 39) · ×1
  • icons-react-size-prop.transform (cognitive 39) packages/upgrade/transforms/icons-react-size-prop.js:16 — icons-react-size-prop.transform has cognitive complexity 39 (threshold 15). Drivers by points: if/else 23 (27 pts), boolean chains 10, loops 1, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 3 of the 39 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 147, 98, 55, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSSlider._handleClick (cognitive 39) · ×1
  • CDSSlider._handleClick (cognitive 39) packages/web-components/src/components/slider/slider.ts:376 — CDSSlider._handleClick has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (27 pts), ternaries 2 (10 pts), boolean chains 2 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · MultiSelect.MultiSelect (cognitive 38) · ×1
  • MultiSelect.MultiSelect (cognitive 38) packages/react/src/components/MultiSelect/MultiSelect.tsx:299 — MultiSelect.MultiSelect has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 43, if/else 23 (40 pts), ternaries 13 (16 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (MultiSelect.MultiSelect::stateReducer) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · Search.Search (cognitive 37) · ×1
  • Search.Search (cognitive 37) packages/react/src/components/Search/Search.tsx:138 — Search.Search has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 12 (14 pts), boolean chains 12, if/else 9 (11 pts) (nesting depth added 4). Of this number, 23 points are the body's own statements and 14 belong to 4 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · fixEventsPlugin.fixEventsPlugin.<returned closure> (cognitive 37) · ×1
  • fixEventsPlugin.fixEventsPlugin.<returned closure> (cognitive 37) packages/react/src/components/DatePicker/plugins/fixEventsPlugin.ts:19 — fixEventsPlugin.fixEventsPlugin.<returned closure> has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 14, ternaries 1 (3 pts) (nesting depth added 7). None of this is in the body itself: all 37 points belong to 6 function items inside it that branch (handleKeydown, handleBlur, isEventInside, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · PaginationNav.PaginationNav (cognitive 37) · ×1
  • PaginationNav.PaginationNav (cognitive 37) packages/react/src/components/PaginationNav/PaginationNav.tsx:361 — PaginationNav.PaginationNav has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 16, if/else 10 (13 pts), ternaries 5 (7 pts), match/switch 1 (nesting depth added 5). Most of this is not in the body itself: 11 of the 37 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 466, pageWouldBeHidden, jumpToNext, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSDropdown._handleKeydownInner (cognitive 37) · ×1
  • CDSDropdown._handleKeydownInner (cognitive 37) packages/web-components/src/components/dropdown/dropdown.ts:229 — CDSDropdown._handleKeydownInner has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 2 (4 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 19). Of this number, 17 points are the body's own statements and 20 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSSlider.shouldUpdate (cognitive 37) · ×1
  • CDSSlider.shouldUpdate (cognitive 37) packages/web-components/src/components/slider/slider.ts:896 — CDSSlider.shouldUpdate has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (32 pts), boolean chains 5 (nesting depth added 12). None of this is in the body itself: all 37 points belong to 3 function literals inside it that branch (lines 902, 933, 943). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSPasswordInput.render (cognitive 37) · ×1
  • CDSPasswordInput.render (cognitive 37) packages/web-components/src/components/password-input/password-input.ts:140 — CDSPasswordInput.render has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 16, ternaries 10 (11 pts), if/else 7 (10 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · FilterableMultiSelect.FilterableMultiSelect · ×1
  • FilterableMultiSelect.FilterableMultiSelect::stateReducer (cognitive 36) packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:694 — FilterableMultiSelect.FilterableMultiSelect::stateReducer has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 6, ternaries 2 (4 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (FilterableMultiSelect.FilterableMultiSelect) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · NumberInput.NumberInput · ×1
  • NumberInput.NumberInput::handleStep (cognitive 36) REDACTED:845 — NumberInput.NumberInput::handleStep has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (NumberInput.NumberInput) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · NumberInput.NumberInput (cognitive 36) · ×1
  • NumberInput.NumberInput (cognitive 36) REDACTED:594 — NumberInput.NumberInput has cognitive complexity 36 (threshold 15). Drivers by points: if/else 45 (70 pts), ternaries 29 (41 pts), boolean chains 35 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (NumberInput.NumberInput::handleStep) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · PasswordInput.PasswordInput (cognitive 36) · ×1
  • PasswordInput.PasswordInput (cognitive 36) packages/react/src/components/TextInput/PasswordInput.tsx:182 — PasswordInput.PasswordInput has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 20, if/else 9 (12 pts), ternaries 4 (nesting depth added 3). Of this number, 33 points are the body's own statements and 3 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · TextInput.TextInput (cognitive 36) · ×1
  • TextInput.TextInput (cognitive 36) packages/react/src/components/TextInput/TextInput.tsx:192 — TextInput.TextInput has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 17, if/else 7 (12 pts), ternaries 6 (7 pts) (nesting depth added 6). Of this number, 23 points are the body's own statements and 13 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Resizer.Resizer (cognitive 36) · ×1
  • Resizer.Resizer (cognitive 36) packages/react/src/components/Resizer/Resizer.tsx:56 — Resizer.Resizer has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25 (27 pts), ternaries 4 (5 pts), boolean chains 4 (nesting depth added 3). None of this is in the body itself: all 36 points belong to 16 function items inside it that branch (handleDoubleClick, a function literal at line 118, a function literal at line 159, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · enable-v12-overflowmenu.transform (cognitive 36) · ×1
  • enable-v12-overflowmenu.transform (cognitive 36) packages/upgrade/transforms/enable-v12-overflowmenu.js:29 — enable-v12-overflowmenu.transform has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 5, loops 1 (nesting depth added 10). Most of this is not in the body itself: 4 of the 36 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 95, a function literal at line 86, a function literal at line 38, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSOverflowMenu.updated (cognitive 36) · ×1
  • CDSOverflowMenu.updated (cognitive 36) packages/web-components/src/components/overflow-menu/overflow-menu.ts:410 — CDSOverflowMenu.updated has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 7, ternaries 1 (nesting depth added 10). Of this number, 32 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Tile.ExpandableTile (cognitive 35) · ×1
  • Tile.ExpandableTile (cognitive 35) packages/react/src/components/Tile/Tile.tsx:780 — Tile.ExpandableTile has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 10 (16 pts), boolean chains 10, if/else 8 (9 pts) (nesting depth added 7). Of this number, 16 points are the body's own statements and 19 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ItemOptionForValueField.ItemOptionForValueField (cognitive 35) · ×1
  • ItemOptionForValueField.ItemOptionForValueField (cognitive 35) packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.tsx:43 — ItemOptionForValueField.ItemOptionForValueField has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 9 (14 pts), boolean chains 6 (nesting depth added 8). Most of this is not in the body itself: 7 of the 35 points are its own statements and the rest belongs to 7 function items inside it that branch (onClickHandler, a function literal at line 220, a function literal at line 120, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSTextInput.render (cognitive 35) · ×1
  • CDSTextInput.render (cognitive 35) packages/web-components/src/components/text-input/text-input.ts:349 — CDSTextInput.render has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 18, ternaries 12 (13 pts), if/else 4 (nesting depth added 1). Of this number, 34 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · Tearsheet.TearsheetInternal (cognitive 34) · ×1
  • Tearsheet.TearsheetInternal (cognitive 34) packages/react/src/components/Tearsheet/Tearsheet.tsx:190 — Tearsheet.TearsheetInternal has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 8, ternaries 7 (nesting depth added 6). Most of this is not in the body itself: 11 of the 34 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 342, 269, 256, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · Column.getClassNameForBreakpoints (cognitive 33) · ×1
  • Column.getClassNameForBreakpoints (cognitive 33) packages/react/src/components/Grid/Column.tsx:364 — Column.getClassNameForBreakpoints has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (23 pts), ternaries 2 (8 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TreeNode.TreeNode · ×1
  • TreeNode.TreeNode::handleKeyDown (cognitive 33) packages/react/src/components/TreeView/TreeNode.tsx:398 — TreeNode.TreeNode::handleKeyDown has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TreeNode.TreeNode) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · refactor-to-callout.transform (cognitive 32) · ×1
  • refactor-to-callout.transform (cognitive 32) packages/upgrade/transforms/refactor-to-callout.js:15 — refactor-to-callout.transform has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 10). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 41, a function literal at line 135, a function literal at line 113, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSCodeSnippet.render (cognitive 32) · ×1
  • CDSCodeSnippet.render (cognitive 32) packages/web-components/src/components/code-snippet/code-snippet.ts:372 — CDSCodeSnippet.render has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 16 (17 pts), boolean chains 9, if/else 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CDSDropdown.render (cognitive 32) · ×1
  • CDSDropdown.render (cognitive 32) packages/web-components/src/components/dropdown/dropdown.ts:1301 — CDSDropdown.render has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 21 (25 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · CDSSlider.render (cognitive 32) · ×1
  • CDSSlider.render (cognitive 32) packages/web-components/src/components/slider/slider.ts:969 — CDSSlider.render has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 13 (22 pts), boolean chains 10 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DataTable.DataTable (cognitive 31) · ×1
  • DataTable.DataTable (cognitive 31) packages/react/src/components/DataTable/DataTable.tsx:351 — DataTable.DataTable has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 12, ternaries 10 (11 pts), if/else 8 (nesting depth added 1). Most of this is not in the body itself: 3 of the 31 points are its own statements and the rest belongs to 13 function items inside it that branch (getSelectionProps, getExpandHeaderProps, a function literal at line 693, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Calendar.Calendar (cognitive 31) · ×1
  • Calendar.Calendar (cognitive 31) packages/react/src/components/DatePicker/next/components/Calendar.tsx:53 — Calendar.Calendar has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 12, ternaries 4 (6 pts) (nesting depth added 3). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 114, 249, 97, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ConditionBuilderContent.ConditionBuilderContent (cognitive 31) · ×1
  • ConditionBuilderContent.ConditionBuilderContent (cognitive 31) packages/react/src/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.tsx:41 — ConditionBuilderContent.ConditionBuilderContent has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 10, if/else 9 (nesting depth added 5). Most of this is not in the body itself: 10 of the 31 points are its own statements and the rest belongs to 6 function items inside it that branch (onChangeHandler, a function literal at line 91, onStartConditionBuilder, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CheckboxGroup.CheckboxGroup (cognitive 30) · ×1
  • CheckboxGroup.CheckboxGroup (cognitive 30) packages/react/src/components/CheckboxGroup/CheckboxGroup.tsx:54 — CheckboxGroup.CheckboxGroup has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 11 (17 pts), boolean chains 12, if/else 1 (nesting depth added 6). Of this number, 15 points are the body's own statements and 15 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · form-associated.FormAssociatedMixin (cognitive 30) · ×1
  • form-associated.FormAssociatedMixin (cognitive 30) packages/web-components/src/globals/mixins/form-associated.ts:43 — form-associated.FormAssociatedMixin has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 10, loops 1 (2 pts) (nesting depth added 5). Of this number, 28 points are the body's own statements and 2 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · handleKeyPressForPopover (cognitive 30) · ×1
  • handleKeyPressForPopover (cognitive 30) packages/react/src/components/ConditionBuilder/utils/handleKeyboardEvents.js:68 — handleKeyPressForPopover has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 1 (2 pts), boolean chains 1, other 1 (nesting depth added 15). Of this number, 26 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · handleKeyboardEvents.handleKeyPressForMainContent (cognitive 29) · ×1
  • handleKeyboardEvents.handleKeyPressForMainContent (cognitive 29) packages/react/src/components/ConditionBuilder/utils/handleKeyboardEvents.js:215 — handleKeyboardEvents.handleKeyPressForMainContent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (28 pts), match/switch 1 (nesting depth added 14). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · CDSOverflowMenuBody._handleKeydown (cognitive 29) · ×1
  • CDSOverflowMenuBody._handleKeydown (cognitive 29) packages/web-components/src/components/overflow-menu/overflow-menu-body.ts:135 — CDSOverflowMenuBody._handleKeydown has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 6 (nesting depth added 13). Of this number, 20 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSModal.updated (cognitive 29) · ×1
  • CDSModal.updated (cognitive 29) packages/web-components/src/components/modal/modal.ts:373 — CDSModal.updated has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 3 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CDSNumberInput.willUpdate (cognitive 29) · ×1
  • CDSNumberInput.willUpdate (cognitive 29) packages/web-components/src/components/number-input/number-input.ts:504 — CDSNumberInput.willUpdate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · storySort (cognitive 29) · ×1
  • storySort (cognitive 29) packages/react/.storybook/preview.js:231 — storySort has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 5, other 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSDatePicker._setCalendar (cognitive 28) · ×1
  • CDSDatePicker._setCalendar (cognitive 28) packages/web-components/src/components/date-picker/date-picker.ts:286 — CDSDatePicker._setCalendar has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 3 (nesting depth added 10). Of this number, 23 points are the body's own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSTable.updated (cognitive 28) · ×1
  • CDSTable.updated (cognitive 28) packages/web-components/src/components/data-table/table.ts:742 — CDSTable.updated has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 2 (nesting depth added 6). Of this number, 20 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AddSelectBody.AddSelectBody (cognitive 27) · ×1
  • AddSelectBody.AddSelectBody (cognitive 27) packages/react/src/components/AddSelect/AddSelectBody.tsx:130 — AddSelectBody.AddSelectBody has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 9, match/switch 1 (nesting depth added 5). Most of this is not in the body itself: 8 of the 27 points are its own statements and the rest belongs to 5 function items inside it that branch (handleKeyDown, a function literal at line 191, getItems, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ibm-products-update-http-errors.transform (cognitive 27) · ×1
  • ibm-products-update-http-errors.transform (cognitive 27) packages/upgrade/transforms/ibm-products-update-http-errors.js:22 — ibm-products-update-http-errors.transform has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 1 (nesting depth added 14). Most of this is not in the body itself: 3 of the 27 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 35, 127, 76, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSSidePanel.render (cognitive 27) · ×1
  • CDSSidePanel.render (cognitive 27) packages/web-components/src/components/side-panel/side-panel.ts:924 — CDSSidePanel.render has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 17, boolean chains 9, if/else 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · Select.Select (cognitive 26) · ×1
  • Select.Select (cognitive 26) packages/react/src/components/Select/Select.tsx:149 — Select.Select has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 19, if/else 4, ternaries 3. Of this number, 18 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · ProgressBar.ProgressBar (cognitive 26) · ×1
  • ProgressBar.ProgressBar (cognitive 26) packages/react/src/components/ProgressBar/ProgressBar.tsx:64 — ProgressBar.ProgressBar has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8, ternaries 4 (nesting depth added 3). Of this number, 17 points are the body's own statements and 9 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · OptionsTile.OptionsTile (cognitive 26) · ×1
  • OptionsTile.OptionsTile (cognitive 26) packages/react/src/components/OptionsTile/OptionsTile.tsx:123 — OptionsTile.OptionsTile has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 11, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to 4 function items inside it that branch (renderTitle, expand, collapse, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSMultiSelect.updated (cognitive 26) · ×1
  • CDSMultiSelect.updated (cognitive 26) packages/web-components/src/components/multi-select/multi-select.ts:866 — CDSMultiSelect.updated has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 5 (nesting depth added 8). Of this number, 21 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSSelect.render (cognitive 26) · ×1
  • CDSSelect.render (cognitive 26) packages/web-components/src/components/select/select.ts:414 — CDSSelect.render has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 11 (15 pts), boolean chains 9, if/else 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · CDSTreeNode.render (cognitive 26) · ×1
  • CDSTreeNode.render (cognitive 26) packages/web-components/src/components/tree-view/tree-node.ts:258 — CDSTreeNode.render has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 9 (24 pts), boolean chains 1, if/else 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · icons.icons.validate (cognitive 25) · ×1
  • icons.icons.validate (cognitive 25) packages/icon-build-helpers/src/metadata/extensions/icons.js:65 — icons.icons.validate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 6 (9 pts) (nesting depth added 13). Of this number, 22 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DatePickerInput.DatePickerInput (cognitive 25) · ×1
  • DatePickerInput.DatePickerInput (cognitive 25) packages/react/src/components/DatePicker/next/components/DatePickerInput.tsx:181 — DatePickerInput.DatePickerInput has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 15, ternaries 6 (10 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · DatePicker.DatePicker (cognitive 25) · ×1
  • DatePicker.DatePicker (cognitive 25) packages/react/src/components/DatePicker/next/components/DatePicker.tsx:107 — DatePicker.DatePicker has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (9 pts), ternaries 4 (5 pts) (nesting depth added 2). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 176, handleIconClick, a function literal at line 226, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · RadioButtonGroup.RadioButtonGroup (cognitive 25) · ×1
  • RadioButtonGroup.RadioButtonGroup (cognitive 25) packages/react/src/components/RadioButtonGroup/RadioButtonGroup.tsx:144 — RadioButtonGroup.RadioButtonGroup has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, ternaries 6 (7 pts), if/else 5 (6 pts) (nesting depth added 2). Of this number, 18 points are the body's own statements and 7 belong to 3 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · Tabs.TabListVertical (cognitive 25) · ×1
  • Tabs.TabListVertical (cognitive 25) packages/react/src/components/Tabs/Tabs.tsx:974 — Tabs.TabListVertical has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 6). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 7 function items inside it that branch (onKeyDown, a function literal at line 1057, a function literal at line 1042, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · useGuidebannerScroll.useGuidebannerScroll (cognitive 25) · ×1
  • useGuidebannerScroll.useGuidebannerScroll (cognitive 25) packages/react/src/components/Guidebanner/useGuidebannerScroll.ts:24 — useGuidebannerScroll.useGuidebannerScroll has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, boolean chains 6, ternaries 4. Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 15 function literals inside it that branch (lines 208, 57, 108, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ScrollGradient.ScrollGradient (cognitive 25) · ×1
  • ScrollGradient.ScrollGradient (cognitive 25) packages/react/src/components/ScrollGradient/ScrollGradient.tsx:41 — ScrollGradient.ScrollGradient has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 3, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 83, setGradientOnIntersection, a function literal at line 130, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · swipeEvents.registerSwipeEvents (cognitive 25) · ×1
  • swipeEvents.registerSwipeEvents (cognitive 25) packages/utilities/src/carousel/swipeEvents.ts:9 — swipeEvents.registerSwipeEvents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 3 (nesting depth added 8). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 4 function items inside it that branch (touchEndHandler, mouseUpHandler, wheelHandler, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · FloatingController.computePlacement (cognitive 25) · ×1
  • FloatingController.computePlacement (cognitive 25) packages/web-components/src/globals/controllers/floating-controller.ts:76 — FloatingController.computePlacement has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 9 (13 pts), if/else 4 (6 pts), boolean chains 5, match/switch 1 (nesting depth added 6). Of this number, 24 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSAddSelectBody.render (cognitive 25) · ×1
  • CDSAddSelectBody.render (cognitive 25) packages/web-components/src/components/add-select/add-select-body.ts:277 — CDSAddSelectBody.render has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (22 pts), boolean chains 3 (nesting depth added 14). Of this number, 20 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CDSDropdown._handleUserInitiatedToggle (cognitive 25) · ×1
  • CDSDropdown._handleUserInitiatedToggle (cognitive 25) packages/web-components/src/components/dropdown/dropdown.ts:686 — CDSDropdown._handleUserInitiatedToggle has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 14). Of this number, 15 points are the body's own statements and 10 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CDSComboBox.updated (cognitive 25) · ×1
  • CDSComboBox.updated (cognitive 25) packages/web-components/src/components/combo-box/combo-box.ts:624 — CDSComboBox.updated has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 4 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CDSSidePanel.updated (cognitive 25) · ×1
  • CDSSidePanel.updated (cognitive 25) packages/web-components/src/components/side-panel/side-panel.ts:1125 — CDSSidePanel.updated has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CDSTearsheetHeaderContent._handleDecoratorChange (cognitive 25) · ×1
  • CDSTearsheetHeaderContent._handleDecoratorChange (cognitive 25) packages/web-components/src/components/tearsheet/tearsheet-header-content.ts:312 — CDSTearsheetHeaderContent._handleDecoratorChange has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bob-bug-triage.parseBobStreamLine (cognitive 24) · ×1
  • bob-bug-triage.parseBobStreamLine (cognitive 24) actions/issues/src/plugins/bob-bug-triage.js:205 — bob-bug-triage.parseBobStreamLine has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 7 (8 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Dialog.Dialog (cognitive 24) · ×1
  • Dialog.Dialog (cognitive 24) packages/react/src/components/Dialog/Dialog.tsx:138 — Dialog.Dialog has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 10, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 5 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 191, a function literal at line 235, handleModalBackdropClick, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · FileUploaderDropContainer.FileUploaderDropContainer (cognitive 24) · ×1
  • FileUploaderDropContainer.FileUploaderDropContainer (cognitive 24) packages/react/src/components/FileUploader/FileUploaderDropContainer.tsx:112 — FileUploaderDropContainer.FileUploaderDropContainer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3, error handling 1 (2 pts), ternaries 2 (nesting depth added 4). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 149, handleDrop, a function literal at line 193, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · NumberInput.validateNumberSeparators (cognitive 24) · ×1
  • NumberInput.validateNumberSeparators (cognitive 24) REDACTED:460 — NumberInput.validateNumberSeparators has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 6, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SideNav.SideNav (cognitive 24) · ×1
  • SideNav.SideNav (cognitive 24) packages/react/src/components/UIShell/SideNav.tsx:53 — SideNav.SideNav has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 9, ternaries 4. Of this number, 15 points are the body's own statements and 9 belong to 6 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · upgrade.upgrade (cognitive 24) · ×1
  • upgrade.upgrade (cognitive 24) packages/upgrade/src/commands/upgrade.js:14 — upgrade.upgrade has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 9). Of this number, 23 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · wc-add-barrel-imports.transform (cognitive 24) · ×1
  • wc-add-barrel-imports.transform (cognitive 24) packages/upgrade/transforms/wc-add-barrel-imports.js:35 — wc-add-barrel-imports.transform has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 4 (8 pts), boolean chains 6, ternaries 2 (nesting depth added 7). Of this number, 17 points are the body's own statements and 7 belong to 5 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSRadioButton.updated (cognitive 24) · ×1
  • CDSRadioButton.updated (cognitive 24) packages/web-components/src/components/radio-button/radio-button.ts:383 — CDSRadioButton.updated has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Notification.ActionableNotification (cognitive 23) · ×1
  • Notification.ActionableNotification (cognitive 23) packages/react/src/components/Notification/Notification.tsx:929 — Notification.ActionableNotification has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 14, if/else 5, ternaries 4. Of this number, 15 points are the body's own statements and 8 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · NumberInput.parseNumberWithLocale (cognitive 23) · ×1
  • NumberInput.parseNumberWithLocale (cognitive 23) REDACTED:371 — NumberInput.parseNumberWithLocale has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 6, loops 1 (nesting depth added 6). Of this number, 16 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConditionBuilderItemDate.ConditionBuilderItemDate (cognitive 23) · ×1
  • ConditionBuilderItemDate.ConditionBuilderItemDate (cognitive 23) packages/react/src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.tsx:26 — ConditionBuilderItemDate.ConditionBuilderItemDate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9, ternaries 2 (nesting depth added 3). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to 4 function items inside it that branch (getParsedDate, onCloseHandler, onKeyPressHandler, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · InterstitialScreenFooter.InterstitialScreenFooter (cognitive 23) · ×1
  • InterstitialScreenFooter.InterstitialScreenFooter (cognitive 23) packages/react/src/components/InterstitialScreen/InterstitialScreenFooter.tsx:72 — InterstitialScreenFooter.InterstitialScreenFooter has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 14, if/else 5, ternaries 3 (4 pts) (nesting depth added 1). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 4 function items inside it that branch (getFooterContent, handleAction, a function literal at line 105, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · SidePanel.SidePanel · ×1
  • SidePanel.SidePanel::renderHeader (cognitive 23) packages/react/src/components/SidePanel/SidePanel.tsx:848 — SidePanel.SidePanel::renderHeader has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 19, if/else 3, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · CDSMenu._fitValue (cognitive 23) · ×1
  • CDSMenu._fitValue (cognitive 23) packages/web-components/src/components/menu/menu.ts:344 — CDSMenu._fitValue has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 7, if/else 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CDSDropdown._handleKeypressInner (cognitive 23) · ×1
  • CDSDropdown._handleKeypressInner (cognitive 23) packages/web-components/src/components/dropdown/dropdown.ts:448 — CDSDropdown._handleKeypressInner has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSActionableNotification._handleBlur (cognitive 23) · ×1
  • CDSActionableNotification._handleBlur (cognitive 23) packages/web-components/src/components/notification/actionable-notification.ts:148 — CDSActionableNotification._handleBlur has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (10 pts) (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · CDSTreeNode.updated (cognitive 23) · ×1
  • CDSTreeNode.updated (cognitive 23) packages/web-components/src/components/tree-view/tree-node.ts:217 — CDSTreeNode.updated has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 7 (9 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · postcss-fix-host-pseudo.fixHostPseudo.Once (cognitive 23) · ×1
  • postcss-fix-host-pseudo.fixHostPseudo.Once (cognitive 23) packages/web-components/tools/postcss-fix-host-pseudo.js:58 — postcss-fix-host-pseudo.fixHostPseudo.Once has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (6 pts), boolean chains 5 (nesting depth added 11). None of this is in the body itself: all 23 points belong to one function literal inside it that branches (line 61). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · Button.Button (cognitive 22) · ×1
  • Button.Button (cognitive 22) packages/react/src/components/Button/Button.tsx:147 — Button.Button has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ContentSwitcher.ContentSwitcher (cognitive 22) · ×1
  • ContentSwitcher.ContentSwitcher (cognitive 22) packages/react/src/components/ContentSwitcher/ContentSwitcher.tsx:75 — ContentSwitcher.ContentSwitcher has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, ternaries 1 (nesting depth added 4). None of this is in the body itself: all 22 points belong to 6 function items inside it that branch (handleChildChange, a function literal at line 184, a function literal at line 95, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSNumberInput._getInputValidity (cognitive 22) · ×1
  • CDSNumberInput._getInputValidity (cognitive 22) packages/web-components/src/components/number-input/number-input.ts:604 — CDSNumberInput._getInputValidity has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · categories.categories.validate (cognitive 21) · ×1
  • categories.categories.validate (cognitive 21) packages/icon-build-helpers/src/metadata/extensions/categories.js:74 — categories.categories.validate has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 4 (9 pts) (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · Menu.Menu · ×1
  • Menu.Menu::fitValue (cognitive 21) packages/react/src/components/Menu/Menu.tsx:301 — Menu.Menu::fitValue has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, if/else 5. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CardActions.CardActions (cognitive 21) · ×1
  • CardActions.CardActions (cognitive 21) packages/react/src/components/Card/CardActions.tsx:79 — CardActions.CardActions has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 17, if/else 2, ternaries 1 (2 pts) (nesting depth added 1). None of this is in the body itself: all 21 points belong to 3 function literals inside it that branch (lines 94, 160, 173). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · Checkbox.Checkbox (cognitive 21) · ×1
  • Checkbox.Checkbox (cognitive 21) packages/react/src/components/Checkbox/Checkbox.tsx:114 — Checkbox.Checkbox has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (8 pts), boolean chains 7, if/else 6 (nesting depth added 2). Of this number, 13 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · Tile.ClickableTile (cognitive 21) · ×1
  • Tile.ClickableTile (cognitive 21) packages/react/src/components/Tile/Tile.tsx:222 — Tile.ClickableTile has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (7 pts), ternaries 3 (nesting depth added 2). Of this number, 19 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · InterstitialScreenBody.InterstitialScreenBody (cognitive 21) · ×1
  • InterstitialScreenBody.InterstitialScreenBody (cognitive 21) packages/react/src/components/InterstitialScreen/InterstitialScreenBody.tsx:56 — InterstitialScreenBody.InterstitialScreenBody has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 6 (7 pts), boolean chains 5 (nesting depth added 3). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 139, renderBody, a function literal at line 81, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · PageHeader.PageHeader (cognitive 21) · ×1
  • PageHeader.PageHeader (cognitive 21) packages/react/src/components/PageHeader/PageHeader.tsx:117 — PageHeader.PageHeader has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 5, boolean chains 4 (nesting depth added 3). None of this is in the body itself: all 21 points belong to 6 function literals inside it that branch (lines 188, 150, 154, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSNumberInput.render (cognitive 21) · ×1
  • CDSNumberInput.render (cognitive 21) packages/web-components/src/components/number-input/number-input.ts:833 — CDSNumberInput.render has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 11, boolean chains 8, if/else 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · fn · ×1
  • fn::enter (cognitive 21) packages/icon-build-helpers/src/metadata/extensions/output/optimizer.js:32 — fn::enter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · run.runPlugins (cognitive 20) · ×1
  • run.runPlugins (cognitive 20) actions/issues/src/run.js:21 — run.runPlugins has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (6 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TreeNode.TreeNode (cognitive 20) · ×1
  • TreeNode.TreeNode (cognitive 20) packages/react/src/components/TreeView/TreeNode.tsx:250 — TreeNode.TreeNode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 35 (51 pts), ternaries 11 (17 pts), boolean chains 10 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TreeNode.TreeNode::handleKeyDown) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · enable-v12-tile-default-icons.transform (cognitive 20) · ×1
  • enable-v12-tile-default-icons.transform (cognitive 20) packages/upgrade/transforms/enable-v12-tile-default-icons.js:19 — enable-v12-tile-default-icons.transform has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3 (nesting depth added 6). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 40, 85, 121, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · enable-v12-tile-radio-icons.transform (cognitive 20) · ×1
  • enable-v12-tile-radio-icons.transform (cognitive 20) packages/upgrade/transforms/enable-v12-tile-radio-icons.js:19 — enable-v12-tile-radio-icons.transform has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3 (nesting depth added 6). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 40, 85, 121, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSActionSet._renderActionsFromProp (cognitive 20) · ×1
  • CDSActionSet._renderActionsFromProp (cognitive 20) packages/web-components/src/components/action-set/action-set.ts:379 — CDSActionSet._renderActionsFromProp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, ternaries 2 (nesting depth added 6). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 409, 387, 407). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSCodeSnippet.updated (cognitive 20) · ×1
  • CDSCodeSnippet.updated (cognitive 20) packages/web-components/src/components/code-snippet/code-snippet.ts:323 — CDSCodeSnippet.updated has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (20 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSNumberInput._handleStep (cognitive 20) · ×1
  • CDSNumberInput._handleStep (cognitive 20) packages/web-components/src/components/number-input/number-input.ts:683 — CDSNumberInput._handleStep has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7, ternaries 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · executeBob (cognitive 20) · ×1
  • executeBob (cognitive 20) actions/issues/src/plugins/bob-bug-triage.js:309 — executeBob has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (9 pts), other 4, ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 3). None of this is in the body itself: all 20 points belong to 9 function items inside it that branch (a function literal at line 426, (anonymous)::handleStdoutLine, a function literal at line 373, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · DatePickerInput.DatePickerInput (cognitive 19) · ×1
  • DatePickerInput.DatePickerInput (cognitive 19) packages/react/src/components/DatePickerInput/DatePickerInput.tsx:152 — DatePickerInput.DatePickerInput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 5 (6 pts) (nesting depth added 1). Of this number, 17 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · Column.getClassNameForFlexGridBreakpoints (cognitive 19) · ×1
  • Column.getClassNameForFlexGridBreakpoints (cognitive 19) packages/react/src/components/Grid/Column.tsx:437 — Column.getClassNameForFlexGridBreakpoints has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ibm-products-update-pdlc-status.transformer (cognitive 19) · ×1
  • ibm-products-update-pdlc-status.transformer (cognitive 19) packages/upgrade/transforms/ibm-products-update-pdlc-status.js:23 — ibm-products-update-pdlc-status.transformer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 8). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 36). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · keyboard-utils.mapKeyboardToStateMachineEvent (cognitive 19) · ×1
  • keyboard-utils.mapKeyboardToStateMachineEvent (cognitive 19) packages/utilities/src/date-picker/primitives/keyboard-utils.ts:46 — keyboard-utils.mapKeyboardToStateMachineEvent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (19 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CDSButton.render (cognitive 19) · ×1
  • CDSButton.render (cognitive 19) packages/web-components/src/components/button/button.ts:268 — CDSButton.render has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 8, if/else 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSComboBox._handleInput (cognitive 19) · ×1
  • CDSComboBox._handleInput (cognitive 19) packages/web-components/src/components/combo-box/combo-box.ts:109 — CDSComboBox._handleInput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSNumberInput._handleBlur (cognitive 19) · ×1
  • CDSNumberInput._handleBlur (cognitive 19) packages/web-components/src/components/number-input/number-input.ts:199 — CDSNumberInput._handleBlur has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 5 (8 pts), boolean chains 2 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · main (cognitive 19) · ×1
  • main (cognitive 19) tasks/prepare-v12-storybook.mjs:442 — main has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 3 (6 pts), loops 3 (4 pts), boolean chains 1, other 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Tooltip.Tooltip (cognitive 18) · ×1
  • Tooltip.Tooltip (cognitive 18) packages/react/src/components/Tooltip/Tooltip.tsx:118 — Tooltip.Tooltip has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 6, ternaries 2. Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 189, onMouseMove, a function literal at line 155, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · TableToolbarSearch.TableToolbarSearch (cognitive 18) · ×1
  • TableToolbarSearch.TableToolbarSearch (cognitive 18) packages/react/src/components/DataTable/TableToolbarSearch.tsx:135 — TableToolbarSearch.TableToolbarSearch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, ternaries 4 (nesting depth added 2). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 5 function items inside it that branch (handleExpand, a function literal at line 171, a function literal at line 179, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Slider.Slider · ×1
  • Slider.Slider::onDragStart (cognitive 18) packages/react/src/components/Slider/Slider.tsx:597 — Slider.Slider::onDragStart has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Slider.Slider) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · HeaderMenu.HeaderMenu (cognitive 18) · ×1
  • HeaderMenu.HeaderMenu (cognitive 18) packages/react/src/components/UIShell/HeaderMenu.tsx:103 — HeaderMenu.HeaderMenu has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (handleMenuClose, handleOnClick, a function literal at line 201, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CoachmarkContent.CoachmarkContent (cognitive 18) · ×1
  • CoachmarkContent.CoachmarkContent (cognitive 18) packages/react/src/components/Coachmark/CoachmarkContent.tsx:50 — CoachmarkContent.CoachmarkContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4 (nesting depth added 4). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 71, 84, 97, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ibm-products-update-userprofileimage.transform (cognitive 18) · ×1
  • ibm-products-update-userprofileimage.transform (cognitive 18) packages/upgrade/transforms/ibm-products-update-userprofileimage.js:22 — ibm-products-update-userprofileimage.transform has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 76, ensureImport, a function literal at line 53, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSPopover.updated (cognitive 18) · ×1
  • CDSPopover.updated (cognitive 18) packages/web-components/src/components/popover/popover.ts:417 — CDSPopover.updated has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 4 (6 pts), boolean chains 4 (nesting depth added 7). Of this number, 13 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSMultiSelect._handleClickInner (cognitive 18) · ×1
  • CDSMultiSelect._handleClickInner (cognitive 18) packages/web-components/src/components/multi-select/multi-select.ts:210 — CDSMultiSelect._handleClickInner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSActionableNotification.updated (cognitive 18) · ×1
  • CDSActionableNotification.updated (cognitive 18) packages/web-components/src/components/notification/actionable-notification.ts:268 — CDSActionableNotification.updated has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSPageHeaderActionsSet.setupOverflowDetection (cognitive 18) · ×1
  • CDSPageHeaderActionsSet.setupOverflowDetection (cognitive 18) packages/web-components/src/components/page-header/page-header-actions-set/page-header-actions-set.ts:102 — CDSPageHeaderActionsSet.setupOverflowDetection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, loops 2 (nesting depth added 2). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 3 function items inside it that branch (checkOverflow, a function literal at line 172, a function literal at line 198). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSSidePanel.getFocusable (cognitive 18) · ×1
  • CDSSidePanel.getFocusable (cognitive 18) packages/web-components/src/components/side-panel/side-panel.ts:149 — CDSSidePanel.getFocusable has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3 (nesting depth added 2). Of this number, 16 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · manageComment (cognitive 18) · ×1
  • manageComment (cognitive 18) actions/issues/src/manage-comment.js:124 — manageComment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · publish.publish (cognitive 17) · ×1
  • publish.publish (cognitive 17) packages/cli/src/commands/publish.js:44 — publish.publish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · 2020-02-17-update-pictogram-files.migrate (cognitive 17) · ×1
  • 2020-02-17-update-pictogram-files.migrate (cognitive 17) packages/icon-build-helpers/src/metadata/migrations/2020-02-17-update-pictogram-files.js:16 — 2020-02-17-update-pictogram-files.migrate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.Toggletip (cognitive 17) · ×1
  • index.Toggletip (cognitive 17) packages/react/src/components/Toggletip/index.tsx:103 — index.Toggletip has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 6 function items inside it that branch (onKeyDown, a function literal at line 173, a function literal at line 180, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · useResizeObserver.useResizeObserver (cognitive 17) · ×1
  • useResizeObserver.useResizeObserver (cognitive 17) packages/react/src/internal/useResizeObserver.ts:10 — useResizeObserver.useResizeObserver has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 6 function literals inside it that branch (lines 33, 76, 32, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · MultiSelect.MultiSelect · ×1
  • MultiSelect.MultiSelect::stateReducer (cognitive 17) packages/react/src/components/MultiSelect/MultiSelect.tsx:616 — MultiSelect.MultiSelect::stateReducer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (MultiSelect.MultiSelect) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · RadioTile.RadioTile (cognitive 17) · ×1
  • RadioTile.RadioTile (cognitive 17) packages/react/src/components/RadioTile/RadioTile.tsx:113 — RadioTile.RadioTile has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (7 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 2). Of this number, 11 points are the body's own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · TearsheetHeaderContent.TearsheetHeaderContent (cognitive 17) · ×1
  • TearsheetHeaderContent.TearsheetHeaderContent (cognitive 17) packages/react/src/components/Tearsheet/TearsheetHeaderContent.tsx:61 — TearsheetHeaderContent.TearsheetHeaderContent has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (10 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · json-pointer-references.jsonPointerReferences (cognitive 17) · ×1
  • json-pointer-references.jsonPointerReferences (cognitive 17) packages/themes/style-dictionary/preprocessors/json-pointer-references.js:29 — json-pointer-references.jsonPointerReferences has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 2 (nesting depth added 3). None of this is in the body itself: all 17 points belong to 3 function items inside it that branch (walk, lookup, resolve). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ibm-products-update-tearsheet.transformTearsheetElement (cognitive 17) · ×1
  • ibm-products-update-tearsheet.transformTearsheetElement (cognitive 17) packages/upgrade/transforms/ibm-products-update-tearsheet.js:208 — ibm-products-update-tearsheet.transformTearsheetElement has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 2. Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 222). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · sort-prop-types.transform (cognitive 17) · ×1
  • sort-prop-types.transform (cognitive 17) packages/upgrade/transforms/sort-prop-types.js:15 — sort-prop-types.transform has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (nesting depth added 4). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 3 function items inside it that branch (a function literal at line 30, getPropName, a function literal at line 60). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · carousel.initCarousel.performAnimation (cognitive 17) · ×1
  • carousel.initCarousel.performAnimation (cognitive 17) packages/utilities/src/carousel/carousel.ts:310 — carousel.initCarousel.performAnimation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4 (nesting depth added 5). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 348, 318, 370). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSSearch._handleKeys (cognitive 17) · ×1
  • CDSSearch._handleKeys (cognitive 17) packages/web-components/src/components/search/search.ts:126 — CDSSearch._handleKeys has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSDismissibleTag._handleClick (cognitive 17) · ×1
  • CDSDismissibleTag._handleClick (cognitive 17) packages/web-components/src/components/tag/dismissible-tag.ts:87 — CDSDismissibleTag._handleClick has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CDSRadioButton._handleKeydown (cognitive 17) · ×1
  • CDSRadioButton._handleKeydown (cognitive 17) packages/web-components/src/components/radio-button/radio-button.ts:196 — CDSRadioButton._handleKeydown has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSAddSelectSelectionSummaryItem.render (cognitive 17) · ×1
  • CDSAddSelectSelectionSummaryItem.render (cognitive 17) packages/web-components/src/components/add-select/add-select-selection-summary-item.ts:166 — CDSAddSelectSelectionSummaryItem.render has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CDSComboBox._filterItems (cognitive 17) · ×1
  • CDSComboBox._filterItems (cognitive 17) packages/web-components/src/components/combo-box/combo-box.ts:201 — CDSComboBox._filterItems has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (7 pts), boolean chains 6, if/else 4 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 2 function literals inside it that branch (lines 208, 225). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CDSSlider._handleKeydown (cognitive 17) · ×1
  • CDSSlider._handleKeydown (cognitive 17) packages/web-components/src/components/slider/slider.ts:259 — CDSSlider._handleKeydown has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 2 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CDSSidePanel._adjustPageContent (cognitive 17) · ×1
  • CDSSidePanel._adjustPageContent (cognitive 17) packages/web-components/src/components/side-panel/side-panel.ts:396 — CDSSidePanel._adjustPageContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 1 (3 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · release.cherryPickCommitsFrom (cognitive 16) · ×1
  • release.cherryPickCommitsFrom (cognitive 16) REDACTED:143 — release.cherryPickCommitsFrom has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 1 (2 pts), loops 2, boolean chains 1 (nesting depth added 8). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Card.CardComponent (cognitive 16) · ×1
  • Card.CardComponent (cognitive 16) packages/react/src/components/Card/Card.tsx:35 — Card.CardComponent has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 6. Of this number, 9 points are the body's own statements and 7 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · TimePicker.TimePicker (cognitive 16) · ×1
  • TimePicker.TimePicker (cognitive 16) packages/react/src/components/TimePicker/TimePicker.tsx:144 — TimePicker.TimePicker has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6, ternaries 2. Of this number, 8 points are the body's own statements and 8 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · AddSelectRow.AddSelectRow (cognitive 16) · ×1
  • AddSelectRow.AddSelectRow (cognitive 16) packages/react/src/components/AddSelect/AddSelectRow.tsx:152 — AddSelectRow.AddSelectRow has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), ternaries 1 (nesting depth added 1). Of this number, 14 points are the body's own statements and 2 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · AddSelectSelectionSummaryItem.AddSelectSelectionSummaryItem (cognitive 16) · ×1
  • AddSelectSelectionSummaryItem.AddSelectSelectionSummaryItem (cognitive 16) packages/react/src/components/AddSelect/AddSelectSelectionSummaryItem.tsx:99 — AddSelectSelectionSummaryItem.AddSelectSelectionSummaryItem has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 5, boolean chains 4 (nesting depth added 3). Of this number, 13 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · form-demo.FormDemo (cognitive 16) · ×1
  • form-demo.FormDemo (cognitive 16) packages/react/src/components/Form/stories/form-demo.js:73 — form-demo.FormDemo has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (14 pts), boolean chains 1, if/else 1 (nesting depth added 5). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 246, 255, 270, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ibm-products-update-page-header.transformer (cognitive 16) · ×1
  • ibm-products-update-page-header.transformer (cognitive 16) packages/upgrade/transforms/ibm-products-update-page-header.js:104 — ibm-products-update-page-header.transformer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2 (nesting depth added 2). None of this is in the body itself: all 16 points belong to 5 function items inside it that branch (a function literal at line 196, a function literal at line 151, a function literal at line 117, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CDSRadioButtonGroup.render (cognitive 16) · ×1
  • CDSRadioButtonGroup.render (cognitive 16) packages/web-components/src/components/radio-button/radio-button-group.ts:243 — CDSRadioButtonGroup.render has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSModalBase._updateLoadingElement (cognitive 16) · ×1
  • CDSModalBase._updateLoadingElement (cognitive 16) packages/web-components/src/components/modal/modal-base.ts:223 — CDSModalBase._updateLoadingElement has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSTextarea.render (cognitive 16) · ×1
  • CDSTextarea.render (cognitive 16) packages/web-components/src/components/textarea/textarea.ts:170 — CDSTextarea.render has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 4, if/else 2 (nesting depth added 1). Of this number, 13 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CDSTabs.updated (cognitive 16) · ×1
  • CDSTabs.updated (cognitive 16) packages/web-components/src/components/tabs/tabs.ts:574 — CDSTabs.updated has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CDSHeaderGlobalAction.updated (cognitive 16) · ×1
  • CDSHeaderGlobalAction.updated (cognitive 16) packages/web-components/src/components/ui-shell/header-global-action.ts:154 — CDSHeaderGlobalAction.updated has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CDSTearsheetHeaderContent.render (cognitive 16) · ×1
  • CDSTearsheetHeaderContent.render (cognitive 16) packages/web-components/src/components/tearsheet/tearsheet-header-content.ts:379 — CDSTearsheetHeaderContent.render has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 12 (13 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · findGitignoreFiles (cognitive 16) · ×1
  • findGitignoreFiles (cognitive 16) eslint.config.mjs:50 — findGitignoreFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D35 · Change Coupling · Change coupling clique · ×1
  • Change coupling clique: DismissibleTag.tsx, OperationalTag.tsx, SelectableTag.tsx packages/react/src/components/Tag/DismissibleTag.tsx — 3 files — `packages/react/src/components/Tag/DismissibleTag.tsx`, `packages/react/src/components/Tag/OperationalTag.tsx`, `packages/react/src/components/Tag/SelectableTag.tsx` — all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique's coupling clears at once — you do not need to break each pair individually.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D5 · Coupling · Unstable project @carbon/react · ×1
  • Unstable project @carbon/react — @carbon/react has instability 0.86 with 1 dependents.
P12 · CI test-gate honesty · Coverage collected but not gated · ×1
  • Coverage collected but not gated — CI collects a coverage report but no step enforces a minimum — coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool's minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository's CI files AND its coverage configuration — the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited — matched against the threshold settings this check knows by name. A floor set in your coverage service's web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here.
P5 · DR & Backup · No DR/backup evidence · ×1
  • No DR/backup evidence — A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
R1 · Type Safety · Type Safety · ×1
  • Type Safety — 1614 typed · 1138 plain JS — the untyped files are achecker.js, actions/issues/src/conditions.js, actions/issues/src/manage-comment-test.js, actions/issues/src/manage-comment.js, actions/issues/src/plugins/bob-bug-triage-test.js, actions/issues/src/plugins/bob-bug-triage.js (+1132 more). 0 production file(s) opt out entirely with @ts-nocheck · 99 @ts-ignore suppression(s).
R10 · Code Duplication · Duplication concentrated across 107 sibling directories (218 clone groups) · ×1
  • Duplication concentrated across 107 sibling directories (218 clone groups) packages/react/src/components/TextArea/TextArea.tsx:45 — 218 duplicated blocks under packages/react/src/components/ have copies in at least two of the sibling directories AISkeleton, AspectRatio, BadgeIndicator, BigNumber, Breadcrumb, Button (+101 more sibling(s) not listed) — 94 of them are reported below, and 124 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 218 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 218 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 218 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 16 sibling directories (135 clone groups) · ×1
  • Duplication concentrated across 16 sibling directories (135 clone groups) packages/react/src/components/PageHeader/overflowHandler.ts:27 — 135 duplicated blocks under packages/ have copies in at least two of the sibling directories carbon-components, carbon-components-react, cli, feature-flags, icons, icons-react (+10 more sibling(s) not listed) — 115 of them are reported below, and 20 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 135 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 135 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 135 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 79 sibling directories (120 clone groups) · ×1
  • Duplication concentrated across 79 sibling directories (120 clone groups) packages/web-components/src/components/password-input/password-input.ts:136 — 120 duplicated blocks under packages/web-components/src/components/ have copies in at least two of the sibling directories accordion, action-set, add-select, ai-label, ai-skeleton, big-number (+73 more sibling(s) not listed) — 87 of them are reported below, and 33 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 120 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 120 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 120 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 37 sibling directories (30 clone groups) · ×1
  • Duplication concentrated across 37 sibling directories (30 clone groups) packages/web-components/code-connect/checkbox/checkbox.figma.ts:59 — 30 duplicated blocks under packages/web-components/code-connect/ have copies in at least two of the sibling directories breadcrumb, button, checkbox, combo-box, combo-button, content-switcher (+31 more sibling(s) not listed) — 13 of them are reported below, and 17 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 30 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 30 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 30 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 38 sibling directories (20 clone groups) · ×1
  • Duplication concentrated across 38 sibling directories (20 clone groups) packages/react/code-connect/FileUploader/FileUploader.figma.ts:72 — 20 duplicated blocks under packages/react/code-connect/ have copies in at least two of the sibling directories AILabel, Accordion, Breadcrumb, Button, Checkbox, CodeSnippet (+32 more sibling(s) not listed) — 11 of them are reported below, and 9 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 20 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplicated block with local edits (205 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (205 matched lines × 2 locations) packages/react/src/components/TextArea/TextArea.tsx:45 — packages/react/src/components/TextArea/TextArea.tsx:45 · packages/react/src/components/TextInput/TextInput.tsx:35 — the two spans are one implementation copied and then locally edited — 996 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (201 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (201 matched lines × 2 locations) packages/react/src/components/ComposedModal/ComposedModal.tsx:257 — packages/react/src/components/ComposedModal/ComposedModal.tsx:257 · packages/react/src/components/Modal/Modal.tsx:252 — the two spans are one implementation copied and then locally edited — 986 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (155 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (155 matched lines × 2 locations) packages/react/src/components/ComposedModal/ComposedModal-test.js:1068 — packages/react/src/components/ComposedModal/ComposedModal-test.js:1068 · packages/react/src/components/Modal/Modal-test.js:960 — the two spans are one implementation copied and then locally edited — 1121 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (147 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (147 matched lines × 2 locations) packages/web-components/src/components/password-input/password-input.ts:136 — packages/web-components/src/components/password-input/password-input.ts:136 · packages/web-components/src/components/text-input/text-input.ts:345 — the two spans are one implementation copied and then locally edited — 755 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Wholesale file copy (143 identical lines × 2 files) · ×1
  • Wholesale file copy (143 identical lines × 2 files) packages/themes/src/v10/g10.ts:8 — packages/themes/src/v10/g10.ts:8 · packages/themes/src/v10/white.ts:8 — these 2 files are line-for-line copies of one another — 143 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Wholesale file copy (125 identical lines × 2 files) · ×1
  • Wholesale file copy (125 identical lines × 2 files) packages/themes/src/v10/g100.ts:8 — packages/themes/src/v10/g100.ts:8 · packages/themes/src/v10/g90.ts:8 — these 2 files are line-for-line copies of one another — 125 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block with local edits (117 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (117 matched lines × 2 locations) packages/web-components/src/components/date-picker/date-picker-input.ts:245 — packages/web-components/src/components/date-picker/date-picker-input.ts:245 · packages/web-components/src/components/date-picker/next/components/date-picker-input.ts:293 — the two spans are one implementation copied and then locally edited — 577 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (104 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (104 matched lines × 2 locations) packages/react/src/components/TextInput/PasswordInput.tsx:280 — packages/react/src/components/TextInput/PasswordInput.tsx:280 · packages/react/src/components/TextInput/TextInput.tsx:308 — the two spans are one implementation copied and then locally edited — 519 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Wholesale file copy (99 identical lines × 2 files) · ×1
  • Wholesale file copy (99 identical lines × 2 files) packages/react/src/components/PageHeader/overflowHandler.ts:27 — packages/react/src/components/PageHeader/overflowHandler.ts:27 · packages/web-components/src/components/page-header/_story-assets/overflowHandler.ts:21 — these 2 files are line-for-line copies of one another — 99 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Wholesale file copy (88 identical lines × 2 files) · ×1
  • Wholesale file copy (88 identical lines × 2 files) packages/upgrade/transforms/enable-v12-tile-default-icons.js:14 — packages/upgrade/transforms/enable-v12-tile-default-icons.js:14 · packages/upgrade/transforms/enable-v12-tile-radio-icons.js:14 — these 2 files are line-for-line copies of one another — 88 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block with local edits (85 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (85 matched lines × 2 locations) packages/react/code-connect/DatePicker/DatePickerRange.figma.ts:20 — packages/react/code-connect/DatePicker/DatePickerRange.figma.ts:20 · packages/react/code-connect/DatePicker/FluidDatePickerRange.figma.ts:20 — the two spans are one implementation copied and then locally edited — 409 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (84 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (84 matched lines × 2 locations) packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet-preview.ts:120 — packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet-preview.ts:120 · packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet.ts:109 — the two spans are one implementation copied and then locally edited — 360 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (75 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (75 matched lines × 2 locations) packages/web-components/src/components/date-picker/date-picker-input.ts:30 — packages/web-components/src/components/date-picker/date-picker-input.ts:30 · packages/web-components/src/components/date-picker/next/components/date-picker-input.ts:33 — the two spans are one implementation copied and then locally edited — 511 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (71 lines × 2 locations) · ×1
  • Duplicated block (71 lines × 2 locations) packages/react/code-connect/MultiSelect/FluidFilterableMultiSelect.figma.ts:17 — packages/react/code-connect/MultiSelect/FluidFilterableMultiSelect.figma.ts:17 · packages/react/code-connect/MultiSelect/FluidMultiSelect.figma.ts:17 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Wholesale file copy (71 identical lines × 2 files) · ×1
  • Wholesale file copy (71 identical lines × 2 files) packages/web-components/src/components/tag/operational-tag.ts:8 — packages/web-components/src/components/tag/operational-tag.ts:8 · packages/web-components/src/components/tag/selectable-tag.ts:8 — these 2 files are line-for-line copies of one another — 71 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Wholesale file copy (70 identical lines × 2 files) · ×1
  • Wholesale file copy (70 identical lines × 2 files) packages/react/src/components/FluidMultiSelect/FluidFilterableMultiSelect.tsx:8 — packages/react/src/components/FluidMultiSelect/FluidFilterableMultiSelect.tsx:8 · packages/react/src/components/FluidMultiSelect/FluidMultiSelect.tsx:8 — these 2 files are line-for-line copies of one another — 70 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block with local edits (70 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (70 matched lines × 2 locations) packages/web-components/code-connect/date-picker/date-picker-range.figma.ts:18 — packages/web-components/code-connect/date-picker/date-picker-range.figma.ts:18 · packages/web-components/code-connect/date-picker/fluid-date-picker-range.figma.ts:18 — the two spans are one implementation copied and then locally edited — 289 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (68 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (68 matched lines × 2 locations) packages/web-components/src/components/dialog/dialog.ts:107 — packages/web-components/src/components/dialog/dialog.ts:107 · packages/web-components/src/components/modal/modal.ts:288 — the two spans are one implementation copied and then locally edited — 364 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (65 lines × 2 locations) · ×1
  • Duplicated block (65 lines × 2 locations) packages/react/code-connect/DataTable/DataTable.figma.ts:14 — packages/react/code-connect/DataTable/DataTable.figma.ts:14 · packages/web-components/code-connect/data-table/data-table.figma.ts:18 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited.
R10 · Code Duplication · Duplicated block (64 lines × 2 locations) · ×1
  • Duplicated block (64 lines × 2 locations) packages/web-components/code-connect/date-picker/date-picker-simple.figma.ts:24 — packages/web-components/code-connect/date-picker/date-picker-simple.figma.ts:24 · packages/web-components/code-connect/date-picker/date-picker-single.figma.ts:20 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (62 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (62 matched lines × 2 locations) packages/react/src/components/PageHeader/PageHeaderContentPageActions.tsx:67 — packages/react/src/components/PageHeader/PageHeaderContentPageActions.tsx:67 · packages/react/src/components/PageHeaderDeprecated/PageHeader.tsx:357 — the two spans are one implementation copied and then locally edited — 374 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (61 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (61 matched lines × 2 locations) packages/react/src/components/Checkbox/Checkbox.tsx:172 — packages/react/src/components/Checkbox/Checkbox.tsx:172 · packages/react/src/components/RadioButtonGroup/RadioButtonGroup.tsx:230 — the two spans are one implementation copied and then locally edited — 298 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (59 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (59 matched lines × 2 locations) packages/utilities/src/overflowHandler/overflowHandler.ts:57 — packages/utilities/src/overflowHandler/overflowHandler.ts:57 · packages/web-components/src/components/page-header/_story-assets/overflowHandler.ts:61 — the two spans are one implementation copied and then locally edited — 402 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Wholesale file copy (59 identical lines × 2 files) · ×1
  • Wholesale file copy (59 identical lines × 2 files) packages/web-components/src/components/ai-label/ai-label.ts:8 — packages/web-components/src/components/ai-label/ai-label.ts:8 · packages/web-components/src/components/slug/slug.ts:8 — these 2 files are line-for-line copies of one another — 59 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block with local edits (58 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (58 matched lines × 2 locations) packages/react/src/components/TextInput/ControlledPasswordInput.tsx:208 — packages/react/src/components/TextInput/ControlledPasswordInput.tsx:208 · packages/react/src/components/TextInput/PasswordInput.tsx:315 — the two spans are one implementation copied and then locally edited — 259 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (55 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (55 matched lines × 2 locations) packages/react/src/components/FluidComboBox/FluidComboBox.tsx:20 — packages/react/src/components/FluidComboBox/FluidComboBox.tsx:20 · packages/react/src/components/FluidDropdown/FluidDropdown.tsx:15 — the two spans are one implementation copied and then locally edited — 330 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (53 lines × 2 locations) · ×1
  • Duplicated block (53 lines × 2 locations) packages/react/code-connect/DatePicker/FluidDatePickerSimple.figma.ts:19 — packages/react/code-connect/DatePicker/FluidDatePickerSimple.figma.ts:19 · packages/react/code-connect/DatePicker/FluidDatePickerSingle.figma.ts:19 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block with local edits (53 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (53 matched lines × 2 locations) packages/react/src/components/ComposedModal/ComposedModalPresence.tsx:22 — packages/react/src/components/ComposedModal/ComposedModalPresence.tsx:22 · packages/react/src/components/Modal/ModalPresence.tsx:21 — the two spans are one implementation copied and then locally edited — 275 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (52 lines × 2 locations) · ×1
  • Duplicated block (52 lines × 2 locations) packages/web-components/code-connect/date-picker/fluid-date-picker-simple.figma.ts:23 — packages/web-components/code-connect/date-picker/fluid-date-picker-simple.figma.ts:23 · packages/web-components/code-connect/date-picker/fluid-date-picker-single.figma.ts:23 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (50 lines × 2 locations) · ×1
  • Duplicated block (50 lines × 2 locations) packages/react/code-connect/ContainedList/ContainedList.figma.ts:14 — packages/react/code-connect/ContainedList/ContainedList.figma.ts:14 · packages/web-components/code-connect/contained-list/contained-list.figma.ts:15 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 56, cognitive 55) · ×1
  • Complex function (anonymous) (cyclomatic 56, cognitive 55) packages/react/src/components/Slider/Slider.tsx:350 — (anonymous) has cyclomatic complexity 56 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function ModalDialog (cyclomatic 55, cognitive 50) · ×1
  • Complex function ModalDialog (cyclomatic 55, cognitive 50) packages/react/src/components/Modal/Modal.tsx:288 — ModalDialog has cyclomatic complexity 55 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 54, cognitive 49) · ×1
  • Complex function (anonymous) (cyclomatic 54, cognitive 49) packages/react/src/components/TextArea/TextArea.tsx:215 — (anonymous) has cyclomatic complexity 54 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 51, cognitive 87) · ×1
  • Complex function (anonymous) (cyclomatic 51, cognitive 87) packages/react/src/components/ComboBox/ComboBox.tsx:611 — (anonymous) has cyclomatic complexity 51 and cognitive complexity 87; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _handleKeyDown (cyclomatic 44, cognitive 66) · ×1
  • Complex function _handleKeyDown (cyclomatic 44, cognitive 66) packages/web-components/src/components/date-picker/next/components/date-picker.ts:641 — _handleKeyDown has cyclomatic complexity 44 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 41, cognitive 34) · ×1
  • Complex function (anonymous) (cyclomatic 41, cognitive 34) packages/react/src/components/ComboBox/ComboBox.tsx:384 — (anonymous) has cyclomatic complexity 41 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 40, cognitive 35) · ×1
  • Complex function (anonymous) (cyclomatic 40, cognitive 35) packages/react/src/components/Dropdown/Dropdown.tsx:291 — (anonymous) has cyclomatic complexity 40 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 38, cognitive 35) · ×1
  • Complex function (anonymous) (cyclomatic 38, cognitive 35) packages/react/src/components/MultiSelect/MultiSelect.tsx:299 — (anonymous) has cyclomatic complexity 38 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 37, cognitive 37) · ×1
  • Complex function (anonymous) (cyclomatic 37, cognitive 37) REDACTED:594 — (anonymous) has cyclomatic complexity 37 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 36, cognitive 34) · ×1
  • Complex function (anonymous) (cyclomatic 36, cognitive 34) packages/react/src/components/TextInput/PasswordInput.tsx:182 — (anonymous) has cyclomatic complexity 36 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function render (cyclomatic 35, cognitive 36) · ×1
  • Complex function render (cyclomatic 35, cognitive 36) packages/web-components/src/components/password-input/password-input.ts:140 — render has cyclomatic complexity 35 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _handleStateChange (cyclomatic 34, cognitive 47) · ×1
  • Complex function _handleStateChange (cyclomatic 34, cognitive 47) packages/web-components/src/components/date-picker/next/components/date-picker.ts:245 — _handleStateChange has cyclomatic complexity 34 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function stateReducer (cyclomatic 34, cognitive 37) · ×1
  • Complex function stateReducer (cyclomatic 34, cognitive 37) packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:694 — stateReducer has cyclomatic complexity 34 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function computePlacement (cyclomatic 34, cognitive 33) · ×1
  • Complex function computePlacement (cyclomatic 34, cognitive 33) packages/web-components/src/globals/controllers/floating-controller.ts:76 — computePlacement has cyclomatic complexity 34 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 33, cognitive 38) · ×1
  • Complex function (anonymous) (cyclomatic 33, cognitive 38) packages/react/src/components/ComboBox/ComboBox.tsx:1179 — (anonymous) has cyclomatic complexity 33 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function FilterableMultiSelect (cyclomatic 32, cognitive 31) · ×1
  • Complex function FilterableMultiSelect (cyclomatic 32, cognitive 31) packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:331 — FilterableMultiSelect has cyclomatic complexity 32 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _fitValue (cyclomatic 32, cognitive 26) · ×1
  • Complex function _fitValue (cyclomatic 32, cognitive 26) packages/web-components/src/components/menu/menu.ts:344 — _fitValue has cyclomatic complexity 32 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function handleKeyDown (cyclomatic 30, cognitive 40) · ×1
  • Complex function handleKeyDown (cyclomatic 30, cognitive 40) packages/react/src/components/TreeView/TreeView.tsx:178 — handleKeyDown has cyclomatic complexity 30 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function handleKeyDown (cyclomatic 30, cognitive 37) · ×1
  • Complex function handleKeyDown (cyclomatic 30, cognitive 37) packages/react/src/components/DatePicker/next/hooks/useDatePicker.ts:487 — handleKeyDown has cyclomatic complexity 30 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 30, cognitive 28) · ×1
  • Complex function (anonymous) (cyclomatic 30, cognitive 28) packages/react/src/components/Card/CardActions.tsx:94 — (anonymous) has cyclomatic complexity 30 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function fitValue (cyclomatic 30, cognitive 22) · ×1
  • Complex function fitValue (cyclomatic 30, cognitive 22) packages/react/src/components/Menu/Menu.tsx:301 — fitValue has cyclomatic complexity 30 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 29, cognitive 41) · ×1
  • Complex function (anonymous) (cyclomatic 29, cognitive 41) packages/upgrade/transforms/ibm-products-update-page-header-composable.js:99 — (anonymous) has cyclomatic complexity 29 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function CodeSnippet (cyclomatic 29, cognitive 39) · ×1
  • Complex function CodeSnippet (cyclomatic 29, cognitive 39) packages/react/src/components/CodeSnippet/CodeSnippet.tsx:156 — CodeSnippet has cyclomatic complexity 29 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function handleStep (cyclomatic 28, cognitive 39) · ×1
  • Complex function handleStep (cyclomatic 28, cognitive 39) REDACTED:845 — handleStep has cyclomatic complexity 28 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function updated (cyclomatic 28, cognitive 33) · ×1
  • Complex function updated (cyclomatic 28, cognitive 33) packages/web-components/src/components/overflow-menu/overflow-menu.ts:410 — updated has cyclomatic complexity 28 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 28, cognitive 28) · ×1
  • Complex function (anonymous) (cyclomatic 28, cognitive 28) packages/react/src/components/TreeView/TreeNode.tsx:250 — (anonymous) has cyclomatic complexity 28 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (top-level) (cyclomatic 28, cognitive 27) · ×1
  • Complex function (top-level) (cyclomatic 28, cognitive 27) packages/web-components/src/components/tabs/tab.ts:8 — (top-level) has cyclomatic complexity 28 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 28, cognitive 24) · ×1
  • Complex function (anonymous) (cyclomatic 28, cognitive 24) packages/react/src/components/TextInput/TextInput.tsx:192 — (anonymous) has cyclomatic complexity 28 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 27, cognitive 24) · ×1
  • Complex function (anonymous) (cyclomatic 27, cognitive 24) packages/react/src/components/Select/Select.tsx:149 — (anonymous) has cyclomatic complexity 27 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _handleBlur (cyclomatic 26, cognitive 26) · ×1
  • Complex function _handleBlur (cyclomatic 26, cognitive 26) packages/web-components/src/components/notification/actionable-notification.ts:151 — _handleBlur has cyclomatic complexity 26 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 26, cognitive 19) · ×1
  • Complex function (anonymous) (cyclomatic 26, cognitive 19) packages/react/src/components/RadioButtonGroup/RadioButtonGroup.tsx:144 — (anonymous) has cyclomatic complexity 26 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _handleStep (cyclomatic 25, cognitive 29) · ×1
  • Complex function _handleStep (cyclomatic 25, cognitive 29) packages/web-components/src/components/number-input/number-input.ts:683 — _handleStep has cyclomatic complexity 25 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function DatePickerInput (cyclomatic 25, cognitive 21) · ×1
  • Complex function DatePickerInput (cyclomatic 25, cognitive 21) packages/react/src/components/DatePicker/next/components/DatePickerInput.tsx:181 — DatePickerInput has cyclomatic complexity 25 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function renderHeader (cyclomatic 25, cognitive 18) · ×1
  • Complex function renderHeader (cyclomatic 25, cognitive 18) packages/react/src/components/SidePanel/SidePanel.tsx:848 — renderHeader has cyclomatic complexity 25 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function updated (cyclomatic 24, cognitive 54) · ×1
  • Complex function updated (cyclomatic 24, cognitive 54) packages/web-components/src/components/dialog/dialog.ts:177 — updated has cyclomatic complexity 24 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 24, cognitive 22) · ×1
  • Complex function (anonymous) (cyclomatic 24, cognitive 22) packages/react/src/components/Search/Search.tsx:138 — (anonymous) has cyclomatic complexity 24 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function render (cyclomatic 24, cognitive 22) · ×1
  • Complex function render (cyclomatic 24, cognitive 22) packages/web-components/src/components/number-input/number-input.ts:833 — render has cyclomatic complexity 24 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 24, cognitive 18) · ×1
  • Complex function (anonymous) (cyclomatic 24, cognitive 18) packages/react/src/components/Tabs/Tabs.tsx:1303 — (anonymous) has cyclomatic complexity 24 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 23, cognitive 27) · ×1
  • Complex function (anonymous) (cyclomatic 23, cognitive 27) REDACTED:463 — (anonymous) has cyclomatic complexity 23 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 23, cognitive 26) · ×1
  • Complex function (anonymous) (cyclomatic 23, cognitive 26) packages/react/src/components/DatePicker/DatePicker.tsx:550 — (anonymous) has cyclomatic complexity 23 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · packages/react/src/components/DatePicker/DatePicker-test.js · ×1
  • packages/react/src/components/DatePicker/DatePicker-test.js: 2043 lines of code packages/react/src/components/DatePicker/DatePicker-test.js:1 — packages/react/src/components/DatePicker/DatePicker-test.js has 2043 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Tearsheet/Tearsheet.stories.js · ×1
  • packages/react/src/components/Tearsheet/Tearsheet.stories.js: 1744 lines of code packages/react/src/components/Tearsheet/Tearsheet.stories.js:1 — packages/react/src/components/Tearsheet/Tearsheet.stories.js has 1744 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/ComboBox/ComboBox-test.js · ×1
  • packages/react/src/components/ComboBox/ComboBox-test.js: 1724 lines of code packages/react/src/components/ComboBox/ComboBox-test.js:1 — packages/react/src/components/ComboBox/ComboBox-test.js has 1724 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Card/Card.stories.js · ×1
  • packages/react/src/components/Card/Card.stories.js: 1690 lines of code packages/react/src/components/Card/Card.stories.js:1 — packages/react/src/components/Card/Card.stories.js has 1690 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Tabs/Tabs.tsx · ×1
  • packages/react/src/components/Tabs/Tabs.tsx: 1666 lines of code packages/react/src/components/Tabs/Tabs.tsx:1 — packages/react/src/components/Tabs/Tabs.tsx has 1666 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Slider/Slider.tsx · ×1
  • packages/react/src/components/Slider/Slider.tsx: 1631 lines of code packages/react/src/components/Slider/Slider.tsx:1 — packages/react/src/components/Slider/Slider.tsx has 1631 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Modal/Modal-test.js · ×1
  • packages/react/src/components/Modal/Modal-test.js: 1601 lines of code packages/react/src/components/Modal/Modal-test.js:1 — packages/react/src/components/Modal/Modal-test.js has 1601 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/ComboBox/ComboBox.tsx · ×1
  • packages/react/src/components/ComboBox/ComboBox.tsx: 1462 lines of code packages/react/src/components/ComboBox/ComboBox.tsx:1 — packages/react/src/components/ComboBox/ComboBox.tsx has 1462 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/tabs/tabs.stories.ts · ×1
  • packages/web-components/src/components/tabs/tabs.stories.ts: 1462 lines of code packages/web-components/src/components/tabs/tabs.stories.ts:1 — packages/web-components/src/components/tabs/tabs.stories.ts has 1462 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Tabs/Tabs.stories.js · ×1
  • packages/react/src/components/Tabs/Tabs.stories.js: 1405 lines of code packages/react/src/components/Tabs/Tabs.stories.js:1 — packages/react/src/components/Tabs/Tabs.stories.js has 1405 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/dropdown/dropdown.ts · ×1
  • packages/web-components/src/components/dropdown/dropdown.ts: 1385 lines of code packages/web-components/src/components/dropdown/dropdown.ts:1 — packages/web-components/src/components/dropdown/dropdown.ts has 1385 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/card/card.stories.ts · ×1
  • packages/web-components/src/components/card/card.stories.ts: 1358 lines of code packages/web-components/src/components/card/card.stories.ts:1 — packages/web-components/src/components/card/card.stories.ts has 1358 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1322 lines of code REDACTED:1 — REDACTED has 1322 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Notification/Notification.tsx · ×1
  • packages/react/src/components/Notification/Notification.tsx: 1299 lines of code packages/react/src/components/Notification/Notification.tsx:1 — packages/react/src/components/Notification/Notification.tsx has 1299 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/ui-shell/ui-shell.stories.ts · ×1
  • packages/web-components/src/components/ui-shell/ui-shell.stories.ts: 1270 lines of code packages/web-components/src/components/ui-shell/ui-shell.stories.ts:1 — packages/web-components/src/components/ui-shell/ui-shell.stories.ts has 1270 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx · ×1
  • packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx: 1254 lines of code packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx:1 — packages/react/src/components/MultiSelect/FilterableMultiSelect.tsx has 1254 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/slider/slider.ts · ×1
  • packages/web-components/src/components/slider/slider.ts: 1213 lines of code packages/web-components/src/components/slider/slider.ts:1 — packages/web-components/src/components/slider/slider.ts has 1213 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/multi-select/multi-select.stories.ts · ×1
  • packages/web-components/src/components/multi-select/multi-select.stories.ts: 1177 lines of code packages/web-components/src/components/multi-select/multi-select.stories.ts:1 — packages/web-components/src/components/multi-select/multi-select.stories.ts has 1177 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/ComposedModal/ComposedModal-test.js · ×1
  • packages/react/src/components/ComposedModal/ComposedModal-test.js: 1173 lines of code packages/react/src/components/ComposedModal/ComposedModal-test.js:1 — packages/react/src/components/ComposedModal/ComposedModal-test.js has 1173 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/page-header/page-header.stories.ts · ×1
  • packages/web-components/src/components/page-header/page-header.stories.ts: 1100 lines of code packages/web-components/src/components/page-header/page-header.stories.ts:1 — packages/web-components/src/components/page-header/page-header.stories.ts has 1100 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/side-panel/side-panel.ts · ×1
  • packages/web-components/src/components/side-panel/side-panel.ts: 1096 lines of code packages/web-components/src/components/side-panel/side-panel.ts:1 — packages/web-components/src/components/side-panel/side-panel.ts has 1096 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/DatePicker/DatePicker.tsx · ×1
  • packages/react/src/components/DatePicker/DatePicker.tsx: 1077 lines of code packages/react/src/components/DatePicker/DatePicker.tsx:1 — packages/react/src/components/DatePicker/DatePicker.tsx has 1077 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/date-picker/next/components/date-picker.ts · ×1
  • packages/web-components/src/components/date-picker/next/components/date-picker.ts: 1075 lines of code packages/web-components/src/components/date-picker/next/components/date-picker.ts:1 — packages/web-components/src/components/date-picker/next/components/date-picker.ts has 1075 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Modal/Modal.tsx · ×1
  • packages/react/src/components/Modal/Modal.tsx: 1069 lines of code packages/react/src/components/Modal/Modal.tsx:1 — packages/react/src/components/Modal/Modal.tsx has 1069 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/AddSelect/AddSelect.stories.js · ×1
  • packages/react/src/components/AddSelect/AddSelect.stories.js: 1068 lines of code packages/react/src/components/AddSelect/AddSelect.stories.js:1 — packages/react/src/components/AddSelect/AddSelect.stories.js has 1068 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/upgrade/src/upgrades.js · ×1
  • packages/upgrade/src/upgrades.js: 1068 lines of code packages/upgrade/src/upgrades.js:1 — packages/upgrade/src/upgrades.js has 1068 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/PageHeader/PageHeader.stories.js · ×1
  • packages/react/src/components/PageHeader/PageHeader.stories.js: 1067 lines of code packages/react/src/components/PageHeader/PageHeader.stories.js:1 — packages/react/src/components/PageHeader/PageHeader.stories.js has 1067 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/MultiSelect/MultiSelect.tsx · ×1
  • packages/react/src/components/MultiSelect/MultiSelect.tsx: 1065 lines of code packages/react/src/components/MultiSelect/MultiSelect.tsx:1 — packages/react/src/components/MultiSelect/MultiSelect.tsx has 1065 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/data-table/table.ts · ×1
  • packages/web-components/src/components/data-table/table.ts: 1000 lines of code packages/web-components/src/components/data-table/table.ts:1 — packages/web-components/src/components/data-table/table.ts has 1000 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Tile/Tile.tsx · ×1
  • packages/react/src/components/Tile/Tile.tsx: 999 lines of code packages/react/src/components/Tile/Tile.tsx:1 — packages/react/src/components/Tile/Tile.tsx has 999 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/SidePanel/SidePanel.tsx · ×1
  • packages/react/src/components/SidePanel/SidePanel.tsx: 977 lines of code packages/react/src/components/SidePanel/SidePanel.tsx:1 — packages/react/src/components/SidePanel/SidePanel.tsx has 977 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/add-select/add-select.stories.ts · ×1
  • packages/web-components/src/components/add-select/add-select.stories.ts: 969 lines of code packages/web-components/src/components/add-select/add-select.stories.ts:1 — packages/web-components/src/components/add-select/add-select.stories.ts has 969 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/multi-select/multi-select.ts · ×1
  • packages/web-components/src/components/multi-select/multi-select.ts: 963 lines of code packages/web-components/src/components/multi-select/multi-select.ts:1 — packages/web-components/src/components/multi-select/multi-select.ts has 963 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/modal/modal.stories.ts · ×1
  • packages/web-components/src/components/modal/modal.stories.ts: 959 lines of code packages/web-components/src/components/modal/modal.stories.ts:1 — packages/web-components/src/components/modal/modal.stories.ts has 959 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Dialog/Dialog.tsx · ×1
  • packages/react/src/components/Dialog/Dialog.tsx: 933 lines of code packages/react/src/components/Dialog/Dialog.tsx:1 — packages/react/src/components/Dialog/Dialog.tsx has 933 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/DataTable/DataTable.tsx · ×1
  • packages/react/src/components/DataTable/DataTable.tsx: 925 lines of code packages/react/src/components/DataTable/DataTable.tsx:1 — packages/react/src/components/DataTable/DataTable.tsx has 925 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/web-components/src/components/number-input/number-input.ts · ×1
  • packages/web-components/src/components/number-input/number-input.ts: 907 lines of code packages/web-components/src/components/number-input/number-input.ts:1 — packages/web-components/src/components/number-input/number-input.ts has 907 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Resizer/Resizer.stories.js · ×1
  • packages/react/src/components/Resizer/Resizer.stories.js: 889 lines of code packages/react/src/components/Resizer/Resizer.stories.js:1 — packages/react/src/components/Resizer/Resizer.stories.js has 889 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/Dropdown/Dropdown.tsx · ×1
  • packages/react/src/components/Dropdown/Dropdown.tsx: 850 lines of code packages/react/src/components/Dropdown/Dropdown.tsx:1 — packages/react/src/components/Dropdown/Dropdown.tsx has 850 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/react/src/components/TreeView/Treeview.stories.js · ×1
  • packages/react/src/components/TreeView/Treeview.stories.js: 839 lines of code packages/react/src/components/TreeView/Treeview.stories.js:1 — packages/react/src/components/TreeView/Treeview.stories.js has 839 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R6 · Tooling · The declared test suite includes a file that cannot be loaded · ×1
  • The declared test suite includes a file that cannot be loaded packages/web-components/tests/spec/accordion_spec.ts:9 — This repository declares test tooling, and the ✓ above records that declaration — but packages/web-components/tests/spec/accordion_spec.ts and 24 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) — each one is reported with its failing import under Test Coverage — then the declared script exercises what it claims to.
R7 · Dead Code · Dead file (~2322 LoC) · ×1
  • Dead file (~2322 LoC) packages/react/src/components/DatePicker/DatePicker-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~2111 LoC) · ×1
  • Dead file (~2111 LoC) packages/react/src/components/ComboBox/ComboBox-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~1806 LoC) · ×1
  • Dead file (~1806 LoC) packages/react/src/components/Modal/Modal-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~1348 LoC) · ×1
  • Dead file (~1348 LoC) packages/react/src/components/ComposedModal/ComposedModal-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~915 LoC) · ×1
  • Dead file (~915 LoC) packages/react/src/components/TextArea/TextArea-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~867 LoC) · ×1
  • Dead file (~867 LoC) packages/react/src/components/Tile/Tile-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~866 LoC) · ×1
  • Dead file (~866 LoC) packages/react/src/components/PageHeaderDeprecated/PageHeader-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~741 LoC) · ×1
  • Dead file (~741 LoC) packages/react/src/components/SidePanel/SidePanel-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~682 LoC) · ×1
  • Dead file (~682 LoC) packages/react/src/components/TreeView/TreeView-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~669 LoC) · ×1
  • Dead file (~669 LoC) packages/utilities/src/overflowHandler/overflowHandler-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~647 LoC) · ×1
  • Dead file (~647 LoC) packages/react/src/components/Loading/Loading-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~565 LoC) · ×1
  • Dead file (~565 LoC) packages/react/src/components/Menu/Menu-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~534 LoC) · ×1
  • Dead file (~534 LoC) packages/react/src/components/OverflowMenu/OverflowMenu-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~529 LoC) · ×1
  • Dead file (~529 LoC) packages/react/src/components/RadioButtonGroup/RadioButtonGroup-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~498 LoC) · ×1
  • Dead file (~498 LoC) packages/react/src/components/CheckboxGroup/CheckboxGroup-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~452 LoC) · ×1
  • Dead file (~452 LoC) packages/react/src/components/Search/Search-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~445 LoC) · ×1
  • Dead file (~445 LoC) packages/react/src/components/Dialog/Dialog-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~442 LoC) · ×1
  • Dead file (~442 LoC) packages/react/src/components/Tag/Tag-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~394 LoC) · ×1
  • Dead file (~394 LoC) packages/react/src/components/TimePicker/TimePicker-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~360 LoC) · ×1
  • Dead file (~360 LoC) packages/utilities/src/addSelect/addSelectData-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~355 LoC) · ×1
  • Dead file (~355 LoC) packages/react/src/components/DatePicker/next/components/DatePicker-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~329 LoC) · ×1
  • Dead file (~329 LoC) packages/react/previewer/codePreviewer.tsx — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~298 LoC) · ×1
  • Dead file (~298 LoC) packages/react/src/components/MenuButton/MenuButton-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~295 LoC) · ×1
  • Dead file (~295 LoC) packages/utilities/src/carousel/carousel-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~289 LoC) · ×1
  • Dead file (~289 LoC) packages/upgrade/transforms/__testfixtures__/ibm-products-update-tearsheet.output.tsx — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~285 LoC) · ×1
  • Dead file (~285 LoC) packages/react/src/components/RadioTile/RadioTile-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~276 LoC) · ×1
  • Dead file (~276 LoC) packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet-preview.ts — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~260 LoC) · ×1
  • Dead file (~260 LoC) packages/react/src/components/OverflowMenu/next/OverflowMenu-test.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~250 LoC) · ×1
  • Dead file (~250 LoC) packages/react/tasks/build-test-rtl.js — no import path from any entry point (197 application, 51 tooling, 1028 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R8 · Dependency Hygiene · Unused dependency '@commitlint/cli' · ×1
  • Unused dependency '@commitlint/cli' — Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency '@commitlint/config-conventional' · ×1
  • Unused dependency '@commitlint/config-conventional' — Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'unrun' · ×1
  • Unused dependency 'unrun' — Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency '@double-great/stylelint-a11y' · ×1
  • Unused dependency '@double-great/stylelint-a11y' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-config-idiomatic-order' · ×1
  • Unused dependency 'stylelint-config-idiomatic-order' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-config-prettier' · ×1
  • Unused dependency 'stylelint-config-prettier' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-config-standard' · ×1
  • Unused dependency 'stylelint-config-standard' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-config-standard-scss' · ×1
  • Unused dependency 'stylelint-config-standard-scss' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-no-unsupported-browser-features' · ×1
  • Unused dependency 'stylelint-no-unsupported-browser-features' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-order' · ×1
  • Unused dependency 'stylelint-order' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-prettier' · ×1
  • Unused dependency 'stylelint-prettier' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-scss' · ×1
  • Unused dependency 'stylelint-scss' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'stylelint-use-logical' · ×1
  • Unused dependency 'stylelint-use-logical' — Declared in config/stylelint-config-carbon/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'remark' · ×1
  • Unused dependency 'remark' — Declared in packages/cli/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency '@carbon/cli-reporter' · ×1
  • Unused dependency '@carbon/cli-reporter' — Declared in packages/colors/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'klaw-sync' · ×1
  • Unused dependency 'klaw-sync' — Declared in packages/elements/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
S1 · Web-Security Posture · Weak hash algorithm · ×1
  • Weak hash algorithm config/jest-config-carbon/transform/cssTransform.js:76 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
S1 · Web-Security Posture · Third-party script without Subresource Integrity · ×1
  • Third-party script without Subresource Integrity packages/react/.storybook/manager-head.html:37 — `https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/footer.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time — the executed bytes can change with nobody touching this repository. 3 such include(s) across the repository's markup.
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×1
  • Recursive walk over a caller-supplied document has no depth cap packages/motion/style-dictionary/utils/dts-type-literal.js:33 — `toDtsTypeLiteral` is exported and takes `value: object` from its caller, and it calls itself at line 33 (`toDtsTypeLiteral`) with a piece of `value` (and at line 44) — and nowhere in `toDtsTypeLiteral` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `toDtsTypeLiteral` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
X29 · Per-element action decided by a fixed element · Per-element action decided by a fixed element · ×1
  • Per-element action decided by a fixed element packages/web-components/src/components/tree-view/tree-view.ts:138 — This loop runs once per element of `nodes`, and the statement it guards acts on the element it is on — `node`. The test deciding whether that statement runs does not: `!withLinks` reads `nodes[0]`, a subscript that does not move, so whatever it answers for that one element it answers for ALL of them. One `if` names the same collection at two different subscripts — the fixed one at line 83, which is the contradiction: either the test was meant to be per-element, in which case every element that differs from the fixed one is handled wrongly and all in the same direction, or it really is one answer for the whole collection, in which case it is being re-asked on every pass and belongs above the loop. The `if` is in the wrong place under both readings. Give the test the loop variable, or hoist it out.
Minor — 326 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×88
  • Orphaned file packages/react/src/components/ComposedModal/ModalFooter.tsx:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/upgrade/transforms/enable-v12-release.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/upgrade/transforms/icons-react-size-prop.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file REDACTED:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/themes/src/v10/white.ts:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/themes/src/v10/g90.ts:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/themes/src/v10/g10.ts:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/themes/src/v10/g100.ts:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/react/src/components/Toggle/Toggle.tsx:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/web-components/src/components/tree-view/tree-view.ts:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/react/tasks/build-test-rtl.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/themes/src/v10/tokens.ts:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/upgrade/src/workspace.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file actions/issues/src/manage-comment.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/cli/src/commands/publish.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/react/src/components/RadioButton/RadioButton.stories.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/icon-build-helpers/src/metadata/extensions/output/index.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file config/stylelint-config-carbon/rules/limit-language-features.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/react/src/components/DataTable/stories/DataTable-basic.stories.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/react/src/components/DataTable/TableBatchActions.tsx:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/upgrade/transforms/ibm-products-update-page-header.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file actions/issues/src/plugins/manage-contribution-comments.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/react/src/components/Copy/Copy.tsx:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/react/src/components/DataTable/TableExpandHeader.tsx:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/cli/src/commands/contribute/setup.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • + 63 more in this group — see findings.md.
D24 · Comment Value · redundant comment · ×65
  • redundant comment e2e/components/FileUploader/FileUploader-test.avt.e2e.js:114 — "Uploading a file to the input" repeats the code it sits on: 3 of its 3 words (uploading, file, input) are already in `await page`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment e2e/components/FileUploader/FileUploader-test.avt.e2e.js:145 — "Uploading a file to the input" repeats the code it sits on: 3 of its 3 words (uploading, file, input) are already in `await page`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment e2e/components/FileUploader/FileUploader-test.avt.e2e.js:188 — "Uploading a file to the input" repeats the code it sits on: 3 of its 3 words (uploading, file, input) are already in `await page`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/icon-build-helpers/src/metadata/extensions/output/optimizer.js:56 — "Check for element with Transparent_Rectangle in id" repeats the code it sits on: 4 of its 5 words (check, transparent, rectangle, id) are already in `if (node.attributes?.id?.includes('Transparent_Rectangle'))`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/layout/__tests__/token-output-test.js:50 — "JS round-trip" repeats the code it sits on: 3 of its 3 words (js, round, trip) are already in `describe('tokens → JS round-trip', () =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/layout/__tests__/token-output-test.js:68 — "Sass round-trip" repeats the code it sits on: 3 of its 3 words (sass, round, trip) are already in `describe('tokens → Sass round-trip', () =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/motion/__tests__/token-output-test.js:127 — "Token file — tokens/motion.tokens.json" repeats the code it sits on: 5 of its 5 words (token, file, tokens, motion, json) are already in `describe('@carbon/motion — token file (tokens/motion.tokens.json)', () =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/motion/__tests__/token-output-test.js:181 — "Surface file — tokens/surfaces.tokens.json" repeats the code it sits on: 5 of its 5 words (surface, file, tokens, surfaces, json) are already in `describe('@carbon/motion — surface file (tokens/surfaces.tokens.json)', () =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/previewer/codePreviewer.tsx:60 — "Registry of story scss strings we can inject" repeats the code it sits on: 4 of its 5 words (registry, story, scss, strings) are already in `const storyScssRegistry: Record<string, { content: string }> = {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/ConditionBuilder/__tests__/ConditionBuilder-test.js:1411 — "click on add action button" repeats the code it sits on: 4 of its 4 words (click, add, action, button) are already in `await userEvent.click(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/DatePicker/DatePicker-test.js:1463 — "Clear the end date" repeats the code it sits on: 3 of its 3 words (clear, end, date) are already in `await userEvent.clear(screen.getByLabelText('End Date'));`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/DatePicker/next/components/DatePickerInput.tsx:227 — "Clone AILabel with size='mini' if it's an AILabel" repeats the code it sits on: 5 of its 5 words (clone, ai, label, size, mini) are already in `const normalizedDecorator =`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/DatePicker/next/hooks/useDatePicker.ts:212 — "Refs for input elements" repeats the code it sits on: 3 of its 3 words (refs, input, elements) are already in `const startInputRef = useRef<HTMLInputElement>(null);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/DatePicker/next/hooks/useDatePicker.ts:392 — "Select start date" repeats the code it sits on: 3 of its 3 words (select, start, date) are already in `send(DatePickerEvent.RANGE_START_SELECT, { date });`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/InterstitialScreen/InterstitialScreenBody.tsx:94 — "Convert to a valid array of React elements" repeats the code it sits on: 4 of its 5 words (valid, array, react, elements) are already in `const validChildren =`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/ListBox/test-helpers.ts:15 — "Finding nodes in a ListBox" repeats the code it sits on: 4 of its 4 words (finding, nodes, list, box) are already in `export const findListBoxNode = () =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/Modal/Modal.tsx:485 — "Check if element is fully visible within the modal viewport" repeats the code it sits on: 5 of its 6 words (check, element, fully, visible, modal) are already in `const isFullyVisible =`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/PageHeader/__tests__/PageHeader-test.js:644 — "Find the menu button" repeats the code it sits on: 3 of its 3 words (find, menu, button) are already in `const menuButton = await screen.findByRole('button', {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/PageHeader/__tests__/PageHeader-test.js:696 — "Find the menu button" repeats the code it sits on: 3 of its 3 words (find, menu, button) are already in `const menuButton = await screen.findByRole('button', {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/PageHeaderDeprecated/PageHeader-test.js:356 — "Find the menu button" repeats the code it sits on: 3 of its 3 words (find, menu, button) are already in `const menuButton = await screen.findByRole('button', {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/PageHeaderDeprecated/PageHeader-test.js:403 — "Find the menu button" repeats the code it sits on: 3 of its 3 words (find, menu, button) are already in `const menuButton = await screen.findByRole('button', {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/Tabs/__tests__/Tabs-test.js:264 — "Get the icon tab" repeats the code it sits on: 3 of its 3 words (get, icon, tab) are already in `const iconTab = screen.getByTestId('icon-tab-with-badge');`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/Toggletip/__tests__/Toggletip-test.js:165 — "Render a `Toggletip` that is open by default" repeats the code it sits on: 4 of its 4 words (render, toggletip, open, default) are already in `render(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/components/TreeView/TreeView-test.js:271 — 5 comments in this file only repeat the code they sit on (lines 271, 301, 442, 606, 640), for example "Focus on the parent node". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/react/src/internal/__tests__/useOverflowItems-test.js:11 — "Mock ResizeObserver" repeats the code it sits on: 3 of its 3 words (mock, resize, observer) are already in `const mockResizeObserver = jest.fn(() => ({`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • + 40 more in this group — see findings.md.
D12 · Dependency Hygiene · Deprecated · ×49
  • Deprecated: @ungap/structured-clone REDACTED:8443 — @ungap/structured-clone 1.3.0 is resolved in REDACTED and is marked deprecated by its publisher: "Potential CWE-502 - Update to 1.3.1 or higher". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-android-arm64 REDACTED:8984 — @yuku-codegen/binding-android-arm64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-darwin-arm64 REDACTED:8991 — @yuku-codegen/binding-darwin-arm64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-darwin-x64 REDACTED:8998 — @yuku-codegen/binding-darwin-x64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-freebsd-x64 REDACTED:9005 — @yuku-codegen/binding-freebsd-x64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-linux-arm-gnu REDACTED:9012 — @yuku-codegen/binding-linux-arm-gnu 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-linux-arm-musl REDACTED:9019 — @yuku-codegen/binding-linux-arm-musl 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-linux-arm64-gnu REDACTED:9026 — @yuku-codegen/binding-linux-arm64-gnu 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-linux-arm64-musl REDACTED:9033 — @yuku-codegen/binding-linux-arm64-musl 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-linux-x64-gnu REDACTED:9040 — @yuku-codegen/binding-linux-x64-gnu 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-linux-x64-musl REDACTED:9047 — @yuku-codegen/binding-linux-x64-musl 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-win32-arm64 REDACTED:9054 — @yuku-codegen/binding-win32-arm64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-codegen/binding-win32-x64 REDACTED:9061 — @yuku-codegen/binding-win32-x64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-codegen is pure JavaScript since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-android-arm64 REDACTED:9068 — @yuku-parser/binding-android-arm64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-darwin-arm64 REDACTED:9075 — @yuku-parser/binding-darwin-arm64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-darwin-x64 REDACTED:9082 — @yuku-parser/binding-darwin-x64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-freebsd-x64 REDACTED:9089 — @yuku-parser/binding-freebsd-x64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-linux-arm-gnu REDACTED:9096 — @yuku-parser/binding-linux-arm-gnu 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-linux-arm-musl REDACTED:9103 — @yuku-parser/binding-linux-arm-musl 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-linux-arm64-gnu REDACTED:9110 — @yuku-parser/binding-linux-arm64-gnu 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-linux-arm64-musl REDACTED:9117 — @yuku-parser/binding-linux-arm64-musl 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-linux-x64-gnu REDACTED:9124 — @yuku-parser/binding-linux-x64-gnu 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-linux-x64-musl REDACTED:9131 — @yuku-parser/binding-linux-x64-musl 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-win32-arm64 REDACTED:9138 — @yuku-parser/binding-win32-arm64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: @yuku-parser/binding-win32-x64 REDACTED:9145 — @yuku-parser/binding-win32-x64 0.9.5 is resolved in REDACTED and is marked deprecated by its publisher: "yuku-parser runs on yuku-core since 0.14". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • + 24 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate packages/react/src/components/ComposedModal/ComposedModal.tsx:105 — `!!contentRef.current && contentRef?.current?.scrollHeight > contentRef?.current?.clientHeight` appears character-identically in 2 files — packages/react/src/components/ComposedModal/ComposedModal.tsx, packages/react/src/components/Dialog/Dialog.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/ComposedModal/ModalFooter.tsx:81 — `!Array.isArray(props.secondaryButtons) || props.secondaryButtons.length !== 2` appears character-identically in 3 files — packages/react/src/components/ComposedModal/ModalFooter.tsx, packages/react/src/components/Dialog/Dialog.tsx, packages/react/src/components/Modal/Modal.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/web-components/src/components/file-uploader/file-uploader-button.ts:83 — `!accept || !/^(change|drop)$/.test(event.type)` appears character-identically in 2 files — packages/web-components/src/components/file-uploader/file-uploader-button.ts, packages/web-components/src/components/file-uploader/file-uploader-drop-container.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/PageHeader/PageHeaderContentPageActions.tsx:110 — `!containerRef.current || !Array.isArray(actions)` appears character-identically in 2 files — packages/react/src/components/PageHeader/PageHeaderContentPageActions.tsx, packages/react/src/components/PageHeaderDeprecated/PageHeader.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/PageHeader/overflowHandler.ts:35 — `!el.offsetParent && getComputedStyle(el).display === 'none'` appears character-identically in 2 files — packages/react/src/components/PageHeader/overflowHandler.ts, packages/web-components/src/components/page-header/_story-assets/overflowHandler.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/web-components/src/components/modal/modal.ts:127 — `!event.shiftKey && document.activeElement === _lastElement` appears character-identically in 2 files — packages/web-components/src/components/modal/modal.ts, packages/web-components/src/components/side-panel/side-panel.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/.storybook-v12/main.ts:45 — `!isFeatureFlagStory(story) || story.startsWith('./')` appears character-identically in 2 files — packages/react/.storybook-v12/main.ts, packages/web-components/.storybook-v12/main.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/ProgressBar/ProgressBar.tsx:84 — `!isFinished && !isError && (value === null || value === undefined)` appears character-identically in 2 files — packages/react/src/components/ProgressBar/ProgressBar.tsx, packages/web-components/src/components/progress-bar/progress-bar.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/TextInput/PasswordInput.tsx:423 — `!isFluid && !inline && (normalizedProps.validation || helper)` appears character-identically in 2 files — packages/react/src/components/TextInput/PasswordInput.tsx, packages/react/src/components/TextInput/TextInput.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/AddSelect/AddSelectSelectionSummaryItem.tsx:177 — `!item?.itemDetails || !Array.isArray(item.itemDetails)` appears character-identically in 2 files — packages/react/src/components/AddSelect/AddSelectSelectionSummaryItem.tsx, packages/web-components/src/components/add-select/add-select-selection-summary-item.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/AddSelect/AddSelectItemPanel.tsx:101 — `!itemDetails || !Array.isArray(itemDetails) || itemDetails.length === 0` appears character-identically in 2 files — packages/react/src/components/AddSelect/AddSelectItemPanel.tsx, packages/web-components/src/components/add-select/add-select-item-panel.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/Checkbox/Checkbox.tsx:151 — `!normalizedProps.invalid && !normalizedProps.warn` appears character-identically in 5 files — packages/react/src/components/Checkbox/Checkbox.tsx, packages/react/src/components/CheckboxGroup/CheckboxGroup.tsx, packages/web-components/src/components/checkbox/checkbox-group.ts, packages/web-components/src/components/checkbox/checkbox.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/RadioButtonGroup/RadioButtonGroup.tsx:219 — `!readOnly && !disabled && !invalid && warn` appears character-identically in 2 files — packages/react/src/components/RadioButtonGroup/RadioButtonGroup.tsx, packages/web-components/src/components/radio-button/radio-button-group.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/internal/useNormalizedInputProps.tsx:72 — `!readOnly && !invalid && !disabled && warn` appears character-identically in 2 files — packages/react/src/internal/useNormalizedInputProps.tsx, packages/web-components/src/components/dropdown/dropdown.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/web-components/src/components/fluid-time-picker/fluid-time-picker.ts:53 — `!readOnly && !invalid && !disabled && warning` appears character-identically in 2 files — packages/web-components/src/components/fluid-time-picker/fluid-time-picker.ts, packages/web-components/src/components/time-picker/time-picker.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/web-components/src/components/checkbox/checkbox-group.ts:174 — `!readonly && !invalid && !disabled && warn` appears character-identically in 3 files — packages/web-components/src/components/checkbox/checkbox-group.ts, packages/web-components/src/components/checkbox/checkbox.ts, packages/web-components/src/components/select/select.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/PageHeader/utils.ts:95 — `!target || !style || style.position === 'fixed'` appears character-identically in 2 files — packages/react/src/components/PageHeader/utils.ts, packages/web-components/src/components/page-header/utils.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/web-components/src/components/dropdown/dropdown-item.ts:167 — `!textContainer || this._hasEllipsisApplied === true` appears character-identically in 3 files — packages/web-components/src/components/dropdown/dropdown-item.ts, packages/web-components/src/components/page-header-deprecated/page-header-content.ts, packages/web-components/src/components/page-header/page-header-content.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/web-components/src/components/action-set/action-set.ts:380 — `!this.actions || this.actions.length === 0` appears character-identically in 2 files — packages/web-components/src/components/action-set/action-set.ts, packages/web-components/src/components/tearsheet/tearsheet-footer.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/code-connect/Toggletip/Toggletip.figma.ts:42 — `(child.name === 'Link' || child.name === 'Button') && child.hasCodeConnect()` appears character-identically in 2 files — packages/react/code-connect/Toggletip/Toggletip.figma.ts, packages/web-components/code-connect/toggletip/toggletip.figma.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/web-components/src/components/date-picker/date-picker-input.ts:45 — `(elem as HTMLElement).matches( (this.constructor as typeof CDSDatePickerInput).aiLabelItem ) || (elem as HTMLElement).matches( (this.constru…` appears character-identically in 2 files — packages/web-components/src/components/date-picker/date-picker-input.ts, packages/web-components/src/components/date-picker/next/components/date-picker-input.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/ComposedModal/ModalFooter.tsx:44 — `Array.isArray(secondaryButtons) && secondaryButtons.length <= 2` appears character-identically in 3 files — packages/react/src/components/ComposedModal/ModalFooter.tsx, packages/react/src/components/Dialog/Dialog.tsx, packages/react/src/components/Modal/Modal.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/react/src/components/ComposedModal/ModalFooter.tsx:236 — `Array.isArray(secondaryButtons) && secondaryButtons.length === 2` appears character-identically in 3 files — packages/react/src/components/ComposedModal/ModalFooter.tsx, packages/react/src/components/Dialog/Dialog.tsx, packages/react/src/components/Modal/Modal.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/web-components/src/components/file-uploader/file-uploader-button.ts:97 — `acceptedTypes.has(mimeType) || (fileExtension && acceptedTypes.has(fileExtension))` appears character-identically in 2 files — packages/web-components/src/components/file-uploader/file-uploader-button.ts, packages/web-components/src/components/file-uploader/file-uploader-drop-container.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/utilities/src/overflowHandler/overflowHandler.ts:123 — `accumulated + size <= available && (!maxVisibleItems || visibleItems.length < maxVisibleItems)` appears character-identically in 2 files — packages/utilities/src/overflowHandler/overflowHandler.ts, packages/web-components/src/components/page-header/_story-assets/overflowHandler.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • + 15 more in this group — see findings.md.
P2 · Observability · Console output used as the logging channel · ×18
  • Console output used as the logging channel packages/upgrade/transforms/icons-react-size-prop.js:321 — `packages/upgrade/transforms/icons-react-size-prop.js` reports through `console.*` at line 321 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/wc-report-non-barrel-imports.js:141 — `packages/upgrade/transforms/wc-report-non-barrel-imports.js` reports through `console.*` at line 141 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.input.js:48 — `packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.input.js` reports through `console.*` at line 48 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.input.js:52 — `packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.input.js` reports through `console.*` at line 52 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.output.js:48 — `packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.output.js` reports through `console.*` at line 48 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.output.js:52 — `packages/upgrade/transforms/__testfixtures__/featureflag-deprecate-flags-prop.output.js` reports through `console.*` at line 52 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:49 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 49 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:55 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 55 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:71 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 71 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:77 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 77 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:132 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 132 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js:141 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.input.js` reports through `console.*` at line 141 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:47 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 47 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:53 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 53 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:67 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 67 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:73 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 73 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:120 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 120 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js:128 — `packages/upgrade/transforms/__testfixtures__/ibm-products-update-page-header-composable.output.js` reports through `console.*` at line 128 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
D10 · Test Quality · Mock-dominated test · ×15
  • Mock-dominated test: should cancel a pending rAF when disconnect() is called packages/utilities/src/overflowHandler/overflowHandler-test.js:551 — This test sets up 3 test doubles (for example `jest.spyOn`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should return correct callback data when transitions or animations are disabled packages/utilities/src/carousel/carousel-test.js:141 — This test sets up 8 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should call handlers in order and stop after one calls `preventDefault` packages/react/src/tools/__tests__/events-test.js:72 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 6 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: schedules a new animation frame after cleanup cancels a pending frame packages/react/src/internal/__tests__/useResizeObserver-test.js:164 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: does not run focus-wrap when a floating menu is focused on packages/react/src/internal/__tests__/wrapFocus-test.js:113 — This test sets up 3 test doubles (for example `a double assigned in a shared setup`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: respects prefix overrides when checking floating menus packages/react/src/internal/__tests__/wrapFocus-test.js:126 — This test sets up 3 test doubles (for example `a double assigned in a shared setup`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should call onTreeSelect, onNodeSelect, and rest.onClick when not disabled packages/react/src/components/TreeView/__tests__/TreeNode-test.js:178 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should cancel a pending resize animation frame on unmount packages/react/src/components/Tabs/__tests__/Tabs-test.js:794 — This test sets up 5 test doubles (for example `jest .spyOn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should warn once for each deprecated surface packages/react/src/components/PageHeaderDeprecated/PageHeader-test.js:65 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 8 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should return array of files marked as invalid if they dont match accepted types packages/react/src/components/FileUploader/__tests__/FileUploaderDropContainer-test.js:479 — This test sets up 3 test doubles (for example `jest.fn`) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should ignore directory items dropped via dataTransfer.items packages/react/src/components/FileUploader/__tests__/FileUploaderDropContainer-test.js:725 — This test sets up 5 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should provide access to the feature flags for a scope through deprecated flags prop packages/react/src/components/FeatureFlags/__tests__/FeatureFlags-test.js:35 — This test sets up 3 test doubles (for example `jest.spyOn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should support `DialogFooter` secondary buttons array and primary submit packages/react/src/components/Dialog/Dialog-test.js:241 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should call close handlers for secondary buttons without `onClick` packages/react/src/components/ComposedModal/ModalFooter-test.js:167 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: skips typed-event inference when Bob already commented on opened actions/issues/src/plugins/bob-bug-triage-test.js:156 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
D12 · Dependency Hygiene · Outdated (npm) · ×14
  • Outdated (npm): @carbon/cli-reporter packages/cli-reporter/package.json:2 — @carbon/cli-reporter is pinned at 0.0.0-use.local; registry.npmjs.org publishes 10.9.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/colors packages/colors/examples/colors-explorer/package.json:9 — @carbon/colors is pinned at 0.0.0-use.local; registry.npmjs.org publishes 11.61.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/grid packages/elements/package.json:47 — @carbon/grid is pinned at 0.0.0-use.local; registry.npmjs.org publishes 11.65.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/icons-react packages/icons-react/package.json:2 — @carbon/icons-react is pinned at 0.0.0-use.local; registry.npmjs.org publishes 11.92.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/layout packages/elements/package.json:49 — @carbon/layout is pinned at 0.0.0-use.local; registry.npmjs.org publishes 11.62.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/motion packages/elements/package.json:50 — @carbon/motion is pinned at 0.0.0-use.local; registry.npmjs.org publishes 11.55.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/themes packages/colors/examples/colors-explorer/package.json:10 — @carbon/themes is pinned at 0.0.0-use.local; registry.npmjs.org publishes 11.84.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/type packages/elements/package.json:52 — @carbon/type is pinned at 0.0.0-use.local; registry.npmjs.org publishes 11.70.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @octokit/plugin-retry packages/cli/package.json:34 — @octokit/plugin-retry is pinned at 3.0.9; registry.npmjs.org publishes 8.1.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @octokit/plugin-throttling packages/cli/package.json:35 — @octokit/plugin-throttling is pinned at 4.3.0; registry.npmjs.org publishes 11.0.5 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @typescript-eslint/eslint-plugin config/eslint-config-carbon/package.json:37 — @typescript-eslint/eslint-plugin is pinned at 5.59.6; registry.npmjs.org publishes 8.72.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @typescript-eslint/parser config/eslint-config-carbon/package.json:38 — @typescript-eslint/parser is pinned at 5.60.1; registry.npmjs.org publishes 8.72.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): browserslist-config-carbon config/babel-preset-carbon/package.json:29 — browserslist-config-carbon is pinned at 0.0.0-use.local; registry.npmjs.org publishes 11.2.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): stylelint-config-standard config/stylelint-config-carbon/package.json:34 — stylelint-config-standard is pinned at 36.0.1; registry.npmjs.org publishes 41.0.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
D16 · Bus Factor · Off-boarding risk · ×8
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 20 significant file(s) lose their only recent owner: packages/react/src/components/Resizer/Resizer.stories.js, packages/web-components/src/components/tearsheet/tearsheet-header-content.ts, packages/web-components/src/components/tearsheet/tearsheet.stories.ts, packages/react/src/components/Tearsheet/Tearsheet.tsx, packages/web-components/src/components/tearsheet/_story-assets/step-tearsheet.ts, packages/web-components/src/utilities/step-flow/_story-assets/step-full-page.ts, packages/react/src/components/Tearsheet/TearsheetBody.tsx, packages/web-components/src/utilities/step-flow/_story-assets/step-tearsheet.ts (+12 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 10 significant file(s) lose their only recent owner: packages/react/src/components/Card/Card.stories.js, packages/web-components/src/components/card/card.stories.ts, packages/web-components/src/components/card/card-actions.ts, packages/web-components/src/components/card/card.ts, packages/react/src/components/Card/Card.tsx, packages/react/src/components/Card/CardActions.tsx, packages/web-components/src/components/card/card-title.ts, packages/react/src/components/Card/CardTitle.tsx (+2 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #3 — If anonymized user #3 becomes unavailable, 6 significant file(s) lose their only recent owner: packages/web-components/src/components/form-group/form-group.stories.ts, packages/web-components/src/components/list/ordered-list.stories.ts, packages/react/src/components/StructuredList/StructuredList.featureflag.stories.js, packages/web-components/src/components/notification/toast-notification.stories.ts, packages/web-components/src/components/notification/inline-notification.stories.ts, packages/react/src/components/FormLabel/FormLabel.stories.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #4 — If anonymized user #4 becomes unavailable, 5 significant file(s) lose their only recent owner: actions/issues/src/plugins/bob-bug-triage.js, tasks/prepare-v12-storybook.mjs, packages/icon-build-helpers/src/metadata/extensions/output/optimizer.js, actions/validate-pr-template/index.js, actions/issues/src/run.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #5 — If anonymized user #5 becomes unavailable, 5 significant file(s) lose their only recent owner: packages/web-components/src/components/date-picker/range-plugin.ts, packages/react/src/components/ListBox/ListBoxSelection.tsx, packages/react/src/components/ListBox/test-helpers.ts, packages/web-components/src/components/date-picker/fix-events-plugin.ts, packages/web-components/src/components/ui-shell/side-nav-link.ts. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #6 — If anonymized user #6 becomes unavailable, 4 significant file(s) lose their only recent owner: packages/utilities/src/date-picker/primitives/actions.ts, packages/web-components/src/components/floating-menu/floating-menu.ts, packages/web-components/src/components/dialog/dialog.ts, packages/utilities/src/date-picker/primitives/types.ts. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #7 — If anonymized user #7 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/utilities/src/makeDraggable/makeDraggable.ts, packages/web-components/src/components/user-avatar/user-avatar.stories.ts, packages/web-components/src/components/user-avatar/user-avatar.ts. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #8 — If anonymized user #8 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/test-utils/tokens.js, packages/web-components/src/globals/mixins/validity.ts, packages/web-components/src/globals/mixins/form.ts. Pair on, review, or document these before any departure.
M4 · Documentation accuracy · README/code drift · ×4
  • README/code drift docs/postmortems/README.md:15 — docs/postmortems/README.md links to `./00-template.md`, but `docs/postmortems/00-template.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift packages/carbon-components/README.md:46 — packages/carbon-components/README.md links to `./docs/sass.md#configuration`, but `packages/carbon-components/docs/sass.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift packages/icon-build-helpers/src/metadata/README.md:28 — packages/icon-build-helpers/src/metadata/README.md links to `./registry.js`, but `packages/icon-build-helpers/src/metadata/registry.js` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift packages/react/src/internal/README.md:3 — packages/react/src/internal/README.md links to `./FeatureFlags.js`, but `packages/react/src/internal/FeatureFlags.js` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
X7 · Silent fallback defaults · Pending state with no failure state · ×4
  • Pending state with no failure state packages/react/src/components/InterstitialScreen/InterstitialScreenFooter.tsx:165 — The view draws `<InlineLoading/>` under `loadingAction === 'skip'`, but `loadingAction` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/react/src/components/InterstitialScreen/InterstitialScreenFooter.tsx:178 — The view draws `<InlineLoading/>` under `loadingAction === 'back'`, but `loadingAction` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/react/src/components/InterstitialScreen/InterstitialScreenFooter.tsx:192 — The view draws `<InlineLoading/>` under `loadingAction === 'next'`, but `loadingAction` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/react/src/components/InterstitialScreen/InterstitialScreenFooter.tsx:205 — The view draws `<InlineLoading/>` under `loadingAction === 'start'`, but `loadingAction` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
D30 · Dependency Vulnerabilities · Low CVE · ×3
  • REDACTED
  • REDACTED
  • REDACTED
AX6 · Interface segregation · Fat interface · ×1
  • Fat interface: DataTableRenderProps (16 required operations) packages/react/src/components/DataTable/DataTable.tsx:121 — `DataTableRenderProps` declares 16 required operations: `getHeaderProps`, `getExpandHeaderProps`, `getRowProps`, `getExpandedRowProps`, `getSelectionProps`, `getToolbarProps`, `getBatchActionProps`, `getTableProps`, `getTableContainerProps`, `getCellProps`, `onInputChange`, `sortBy`, `selectAll`, `selectRow`, `expandRow`, `expandAll`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 7 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (65 single-owned of 897 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 897 of the 2119 production source files in this repository met that bar). They are anonymized user #9 (2 file(s)), anonymized user #10 (1 file(s)), anonymized user #11 (1 file(s)), anonymized user #12 (1 file(s)), anonymized user #13 (1 file(s)), anonymized user #14 (1 file(s)) (+1 more) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: packages/web-components/src/utilities/overflow-handler/overflow-handler.stories.ts, packages/react/src/components/OverflowHandler/OverflowHandler.stories.js, packages/react/src/components/NotificationsPanel/NotificationsPanel.stories.js, packages/cli/src/changelog.js, packages/web-components/src/components/icon/icon.stories.ts, packages/web-components/src/components/date-picker/month-select-plugin.ts, packages/web-components/src/components/guide-banner/guide-banner.ts, packages/web-components/src/globals/internal/icon-loader-utils.ts.
D21 · Naming Consistency · `_timeoutID` spells `ID` where 122 names in the project spell it `Id` · ×1
  • `_timeoutID` spells `ID` where 122 names in the project spell it `Id` packages/web-components/src/components/notification/inline-notification.ts:55 — 122 of 124 names in project carbon spell the token `Id` (122 of 124; unit: names in project carbon containing `Id`). Peers: AddSelectRowProps.itemId (packages/react/src/components/AddSelect/AddSelectRow.tsx:35); AddSelectRowProps.parentId (packages/react/src/components/AddSelect/AddSelectRow.tsx:67); CheckboxGroupProps.legendId (packages/react/src/components/CheckboxGroup/CheckboxGroup.tsx:35); index.defaultTranslateWithId (packages/react/src/components/ComboButton/index.tsx:46); index.defaultTranslateWithId(messageId) (packages/react/src/components/ComboButton/index.tsx:46). Rename to `_timeoutId`. [rule N6]
D21 · Naming Consistency · `timeoutID` spells `ID` where 122 names in the project spell it `Id` · ×1
  • `timeoutID` spells `ID` where 122 names in the project spell it `Id` packages/web-components/src/components/notification/inline-notification.ts:67 — 122 of 124 names in project carbon spell the token `Id` (122 of 124; unit: names in project carbon containing `Id`). Peers: AddSelectRowProps.itemId (packages/react/src/components/AddSelect/AddSelectRow.tsx:35); AddSelectRowProps.parentId (packages/react/src/components/AddSelect/AddSelectRow.tsx:67); CheckboxGroupProps.legendId (packages/react/src/components/CheckboxGroup/CheckboxGroup.tsx:35); index.defaultTranslateWithId (packages/react/src/components/ComboButton/index.tsx:46); index.defaultTranslateWithId(messageId) (packages/react/src/components/ComboButton/index.tsx:46). Rename to `timeoutId`. [rule N6]
D25 · ADR Conformance · ADR not followed · ×1
  • ADR not followed: 3. Use `preview` moniker instead of `experimental` docs/decisions/0003-use-preview-moniker.md:42 — docs/decisions/0003-use-preview-moniker.md:42 rules out `preview`, but production code uses it: packages/web-components/src/components/date-picker/next/components/date-picker.ts:1054, packages/web-components/src/components/date-picker/next/components/date-picker.ts:1063, packages/web-components/src/components/date-picker/next/components/date-picker.ts:1065, packages/web-components/src/components/date-picker/next/components/date-picker.ts:1067, packages/upgrade/transforms/__testfixtures__/enable-v12-release.input.tsx:22 (+3 more). Remove the use, or supersede the record if the decision changed.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 2 of 39 project(s) overshoot their size bounds, lowering Project Cohesion to 9.0/10. The most over is `packages/react` (95661 LoC, 1156 module-visible types across 304 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D34 · Knowledge Freshness · Further orphaned files (smaller) · ×1
  • Further orphaned files (smaller) — 88 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: packages/react/src/components/ComposedModal/ModalFooter.tsx, packages/upgrade/transforms/enable-v12-release.js, packages/upgrade/transforms/icons-react-size-prop.js, REDACTED, packages/themes/src/v10/white.ts, packages/themes/src/v10/g90.ts, packages/themes/src/v10/g10.ts, packages/themes/src/v10/g100.ts (and 80 more) (90 orphaned of 899 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 899 of the 2119 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
GD1 · Unfinished & placeholder code · Placeholder literal left in code · ×1
  • Placeholder literal left in code packages/web-components/src/components/side-panel/_story-assets/index.ts:194 — A placeholder string ("<cds-slug size="xs" alignment="bottom-ri…") is still in shipped code — typical of generated boilerplate that was never filled in.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 2/3 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `packages/web-components`.
P3 · Security & performance tooling · Dependabot does not watch npm · ×1
  • Dependabot does not watch npm REDACTED:2 — `REDACTED` schedules updates, but no `package-ecosystem` entry covers `npm`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the `updates:` list.
S1 · Web-Security Posture · No security response headers detected · ×1
  • No security response headers detected netlify.toml:1 — None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `netlify.toml` configures this repository's static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.)
X5 · Nullable reference types · Strict null checking is not enabled everywhere the repository type-checks · ×1
  • Strict null checking is not enabled everywhere the repository type-checks — 17/40 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
X5 · Nullable reference types · Null assertions (`!`) override strict null checking · ×1
  • Null assertions (`!`) override strict null checking — ~1.5 `!` null assertions per 1k TypeScript source lines — 279 assertion(s) across the 191143 source line(s) of the 1520 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: packages/web-components/src/components/date-picker/date-picker.ts (14), packages/web-components/src/components/code-snippet/code-snippet.ts (12), packages/web-components/src/components/date-picker/date-picker-input.ts (11). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.
X7 · Silent fallback defaults · Silent fallback default in catch · ×1
  • Silent fallback default in catch packages/web-components/src/components/resizer/defs.ts:182 — `safeQuerySelectorAll` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Minor — 70 finding(s)
D12 · Dependency Hygiene · Outdated (npm) · ×66
  • Outdated (npm): @babel/core — @babel/core is pinned at 8.0.1; registry.npmjs.org publishes 8.1.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @babel/eslint-parser — @babel/eslint-parser is pinned at 8.0.1; registry.npmjs.org publishes 8.1.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @babel/plugin-transform-export-namespace-from — @babel/plugin-transform-export-namespace-from is pinned at 8.0.1; registry.npmjs.org publishes 8.1.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @babel/plugin-transform-react-constant-elements — @babel/plugin-transform-react-constant-elements is pinned at 8.0.1; registry.npmjs.org publishes 8.0.5 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @babel/plugin-transform-runtime — @babel/plugin-transform-runtime is pinned at 8.0.1; registry.npmjs.org publishes 8.1.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @babel/preset-env — @babel/preset-env is pinned at 8.0.2; registry.npmjs.org publishes 8.0.7 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @babel/preset-typescript — @babel/preset-typescript is pinned at 8.0.1; registry.npmjs.org publishes 8.0.7 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @babel/runtime — @babel/runtime is pinned at 8.0.0; registry.npmjs.org publishes 8.1.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/feature-flags — @carbon/feature-flags is pinned at 0.0.0-use.local; registry.npmjs.org publishes 1.11.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/ibm-products — @carbon/ibm-products is pinned at 2.99.0; registry.npmjs.org publishes 2.102.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/ibm-products-web-components — @carbon/ibm-products-web-components is pinned at 0.49.0; registry.npmjs.org publishes 0.51.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/icon-helpers — @carbon/icon-helpers is pinned at 10.47.0; registry.npmjs.org publishes 10.84.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/icons — @carbon/icons is pinned at 11.90.0; registry.npmjs.org publishes 11.91.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/react — @carbon/react is pinned at 0.0.0-use.local; registry.npmjs.org publishes 1.120.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/styles — @carbon/styles is pinned at 0.0.0-use.local; registry.npmjs.org publishes 1.118.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @carbon/utilities — @carbon/utilities is pinned at 0.0.0-use.local; registry.npmjs.org publishes 0.28.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @double-great/stylelint-a11y — @double-great/stylelint-a11y is pinned at 3.4.10; registry.npmjs.org publishes 3.8.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @floating-ui/dom — @floating-ui/dom is pinned at 1.6.13; registry.npmjs.org publishes 1.8.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @floating-ui/react — @floating-ui/react is pinned at 0.27.4; registry.npmjs.org publishes 0.27.20 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @ibm/telemetry-js — @ibm/telemetry-js is pinned at 1.11.0; registry.npmjs.org publishes 1.12.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @internationalized/number — @internationalized/number is pinned at 3.6.1; registry.npmjs.org publishes 3.6.9 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @npmcli/arborist — @npmcli/arborist is pinned at 9.9.3; registry.npmjs.org publishes 10.0.4 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @octokit/rest — @octokit/rest is pinned at 22.0.0; registry.npmjs.org publishes 22.0.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @types/node — @types/node is pinned at 25.9.3; registry.npmjs.org publishes 26.6.6 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): axe-core — axe-core is pinned at 4.11.0; registry.npmjs.org publishes 4.14.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • + 41 more in this group — see findings.md.
D24 · Comment Value · doc comments repeat the names · ×3
  • doc comments repeat the names packages/react/src/components/AddSelect/AddSelect.tsx:26 — 3 of 114 documented parameters and 83 of 5007 summaries in `@carbon/react` only repeat the member or parameter name (e.g. "---------- AddSelect ----------" for `AddSelectProps`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/utilities/src/addSelect/addSelectData.ts:324 — 49 of 150 documented parameters and 8 of 255 summaries in `@carbon/utilities` only repeat the member or parameter name (e.g. "Clear all selections." for `clearSelections`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/web-components/src/components/accordion/accordion-item-skeleton.ts:17 — 80 of 321 documented parameters and 322 of 3064 summaries in `@carbon/web-components` only repeat the member or parameter name (e.g. "Skeleton of accordion item." for `CDSAccordionItemSkeleton`). Delete the restating tags, or add what the name does not say.
D10 · Test Quality · Skipped (documented) · ×1
  • Skipped (documented): should both block submission when required and empty packages/web-components/src/globals/mixins/__tests__/form-associated-test.js:334 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-6ee5ac5a4da54816895e3ac295660b53/history.json --exit-code 0 --source .67artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-6ee5ac5a4da54816895e3ac295660b53/tree.json --exit-code 0 --source .3artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt --exclude .yarn/releases --exclude packages/carbon-components/scss --exclude packages/carbon-components-react/scss --exclude packages/cli/src/component/templates --exclude packages/colors/examples/colors-explorer --exclude packages/colors/examples/preview/src --exclude packages/colors/examples/sass-modules --exclude packages/grid/examples --exclude packages/icons/examples --exclude packages/icons-vue/examples/vue-cli/src/components --exclude packages/layout/examples --exclude packages/motion/examples --exclude packages/motion/style-dictionary/formats --exclude packages/pictograms/docs --exclude packages/pictograms/examples --exclude packages/react/examples/custom-data-table-state-manager-vite/src --exclude packages/react/examples/drag-and-drop-file-uploader-vite/src --exclude packages/react/examples/react-router --exclude packages/react/scss/compat --exclude packages/react/scss/components/accordion --exclude packages/react/scss/components/action-set --exclude packages/react/scss/components/add-select --exclude packages/react/scss/components/ai-label --exclude packages/react/scss/components/aspect-ratio --exclude packages/react/scss/components/badge-indicator --exclude packages/react/scss/components/big-number --exclude packages/react/scss/components/breadcrumb --exclude packages/react/scss/components/button --exclude packages/react/scss/components/chat-button --exclude packages/react/scss/components/checkbox --exclude packages/react/scss/components/code-snippet --exclude packages/react/scss/components/combo-box --exclude packages/react/scss/components/contained-list --exclude packages/react/scss/components/content-switcher --exclude packages/react/scss/components/copy-button --exclude packages/react/scss/components/data-table --exclude packages/react/scss/components/date-picker --exclude packages/react/scss/components/dialog --exclude packages/react/scss/components/dropdown --exclude packages/react/scss/components/file-uploader --exclude packages/react/scss/components/fluid-combo-box --exclude packages/react/scss/components/fluid-date-picker --exclude packages/react/scss/components/fluid-dropdown --exclude packages/react/scss/components/fluid-list-box --exclude packages/react/scss/components/fluid-multiselect --exclude packages/react/scss/components/fluid-number-input --exclude packages/react/scss/components/fluid-search --exclude packages/react/scss/components/fluid-select --exclude packages/react/scss/components/fluid-text-area --exclude packages/react/scss/components/fluid-text-input --exclude packages/react/scss/components/fluid-time-picker --exclude packages/react/scss/components/form --exclude packages/react/scss/components/guidebanner --exclude packages/react/scss/components/icon-indicator --exclude packages/react/scss/components/inline-loading --exclude packages/react/scss/components/link --exclude packages/react/scss/components/list --exclude packages/react/scss/components/list-box --exclude packages/react/scss/components/loading --exclude packages/react/scss/components/menu --exclude packages/react/scss/components/modal --exclude packages/react/scss/components/multiselect --exclude packages/react/scss/components/notification --exclude packages/react/scss/components/notifications-panel --exclude packages/react/scss/components/number-input --exclude packages/react/scss/components/overflow-menu --exclude packages/react/scss/components/page-header --exclude packages/react/scss/components/pagination --exclude packages/react/scss/components/pagination-nav --exclude packages/react/scss/components/popover --exclude packages/react/scss/components/progress-bar --exclude packages/react/scss/components/progress-indicator --exclude packages/react/scss/components/radio-button --exclude packages/react/scss/components/resizer --exclude packages/react/scss/components/scroll-gradient --exclude packages/react/scss/components/search --exclude packages/react/scss/components/select --exclude packages/react/scss/components/side-panel --exclude packages/react/scss/components/skeleton-styles --exclude packages/react/scss/components/slider --exclude packages/react/scss/components/slug --exclude packages/react/scss/components/stack --exclude packages/react/scss/components/structured-list --exclude packages/react/scss/components/tabs --exclude packages/react/scss/components/tag --exclude packages/react/scss/components/tag-overflow --exclude packages/react/scss/components/tearsheet --exclude packages/react/scss/components/text-area --exclude packages/react/scss/components/text-input --exclude packages/react/scss/components/tile --exclude packages/react/scss/components/time-picker --exclude packages/react/scss/components/toggle --exclude packages/react/scss/components/toggletip --exclude packages/react/scss/components/tooltip --exclude packages/react/scss/components/treeview --exclude packages/react/scss/components/truncated-text --exclude packages/react/scss/components/ui-shell --exclude packages/react/scss/components/user-avatar --exclude packages/react/scss/fonts --exclude packages/react/scss/grid --exclude packages/react/scss/type --exclude packages/react/scss/utilities --exclude packages/react/src/components/DataTable/stories/examples --exclude packages/react/src/examples/AboutModal/example/components --exclude packages/react/src/examples/AboutModal/example/preview-components --exclude packages/react/src/examples/AddSelect --exclude packages/react/src/examples/Carousel --exclude packages/react/src/examples/Coachmark/CoachmarkFixed --exclude packages/react/src/examples/Coachmark/CoachmarkOverlayElements/example/components --exclude packages/react/src/examples/Coachmark/CoachmarkStacked --exclude packages/react/src/examples/CreateFullPage --exclude packages/react/src/examples/CreateModal --exclude packages/react/src/examples/CreateSidePanel --exclude packages/react/src/examples/CreateTearsheet --exclude packages/react/src/examples/CreateTearsheetNarrow --exclude packages/react/src/examples/DateTimeFormat --exclude packages/react/src/examples/DeleteAndRemove --exclude packages/react/src/examples/EmptyState/example/components --exclude packages/react/src/examples/EmptyState/example/preview-components --exclude packages/react/src/examples/EmptyState/example/styles --exclude packages/react/src/examples/ExportModal --exclude packages/react/src/examples/GenerateAnAPIKey --exclude packages/react/src/examples/GetStartedCard/example/components --exclude packages/react/src/examples/GetStartedCard/example/preview-components --exclude packages/react/src/examples/GetStartedCard/example/styles --exclude packages/react/src/examples/ImportAndUpload --exclude packages/react/src/examples/Saving --exclude packages/react/src/examples/WebTerminal --exclude packages/react/src/examples/makeDraggable --exclude packages/styles/docs --exclude packages/test-utils/tokens/schemas/2025.10 --exclude packages/themes/examples/preview/src --exclude packages/themes/examples/preview-v10 --exclude packages/themes/examples/sass-modules --exclude packages/themes/examples/shared --exclude packages/themes/examples/token-explorer --exclude packages/type/examples --exclude packages/web-components/examples/autoalign/src --exclude packages/web-components/examples/components/accordion/src --exclude packages/web-components/examples/components/ai-label/src --exclude packages/web-components/examples/components/ai-skeleton/src --exclude packages/web-components/examples/components/breadcrumb/src --exclude packages/web-components/examples/components/button/src --exclude packages/web-components/examples/components/chat-button/src --exclude packages/web-components/examples/components/checkbox/src --exclude packages/web-components/examples/components/code-snippet/src --exclude packages/web-components/examples/components/combo-box/src --exclude packages/web-components/examples/components/content-switcher/src --exclude packages/web-components/examples/components/copy-button/src --exclude packages/web-components/examples/components/data-table/src --exclude packages/web-components/examples/components/date-picker/src --exclude packages/web-components/examples/components/dropdown/src --exclude packages/web-components/examples/components/file-uploader/src --exclude packages/web-components/examples/components/form-group/src --exclude packages/web-components/examples/components/icon-button/src --exclude packages/web-components/examples/components/icon-indicator/src --exclude packages/web-components/examples/components/inline-loading/src --exclude packages/web-components/examples/components/layer/src --exclude packages/web-components/examples/components/link/src --exclude packages/web-components/examples/components/list/src --exclude packages/web-components/examples/components/loading/src --exclude packages/web-components/examples/components/modal/src --exclude packages/web-components/examples/components/multi-select/src --exclude packages/web-components/examples/components/notification/src --exclude packages/web-components/examples/components/number-input/src --exclude packages/web-components/examples/components/overflow-menu/src --exclude packages/web-components/examples/components/pagination/src --exclude packages/web-components/examples/components/popover/src --exclude packages/web-components/examples/components/progress-bar/src --exclude packages/web-components/examples/components/progress-indicator/src --exclude packages/web-components/examples/components/radio-button/src --exclude packages/web-components/examples/components/search/src --exclude packages/web-components/examples/components/select/src --exclude packages/web-components/examples/components/side-panel/src --exclude packages/web-components/examples/components/skeleton-icon/src --exclude packages/web-components/examples/components/skeleton-placeholder/src --exclude packages/web-components/examples/components/skeleton-text/src --exclude packages/web-components/examples/components/skip-to-content/src --exclude packages/web-components/examples/components/slider/src --exclude packages/web-components/examples/components/stack/src --exclude packages/web-components/examples/components/structured-list/src --exclude packages/web-components/examples/components/tabs/src --exclude packages/web-components/examples/components/tag/src --exclude packages/web-components/examples/components/tearsheet/src --exclude packages/web-components/examples/components/text-input/src --exclude packages/web-components/examples/components/textarea/src --exclude packages/web-components/examples/components/tile/src --exclude packages/web-components/examples/components/toggle/src --exclude packages/web-components/examples/components/toggletip/src --exclude packages/web-components/examples/components/tooltip/src --exclude packages/web-components/examples/components/ui-shell/src --exclude packages/web-components/src/examples/add-select/example/src --exclude packages/web-components/src/examples/add-select/single-add-select --exclude packages/web-components/src/examples/coachmark/coachmark-fixed/example/src --exclude packages/web-components/src/examples/coachmark/coachmark-stacked/example/src --exclude packages/web-components/src/examples/create-flows/create-full-page/example/src --exclude packages/web-components/src/examples/create-flows/create-modal/example/src --exclude packages/web-components/src/examples/create-flows/create-side-panel/example/src --exclude packages/web-components/src/examples/create-flows/create-tearsheet/example/src/components --exclude packages/web-components/src/examples/delete-and-remove/example/src --exclude packages/web-components/src/examples/empty-state/example/src/components --exclude packages/web-components/src/examples/empty-state/example/src/preview-components --exclude packages/web-components/src/examples/empty-state/example/src/styles --exclude packages/web-components/src/examples/export-modal/example/src --exclude packages/web-components/src/examples/generate-an-api-key/example/src --exclude packages/web-components/src/examples/import-and-upload/example/src --exclude packages/web-components/src/examples/saving/example/src .51artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .54artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .13artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 31 file(s) — `packages/react/src/components/BadgeIndicator/index.tsx`, `packages/react/src/components/Breadcrumb/BreadcrumbItem.tsx`, `packages/react/src/components/DataTable/TableCell.tsx`, `packages/react/src/components/DataTable/TableHeader.tsx`, `packages/react/src/components/DataTable/TableRow.tsx`, … (+26 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/raw/trivy-fs.json

Run 01a1ddf2-b3e0-709b-89da-2d9546e17bef · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md