Public report of appsmithorg/appsmith, published 26 October 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.10.5). 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, 26 October 2026, 21:07 UTC · Survey ID cd_23ccbae8f7f1444db41ee203eed06243

appsmithorg/appsmith

Measured 26 October 2026, 20:59 UTC, at code version 44cfd62

Regression: 2 dimensions fell since the last survey

A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.

CAI score 44out of 100 At risk Down 2 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 very large codebase: 729,661 lines of product code in 46 projects, tests not counted · Estimated rebuild effort: about 9.3 person-years · Weakest lens: Production Readiness, 39

Findings by how serious they are

795 critical 3136 serious 1967 minor

14 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks 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

Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
26 October 2026, 20:59 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 Watchdog. It is open to any tool that implements it, and today Watchdog 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. Watchdog works 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 ▸

97of 97 dimensions measured by tools.
5865of 5898 findings point to an exact file and line, so you can open each one in the code. The other 33 concern the repository as a whole, such as missing documentation.
97dimensions across 8 lenses, read from 729,661 lines of product code in 46 projects.
Chapters

Executive summary

appsmithorg/appsmith is rated At risk because critical security findings are open, most of them in the build pipeline. Its score is held back because five passwords or keys sit in the current code and it has uses of packages that aren't listed. It scores 44 out of 100, which the At risk rating leaves unchanged.

Production Readiness, at 39, is the weakest lens and counts most in the score. The best first steps are replacing the five exposed passwords or keys and switching the old ones off and replacing the three packages under a banned licence, each worth about 4 points. Raising Production Readiness to 70 would lift the score to about 48.

336 pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. 158 secrets can leak from the build pipeline, and seventy-two passwords or keys in the code's history and five in the code are open to anyone who can read the repository. Pinning each tool to an exact version, limiting each secret to its own step and replacing each exposed password or key would close these risks. Passing outside input through environment variables would fix the 27 pipeline steps that put outside input straight into a shell command, and updating the vulnerable packages would deal with the 15 packages with a known security hole. The 37 loops of files that import each other need breaking.

The product code is 729,661 lines, about €1,400,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 39 · counts for 45%Accessibility 40 · counts for 25%Architecture 47 · counts for 14%Security and Compliance 53 · counts for 8%Performance 64 · counts for 4%Code Health 65 · counts for 2%Maturity 67 · counts for 1%Domain Modelling 96 · counts for 1%

If Production Readiness rose from 39 to 70, the lowest score rated Strong, the score would rise from 44 to about 48.

Code composition: what the lines of code are
Product code 63%Tests 37%
New since the last survey: 226 findings

These 226 critical or serious findings weren't in the previous survey, on 12 October 2026. The first 100 are listed here, and the findings file in the download package lists them all.

Watchdog compares 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: 2829 findings

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

  • Cyclomatic Complexity · HelpButton.HelpButton (cyclomatic 20) app/client/src/pages/Editor/HelpButton.tsx
  • Cyclomatic Complexity · AnalyticsServiceCEImpl.sendObjectEvent (cyclomatic 19) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AnalyticsServiceCEImpl.java
  • Cognitive Complexity · HelpButton.HelpButton (cognitive 35) app/client/src/pages/Editor/HelpButton.tsx
  • Cognitive Complexity · AnalyticsServiceCEImpl.sendObjectEvent (cognitive 20) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AnalyticsServiceCEImpl.java
  • Cognitive Complexity · DebuggerSagas.addDebuggerErrorLogsSaga (cognitive 19) app/client/src/sagas/DebuggerSagas.ts
  • Cognitive Complexity · MongoPluginExecutor.removeOrAddQuotesAroundMongoDBSpecialTypes (cognitive 16) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java
  • God Classes · FunctionTooLong: HelpButton.HelpButton app/client/src/pages/Editor/HelpButton.tsx
  • God Classes · FileTooLong: sagas/DebuggerSagas.ts app/client/src/sagas/DebuggerSagas.ts
  • Code Duplication · Edited copy of a member (30 corresponding lines) app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java
  • Code Duplication · Edited copy of a member (21 corresponding lines) REDACTED
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AmazonS3ErrorUtils.java
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java
  • Code Duplication · Duplicated block (15–16 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AnalyticsServiceCEImpl.java
  • Code Duplication · Duplicated block (15 lines × 2) app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java
  • Churn × Complexity Hotspots · Hotspot: app/client/src/pages/AppIDE/components/AppSettings/components/GeneralSettings.tsx app/client/src/pages/AppIDE/components/AppSettings/components/GeneralSettings.tsx
  • Churn × Complexity Hotspots · Hotspot: app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java
  • Churn × Complexity Hotspots · Hotspot: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AnalyticsServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AnalyticsServiceCEImpl.java
  • Explicit Debt · TodoComment repeated across 18 files app/client/src/widgets/CurrencyInputWidget/widget/parsedDerivedProperties.ts
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Dependency Vulnerabilities · Critical CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Critical CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Critical CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Critical CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Critical CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High vulnerability: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium vulnerability: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] app/server/appsmith-plugins/mysqlPlugin/pom.xml
  • IaC & Container Security · Medium IaC: CKV_DOCKER_7 REDACTED
  • IaC & Container Security · Medium IaC: CKV2_ANSIBLE_1 deploy/ansible/appsmith_playbook/roles/setup-appsmith/tasks/preflight.yml
  • Change Coupling · Change coupling: CentralGitServiceCE.java ↔ GitFSServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCE.java
  • Change Coupling · Change coupling: CentralGitServiceCEImpl.java ↔ GitFSServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java
  • Supply-chain Provenance & Signing · REDACTED
  • Supply-chain Provenance & Signing REDACTED
  • Supply-chain Provenance & Signing REDACTED
  • Supply-chain Provenance & Signing · REDACTED
  • Code Duplication · Wholesale file copy (727 identical lines × 2 files) app/client/src/constants/ISDCodes.tsx
  • Code Duplication · Duplicated block with local edits (193 matched lines × 2 locations) app/client/src/widgets/TableWidget/component/components/menuButtonTableComponent.tsx
  • Code Duplication · Wholesale file copy (182 identical lines × 2 files) app/client/src/widgets/MultiSelectTreeWidget/component/index.tsx
  • Code Duplication · Duplicated block with local edits (180 matched lines × 2 locations) app/client/src/widgets/wds/WDSCurrencyInputWidget/widget/index.tsx
  • Code Duplication · Wholesale file copy (175 identical lines × 2 files) app/client/src/widgets/TableWidgetV2/constants.ts
  • Code Duplication · Wholesale file copy (173 identical lines × 2 files) app/client/src/widgets/wds/WDSMultiSelectWidget/config/propertyPaneConfig/contentConfig.tsx
  • Code Duplication · Duplicated block (171 lines × 3 locations) REDACTED
  • Code Duplication · Duplicated block with local edits (170 matched lines × 2 locations) app/client/src/ce/components/editorComponents/GPT/AISidePanel.tsx
  • Code Duplication · Duplicated block (167 lines × 2 locations) app/client/src/widgets/TableWidget/component/CascadeFields.tsx
  • Code Duplication · Duplicated block with local edits (165 matched lines × 2 locations) app/client/src/widgets/MenuButtonWidget/component/index.tsx
  • Code Duplication · Wholesale file copy (159 identical lines × 2 files) REDACTED
  • Code Duplication · Duplicated block (157 lines × 2 locations) app/client/src/widgets/MultiSelectWidgetV2/widget/index.tsx
  • Code Duplication · Wholesale file copy (157 identical lines × 2 files) app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/SaveButtonProperties.ts
  • Code Duplication · Wholesale file copy (156 identical lines × 2 files) app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/DiscardButtonproperties.ts
  • Code Duplication · Wholesale file copy (153 identical lines × 2 files) app/client/packages/design-system/ads-old/src/constants/typography.ts
  • Code Duplication · Duplicated block with local edits (151 matched lines × 2 locations) app/client/src/git/components/common/AddDeployKey.tsx
  • Code Duplication · Duplicated block with local edits (148 matched lines × 2 locations) app/client/src/widgets/CurrencyInputWidget/widget/index.tsx
  • Code Duplication · Duplicated block with local edits (144 matched lines × 2 locations) app/client/packages/design-system/widgets-old/src/LabelWithTooltip/index.tsx
  • Code Duplication · Duplicated block with local edits (142 matched lines × 2 locations) app/client/src/widgets/TableWidget/component/TableDataDownload.tsx
  • Code Duplication · Duplicated block with local edits (129 matched lines × 2 locations) app/client/src/widgets/MultiSelectWidget/component/index.tsx
  • Code Duplication · Duplicated block with local edits (128 matched lines × 2 locations) app/client/src/widgets/TableWidgetV2/component/cellComponents/HeaderCell.tsx
  • Code Duplication · Duplicated block with local edits (127 matched lines × 2 locations) app/client/src/git/components/OpsModal/TabDeploy/TabDeployView.tsx
  • Code Duplication · Duplicated block with local edits (127 matched lines × 2 locations) app/client/src/widgets/TableWidgetV2/component/cellComponents/EmptyCell.tsx
  • Code Duplication · Wholesale file copy (122 identical lines × 3 files) app/client/src/WidgetQueryGenerators/MSSQL/index.ts
  • Code Duplication · Duplicated block (121 lines × 2 locations) app/client/src/widgets/MultiSelectWidgetV2/widget/index.tsx
  • Code Duplication · Duplicated block (118 lines × 2 locations) app/client/src/widgets/TableWidgetV2/widget/derived.js
  • Code Duplication · Duplicated block (114 lines × 3 locations) app/client/src/WidgetQueryGenerators/MSSQL/index.ts
  • Code Duplication · Duplicated block (113 lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block with local edits (112 matched lines × 2 locations) app/client/src/widgets/CurrencyInputWidget/component/CurrencyCodeDropdown.tsx
  • Code Duplication · Duplicated block with local edits (110 matched lines × 2 locations) app/client/src/components/propertyControls/TableComputeValue.tsx
  • Code Duplication · Duplicated block (109 lines × 2 locations) app/client/src/widgets/SelectWidget/widget/index.tsx
  • Code Duplication · Wholesale file copy (109 identical lines × 2 files) app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Events.ts
  • Code Duplication · Duplicated block (108 lines × 2 locations) app/client/src/widgets/PhoneInputWidget/widget/index.tsx
  • Code Duplication · Duplicated block with local edits (106 matched lines × 2 locations) app/client/src/components/propertyControls/ArrayComponent.tsx
  • Code Duplication · Duplicated block with local edits (104 matched lines × 2 locations) app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useBlocksToBeDraggedOnCanvas.ts
  • Code Duplication · Wholesale file copy (103 identical lines × 2 files) app/client/src/widgets/TableWidgetV2/widget/reactTableUtils/transformDataPureFn.tsx
  • Code Duplication · Duplicated block (101 lines × 2 locations) app/client/src/constants/DefaultTheme.tsx
  • Code Duplication · Duplicated block (100 lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block with local edits (100 matched lines × 2 locations) app/client/src/pages/Editor/Explorer/Actions/ActionEntityContextMenu.tsx
  • Code Duplication · Duplicated block with local edits (99 matched lines × 2 locations) app/client/src/layoutSystems/common/resizer/ModalResizable.tsx
  • Code Duplication · Duplicated block with local edits (98 matched lines × 2 locations) app/client/src/git/components/ProtectedBranches/ProtectedBranchesView.tsx
  • Code Duplication · Duplicated block (98 lines × 3 locations) app/client/src/widgets/RadioGroupWidget/widget/index.tsx
  • Code Duplication · Duplicated block (97 lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block with local edits (97 matched lines × 2 locations) app/client/src/widgets/CurrencyInputWidget/widget/index.tsx
  • Code Duplication · Duplicated block with local edits (96 matched lines × 2 locations) app/client/src/ce/sagas/JSActionSagas.ts
  • Code Duplication · Duplicated block with local edits (95 matched lines × 2 locations) app/client/src/widgets/NumberSliderWidget/component/Slider.tsx
  • Code Duplication · Duplicated block with local edits (95 matched lines × 2 locations) app/client/src/widgets/TableWidgetV2/component/Table.tsx
  • Code Duplication · Duplicated block (94 lines × 2 locations) app/client/src/widgets/CustomWidget/widget/index.tsx
  • Code Duplication · Duplicated block with local edits (93 matched lines × 2 locations) app/client/src/git/components/LocalProfile/LocalProfileView.tsx
  • Code Duplication · Wholesale file copy (93 identical lines × 2 files) app/client/src/widgets/MenuButtonWidget/widget/propertyConfig/contentConfig.ts
Rebuild cost: about €1,400,000 · Estimate
Cost to rebuild€450,000 to €2,300,000, for 7,515 to 23,840 hours of work, about 9.3 person-years for 5 to 18 engineers
Difficulty of the problemHigh, 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 44. 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.
SizeVery large: 729,661 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: Watchdog prices 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 5 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED, REDACTED.
Raises the score by about 4 points · Low effort · REDACTED Scanning
2
Resolve the 3 Banned license finding(s) in License Compliance.
Raises the score by about 4 points · Low effort · License Compliance
3
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
Raises the score by about 3 points · Medium effort · Dependency Hygiene

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 €1,400,000 to build again, about 9.3 person-years of work. Its weakest lens is Production Readiness, at 39 (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 5 Leaked secret finding(s) in REDACTED Scanning. Of all the actions in this report, it raises the score most for the work it takes: about 4 points for low effort, because it clears the 5 REDACTED Scanning 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 7.4 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 2% to 5% on every change. The history of the code shows how much it changes: about 247,540 lines over the last 90 days, which is about 1,003,912 lines a year. At that pace, the extra work comes to an estimated 50.2 to 334.6 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 Watchdog's 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 · Code Duplication · 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 @appsmith/ads ads @appsmith/ads-old ads-old @appsmith/eslint-plugin eslint-plugin @appsmith/utils utils @appsmith/wds wds @appsmith/wds-headless wds-headless @appsmith/wds->@appsmith/wds-headless @appsmith/wds-theming wds-theming @appsmith/wds->@appsmith/wds-theming @design-system/storybook storybook @design-system/storybook->@appsmith/wds @design-system/storybook->@appsmith/wds-theming @design-system/widgets-old widgets-old @shared/ast ast @shared/dsl dsl amazons3Plugin amazons3Plugin anthropicPlugin anthropicPlugin appsmith appsmith appsmith-git appsmith-git interfaces interfaces appsmith-git->interfaces appsmith-icons appsmith-icons appsmith-rts appsmith-rts appsmith-rts->@shared/ast reactiveCaching reactiveCaching server server server->appsmith-git server->interfaces server->reactiveCaching __more__ +24 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.

2733 modules, with 4146 dependencies between them. 13 loops run through 110 of the modules, marked above the diagonal.

The table shows the 40 modules with the most connections; 2693 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 app.client.packages.design-system.ads-old.src.DisplayImageUpload2 app.client.packages.design-system.ads-old.src.types.common3 app.client.packages.mcp.src.app4 app.client.packages.mcp.src.builder5 app.client.src.ce.reducers.entityReducers.canvasWidgetsReducer6 app.client.src.components.formControls.BaseControl7 app.client.src.constants.WidgetConstants8 app.client.src.entities.DataTree.dataTreeTypes9 app.client.src.entities.Plugin10 app.client.src.git.requests11 app.client.src.layoutSystems.common.utils.constants12 com.appsmith.server.acl13 app.client.src.components.editorComponents.CodeEditor.EditorConfig14 app.client.src.entities.AppTheming15 app.client.src.entities.Datasource16 app.client.src.layoutSystems.anvil.utils.anvilTypes17 app.client.src.widgets.BaseWidget18 com.appsmith.external.models19 com.appsmith.server.constants20 com.appsmith.server.solutions21 app.client.src.WidgetProvider.types22 app.client.src.components.editorComponents.CodeEditor23 app.client.src.entities.Action24 com.appsmith.external.dtos25 com.appsmith.server.newactions.base26 app.client.src.actions27 app.client.src.ce.sagas28 app.client.src.sagas29 app.client.src.utils30 com.appsmith.server.services.ce31 com.appsmith.server.services32 com.appsmith.server.repositories33 com.appsmith.server.configurations34 com.appsmith.server.helpers.ce35 com.appsmith.server.helpers36 com.appsmith.server.dtos37 com.appsmith.server.domains38 com.appsmith.server.applications.base39 com.appsmith.server.git.central40 com.appsmith.server.controllers.ce
1 app.client.packages.design-system.ads-old.src.DisplayImageUpload
2 app.client.packages.design-system.ads-old.src.types.common
3 app.client.packages.mcp.src.app
4 app.client.packages.mcp.src.builder
5 app.client.src.ce.reducers.entityReducers.canvasWidgetsReducer
6 app.client.src.components.formControls.BaseControl
7 app.client.src.constants.WidgetConstants
8 app.client.src.entities.DataTree.dataTreeTypes
9 app.client.src.entities.Plugin
10 app.client.src.git.requests
11 app.client.src.layoutSystems.common.utils.constants
12 com.appsmith.server.acl
13 app.client.src.components.editorComponents.CodeEditor.EditorConfig1
14 app.client.src.entities.AppTheming1
15 app.client.src.entities.Datasource1
16 app.client.src.layoutSystems.anvil.utils.anvilTypes23
17 app.client.src.widgets.BaseWidget3433
18 com.appsmith.external.models2
19 com.appsmith.server.constants1
20 com.appsmith.server.solutions11511411182
21 app.client.src.WidgetProvider.types31
22 app.client.src.components.editorComponents.CodeEditor215
23 app.client.src.entities.Action11
24 com.appsmith.external.dtos6
25 com.appsmith.server.newactions.base491082211102
26 app.client.src.actions5211514
27 app.client.src.ce.sagas11143
28 app.client.src.sagas214461539
29 app.client.src.utils1173713331
30 com.appsmith.server.services.ce1236130590361617721104
31 com.appsmith.server.services331571381717134
32 com.appsmith.server.repositories111111
33 com.appsmith.server.configurations6332
34 com.appsmith.server.helpers.ce1837211679510241
35 com.appsmith.server.helpers3911111871235952
36 com.appsmith.server.dtos11314130
37 com.appsmith.server.domains2715
38 com.appsmith.server.applications.base21816446
39 com.appsmith.server.git.central1233129331610
40 com.appsmith.server.controllers.ce18102124276191
Uses a module listed above itPart of a loopThe module itself
1 app.client.packages.design-system.ads-old.src.DisplayImageUpload2 app.client.packages.design-system.ads-old.src.types.common3 app.client.packages.mcp.src.app4 app.client.packages.mcp.src.builder5 app.client.src.ce.reducers.entityReducers.canvasWidgetsReducer6 app.client.src.components.formControls.BaseControl7 app.client.src.constants.WidgetConstants8 app.client.src.entities.DataTree.dataTreeTypes9 app.client.src.entities.Plugin10 app.client.src.git.requests11 app.client.src.layoutSystems.common.utils.constants12 com.appsmith.server.acl13 app.client.src.components.editorComponents.CodeEditor.EditorConfig14 app.client.src.entities.AppTheming15 app.client.src.entities.Datasource16 app.client.src.layoutSystems.anvil.utils.anvilTypes17 app.client.src.widgets.BaseWidget18 com.appsmith.external.models19 com.appsmith.server.constants20 com.appsmith.server.solutions21 app.client.src.WidgetProvider.types22 app.client.src.components.editorComponents.CodeEditor23 app.client.src.entities.Action24 com.appsmith.external.dtos25 com.appsmith.server.newactions.base26 app.client.src.actions27 app.client.src.ce.sagas28 app.client.src.sagas29 app.client.src.utils30 com.appsmith.server.services.ce31 com.appsmith.server.services32 com.appsmith.server.repositories33 com.appsmith.server.configurations34 com.appsmith.server.helpers.ce35 com.appsmith.server.helpers36 com.appsmith.server.dtos37 com.appsmith.server.domains38 com.appsmith.server.applications.base39 com.appsmith.server.git.central40 com.appsmith.server.controllers.ceapp.client.packages.design-system.ads-old.src.DisplayImageUpload1app.client.packages.design-system.ads-old.src.types.common2app.client.packages.mcp.src.app3app.client.packages.mcp.src.builder4app.client.src.ce.reducers.entityReducers.canvasWidgetsReducer5app.client.src.components.formControls.BaseControl6app.client.src.constants.WidgetConstants7app.client.src.entities.DataTree.dataTreeTypes8app.client.src.entities.Plugin9app.client.src.git.requests10app.client.src.layoutSystems.common.utils.constants11com.appsmith.server.acl12app.client.src.components.editorComponents.CodeEditor.EditorConfig13app.client.src.entities.AppTheming14app.client.src.entities.Datasource15app.client.src.layoutSystems.anvil.utils.anvilTypes16app.client.src.widgets.BaseWidget17com.appsmith.external.models18com.appsmith.server.constants19com.appsmith.server.solutions20app.client.src.WidgetProvider.types21app.client.src.components.editorComponents.CodeEditor22app.client.src.entities.Action23com.appsmith.external.dtos24com.appsmith.server.newactions.base25app.client.src.actions26app.client.src.ce.sagas27app.client.src.sagas28app.client.src.utils29com.appsmith.server.services.ce30com.appsmith.server.services31com.appsmith.server.repositories32com.appsmith.server.configurations33com.appsmith.server.helpers.ce34com.appsmith.server.helpers35com.appsmith.server.dtos36com.appsmith.server.domains37com.appsmith.server.applications.base38com.appsmith.server.git.central39com.appsmith.server.controllers.ce401112334332111511411182312151164910822111025211514111432144615391173713331123613059036161772110433157138171713411111163321837211679510241391111187123595211314130271521816446123312933161018102124276191+2693 more modules (most-connected shown)

At a glance — Code Health · 65% · Adequate ·

At a glance — Architecture · 47% · Weak · gated by R11, R9 ·

At a glance — Maturity · 67% · Adequate · gated by D34 ·

At a glance — Readiness · 39% · Weak · gated by D13, R8, P3, P7 ·

At a glance — Security · 53% · Adequate · gated by D28, D29, D30, D36 ·

At a glance — Domain Modelling · 96% · Exemplary ·

At a glance — Accessibility · 40% · Weak · gated by AC2, AC4 ·

At a glance — Performance · 64% · Adequate ·

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
A05:2025 — Injection642High / Critical
A07:2025 — Authentication Failures78High / Critical
A03:2025 — Software Supply Chain Failures75High / Critical
A02:2025 — Security Misconfiguration15High / Critical
A01:2025 — Broken Access Control7Medium

Roadmap

Immediately resolve the five leaked secrets in REDACTED, REDACTED, and REDACTED, and clear the three banned license findings to ensure compliance. Clean up the dependency tree by removing unused packages and explicitly declaring imports, while making custom controls keyboard-operable to fix accessibility issues. Finally, integrate a static analysis tool into the CI pipeline to automatically block security regressions before they are merged.

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

Do thisHelpsEffortDimension
Resolve the 5 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED, REDACTED.+4.4 ptsLowREDACTED Scanning
Resolve the 3 Banned license finding(s) in License Compliance.+4.2 ptsLowLicense Compliance
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+3.1 ptsMediumDependency Hygiene
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+2.3 ptsMediumKeyboard semantics
Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing.+1.9 ptsMediumSecurity & performance tooling
Set connect and read timeouts on every client (`RestTemplateBuilder.connectTimeout/readTimeout`, WebClient `responseTimeout`, `HttpRequest.Builder.timeout`, `HttpURLConnection.setReadTimeout`, Feign `connectTimeout`/`readTimeout` in configuration), and wrap calls to dependencies in resilience4j `@Retry`/`@CircuitBreaker`/`@TimeLimiter` (or Spring Retry).+1.9 ptsMediumOutbound HTTP resilience
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion.+0.9 ptsLowProject Cohesion
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.+1.8 ptsMediumForms & labels

File quality

Per-file score 0–10 — a quality signature. Of 1020 files carrying findings, judged against the Production bar: 4% slop · 59% mixed · 37% near-clean.

FileScoreBandWorst signal
REDACTED0.0SlopDependency Vulnerabilities: High CVE: REDACTED
REDACTED0.6SlopStatic Analysis (SAST): High: REDACTED
REDACTED1.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED1.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED1.4SlopStatic Analysis (SAST): High: REDACTED
REDACTED1.4SlopStatic Analysis (SAST): High: REDACTED
REDACTED1.4SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED1.7SlopIaC & Container Security: Critical IaC: REDACTED
REDACTED2.0SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED

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 — 795

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 — 3136

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 — 1967

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

Could not be resolved — 14

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

Watchdog 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. 97 of 97 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three 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; ◐ Advisory — an LLM prose judgement. 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; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 97 dimensions across the health lenses
D1D2D3D4D5D6D9D10D13D14D15D16D17D19D20D26D28D29D30D31D32D34D35D36D37D40D41D43D44AC1AC2AC3AC4AC5AC6AC7AX1AX10AX2AX3AX5AX6AX8DM10DM7DM9GD1IC1M1M2M3M4P1P10P2P3P4P5P6P7PF1PF2PF3R1R10R11R2R3R4R6R7R8R9S1X1X12X13X14X15X16X17X18X19X20X21X22X23X24X25X26X27X28X29X3X30X4X5

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, 5865 of 5898 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, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — 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
Watchdog 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 · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement—◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 01a17a02-9b33-7afa-9a36-493d30371881.

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 — not measured this run — Watchdog 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. Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — the dependency install for app/client/packages/ast/ could not reach the package registry on this run (➤ YN0001: │ RequestError: tunneling socket could not be established, statusCode=403), so the suite never ran. Coverage is excluded from the score rather than counted as a near-zero. This is OUR limitation, not a defect in the repo. In the meantime, commit (or publish into the working tree) the lcov/Cobertura report your CI produces and the real number is read on the next scan. You can widen what we reach: optional: commit the lcov/Cobertura report your CI produces, and the real number is read on the next scan.
  • D10 Test Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. The 5,467 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 387 test source file(s) (.java) that it cannot: it reads JavaScript/TypeScript test declarations off disk, so a JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
  • D11 Test Reliability — not measured this run — Watchdog 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. Test reliability NOT MEASURED: the JavaScript/TypeScript suite could not be re-run in the analyzer sandbox — the dependency install for app/client/packages/ast/ could not reach the package registry on this run (➤ YN0001: │ RequestError: tunneling socket could not be established, statusCode=403), so the suite never ran. This is OUR limitation, not a defect in the repo — it is excluded from the score.
  • D11 Test Reliability — not measured this run — Watchdog 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. Test reliability for the jest suite in app/client/packages/ast/ was NOT MEASURED: the dependency install for app/client/packages/ast/ could not reach the package registry on this run (➤ YN0001: │ RequestError: tunneling socket could not be established, statusCode=403), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — Watchdog 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. Test reliability for the jest suite in app/client/packages/dsl/ was NOT MEASURED: the dependency install for app/client/packages/dsl/ could not reach the package registry on this run (➤ YN0001: │ RequestError: tunneling socket could not be established, statusCode=403), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — Watchdog 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. Test reliability for the jest suite in app/client/packages/mcp/ was NOT MEASURED: the dependency install for app/client/packages/mcp/ could not reach the package registry on this run (➤ YN0001: │ RequestError: tunneling socket could not be established, statusCode=403), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — Watchdog 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. Test reliability for the jest suite in app/client/packages/rts/ was NOT MEASURED: the dependency install for app/client/packages/rts/ could not reach the package registry on this run (➤ YN0001: │ RequestError: tunneling socket could not be established, statusCode=403), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D12 Dependency Hygiene — not measured this run — Watchdog 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. Not scored — 31 Maven/Gradle manifest(s) were read, stating a version for 84 dependency(ies) and leaving 224 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D19 Documentation Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
  • D21 Naming Consistency — not measured this run — Watchdog 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. D21's deterministic naming 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. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
  • D22 Internal API Consistency — not measured this run — Watchdog 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.
  • D24 Comment Value — not measured this run — Watchdog 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's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • D27 Navigability — not measured this run — Watchdog 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's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • D31 IaC & Container Security — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. Checkov ran but its report could not be read (checkov produced no output — not a clean result). Every misconfiguration only checkov reports — most of its Terraform, CloudFormation, Bicep and Ansible policies — is absent from this card, so its absence here is not evidence those resources are configured correctly.
  • D32 Data Compliance (PII/GDPR) — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. `app/client/packages/design-system/ads-old/src/DisplayImageUpload/index.tsx`, `app/client/packages/design-system/widgets/src/components/Sidebar/src/index.ts`, `app/client/public/libraries/echarts-gl@2.0.9.js`, `REDACTED`, `app/client/public/libraries/jsonwebtoken@8.5.1.js`, … (+8 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.
  • D41 Kernel & Syscall Confinement — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. Deploy/helm/templates/autoupdate.yaml:3, deploy/helm/templates/hooks/mongodb-community.yaml:76, deploy/helm/templates/hooks/redis.yaml:88, deploy/helm/templates/mongodb-community.yaml:7, deploy/helm/values.yaml:285 did not read as a pod spec (a templated manifest such as Helm's that is not YAML until rendered, or a workload whose pod spec this check does not locate), so the seccomp/AppArmor profile in force there was not judged and no row about them can appear on this card.
  • AC1 Text alternatives — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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 repository builds user interface as HTML STRINGS — 9 script file(s) building 39 markup element(s) as HTML strings, carrying 0 role/aria/tabindex attribute(s) (e.g. app/client/src/widgets/RichTextEditorWidget/widget/index.tsx, app/client/src/widgets/IframeWidget/widget/index.tsx, app/client/src/widgets/ExternalWidget/widget/index.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1675 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
  • AC2 Forms & labels — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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 repository builds user interface as HTML STRINGS — 9 script file(s) building 39 markup element(s) as HTML strings, carrying 0 role/aria/tabindex attribute(s) (e.g. app/client/src/widgets/RichTextEditorWidget/widget/index.tsx, app/client/src/widgets/IframeWidget/widget/index.tsx, app/client/src/widgets/ExternalWidget/widget/index.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1675 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
  • AC2 Forms & labels — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 50 further occurrence(s) are not listed individually; the score already reflects all 90.
  • AC3 Page structure — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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 repository builds user interface as HTML STRINGS — 9 script file(s) building 39 markup element(s) as HTML strings, carrying 0 role/aria/tabindex attribute(s) (e.g. app/client/src/widgets/RichTextEditorWidget/widget/index.tsx, app/client/src/widgets/IframeWidget/widget/index.tsx, app/client/src/widgets/ExternalWidget/widget/index.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1675 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
  • AC4 Keyboard semantics — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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 repository builds user interface as HTML STRINGS — 9 script file(s) building 39 markup element(s) as HTML strings, carrying 0 role/aria/tabindex attribute(s) (e.g. app/client/src/widgets/RichTextEditorWidget/widget/index.tsx, app/client/src/widgets/IframeWidget/widget/index.tsx, app/client/src/widgets/ExternalWidget/widget/index.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1675 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
  • AC5 ARIA correctness — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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 repository builds user interface as HTML STRINGS — 9 script file(s) building 39 markup element(s) as HTML strings, carrying 0 role/aria/tabindex attribute(s) (e.g. app/client/src/widgets/RichTextEditorWidget/widget/index.tsx, app/client/src/widgets/IframeWidget/widget/index.tsx, app/client/src/widgets/ExternalWidget/widget/index.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1675 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
  • AC6 Visual & motion safety — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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 repository builds user interface as HTML STRINGS — 9 script file(s) building 39 markup element(s) as HTML strings, carrying 0 role/aria/tabindex attribute(s) (e.g. app/client/src/widgets/RichTextEditorWidget/widget/index.tsx, app/client/src/widgets/IframeWidget/widget/index.tsx, app/client/src/widgets/ExternalWidget/widget/index.tsx) — that this run could NOT read, and the accessibility cards beside it were measured over the 1675 parsed markup document(s) only. The markup model reads .html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx, html`…` templates and DOM-assigned HTML strings in .ts/.js, the .erb/.ejs/.eex/.heex/.leex/.twig/.jinja/.j2/.liquid/.njk/.hbs/.mustache/.blade.php/.gohtml template languages, .astro/.templ/.pug/.jade/.haml/.slim, and the kotlinx.html/Compose HTML/kotlin-react, Giraffe/Falco/Fable.React/Feliz/Bolero and Jaspr builder DSLs; the runs counted here are the ones its producer could not take — an element whose TAG NAME is a concatenated expression has no statically knowable identity, and a string-built run inside a .jsx/.tsx file is already read as JSX — so they were not merely unparsed but unenumerated: not one of their elements entered the population any card scored. Their absence from the counts above is a gap in this analyzer's frontend coverage — not a finding that they carry text alternatives, labels, keyboard semantics or correct ARIA.
  • AC6 Visual & motion safety — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 5 further occurrence(s) are not listed individually; the score already reflects all 45.
  • AXR1 Runtime accessibility — not measured this run — Watchdog 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 DockerCompose (REDACTED). compose up failed (exit 18 — an image could not be pulled) — appsmith Pulling appsmith Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: appsmith Pulling appsmith Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
  • C1 Data Protection — not measured this run — Watchdog 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. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
  • C2 Access Controls — not measured this run — Watchdog 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. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • C3 Audit Trail — not measured this run — Watchdog 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. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
  • C4 Data Retention — not measured this run — Watchdog 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. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
  • C5 Data-Subject Rights — not measured this run — Watchdog 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. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
  • DM9 Scattered domain decisions — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. Arm two tells a construction that PRODUCES a measurement from one that merely passes it along, and this repository's frontend does not compute that fact. A measurement built independently in two places would not appear above.
  • DM9 Scattered domain decisions — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. Some of this repository's production types come from a frontend that does not bind comparison operands to the members they read, which arm one needs, and those types were not walked for this dimension. The counts above speak for the languages that declare it.
  • ED5 Idempotency — not measured this run — Watchdog 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 decides whether a handler's mutation is safe to re-run by recognising its persistence writes (a database save, a repository write, an event publish) and its guards. Those markers are .NET member names, so in this repository's language a write such as `repository.save(order)` is not recognised and a same-named call on an unrelated library type could be. The handlers were found; their idempotency was neither confirmed nor ruled out.
  • IC1 Incompleteness & stubs — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 102 further occurrence(s) are not listed individually; the score already reflects all 142.
  • M4 Documentation accuracy — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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). 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.
  • P2 Observability — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 67 further occurrence(s) are not listed individually; the score already reflects all 107.
  • R10 Code Duplication — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 1405 further occurrence(s) are not listed individually; the score already reflects all 1445.
  • R11 Import Boundaries — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 597 further occurrence(s) are not listed individually; the score already reflects all 637.
  • R3 Large Files — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 230 further occurrence(s) are not listed individually; the score already reflects all 270.
  • R4 Test Coverage — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 201 further occurrence(s) are not listed individually; the score already reflects all 241.
  • R7 Dead Code — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 779 further occurrence(s) are not listed individually; the score already reflects all 819.
  • X3 Exception handling — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 61 further occurrence(s) are not listed individually; the score already reflects all 101.
  • X4 Structured logging — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 219 further occurrence(s) are not listed individually; the score already reflects all 259.

Repo exclusion declarations: 6 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

Watchdog assesses the repository exactly as committed, and only the repository. By design it does 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.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • 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.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • 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").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • 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 is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
  • 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.
  • D32 Data Compliance (PII/GDPR): PII/GDPR signals are heuristic pattern matches in code — they flag likely handling concerns, not legal compliance, and cannot trace where data actually flows at runtime.
  • 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.
  • D40 Network Egress Confinement: Egress confinement is read from committed Kubernetes manifests — a policy applied out-of-band (cluster-default deny, a service mesh, or a cloud firewall/security group off-repo) is invisible, and a present NetworkPolicy is declared config, not proof the cluster admission-controller actually enforces it at runtime.
  • D41 Kernel & Syscall Confinement: Syscall/MAC confinement is read from committed manifests — a profile applied by a cluster-wide PodSecurity default or a mutating webhook off-repo isn't seen, and a declared seccomp/AppArmor profile is config presence, not proof the node's kernel actually loaded and enforced it.
  • 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.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • 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: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • 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 Complexity5.8 / 10Adequate✓ 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 5.8 / 10 · rule-coverage 100% · ceiling Prevented

495 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was getFilteredTableData at 123. A further 16 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 index.AppIcon at 92 — they are counted neither in the figure above nor in this dimension's score. 13 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: app/client/packages/design-system/ads-old/src/AppIcon/index.tsx (index.AppIcon at 92), app/client/src/widgets/TableWidgetV2/component/index.tsx (index.default at 59), app/client/src/widgets/wds/WDSTableWidget/component/index.tsx (index.default at 51), app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java (SqlUtils.getDefaultValueByDataType at 34), app/client/packages/design-system/widgets/src/components/Flex/src/flexCss.ts (flexCss.flexStyles at 24), and 8 more not listed here. 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.

(anonymous)::_decode (cyclomatic 44) · ×46app/client/public/libraries/jsonwebtoken@8.5.1.js:3268
(anonymous) (cyclomatic 21) · ×5app/client/public/libraries/jsonwebtoken@8.5.1.js:2922
(anonymous) (cyclomatic 23) · ×4app/client/public/libraries/jsonwebtoken@8.5.1.js:183
(anonymous) (cyclomatic 19) · ×4app/client/public/libraries/jsonwebtoken@8.5.1.js:674
(anonymous) (cyclomatic 18) · ×4app/client/public/libraries/jsonwebtoken@8.5.1.js:6656

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

What to do

  1. Bring the 1 body over 120 down to 120 or less in Cyclomatic Complexity — start with getFilteredTableData (cyclomatic 123). — Refactoring it lifts Cyclomatic Complexity from 5.8 to about 5.8/10.
  2. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D2 · Cognitive Complexity4.5 / 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 4.5 / 10 · rule-coverage 100% · ceiling Prevented

672 method(s) exceeded the cognitive complexity threshold of 15; the worst was getFilteredTableData at 214.

(anonymous)::_decode (cognitive 69) · ×61app/client/public/libraries/jsonwebtoken@8.5.1.js:3268
(anonymous) (cognitive 17) · ×7app/client/public/libraries/jsonwebtoken@8.5.1.js:674
(anonymous) (cognitive 18) · ×6app/client/public/libraries/jsonwebtoken@8.5.1.js:8197
(anonymous) (cognitive 22) · ×4app/client/public/libraries/jsonwebtoken@8.5.1.js:183
(anonymous) (cognitive 21) · ×4app/client/public/libraries/jsonwebtoken@8.5.1.js:6656

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

What to do

  1. Bring the 4 bodies over 120 down to 120 or less in Cognitive Complexity — start with getFilteredTableData (cognitive 214), PropertyControl.PropertyControl (cognitive 148), widgets.updateWidgetAutoHeightSaga (cognitive 139). — 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 4 together lifts Cognitive Complexity from 4.5 to about 5.3/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
  2. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D3 · God Classes7.4 / 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.4 / 10 · rule-coverage 100% · ceiling Prevented

569 god class(es) detected.

FunctionTooLong: index.AISettings · ×241app/client/src/pages/AdminSettings/AI/index.tsx:471
FileTooLong: libraries/jsonwebtoken@8.5.1.js · ×135app/client/public/libraries/jsonwebtoken@8.5.1.js
MethodTooLong: TableWidgetV2.renderCell · ×85app/client/src/widgets/TableWidgetV2/widget/index.tsx:2011
ClassTooLong: CentralGitServiceCEImpl · ×68app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:119
TooManyMethods: NewActionServiceCEImpl · ×40app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:93

What to do

  1. Resolve the 241 FunctionTooLong finding(s) in God Classes — start with REDACTED (45), index.ts (5), Table.tsx (4). — One of this dimension's main actionable groups (241 warning-level).
  2. Resolve the 135 FileTooLong finding(s) in God Classes — start with REDACTED (35), index.ts (3), REDACTED (2). — One of this dimension's main actionable groups (135 warning-level).
  3. Resolve the 85 MethodTooLong finding(s) in God Classes — start with REDACTED (40), CentralGitServiceCEImpl.java (7), AIConfigServiceCEImpl.java (3). — One of this dimension's main actionable groups (85 warning-level).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D4 · Code Duplication9.8 / 10Stronggated by 383 serious findings✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

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

361 duplicated block group(s) detected. A further 22 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. Measured on part of this repository only: .tsx, .ts (78% of production source) was not exposed to THIS dimension's token comparison and is not in this count; duplication there is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream.

Duplicated block (9 lines × 2) · ×25app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1579
Duplicated block (5 lines × 2) · ×23app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:645
Duplicated block (6 lines × 2) · ×18app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:240
Duplicated block (11 lines × 2) · ×16app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:653
Duplicated block (7 lines × 2) · ×15app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:126

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

What to do

  1. Resolve the 25 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with FirestorePlugin.java (2), Count.java (2), PostgresPlugin.java (2). — One of this dimension's main actionable groups (25 warning-level).
  2. Resolve the 23 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with REDACTED (3), DatasourceStorageServiceCEImpl.java (2), ActionCollectionServiceCEImpl.java (2). — One of this dimension's main actionable groups (23 warning-level).
  3. Resolve the 18 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with ActionCollectionControllerCE.java (2), DataTypeStringUtils.java, RequestCaptureFilter.java. — One of this dimension's main actionable groups (18 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D5 · Coupling9.5 / 10Stronggated by 3 serious findings✓ 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 9.5 / 10 · rule-coverage 100% · ceiling Prevented

44 production modules (Maven+npm), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 4 module(s) off the main sequence.

Off the main sequence: @appsmith/wds-theming · ×3
Off the main sequence: @shared/ast

What to do

  1. Resolve the 3 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (3 warning-level).
  2. Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D6 · Cohesion (LCOM4)9.5 / 10Stronggated by 5 serious findings✓ 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 9.5 / 10 · rule-coverage 100% · ceiling Verified

5 of 127 classes have LCOM4 above 3.

Low cohesion: AggregateHelper (LCOM4 20) · ×5app/client/cypress/support/Pages/AggregateHelper.ts:55

What to do

  1. Resolve the 5 Low cohesion finding(s) in Cohesion (LCOM4) — start with AggregateHelper.ts, Table.ts, REDACTED. — One of this dimension's main actionable groups (5 warning-level).
  2. Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

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

8281 test methods: 8257 unit, 0 integration, 0 BDD, 24 e2e. The JavaScript/TypeScript suite contributes 5467 `it`/`test` case(s) across 650 test file(s) declaring at least one beside 2814 .NET test method(s); its tier split is read from package names and paths only.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D10 · Test Quality9.9 / 10Stronggated by 29 serious 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.9 / 10 · rule-coverage 100% · ceiling Prevented

0 skipped, 29 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 5467 tests. Measured on the JavaScript/TypeScript suite only — at least 387 test source file(s) (.java) went unread, so its test quality is unmeasured and is not in these counts.

No assertions: Check if ${widget.type}'s deprecation config has a proper replacement Widget · ×29app/client/src/utils/testPropertyPaneConfig.test.ts:203
Mock-dominated test: Should dispatch payload return by descriptor · ×28app/client/src/workers/Evaluation/fns/utils/__tests__/Promisify.test.ts:40

What to do

  1. Resolve the 29 No assertions finding(s) in Test Quality — start with EvaluationsSaga.test.ts (7), NavigateActionSaga.test.ts (4), JSRender.test.tsx (4). — One of this dimension's main actionable groups (29 warning-level).
  2. Resolve the 28 Mock-dominated test finding(s) in Test Quality — start with useEditableText.test.tsx (5), run.test.ts (4), useRegisterFieldValidity.test.tsx (4). — One of this dimension's main actionable groups (28 recommendation-level).
  3. Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D13 · REDACTED Scanning0.0 / 10Critical✓ Tool-verified

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 0.0 / 10 · rule-coverage 100% · ceiling Prevented

5 secret(s) detected.

REDACTED

What to do

  1. Resolve the 5 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (5 issue-level).
  2. Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D14 · License Compliance4.0 / 10Weak✓ Tool-verified

What it measures: Whether the licenses of third-party packages are compatible with your policy.

Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.

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

3 of 58 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 31 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. 224 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. A further 3 coordinate(s) are not published to Maven Central — another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact — so their licences are not readable from here and they are outside this verdict.

Banned license: org.openjdk.jmh:jmh-core · ×3

What to do

  1. Resolve the 3 Banned license finding(s) in License Compliance. — One of this dimension's main actionable groups (3 issue-level).
  2. Enforce License Compliance in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D15 · Churn × Complexity Hotspots9.4 / 10Stronggated by 14 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.4 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: app/client/packages/mcp/src/app.ts (8×412=3296); app/client/src/pages/AdminSettings/SettingsForm.tsx (5×39=195); app/client/src/widgets/RichTextEditorWidget/component/index.tsx (2×73=146) Repeated repair below the complexity floor: deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs (3 of 5 changes were fixes); app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java (3 of 3 changes were fixes); app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java (3 of 3 changes were fixes)

Hotspot: app/client/packages/mcp/src/app.ts · ×9app/client/packages/mcp/src/app.ts:2516
Repeated repair: deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs · ×5deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs:267

What to do

  1. Resolve the 9 Hotspot finding(s) in Churn × Complexity Hotspots — start with REDACTED (2), app.ts, SettingsForm.tsx. — One of this dimension's main actionable groups (9 warning-level).
  2. Resolve the 5 Repeated repair finding(s) in Churn × Complexity Hotspots — start with caddy-reconfigure.mjs, DatasourceServiceCEImpl.java, ApplicationPageServiceCEImpl.java. — One of this dimension's main actionable groups (5 warning-level).

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

D16 · Bus Factor9.8 / 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.8 / 10 · rule-coverage 100% · ceiling Documented

39 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java. Counted over 2189 of the 6789 production source files in this repository: 4599 are under the ~2,400-byte size floor this dimension measures over, and the remaining 1 have no attributable history left to measure.

Off-boarding risk: anonymized user #1 · ×4
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.1 / 10Stronggated by 363 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.1 / 10 · rule-coverage 100% · ceiling Prevented

3252 deducted task-comment markers across 694191 LoC (0.5/KLoC) → score 9.1. 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 · ×358app/server/appsmith-server/src/test/utils/com/appsmith/server/git/GitServerInitializerExtension.java:65
TodoComment repeated across 884 filesapp/client/src/index.tsx:60
TodoComment repeated across 18 filesapp/client/src/widgets/wds/WDSTableWidget/widget/parseDerivedProperties.ts:5
HackCommentREDACTED:893
FixmeCommentapp/client/cypress/e2e/Sanity/Datasources/Arango_Basic_Spec.ts:20

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

What to do

  1. Resolve the 358 TodoComment finding(s) in Explicit Debt — start with REDACTED (38), EncryptionHandlerTest.java (12), CentralGitServiceCEImpl.java (8). — One of this dimension's main actionable groups (358 warning-level).
  2. Resolve the 1 TodoComment repeated across 884 files finding(s) in Explicit Debt — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 TodoComment repeated across 18 files finding(s) in Explicit Debt — start with parseDerivedProperties.ts. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D19 · Documentation Quality0.0 / 10Critical✓ Tool-verified

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 0.0 / 10 · rule-coverage 100% · ceiling Documented

0 of 1 documentation facets pass in full; short on: F2 example. 50 document(s) read across 1 unit(s).

Documentation: no build, run or usage exampleREADME.md:1

What to do

  1. Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).

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

D20 · ADR Quality0.0 / 10Critical✓ Tool-verified

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

Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.

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

No architecture decision records were found.

No ADRs found

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).

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

D26 · Project Cohesion7.0 / 10Adequate✓ 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, LLM-independent.

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

7 of 46 build units (Maven, checkout, 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)0.0 / 10Critical✓ 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 0.0 / 10 · rule-coverage 100% · ceiling Documented

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

REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 47 REDACTED finding(s) in Secrets (history) — start with REDACTED (9), REDACTED (9), REDACTED (4). — One of this dimension's main actionable groups (47 issue-level).
  2. Resolve the 25 High secret finding(s) in Secrets (history) — start with REDACTED (7), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (25 issue-level).
  3. 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

647 finding(s): 0 critical, 542 high, 101 medium, 4 low. 335 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 46 file(s) — `REDACTED`, `app/client/packages/design-system/ads-old/src/DisplayImageUpload/index.tsx` (line 22), `app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx`, `app/client/packages/design-system/widgets/src/components/Sidebar/src/index.ts` (line 8), `app/client/packages/mcp/src/app.ts`, … (+41 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 22 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

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

What to do

  1. Resolve the 87 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (51), REDACTED (5), REDACTED (3). — One of this dimension's main actionable groups (87 issue-level).
  2. Resolve the 1 REDACTED finding(s) charged to Static Analysis (SAST) — the other 335 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once. — One of this dimension's main actionable groups (336 issue-level, 1 of them charged here).
  3. Resolve the 54 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (8), REDACTED (8), REDACTED (7). — One of this dimension's main actionable groups (54 issue-level).

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.

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

37 finding(s): 1 critical, 14 high, 17 medium, 5 low. npm was read by osv-scanner from this repository's lockfiles; its second reader, trivy, did not complete (the scanner produced no output at all, so no dependency was actually scanned). Over the 463 advisory/package pairs measured with both, osv-scanner reported every vulnerable npm install trivy did, so the npm reading stands.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 13 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (11), REDACTED (2). — One of this dimension's main actionable groups (13 issue-level).
  2. Resolve the 1 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  3. Resolve the 1 High vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

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

D31 · IaC & Container Security5.0 / 10Weak✓ 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 5.0 / 10 · rule-coverage 100% · ceiling Documented

15 finding(s): 5 critical, 3 high, 7 medium, 0 low.

REDACTED
REDACTED
REDACTED

What to do

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

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

D32 · Data Compliance (PII/GDPR)4.8 / 10Weak✓ Tool-verified

What it measures: Likely personal-data (PII / GDPR) handling concerns — logging or storing data without safeguards.

Method: Heuristic PII/GDPR LEAK scan via semgrep across the repo, using Watchdog's own ruleset: personal data crossing a boundary it should not — reaching a log/console sink, a URL or query string, or unprotected browser storage. Matches map to severity and a 0-10 wide normalizer. A clean sweep is unscored rather than an unearned 10, and is a statement about the leak paths checked only — this dimension does not inventory the personal data a repository holds (the personal-data map and the C1-C5 compliance cards do that), so it never reports that a repository has no personal-data surface. Reported LOUDLY as a measurement gap if the ruleset is missing from the analyzer image. Exhaustive over the leak paths, advisory-leaning; degrades on parse failure.

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

7 finding(s): 0 critical, 0 high, 7 medium, 0 low. semgrep could not parse 13 file(s) — `app/client/packages/design-system/ads-old/src/DisplayImageUpload/index.tsx`, `app/client/packages/design-system/widgets/src/components/Sidebar/src/index.ts`, `app/client/public/libraries/echarts-gl@2.0.9.js`, `REDACTED`, `app/client/public/libraries/jsonwebtoken@8.5.1.js`, … (+8 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.

REDACTED
REDACTED

What to do

  1. Resolve the 6 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (6 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

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

D34 · Knowledge Freshness2.0 / 10Critical✓ 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 2.0 / 10 · rule-coverage 100% · ceiling Documented

1753 of 2190 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is REDACTED. Counted over 2190 of the 6789 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×1750app/client/src/ce/sagas/DatasourcesSagas.ts:1
Most significant orphaned file · ×3REDACTED:1
Concentrated knowledge decay

What to do

  1. Resolve the 1750 Orphaned file finding(s) in Knowledge Freshness — start with REDACTED (207), index.ts (45), contentConfig.ts (23). — One of this dimension's main actionable groups (1750 recommendation-level).
  2. Resolve the 3 Most significant orphaned file finding(s) in Knowledge Freshness — start with REDACTED, svgImportsMap.ts, AmazonS3Plugin.java. — One of this dimension's main actionable groups (3 recommendation-level).
  3. Resolve the 1 Concentrated knowledge decay 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 Coupling9.9 / 10Adequategated by 17 critical 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 9.9 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: REDACTED↔REDACTED 100%; DarkModeTheme.ts↔LightModeTheme.ts 92%; GitDefaultBranch.tsx↔REDACTED 90%

Boundary-crossing change coupling: RestAPIActivateUtils.java ↔ RestApiPlugin.java · ×17app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RestAPIActivateUtils.java:1
Change coupling: DarkModeTheme.ts ↔ LightModeTheme.ts · ×24app/client/packages/design-system/theming/src/color/src/DarkModeTheme.ts:1
Change-coupling hub: GitFSServiceCEImpl.java → CentralGitServiceCE.java, CentralGitServiceCEImpl.java, GitApplicationControllerCE.java · ×3app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java

What to do

  1. Resolve the 17 Boundary-crossing change coupling finding(s) in Change Coupling — start with RestAPIActivateUtils.java (2), FSGitHandlerCEImpl.java (2), REDACTED (2). — One of this dimension's main actionable groups (17 issue-level).
  2. Resolve the 24 Change coupling finding(s) in Change Coupling — start with REDACTED (2), jest.config.js (2), NewPageServiceCE.java (2). — One of this dimension's main actionable groups (24 warning-level).
  3. Resolve the 3 Change-coupling hub finding(s) in Change Coupling — start with GitFSServiceCEImpl.java, ReduxActionConstants.tsx, ActionCollectionServiceCE.java. — One of this dimension's main actionable groups (3 warning-level).

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

D36 · Supply-chain Provenance & Signing0.0 / 10Critical✓ 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, REDACTED, 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 0.0 / 10 · rule-coverage 100% · ceiling Documented

0/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 19 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (19 warning-level).
  2. Resolve the 7 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (7 warning-level).
  3. Resolve the 5 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (5 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.

D40 · Network Egress Confinement6.0 / 10Adequate✓ Tool-verified

What it measures: Whether Kubernetes workloads restrict network EGRESS with a NetworkPolicy (or Cilium policy), limiting where a compromised pod can send data or reach a command-and-control server. Presence of committed egress-restricting policy, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn — language-agnostic): Kubernetes workloads gate applicability; credits a NetworkPolicy / Cilium policy that restricts egress (policyTypes: [Egress] / egress rules). Reward-leaning (neutral floor climbing to 10, never a deduction — baseline misconfigs stay with D31). Deterministic.

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

0/2 network-egress controls present (network policy, egress restriction).

No network policy

What to do

  1. Resolve the 1 No network policy finding(s) in Network Egress Confinement. — One of this dimension's main actionable groups (1 recommendation-level).

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

D41 · Kernel & Syscall Confinement6.0 / 10Adequate✓ Tool-verified

What it measures: Whether Kubernetes workloads confine the kernel boundary — a seccomp profile (RuntimeDefault/Localhost) plus an AppArmor/SELinux mandatory-access-control layer — shrinking the syscall attack surface a container escape would use. Presence of committed confinement config, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn): on Kubernetes workloads, credits a seccomp profile (RuntimeDefault/Localhost) and an AppArmor/SELinux MAC layer. Reward-leaning (neutral floor climbing to 10); NotApplicable without workloads. Deterministic.

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

No workload manifest could be read as a pod spec, so no confinement was judged.

What to do

  1. Improve Kernel & Syscall Confinement — currently 6.0/10. — No workload manifest could be read as a pod spec, so no confinement was judged.

Detailed fixes: d41_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. Scored 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. SCORED, not informational.

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. npm was read by osv-scanner from this repository's lockfiles; its second reader, trivy, did not complete (the scanner produced no output at all, so no dependency was actually scanned). Over the 463 advisory/package pairs measured with both, osv-scanner reported every vulnerable npm install trivy did, so the npm reading stands.

✓ 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 3 platform declaration(s) and 120 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 alternatives4.8 / 10Weak✓ Tool-verified

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.

  • An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative. (×18) — app/client/packages/design-system/ads-old/src/GifPlayer/index.tsx:62, app/client/packages/design-system/ads-old/src/GifPlayer/index.tsx:71, app/client/src/ce/pages/Applications/ApplicationCardList.tsx:85, …

What to do

  • Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels3.2 / 10Weak✓ 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 control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×9) — app/client/packages/design-system/ads-old/src/Checkbox/index.tsx:185, app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:437, app/client/packages/design-system/ads-old/src/RectangularSwitcher/index.tsx:114, …
  • This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×12) — app/client/packages/design-system/ads/src/Templates/EntityExplorer/SearchAndAdd/SearchAndAdd.tsx:19, app/client/src/PluginActionEditor/components/PluginActionForm/components/GraphQLEditor/Pagination.tsx:253, app/client/src/PluginActionEditor/components/PluginActionResponse/components/DatasourceTab/TableColumns.tsx:120, …
  • This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×8) — app/client/packages/design-system/widgets/src/components/MultiSelect/src/MultiSelect.tsx:145, app/client/packages/design-system/widgets/src/testing/ComplexForm.tsx:142, app/client/packages/design-system/widgets/src/testing/ComplexForm.tsx:170, …
  • This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×4) — app/client/packages/design-system/widgets/src/testing/ComplexForm.tsx:143, app/client/src/ce/pages/Applications/index.tsx:1268, app/client/src/components/editorComponents/form/fields/DropdownField.tsx:27, …
  • 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. (×2) — app/client/src/components/editorComponents/ActionCreator/viewComponents/SelectorView/index.tsx:16, app/client/src/components/editorComponents/ActionCreator/viewComponents/TabView/index.tsx:30
  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label. — app/client/src/components/editorComponents/GlobalSearch/SearchBox.tsx:144
  • 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. (×4) — app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:179, app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:210, app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:234, …

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.3 / 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.

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×3) — app/client/public/404.html:2, app/client/public/privacy-policy.html:1, deploy/docker/fs/opt/appsmith/templates/loading.html:2
  • user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta. — app/client/public/index.html:6
  • The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). — app/client/public/privacy-policy.html:1
  • An iframe with no title (or an empty one) is announced only as "frame". Add a non-empty title describing its content, or an aria-label. (×4) — REDACTED:130, app/client/src/pages/Templates/TemplateView.tsx:204, app/client/src/pages/Templates/TemplatesModal/TemplateDetailedView.tsx:136, …
  • A timed meta-refresh moves users with no control or warning. Use a server redirect or a user-triggered action instead. — deploy/docker/fs/opt/appsmith/templates/loading.html:4

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 semantics2.1 / 10Critical✓ 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. (×30) — app/client/packages/design-system/ads-old/src/DialogComponent/index.tsx:172, app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx:191, app/client/src/components/editorComponents/GlobalSearch/ResultsNotFound.tsx:61, …
  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. — app/client/public/404.html:67
  • This <div> announces itself as a role="button" and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}="0" and an Enter/Space key handler, or make it a native <button>. If a parent widget owns the keyboard model, that parent must move focus onto the active role="button" or point aria-activedescendant at it. — app/client/src/ce/pages/Upgrade/Carousel.tsx:136
  • 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. (×3) — app/client/src/components/editorComponents/EntityExplorerSidebar.tsx:130, app/client/src/widgets/TableWidget/component/Table.tsx:315, app/client/src/widgets/TableWidgetV2/component/header/TableColumnHeader.tsx:59
  • 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. (×4) — app/client/src/pages/AppIDE/components/AppSettings/components/PageSettings.tsx:447, app/client/src/widgets/ListWidget/component/ListPagination.tsx:456, app/client/src/widgets/ListWidgetV2/component/ListPagination.tsx:456, …
  • This <thead> 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. — app/client/src/widgets/wds/WDSTableWidget/component/TableHeader/TableColumnHeader.tsx:59

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness5.5 / 10Adequate✓ Tool-verified

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.

  • A plain <span> has the implicit role "generic", which supports no ARIA states, so this aria-expanded is dropped and assistive tech is never told the state at all. Put aria-expanded on the element that owns the behaviour (the button or control the user operates), or give this <span> a role that supports aria-expanded. (×2) — app/client/src/layoutSystems/anvil/editor/AnvilWidgetName/SplitButton.tsx:123, app/client/src/layoutSystems/anvil/editor/AnvilWidgetName/SplitButton.tsx:140

What to do

  • Use valid, non-abstract roles, supply the ARIA state each role requires, and never put aria-hidden on a focusable element.
AC6 · Visual & motion safety5.2 / 10Adequate✓ 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.

  • `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. — app/client/public/privacy-policy.html:51
  • `.loader` moves (`animation: spin 1s linear infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — deploy/docker/fs/opt/appsmith/templates/loading.html:82
  • `.primary` sets color: #fff on background-color: #f86a2b — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — app/client/public/404.css:103
  • `.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. — app/client/public/404.css:85
  • `.tox-comments-visible span.tox-comment:not([data-mce-selected])` 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. — app/client/public/static/js/skins/ui/oxide/content.css:42
  • `.mce-content-body.mce-content-readonly *[contentEditable=true]: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. — app/client/public/static/js/skins/ui/oxide/content.css:534
  • `.mce-content-body td[data-mce-selected] *` 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. — app/client/public/static/js/skins/ui/oxide/content.css:556
  • `.tox *:not(svg):not(rect)` 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. — app/client/public/static/js/skins/ui/oxide/skin.css:45
  • `.tox-tinymce *: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. — app/client/public/static/js/skins/ui/oxide/skin.css:91
  • `.tox .tox-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. — app/client/public/static/js/skins/ui/oxide/skin.css:305
  • `.tox .tox-button--secondary` 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. — app/client/public/static/js/skins/ui/oxide/skin.css:420
  • `.tox .tox-swatches__picker-btn` 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. — app/client/public/static/js/skins/ui/oxide/skin.css:1085
  • `.tox .tox-toolbar-textfield` 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. — app/client/public/static/js/skins/ui/oxide/skin.css:2070
  • `.tox .tox-mbtn` 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. — app/client/public/static/js/skins/ui/oxide/skin.css:2484
  • `*: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. — app/client/packages/storybook/.storybook/styles.css:35
  • `.tag [slot="remove"]` 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. — app/client/packages/design-system/widgets/src/components/TagGroup/src/styles.module.css:81
  • `.tag` 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. — app/client/packages/design-system/widgets/src/components/TagGroup/src/styles.module.css:28
  • `.overlay .content` 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. — app/client/packages/design-system/widgets/src/components/Modal/src/styles.module.css:14
  • `.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. — app/client/packages/design-system/widgets/src/components/Input/src/styles.module.css:23
  • `: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. — app/client/packages/design-system/ads/src/__theme__/default/index.css:255
  • `.rc-select-single:not(.rc-select-customize-input) .rc-select-selector .rc-select-selection-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. — app/client/packages/design-system/ads/src/Select/rc-styles.css:74
  • `.rc-select-multiple .rc-select-selector .rc-select-selection-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. — app/client/packages/design-system/ads/src/Select/rc-styles.css:133
  • `.ads-v2-select__dropdown .rc-select-item.rc-select-item-option.rc-select-item-option-active` 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. — app/client/packages/design-system/ads/src/Select/styles.css:339
  • `.ads-v2-select__dropdown .ads-v2-search-input 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. — app/client/packages/design-system/ads/src/Select/styles.css:386
  • `.App-logo` moves (`animation: App-logo-spin infinite 20s linear`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/src/App.css:6
  • `.tox .tox-swatch` moves (`transition: transform 0.15s, box-shadow 0.15s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:1061
  • `.tox .tox-notification` moves (`transition: transform 100ms ease-in, opacity 150ms ease-in`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:2555
  • `.tox .tox-pop--resizing` moves (`transition: width 0.1s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:2678
  • `.tox .tox-sidebar--sliding-growing` moves (`transition: width 0.5s ease, opacity 0.5s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:2825
  • `.tox .tox-spinner > div` moves (`animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:2886
  • `.tox .tox-toolbar__overflow--growing` moves (`transition: height 0.3s ease, opacity 0.2s linear 0.1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:3527
  • `.tox .tox-toolbar__overflow--shrinking` moves (`transition: opacity 0.3s ease, height 0.2s linear 0.1s, visibility 0s linear 0.3s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:3530
  • `.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron` moves (`transition: transform 0.5s ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:3815
  • `.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing` moves (`transition: height 0.5s ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/public/static/js/skins/ui/oxide/skin.css:3850
  • `.spinner` moves (`animation: spin 1s linear infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/packages/design-system/widgets/src/components/Spinner/src/styles.module.css:2
  • `.sidebar` moves (`transition: left 300ms ease-in-out, right 300ms ease-in-out, width 300ms ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/packages/design-system/widgets/src/components/Sidebar/src/styles.module.css:75
  • `.start[data-entering]` moves (`animation: slide-in-start 0.3s cubic-bezier(0.4, 0, 0.2, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/packages/design-system/widgets/src/components/Sheet/src/styles.module.css:60
  • `.start[data-exiting]` moves (`animation: slide-out-start 0.3s cubic-bezier(0.4, 0, 0.2, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/packages/design-system/widgets/src/components/Sheet/src/styles.module.css:64
  • `.end[data-entering]` moves (`animation: slide-in-end 0.3s cubic-bezier(0.4, 0, 0.2, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/packages/design-system/widgets/src/components/Sheet/src/styles.module.css:76
  • `.end[data-exiting]` moves (`animation: slide-out-end 0.3s cubic-bezier(0.4, 0, 0.2, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — app/client/packages/design-system/widgets/src/components/Sheet/src/styles.module.css:80

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.
AC7 · A11y enforcement8.0 / 10Strong✓ Tool-verified

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

Coverage: Population: the repository's own tooling configuration — lint config, test and CI files — NOT the markup. It is read for a configured accessibility checker and an automated accessibility assertion (axe/pa11y/Lighthouse, or a native-toolkit equivalent), and it credits an INVOCATION, never a mention: a licence filename, an import comment or a doc reference earns no rung. Enforcement configured entirely outside the repository leaves no evidence here and cannot be credited.

  • Accessibility checks run in tests (Verified) but aren't gated in CI — run the suite that holds those checks in your pipeline so an accessibility regression blocks the merge (Prevented). What was searched, so you can tell an absence from a miss: the 1675 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.

What to do

  • Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then run the suite that already asserts accessibility in CI so a regression blocks the merge.
AX1 · Captive dependencies10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.

Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.

AX10 · Code composition9.4 / 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.

What to do

  • The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX2 · Stateful singletons7.7 / 10Strong✓ Tool-verified

Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.

Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.

  • `CommonConfig` is a singleton (@Configuration: the container shares one instance across every request thread) but mutates instance state outside any lock (allowedDomains, allowedDomainsForOauth; e.g. `allowedDomains` in `getAllowedDomains` at line 126). — app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CommonConfig.java:35
  • `CacheableTemplateHelper` is a singleton (@Component: the container shares one instance across every request thread) but mutates instance state outside any lock (cacheableApplicationJsonMap, applicationTemplateList; e.g. `cacheableApplicationJsonMap` in `getApplicationByTemplateId` at line 80). — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/CacheableTemplateHelper.java:33
  • `InMemoryCacheableRepositoryHelper` is a singleton (@Configuration: the container shares one instance across every request thread) but mutates instance state outside any lock (inMemoryOrganizationIdOrganizationPermissionGroupIdMap; e.g. `inMemoryOrganizationIdOrganizationPermissionGroupIdMap` in `setOrganizationAdminPermissionGroupId` at line 28). — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/InMemoryCacheableRepositoryHelper.java:14
  • `PerformanceLoggingHandler` is a singleton (@Component: the container shares one instance across every request thread) but mutates instance state outside any lock (requestID; e.g. `requestID` in `onStart` at line 26). — app/server/appsmith-server/src/main/java/com/appsmith/server/performancelogging/PerformanceLoggingHandler.java:18

What to do

  • Java/Kotlin: keep container singletons stateless — move per-request data into locals or a request-scoped bean — or back the state with java.util.concurrent types (ConcurrentHashMap, AtomicInteger/AtomicReference), guard it with synchronized / a Lock (Kotlin: withLock), or mark a flag that is only ever overwritten volatile (@Volatile).
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.

AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

AX6 · Interface segregation9.8 / 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.

  • `CoreAppsmithApi` declares 39 required operations: `getApplicationContext`, `listApplications`, `listWorkspaces`, `importApplicationArtifact`, `importPartialApplicationArtifact`, `updateLayout`, `listDatasources`, `createDatasource`, `getDatasourceStructure`, `triggerDatasource`, `getApplicationPages`, `getPage`, `getApplication`, `getGitStatus`, `getGitProtectedBranches`, `listGitBranches`, `createGitBranch`, `checkoutGitBranch`, `commitGitApplication`, `listActions`, `createAction`, `setActionRunBehaviour`, `getAction`, `updateAction`, `deleteAction`, `executeAction`, `getCurrentTheme`, `updateTheme`, `createPage`, `updatePage`, `deletePage`, `publishApplication`, `listPlugins`, `listActionCollections`, `createActionCollection`, `updateActionCollection`, `updateActionCollectionBody`, `deleteActionCollection`, `validateToken`. 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. — app/client/packages/mcp/src/app.ts:433
  • `TableProps` declares 17 required operations: `sortTableColumn`, `handleResizeColumn`, `handleReorderColumn`, `selectTableRow`, `updatePageNo`, `nextPageClick`, `prevPageClick`, `disableDrag`, `enableDrag`, `toggleAllRowSelect`, `searchTableData`, `applyFilter`, `onBulkEditDiscard`, `onBulkEditSave`, `onAddNewRow`, `onAddNewRowAction`, `onConnectData`. 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. — app/client/src/widgets/TableWidgetV2/component/types.ts:12
  • `TableProps` declares 16 required operations: `sortTableColumn`, `handleResizeColumn`, `handleReorderColumn`, `selectTableRow`, `updatePageNo`, `nextPageClick`, `prevPageClick`, `disableDrag`, `enableDrag`, `toggleAllRowSelect`, `onSearch`, `onBulkEditDiscard`, `onBulkEditSave`, `onAddNewRow`, `onAddNewRowAction`, `onConnectData`. 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. — app/client/src/widgets/wds/WDSTableWidget/component/Table.tsx:31
  • `ActionCollectionServiceCE` declares 31 abstract methods: `archiveActionCollectionByApplicationId`, `archiveById`, `bulkUpdateActionCollections`, `bulkValidateAndInsertActionCollectionInRepository`, `bulkValidateAndUpdateActionCollectionInRepository`, `deleteUnpublishedActionCollection`, `deleteUnpublishedActionCollection`, `deleteWithoutPermissionUnpublishedActionCollection`, `findActionCollectionDTObyIdAndViewMode`, `findAllActionCollectionsByContextIdAndContextTypeAndViewMode`, `findAllByApplicationIdAndViewMode`, `findAllByIds`, `findByArtifactIdAndArtifactType`, `findById`, `findByPageId`, `findByPageIdsForExport`, `generateActionCollectionByViewMode`, `generateActionCollectionViewDTO`, `generateAndSetPolicies`, `getActionCollectionsForViewMode`, `getActionCollectionsForViewMode`, `getCollectionsByPageIdAndViewMode`, `getNonComposedActionCollectionsByViewMode`, `getPopulatedActionCollectionsByViewMode`, `populateActionCollectionByViewMode`, `save`, `saveAll`, `saveLastEditInformationInParent`, `splitValidActionsByViewMode`, `update`, `validateAndSaveCollection`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 31 declarations carry 29 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 29 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCE.java:19
  • `ApplicationPageServiceCE` declares 25 abstract methods: `addPageToApplication`, `cloneApplication`, `clonePage`, `createApplication`, `createApplication`, `createOrUpdateSuffixedApplication`, `createPage`, `deleteApplication`, `deleteApplicationByResource`, `deleteUnpublishedPage`, `deleteUnpublishedPage`, `generateAndSetPagePolicies`, `getEvaluationVersion`, `getPage`, `getPage`, `getPageAndMigrateDslByBranchAndBasePageId`, `getPageAndMigrateDslByBranchedPageId`, `getPageDTOAfterMigratingDSL`, `getPagesBasedOnApplicationMode`, `makePageDefault`, `makePageDefault`, `publish`, `publishWithoutPermissionChecks`, `reorderPage`, `setApplicationPolicies`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 25 declarations carry 21 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 21 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCE.java:14
  • `GitArtifactHelperCE<T>` declares 31 abstract methods: `createArtifactForImport`, `createNewArtifactForCheckout`, `createNewArtifactForCheckout`, `deleteAllBranches`, `deleteArtifact`, `deleteArtifactByResource`, `disconnectEntitiesOfBaseArtifact`, `getAllArtifactByBaseId`, `getArtifactAutoCommitPermission`, `getArtifactByBaseIdAndBranchName`, `getArtifactById`, `getArtifactEditPermission`, `getArtifactGitConnectPermission`, `getArtifactManageDefaultBranchPermission`, `getArtifactManageProtectedBranchPermission`, `getArtifactReadPermission`, `getNewArtifact`, `getRepoSuffixPath`, `getSshKeys`, `getWorkspaceArtifactCreationPermission`, `intialiseReadMe`, `isContextInArtifactEmpty`, `isPrivateRepoLimitReached`, `publishArtifact`, `publishArtifactPostCommit`, `publishArtifactPostRefCreation`, `resetAttributeInBaseArtifact`, `saveArtifact`, `updateArtifactWithProtectedBranches`, `updateArtifactWithSchemaVersions`, `validateAndPublishArtifact`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 31 declarations carry 30 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 30 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitArtifactHelperCE.java:15
  • `PermissionGroupServiceCE` declares 26 abstract methods: `assignToUser`, `assignToUserAndSendEvent`, `bulkAssignToUserAndSendEvent`, `bulkAssignToUsers`, `bulkAssignToUsers`, `bulkUnAssignFromUserAndSendEvent`, `bulkUnassignFromUsers`, `bulkUnassignFromUsers`, `bulkUnassignUsersFromPermissionGroupsWithoutPermission`, `cleanPermissionGroupCacheForUsers`, `delete`, `deleteWithoutPermission`, `findAllByIds`, `findById`, `getAllByAssignedToUserAndDefaultWorkspace`, `getByDefaultWorkspace`, `getByDefaultWorkspaces`, `getById`, `getPublicPermissionGroup`, `getPublicPermissionGroupId`, `getSessionUserPermissionGroupIds`, `isEntityAccessible`, `leaveExplicitlyAssignedSelfRole`, `save`, `unAssignFromUserAndSendEvent`, `unassignFromUser`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 26 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 24 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCE.java:15
  • `UserDataServiceCE` declares 22 abstract methods: `deleteProfilePhoto`, `ensureViewedCurrentVersionReleaseNotes`, `getFavoriteApplications`, `getFeatureFlagsForCurrentUser`, `getForCurrentUser`, `getForUser`, `getForUser`, `getForUserEmail`, `getGitProfileForCurrentUser`, `getProfilePhotoAssetIdsForUserIds`, `makeProfilePhotoResponse`, `makeProfilePhotoResponse`, `removeApplicationFromAllFavorites`, `removeRecentWorkspaceAndChildEntities`, `saveProfilePhoto`, `setViewedCurrentVersionReleaseNotes`, `setViewedCurrentVersionReleaseNotes`, `toggleFavoriteApplication`, `update`, `updateForCurrentUser`, `updateForUser`, `updateLastUsedResourceAndWorkspaceList`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCE.java:16
  • `UserServiceCE` declares 18 abstract methods: `buildUserProfileDTO`, `claimSuperUserCreationSlot`, `createUser`, `findByEmail`, `findByEmailAndOrganizationId`, `forgotPasswordTokenGenerate`, `getAllByEmails`, `isUsersEmpty`, `releaseSuperUserCreationSlot`, `resendEmailVerification`, `resetPasswordAfterForgotPassword`, `signupIfAllowed`, `updateCurrentUser`, `updateWithoutPermission`, `updateWithoutPermission`, `userCreate`, `verifyEmailVerificationToken`, `verifyPasswordResetToken`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 18 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserServiceCE.java:18
  • `WorkspaceServiceCE` declares 16 abstract methods under just 14 distinct name(s): `archiveById`, `create`, `create`, `createDefault`, `deleteLogo`, `findById`, `findByIdAndPluginsPluginId`, `findByIdsIn`, `getAll`, `getAll`, `getById`, `getDefaultEnvironmentId`, `getPermissionGroupsForWorkspace`, `retrieveAll`, `save`, `uploadLogo`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/WorkspaceServiceCE.java:15
  • `ApplicationServiceCE` declares 41 abstract methods: `archive`, `changeViewAccessForAllBranchesByBranchedApplicationId`, `changeViewAccessForSingleBranchByBranchedApplicationId`, `createBaseApplication`, `deleteAppNavigationLogo`, `findAllApplicationsByBaseApplicationId`, `findAllApplicationsByWorkspaceId`, `findAllBranchedApplicationIdsByBranchedApplicationId`, `findBranchedApplicationId`, `findBranchedApplicationId`, `findBranchedApplicationIdsByBaseApplicationId`, `findByBaseIdBranchNameAndApplicationMode`, `findByBranchNameAndBaseApplicationId`, `findByBranchNameAndBaseApplicationId`, `findByBranchedApplicationIdAndApplicationMode`, `findByBranchedId`, `findById`, `findById`, `findByIdAndExportWithConfiguration`, `findByUniqueAppName`, `findByUniqueAppNameRefNameAndApplicationMode`, `findByWorkspaceId`, `findByWorkspaceIdAndBaseApplicationsForHome`, `findByWorkspaceIdAndBaseApplicationsInAlphabeticalOrder`, `findByWorkspaceIdAndBaseApplicationsInRecentlyUsedOrder`, `getApplicationByBaseApplicationIdAndDefaultBranch`, `getApplicationInViewMode`, `getById`, `getGitConnectedApplicationsCountWithPrivateRepoByWorkspaceId`, `getRandomAppCardColor`, `getSshKey`, `isApplicationConnectedToGit`, `isApplicationNameTaken`, `save`, `saveAppNavigationLogo`, `saveLastEditInformation`, `setAppTheme`, `setTransientFields`, `updateApplicationWithPresets`, `updateByBranchedIdAndFieldsMap`, and 1 more. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 41 declarations carry 38 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 38 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCE.java:18
  • `DatasourceServiceCE` declares 27 abstract methods: `archiveById`, `blockEndpointForConnectionRequest`, `consumeTokenIfAvailable`, `create`, `createDatasourceFromDatasourceStorage`, `createWithoutDeprecationCheck`, `createWithoutPermissions`, `createWithoutPermissions`, `extractKeysFromDatasource`, `findById`, `findById`, `findByIdAndEnvironmentId`, `findByIdWithStorages`, `findByNameAndWorkspaceId`, `getAllByWorkspaceIdWithStorages`, `getAllWithStorages`, `getRateLimitIdentifier`, `getTrueEnvironmentId`, `getTrueEnvironmentId`, `isEndpointBlockedForConnectionRequest`, `save`, `saveAll`, `testDatasource`, `updateDatasource`, `updateDatasourceStorage`, `validateDatasource`, `validateNewQueryCreationAllowed`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 27 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 24 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCE.java:18
  • `ArtifactExchangeJsonCE` declares 19 abstract methods: `getActionCollectionList`, `getActionList`, `getArtifact`, `getArtifactJsonType`, `getClientSchemaVersion`, `getContextList`, `getDatasourceList`, `getDecryptedFields`, `getModifiedResources`, `getServerSchemaVersion`, `setActionCollectionList`, `setActionList`, `setArtifact`, `setClientSchemaVersion`, `setContextList`, `setDatasourceList`, `setDecryptedFields`, `setModifiedResources`, `setServerSchemaVersion`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/ce/ArtifactExchangeJsonCE.java:19
  • `DatasourceStorageServiceCE` declares 27 abstract methods: `archive`, `bindStoredCredentials`, `checkEnvironment`, `create`, `create`, `createDatasourceStorageDTOFromDatasourceStorage`, `createDatasourceStorageFromDatasource`, `createDatasourceStorageFromDatasourceStorageDTO`, `findByDatasource`, `findByDatasourceAndEnvironmentId`, `findByDatasourceAndEnvironmentIdForExecution`, `findStrictlyByDatasourceId`, `findStrictlyByDatasourceIdAndEnvironmentId`, `getAnalyticsProperties`, `getBindingTokensForDatasourceStorages`, `getDatasourceStorageDTOFromDatasource`, `getDatasourceStorageFromDatasource`, `getEnvironmentNameFromEnvironmentIdForAnalytics`, `mergeStoredCredentialsIfConnectionUnchanged`, `populateHintMessages`, `populateHintMessages`, `save`, `saveAll`, `updateDatasourceStorage`, `updateDatasourceStorage`, `validateDatasourceConfiguration`, `validateDatasourceStorage`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 27 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 24 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCE.java:15
  • `CentralGitServiceCE` declares 24 abstract methods: `checkoutReference`, `commitArtifact`, `connectArtifactToGit`, `createReference`, `deleteGitReference`, `detachRemote`, `discardChanges`, `discardChanges`, `fetchRemoteChanges`, `fetchRemoteChanges`, `generateSSHKey`, `getAutoCommitProgress`, `getCommitHistory`, `getGitArtifactMetadata`, `getGitDocUrls`, `getProtectedBranches`, `getStatus`, `importArtifactFromGit`, `isBranchMergable`, `listBranchForArtifact`, `mergeBranch`, `pullArtifact`, `toggleAutoCommitEnabled`, `updateProtectedBranches`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 24 declarations carry 22 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 22 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCE.java:24
  • `GitHandlingServiceCE` declares 39 abstract methods: `checkoutArtifact`, `checkoutRemoteReference`, `commitArtifact`, `createFirstCommit`, `createGitReference`, `deleteGitReference`, `fetchRemoteReferences`, `fetchRemoteReferences`, `fetchRemoteRepository`, `fetchRemoteRepository`, `getBranchTrackingStatus`, `getCommitHistory`, `getDefaultBranchFromRepository`, `getGitAuthForUser`, `getGitAuthForUser`, `getRepoName`, `getStatus`, `initialiseReadMe`, `isBranchMergable`, `isGitAuthInvalid`, `isRepoPrivate`, `isRepoPrivate`, `listBranches`, `listBranches`, `listReferences`, `mergeBranches`, `obtainArtifactTypeAndIdentifierFromGitRepository`, `obtainArtifactTypeFromGitRepository`, `prepareChangesToBeCommitted`, `pullArtifact`, `reconstructArtifactJsonFromGitRepository`, `recreateArtifactJsonFromLastCommit`, `removeDanglingLocks`, `removeRepository`, `removeRepository`, `setRepositoryDetailsInGitArtifactMetadata`, `updateImportedRepositoryDetails`, `validateEmptyRepository`, `validateGitConnectDTO`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 39 declarations carry 33 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 33 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/GitHandlingServiceCE.java:25
  • `ArtifactBasedImportServiceCE<T, U, V>` declares 23 abstract methods: `createImportAnalyticsData`, `generateArtifactContextDependentImportableEntities`, `generateArtifactContextIndependentImportableEntities`, `generateArtifactSpecificImportableEntities`, `getArtifactSpecificConstantsMap`, `getBranchedArtifactIdsByBranchedArtifactId`, `getDatasourceIdSetConsumedInArtifact`, `getImportArtifactPermissionProviderForConnectingToGit`, `getImportArtifactPermissionProviderForImportingArtifact`, `getImportArtifactPermissionProviderForMergingJsonWithArtifact`, `getImportArtifactPermissionProviderForRestoringSnapshot`, `getImportArtifactPermissionProviderForUpdatingArtifact`, `getImportableArtifactDTO`, `getImportedArtifactFromDatabase`, `isArtifactConnectedToGit`, `migrateArtifactExchangeJson`, `postImportHook`, `setJsonArtifactNameToNullBeforeUpdate`, `syncClientAndSchemaVersion`, `updateAndSaveArtifactInContext`, `updateImportableArtifact`, `updateImportableEntities`, `validateArtifactSpecificFields`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/imports/internal/artifactbased/ArtifactBasedImportServiceCE.java:19
  • `NewActionServiceCE` declares 58 abstract methods: `archive`, `archiveActionsByApplicationId`, `archiveById`, `archiveGivenNewAction`, `bulkInsertActions`, `bulkUpdateActions`, `bulkValidateAndInsertActionInRepository`, `bulkValidateAndUpdateActionInRepository`, `countActionsByPluginType`, `deleteGivenNewAction`, `deleteUnpublishedAction`, `deleteUnpublishedAction`, `extractAndSetJsonPathKeys`, `fillSelfReferencingDataPaths`, `findActionDTObyIdAndViewMode`, `findAllActionsByContextIdAndContextTypeAndViewMode`, `findAllByApplicationIdAndViewMode`, `findAllByApplicationIdAndViewMode`, `findAllById`, `findByCollectionIdAndViewMode`, `findById`, `findById`, `findByPageId`, `findByPageId`, `findByPageId`, `findByPageIdAndViewMode`, `findByPageIdsForExport`, `findByUnpublishedNameAndPageId`, `findUnpublishedOnLoadActionsExplicitSetByUserInPage`, `generateActionByViewMode`, `generateActionDomain`, `generateActionViewDTO`, `generateAndSetActionPolicies`, `getActionsForViewMode`, `getActionsForViewModeByPageId`, `getAnalyticsProperties`, `getUnpublishedActions`, `getUnpublishedActions`, `getUnpublishedActions`, `getUnpublishedActions`, and 18 more. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 58 declarations carry 49 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 49 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCE.java:25
  • `NewPageServiceCE` declares 37 abstract methods: `archive`, `archiveById`, `archiveByIdWithoutPermission`, `archiveByIds`, `archivePagesByApplicationId`, `createApplicationPagesDTO`, `createDefault`, `createDefaultLayout`, `deleteAll`, `findAllByApplicationIds`, `findApplicationPages`, `findApplicationPagesByBranchedApplicationIdAndViewMode`, `findByApplicationId`, `findByApplicationIdAndApplicationMode`, `findByApplicationIdAndPageSlug`, `findByApplicationIdAndUniquePageSlug`, `findByBasePageId`, `findById`, `findByIdAndApplicationMode`, `findByIdAndLayoutsId`, `findByNameAndApplicationIdAndViewMode`, `findByNameAndViewMode`, `findByRefTypeAndRefNameAndBasePageId`, `findByRefTypeAndRefNameAndBasePageIdAndApplicationMode`, `findNewPagesByApplicationId`, `findNewPagesByApplicationId`, `findPageById`, `findRefPageId`, `getApplicationPagesDTO`, `getNameByPageId`, `getPageByViewMode`, `publishPages`, `save`, `saveAll`, `saveUnpublishedPage`, `updateDependencyMap`, `updatePage`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 37 declarations carry 36 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 36 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/base/NewPageServiceCE.java:19
  • `PluginServiceCE` declares 19 abstract methods: `findAllByIdsWithoutPermission`, `findAllPluginsInWorkspace`, `findById`, `findByName`, `findByPackageName`, `getAllRemotePlugins`, `getDefaultPluginIcons`, `getDefaultPlugins`, `getEditorConfigLabelMap`, `getFormConfig`, `getInWorkspace`, `getPluginName`, `getPluginsByType`, `getUpcomingIntegrations`, `installDefaultPlugins`, `installPlugin`, `loadEditorPluginResourceUqi`, `loadPluginResource`, `saveAll`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/base/PluginServiceCE.java:16
  • `CustomApplicationRepositoryCE` declares 33 abstract methods: `addPageToApplication`, `countByDeletedAtNull`, `countByNameAndWorkspaceId`, `countByWorkspaceId`, `findAllBranchedApplicationIdsByBranchedApplicationId`, `findAllUserApps`, `findBranchedApplicationIdsByBaseApplicationId`, `findByClonedFromApplicationId`, `findByClonedFromApplicationId`, `findByIdAndExportWithConfiguration`, `findByIdAndWorkspaceId`, `findByIdIn`, `findByMultipleWorkspaceIds`, `findByName`, `findByUniqueAppName`, `findByUniqueAppSlugRefName`, `findByWorkspaceId`, `findByWorkspaceId`, `getAllApplicationIdsInWorkspaceAccessibleToARoleWithPermission`, `getAllApplicationsCountAccessibleToARoleWithPermission`, `getApplicationByBaseApplicationIdAndDefaultBranch`, `getApplicationByGitBaseApplicationId`, `getApplicationByGitBranchAndBaseApplicationId`, `getApplicationByGitBranchAndBaseApplicationId`, `getApplicationByGitBranchAndBaseApplicationId`, `getGitConnectedApplicationByWorkspaceId`, `getGitConnectedApplicationWithPrivateRepoCount`, `protectBranchedApplications`, `setAppTheme`, `setDefaultPage`, `setPages`, `unprotectAllBranches`, `updateFieldById`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 33 declarations carry 29 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 29 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomApplicationRepositoryCE.java:15
  • `CustomNewActionRepositoryCE` declares 30 abstract methods: `archiveDeletedUnpublishedActions`, `countActionsByPluginType`, `countByDatasourceId`, `countByDeletedAtNull`, `findAllActionsByNameAndPageIdsAndViewMode`, `findAllByApplicationIds`, `findAllByApplicationIdsWithoutPermission`, `findAllByCollectionIds`, `findAllByIdIn`, `findAllNonJsActionsByNameAndPageIdsAndViewMode`, `findAllPublishedActionsByContextIdAndContextType`, `findAllUnpublishedActionsByContextIdAndContextType`, `findByApplicationId`, `findByApplicationId`, `findByApplicationId`, `findByApplicationId`, `findByApplicationIdAndViewMode`, `findByPageId`, `findByPageId`, `findByPageId`, `findByPageIdAndViewMode`, `findByPageIds`, `findByPageIds`, `findByUnpublishedNameAndPageId`, `findNonJsActionsByApplicationIdAndViewMode`, `findPublishedActionsByAppIdAndExcludedPluginType`, `findPublishedActionsByPageIdAndExcludedPluginType`, `findUnpublishedActionsByNameInAndPageId`, `findUnpublishedActionsByPageIdAndRunbehaviourSetByUserOnPageLoad`, `publishActions`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 30 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 24 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCE.java:16
  • `CustomNewPageRepositoryCE` declares 19 abstract methods: `countByDeletedAtNull`, `findAllByApplicationIds`, `findAllByApplicationIdsWithoutPermission`, `findAllPageDTOsByIds`, `findByApplicationId`, `findByApplicationId`, `findByApplicationId`, `findByApplicationIdAndNonDeletedEditMode`, `findByApplicationIdAndPageSlug`, `findByBasePageId`, `findById`, `findByIdAndLayoutsIdAndViewMode`, `findByNameAndApplicationIdAndViewMode`, `findByNameAndViewMode`, `findByUniquePageSlug`, `findPageByRefTypeAndRefNameAndBasePageId`, `getNameByPageId`, `publishPages`, `updateDependencyMap`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 19 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCE.java:14
  • `ThemeServiceCE` declares 21 abstract methods: `archiveApplicationThemes`, `archiveById`, `changeCurrentTheme`, `cloneThemeToApplication`, `getApplicationTheme`, `getApplicationTheme`, `getApplicationTheme`, `getApplicationThemes`, `getApplicationThemes`, `getApplicationThemes`, `getDefaultThemeId`, `getOrSaveTheme`, `getOrSaveTheme`, `getSystemTheme`, `getSystemThemes`, `getThemeById`, `persistCurrentTheme`, `publishTheme`, `save`, `updateName`, `updateTheme`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 21 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 16 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-server/src/main/java/com/appsmith/server/themes/base/ThemeServiceCE.java:11
  • `FSGitHandler` declares 31 abstract methods: `checkoutRemoteBranch`, `checkoutTag`, `checkoutToBranch`, `cloneRemoteIntoArtifactRepo`, `commitArtifact`, `createAndCheckoutReference`, `createAndCheckoutToBranch`, `createNewRepository`, `createRepoPath`, `deleteBranch`, `fetchRemote`, `fetchRemote`, `getBranchTrackingStatus`, `getCommitHistory`, `getLastCommitDetails`, `getRemoteDefaultBranch`, `getStatus`, `isMergeBranch`, `listBranches`, `listTags`, `mergeBranch`, `mergeBranch`, `pullApplication`, `pullArtifactWithoutCheckout`, `pushArtifact`, `pushArtifact`, `rebaseBranch`, `resetHard`, `resetToLastCommit`, `resetToLastCommit`, `testConnection`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 31 declarations carry 27 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 27 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/git/handler/FSGitHandler.java:20
  • `Executable` declares 18 abstract methods: `getConfigurationPath`, `getDeletedAt`, `getDslExecutable`, `getDynamicBindingPathList`, `getEntityReferenceType`, `getExecutableConfiguration`, `getExecutableNames`, `getExecuteOnLoad`, `getId`, `getJsonPathKeys`, `getRunBehaviour`, `getSelfReferencingDataPaths`, `getUserExecutableName`, `getUserSetOnLoad`, `getValidName`, `isOnLoadMessageAllowed`, `setExecuteOnLoad`, `setRunBehaviour`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants 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. — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Executable.java:12

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
  • Where the width is an overload set rather than separate responsibilities, collapse the overloads instead — segregating those relieves no caller.
AX8 · Test isolation10.0 / 10Exemplary✓ 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.

DM10 · One transaction, one aggregate9.3 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether a single operation mutates more than one aggregate root. An aggregate is a consistency boundary, so saving two together fuses them into one — the second's invariants come to depend on the first's transaction, and the pair can no longer be separated. Reads of other aggregates are not counted.

Method: Neutral body surface (DDD-gated): every method body scanned for repository WRITE calls (Add/Update/Save/Remove/Delete/Insert/Store and their async forms), keyed on the ARGUMENT type rather than the repository type — three `IRepository<T>` writes collapse to one repository but are three distinct aggregates. Reads (Get/Find/Load/Query) are excluded, so loading another aggregate for context never counts. Score is offending methods over methods that write at all. Deterministic.

  • `McpTokenServiceCEImpl.revoke` saves `mcpKeyRepository`, `mcpTokenRepository` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/McpTokenServiceCEImpl.java:236

What to do

  • Mutate one aggregate per operation and let the others follow from a domain event — the second aggregate reaching consistency a moment later is the design, not a compromise.
DM7 · Repository granularity10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether repositories are per aggregate root (not per child entity) and keep the persistence query handle behind the contract, so the root's invariants can't be bypassed.

Method: Roslyn (DDD-gated): repository abstraction detection; repositories over non-aggregate-root entities flagged, and (C#/VB) repository INTERFACES whose members return a live persistence query handle (IQueryable/DbSet/IMongoQueryable) — implementations and specification evaluators are out of population by design, since composing a query internally is what an implementation is for. Deterministic, DDD-native.

Coverage: Population: repositories + aggregate roots by NAME convention; per-root repository rule checked within the set.

DM9 · Scattered domain decisions9.6 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether one domain rule is decided — or one measurement produced — in more than one place, rather than living on the type that owns it.

Method: Neutral body surface plus Roslyn (DDD-gated), two arms. DECISION (Roslyn only): a predicate over a domain type's members judged in two or more types, where none of those decisions live on the owning type — operands of comparisons and relational property patterns only, so a member merely passed as an argument is not judged. DERIVATION: a plain all-numeric carrier of ≥2 members, with no base type and exactly one constructor, CONSTRUCTED as the result of a method (returned or assigned, never inline as an argument) in two or more types other than its own — the same measurement produced twice, which centralising the judgement does not fix. DERIVATION runs on every language whose frontend declares the produced-or-passed fact per construction (Roslyn and the Java sidecar today); a target with only the derivation arm carries an engine gap naming the decision arm as not assessed, and a frontend that declares nothing keeps the dimension not measured rather than clean. Single-member rules, test code and generated code are out of population for both. Advisory.

  • app.client.src.widgets.FilePickerWidgetV2.widget.FilePickerWidgetProps's [maxFileSize, maxNumFiles] are judged in app.client.src.widgets.FilePickerWidgetV2.widget.FilePickerWidget, app.client.src.widgets.FilepickerWidget.widget.FilePickerWidget — the same decision, restated. Every copy is a chance to drift, and copies drift silently because each one looks correct on its own. Move the judgement onto the type that owns the members and let the call sites ask it.

What to do

  • Move each repeated judgement onto the type that owns the members it reads, so the rule has one home and cannot drift.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary✓ Tool-verified

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 shipped function's whole body still throws a "not implemented" error — generated scaffolding that was never completed. Implement it or remove the dead surface. — app/client/src/widgets/TableWidget/widget/index.tsx:377
  • A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in. (×6) — app/client/packages/design-system/widgets/src/components/Modal/stories/CustomModal.tsx:20, app/client/packages/design-system/widgets/src/components/Modal/stories/ModalExamples.tsx:63, app/client/packages/design-system/widgets/src/components/Modal/stories/ModalExamples.tsx:114, …
  • A placeholder string ("Lorem ipsum") is still in shipped code — typical of generated boilerplate that was never filled in. (×2) — app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:43, app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:101
  • A placeholder string ("Lorem ipsum dolor sit amet consectetur, …") is still in shipped code — typical of generated boilerplate that was never filled in. — app/client/src/pages/AdminSettings/Branding/previews/EmailPreview.tsx:31

What to do

  • Finish or delete the functions that still throw "not implemented", and replace placeholder text before shipping.
IC1 · Incompleteness & stubs6.1 / 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.

  • Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition. — app/client/packages/design-system/ads-old/src/Checkbox/index.tsx:89
  • `handleBadRequestError` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — app/client/src/api/interceptors/response/failureHandlers/handleBadRequestError.ts:7
  • `handleCancelError` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — app/client/src/api/interceptors/response/failureHandlers/handleCancelError.ts:5
  • `fetchAllPackages` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/actions/applicationActions.ts:334
  • `getModuleInstanceInvalidErrors` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/entities/AppsmithConsole/utils.ts:21
  • `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. — app/client/src/ce/pages/Applications/index.tsx:307
  • `useConvertToModuleOptions` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/pages/Editor/Explorer/hooks.tsx:355
  • `getInvalidModuleInputsError` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/plugins/Linting/utils/getInvalidModuleInputsError.ts:13
  • `moduleInstanceEntities` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/reducers/entityReducers/index.ts:34
  • `executionForJSModuleInstance` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — app/client/src/ce/sagas/moduleInstanceSagaUtils.ts:14
  • `waitForPackageInitialization` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — app/client/src/ce/sagas/moduleInterfaceSagas.ts:25
  • `handleUIModuleWidgetReplay` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — app/client/src/ce/sagas/moduleInterfaceSagas.ts:32
  • `getFeatureFlagsForEngine` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/engineSelectors.ts:6
  • `getModuleInstances` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/entitiesSelector.ts:1636
  • `getIsActionConverting` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/entitiesSelector.ts:1667
  • `areEnvironmentsFetched` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/environmentSelectors.tsx:6
  • `getCurrentEnvironmentName` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/environmentSelectors.tsx:22
  • `allowManageEnvironmentAccessForUser` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/environmentSelectors.tsx:33
  • `isEnvironmentFetching` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/environmentSelectors.tsx:36
  • `getModuleInstanceById` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/moduleInstanceSelectors.ts:6
  • `getModuleInstanceJSCollectionById` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/moduleInstanceSelectors.ts:11
  • `getAllUniqueWidgetTypesInUiModules` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/moduleInstanceSelectors.ts:17
  • `getAllModules` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — app/client/src/ce/selectors/modulesSelector.ts:5
  • `getCurrentModuleId` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/modulesSelector.ts:11
  • `getCurrentBaseModuleId` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/modulesSelector.ts:13
  • `showUIModulesList` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/modulesSelector.ts:15
  • `getActionsInCurrentModule` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/modulesSelector.ts:17
  • `getJSCollectionsInCurrentModule` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/modulesSelector.ts:18
  • `getModuleInstanceActions` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/modulesSelector.ts:20
  • `getModuleInstanceJSCollections` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/modulesSelector.ts:21
  • `getIsCurrentEditorWorkflowType` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/workflowSelectors.ts:18
  • `getCurrentWorkflowJSActions` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/selectors/workflowSelectors.ts:26
  • `getModuleInstanceNavigationData` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/utils/moduleInstanceNavigationData.ts:4
  • `hasCreateWorkspacePermission` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/utils/permissionHelpers.tsx:85
  • `hasCreateDatasourcePermission` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/utils/permissionHelpers.tsx:87
  • `hasReadDatasourcePermission` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/utils/permissionHelpers.tsx:89
  • `hasManageDatasourcePermission` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/utils/permissionHelpers.tsx:91
  • `hasManageWorkspaceDatasourcePermission` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/utils/permissionHelpers.tsx:93
  • `hasDeleteDatasourcePermission` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/utils/permissionHelpers.tsx:97
  • `hasCreateDatasourceActionPermission` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — app/client/src/ce/utils/permissionHelpers.tsx:99

What to do

  • Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
  • 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)5.4 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

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

  • 662 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.

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.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 41 of 47 project(s) that lack one — worth up to 1.7 pts.
  • Review the README against recent changes; refresh the parts that drifted.
M2 · Architecture documentation5.0 / 10Adequate✓ 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.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

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

M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

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, REDACTED, etc.) for build and test stages. Exhaustive, deterministic.

  • `yarn run prettier:ci` invokes prettier in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner's throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one — it enforces nothing, and no other step in this file reads the result. `--check` is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted. — REDACTED:73
  • `yarn prettier:ci` invokes prettier in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner's throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one — it enforces nothing, and no other step in this file reads the result. `--check` is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted. — REDACTED:71
  • `yarn prettier` invokes prettier in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner's throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one — it enforces nothing, and no other step in this file reads the result. `--check` is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted. — REDACTED:102

What to do

  • Add `--check` to the prettier step in `REDACTED` so a change that is not formatted fails CI, instead of being silently reformatted into a checkout that is thrown away — or, if reformatting the branch is the intent, commit the result back so the fix reaches the repository.
  • Add `--check` to the prettier step in `REDACTED` so a change that is not formatted fails CI, instead of being silently reformatted into a checkout that is thrown away — or, if reformatting the branch is the intent, commit the result back so the fix reaches the repository.
  • Add `--check` to the prettier step in `REDACTED` so a change that is not formatted fails CI, instead of being silently reformatted into a checkout that is thrown away — or, if reformatting the branch is the intent, commit the result back so the fix reaches the repository.
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 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 · Observability9.9 / 10Exemplary✓ 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 35/36 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `app/client/packages/mcp`.
  • `app/client/download-assets.js` reports through `console.*` at line 23 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/download-assets.js:23
  • `app/client/download-assets.js` reports through `console.*` at line 34 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/download-assets.js:34
  • `app/client/download-assets.js` reports through `console.*` at line 37 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/download-assets.js:37
  • `app/client/download-assets.js` reports through `console.*` at line 44 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/download-assets.js:44
  • `app/client/download-assets.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. — app/client/download-assets.js:47
  • `app/client/src/workers/Evaluation/evaluation.worker.ts` reports through `console.*` at line 83 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/workers/Evaluation/evaluation.worker.ts:83
  • `app/client/src/workers/Evaluation/evaluation.worker.ts` reports through `console.*` at line 90 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/workers/Evaluation/evaluation.worker.ts:90
  • `app/client/src/workers/Evaluation/handlers/evalTree.ts` reports through `console.*` at line 282 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/workers/Evaluation/handlers/evalTree.ts:282
  • `app/client/src/workers/Evaluation/fns/utils/Messenger.ts` 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. — app/client/src/workers/Evaluation/fns/utils/Messenger.ts:48
  • `app/client/src/workers/Evaluation/fns/utils/Messenger.ts` reports through `console.*` at line 98 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/workers/Evaluation/fns/utils/Messenger.ts:98
  • `app/client/src/widgets/TableWidget/widget/derived.js` reports through `console.*` at line 275 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/widgets/TableWidget/widget/derived.js:275
  • `app/client/src/widgets/TableWidget/widget/derived.js` reports through `console.*` at line 509 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/widgets/TableWidget/widget/derived.js:509
  • `app/client/src/utils/helpers.tsx` reports through `console.*` at line 470 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/utils/helpers.tsx:470
  • `app/client/src/utils/helpers.tsx` reports through `console.*` at line 475 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/utils/helpers.tsx:475
  • `app/client/src/utils/editor/EditorUtils.ts` reports through `console.*` at line 13 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/utils/editor/EditorUtils.ts:13
  • `app/client/src/pages/AdminSettings/FormGroup/ColorInput.tsx` reports through `console.*` at line 129 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/pages/AdminSettings/FormGroup/ColorInput.tsx:129
  • `app/client/src/layoutSystems/autolayout/utils/flexWidgetUtils.ts` reports through `console.*` at line 135 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/layoutSystems/autolayout/utils/flexWidgetUtils.ts:135
  • `app/client/src/layoutSystems/autolayout/utils/positionUtils.ts` reports through `console.*` at line 158 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/layoutSystems/autolayout/utils/positionUtils.ts:158
  • `app/client/src/components/propertyControls/TableCustomSortControl.tsx` reports through `console.*` at line 183 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/components/propertyControls/TableCustomSortControl.tsx:183
  • `app/client/src/components/formControls/utils.ts` reports through `console.*` at line 794 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/components/formControls/utils.ts:794
  • `app/client/src/components/formControls/DropDownControl/index.tsx` reports through `console.*` at line 644 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/components/formControls/DropDownControl/index.tsx:644
  • `app/client/src/components/editorComponents/CodeEditor/index.tsx` reports through `console.*` at line 1786 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/components/editorComponents/CodeEditor/index.tsx:1786
  • `app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts` reports through `console.*` at line 343 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts:343
  • `app/client/src/api/Api.ts` reports through `console.*` at line 39 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/src/api/Api.ts:39
  • `REDACTED` reports through `console.*` at line 4168 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — REDACTED:4168
  • `REDACTED` reports through `console.*` at line 5134 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — REDACTED:5134
  • `REDACTED` reports through `console.*` at line 7623 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — REDACTED:7623
  • `REDACTED` reports through `console.*` at line 7729 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — REDACTED:7729
  • `REDACTED` reports through `console.*` at line 7971 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — REDACTED:7971
  • `REDACTED` reports through `console.*` at line 8049 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — REDACTED:8049
  • `app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx` reports through `console.*` at line 1670 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx:1670
  • `app/client/packages/rts/build.js` reports through `console.*` at line 24 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/packages/rts/build.js:24
  • `app/client/packages/rts/build.js` reports through `console.*` at line 85 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/packages/rts/build.js:85
  • `app/client/packages/rts/build.js` reports through `console.*` at line 90 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/packages/rts/build.js:90
  • `app/client/packages/rts/src/ctl/check_replica_set.ts` reports through `console.*` at line 21 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/packages/rts/src/ctl/check_replica_set.ts:21
  • `app/client/packages/rts/src/ctl/check_replica_set.ts` reports through `console.*` at line 32 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/packages/rts/src/ctl/check_replica_set.ts:32
  • `app/client/packages/rts/src/ctl/check_replica_set.ts` 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. — app/client/packages/rts/src/ctl/check_replica_set.ts:49
  • `app/client/packages/rts/src/ctl/check_replica_set.ts` reports through `console.*` at line 56 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/packages/rts/src/ctl/check_replica_set.ts:56
  • `app/client/packages/rts/src/ctl/check_replica_set.ts` reports through `console.*` at line 58 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — app/client/packages/rts/src/ctl/check_replica_set.ts:58

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.
P3 · Security & performance tooling3.0 / 10Weak✓ 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.

  • No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 364584 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.

What to do

  • Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing.
  • Dependabot is configured but does not watch `github-actions` — 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 & Backup7.0 / 10Strong✓ 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.

What to do

  • Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
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.

P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.

Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.

  • `WebClient.builder(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×3) — app/server/appsmith-interfaces/src/main/java/com/appsmith/util/WebClientUtils.java:149, app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:135, app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/RTSCallerCEImpl.java:54
  • `RestClient.builder(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:388
  • `WebClient.create(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:322
  • `urllib.request.urlopen(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — REDACTED:30

What to do

  • Set connect and read timeouts on every client (`RestTemplateBuilder.connectTimeout/readTimeout`, WebClient `responseTimeout`, `HttpRequest.Builder.timeout`, `HttpURLConnection.setReadTimeout`, Feign `connectTimeout`/`readTimeout` in configuration), and wrap calls to dependencies in resilience4j `@Retry`/`@CircuitBreaker`/`@TimeLimiter` (or Spring Retry).
  • Pass `timeout=` on every `requests`/`httpx` call (requests has no default and will wait forever), mount an `HTTPAdapter(max_retries=Retry(...))` on shared sessions, and wrap calls to flaky dependencies in `tenacity` retries or a `pybreaker` circuit breaker.
PF1 · Benchmark discipline7.5 / 10Strong✓ Tool-verified

Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.

Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.

  • A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement — allocations (the main way hot code pressures a garbage collector or allocator) aren't being measured.

What to do

  • Run JMH with the GC profiler (`-prof gc`, or addProfiler(GCProfiler.class)) so allocation rate regressions are visible, not just time.
PF2 · Allocation hygiene6.1 / 10Adequate✓ Tool-verified

Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.

Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — in .NET Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit; off .NET, with comments and strings blanked, Go's sync.Pool, preallocated slices/maps, Grow, strconv.Append* and buf[:0] reuse; the JVM's NIO buffer views, MemorySegment, primitive collections, pools and literal presizes (plus Kotlin primitive arrays and value classes, Scala AnyVal and @specialized); Swift's reserveCapacity, ContiguousArray, withUnsafe* access and ~Copyable. Activated off .NET on the same floor (400 lines, and benchmarks or 8 uses); Rust and garbage-collected scripting languages are not applicable. Reward-only. Deterministic, syntax/text detection.

What to do

  • Raise allocation-aware density on the hot paths — currently 21 use(s) across 160,521 production line(s) (~0.1/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
  • Java: on hot paths, work through buffer views (ByteBuffer/LongBuffer slices, MemorySegment) instead of copies, avoid boxing with primitive collections (fastutil, Eclipse Collections, HPPC, Trove), presize collections and StringBuilders, and pool expensive buffers (Netty's pooled allocator, commons-pool).
PF3 · Async & latency hygiene6.0 / 10Adequate✓ 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 the language 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.readFileSync` in `exports` 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. — app/client/cypress/plugins/index.js:120
  • `fs.readFileSync` in `changeVideoSource` 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. — app/client/cypress/plugins/index.js:170
  • `fs.readFileSync` in `resetVideoSource` 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. — app/client/cypress/plugins/index.js:195
  • `fs.readFileSync` in `uploadToS3` 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. — app/client/cypress/scripts/util.ts:110
  • `fs.mkdirSync` in `setup("import v1.9.24 migration app via Git")` 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. — app/client/playwright/fixtures/migration.setup.ts:274
  • `fs.writeFileSync` in `setup("import v1.9.24 migration app via Git")` 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. — app/client/playwright/fixtures/migration.setup.ts:275

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 Safety9.3 / 10Exemplary✓ 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.

What to do

  • Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication8.9 / 10Strong✓ Tool-verified

React / JS · Code Health — Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm over JS/TS tokens, D-386): 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. Deterministic.

  • app/client/packages/design-system/ads-old/ and app/client/packages/design-system/widgets-old/ are near-verbatim copies of each other: 400 files are byte-identical under the same relative paths (~419 KB; the trees hold 449 and 426 files). That is one structural fact, not 400 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — app/client/packages/design-system/ads-old/src/ControlIcons/index.tsx:1
  • 538 duplicated blocks under app/client/src/widgets/ have copies in at least two of the sibling directories AudioRecorderWidget, AudioWidget, BaseInputWidget, ButtonGroupWidget, ButtonWidget, CameraWidget (+57 more sibling(s) not listed) — 349 of them are reported below, and 189 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 538 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 538 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 538 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. — REDACTED:1
  • 252 duplicated blocks under app/client/src/ have copies in at least two of the sibling directories IDE, PluginActionEditor, WidgetProvider, actions, api, ce (+17 more sibling(s) not listed) — 109 of them are reported below, and 143 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 252 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 252 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 252 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. — app/client/src/git/components/BranchList/BranchListView.tsx:39
  • 56 duplicated blocks under app/client/src/widgets/wds/ have copies in at least two of the sibling directories WDSBaseInputWidget, WDSButtonWidget, WDSCheckboxGroupWidget, WDSCheckboxWidget, WDSComboBoxWidget, WDSCurrencyInputWidget (+20 more sibling(s) not listed) — 35 of them are reported below, and 21 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 56 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 56 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 56 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. — app/client/src/widgets/wds/WDSCurrencyInputWidget/widget/index.tsx:60
  • 52 duplicated blocks under app/client/ have copies in at least two of the sibling directories packages, src — 34 of them are reported below, and 18 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 52 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 52 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 52 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. — app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:637
  • 47 duplicated blocks under app/client/src/pages/ have copies in at least two of the sibling directories AdminSettings, AppIDE, AppViewer, Applications, Editor, Templates (+4 more sibling(s) not listed) — 29 of them are reported below, and 18 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 47 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 47 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 47 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. — app/client/src/pages/AdminSettings/Profile/UserProfileImagePicker.tsx:1
  • 30 duplicated blocks under app/client/src/layoutSystems/ have copies in at least two of the sibling directories anvil, autolayout, common, fixedlayout — 25 of them are reported below, and 5 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. — app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useCanvasDragging.ts:92
  • 17 duplicated blocks under app/client/src/pages/Editor/ have copies in at least two of the sibling directories CurlImport, CustomWidgetBuilder, DataSourceEditor, DatasourceInfo, Explorer, FirstTimeUserOnboarding (+4 more sibling(s) not listed) — 13 of them are reported below, and 4 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 17 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 17 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 17 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. — app/client/src/pages/Editor/DataSourceEditor/index.tsx:584
  • 13 duplicated blocks under app/client/packages/design-system/ have copies in at least two of the sibling directories ads, ads-old, widgets-old — 10 of them are reported below, and 3 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 13 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 13 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 13 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. — app/client/packages/design-system/ads-old/src/ControlIcons/index.tsx:1
  • 11 duplicated blocks under app/client/packages/design-system/widgets/src/components/ have copies in at least two of the sibling directories ComboBox, InlineButtons, MultiSelect, RadioGroup, Select, TextArea (+4 more sibling(s) not listed) — 6 of them are reported below, and 5 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 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 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 11 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. — app/client/packages/design-system/widgets/src/components/InlineButtons/src/InlineButtons.tsx:12
  • 8 duplicated blocks under app/client/src/pages/AppIDE/components/ have copies in at least two of the sibling directories AppPluginActionEditor, JSAdd, JSEntityItem, JSExplorer, QueryAdd, QueryEntityItem (+2 more sibling(s) not listed) — 5 of them are reported below, and 3 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 8 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 8 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 8 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. — app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx:28
  • 6 duplicated blocks under app/client/packages/design-system/ads/src/ have copies in at least two of the sibling directories AnnouncementPopover, Avatar, Callout, Checkbox, DatePicker, Flex (+10 more sibling(s) not listed) — 3 of them are reported below, and 3 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 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 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 6 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. — app/client/packages/design-system/ads/src/SegmentedControl/SegmentedControl.tsx:48
  • 5 duplicated blocks under app/client/src/reducers/ have copies in at least two of the sibling directories entityReducers, uiReducers — 0 of them are reported below, and 5 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 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 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 5 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. — app/client/src/reducers/entityReducers/datasourceReducer.ts:596
  • REDACTED:1 · app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:1 — these 2 files are line-for-line copies of one another — 739 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. — REDACTED:1
  • REDACTED:5705 · app/client/public/libraries/jsonwebtoken@8.5.1.js:16632 — 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. — REDACTED:5705
  • app/client/src/constants/ISDCodes.tsx:1 · app/client/src/constants/ISDCodes_v2.tsx:1 — these 2 files are line-for-line copies of one another — 724 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. — app/client/src/constants/ISDCodes.tsx:1
  • app/client/src/widgets/TableWidgetV2/widget/utilities.ts:39 · app/client/src/widgets/wds/WDSTableWidget/widget/utilities.ts:28 — the two spans are one implementation copied and then locally edited — 3589 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. — app/client/src/widgets/TableWidgetV2/widget/utilities.ts:39
  • REDACTED:4015 · app/client/public/libraries/jsonwebtoken@8.5.1.js:8524 — 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. — REDACTED:4015
  • REDACTED:6442 · app/client/public/libraries/jsonwebtoken@8.5.1.js:17369 — 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. — REDACTED:6442
  • app/client/src/widgets/MultiSelectTreeWidget/widget/index.tsx:1 · app/client/src/widgets/SingleSelectTreeWidget/widget/index.tsx:1 — these 2 files are line-for-line copies of one another — 454 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. — app/client/src/widgets/MultiSelectTreeWidget/widget/index.tsx:1
  • REDACTED:7532 · app/client/public/libraries/jsonwebtoken@8.5.1.js:19290 — 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. — REDACTED:7532
  • app/client/packages/design-system/ads-old/src/ControlIcons/index.tsx:1 · app/client/packages/design-system/widgets-old/src/ControlIcons/index.tsx:1 — these 2 files are line-for-line copies of one another — 412 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. — app/client/packages/design-system/ads-old/src/ControlIcons/index.tsx:1
  • app/client/src/widgets/TableWidgetV2/component/Constants.ts:1 · app/client/src/widgets/wds/WDSTableWidget/component/Constants.ts:1 — these 2 files are line-for-line copies of one another — 369 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. — app/client/src/widgets/TableWidgetV2/component/Constants.ts:1
  • app/client/src/widgets/MapChartWidget/constants.ts:366 · app/client/src/widgets/MapChartWidget/constants.ts:682 — the two spans are one implementation copied and then locally edited — 818 tokens are still identical, in the same order in both spans, 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. — app/client/src/widgets/MapChartWidget/constants.ts:366
  • app/client/src/widgets/TableWidgetV2/widget/index.tsx:1401 · REDACTED:993 — 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. — app/client/src/widgets/TableWidgetV2/widget/index.tsx:1401
  • app/client/src/components/propertyControls/PrimaryColumnsControlV2.tsx:1 · app/client/src/components/propertyControls/PrimaryColumnsControlWDS.tsx:2 — these 2 files are line-for-line copies of one another — 263 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. — app/client/src/components/propertyControls/PrimaryColumnsControlV2.tsx:1
  • app/client/src/widgets/TableWidgetV2/widget/derived.js:2 · app/client/src/widgets/wds/WDSTableWidget/widget/derived.js:2 — the two spans are one implementation copied and then locally edited — 1494 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. — app/client/src/widgets/TableWidgetV2/widget/derived.js:2
  • app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/index.ts:1 · app/client/src/widgets/wds/WDSTableWidget/config/propertyPaneConfig/PanelConfig/Data.ts:1 — these 2 files are line-for-line copies of one another — 241 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. — app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/index.ts:1
  • app/client/src/widgets/BaseInputWidget/component/index.tsx:64 · app/client/src/widgets/InputWidget/component/index.tsx:67 — the two spans are one implementation copied and then locally edited — 1210 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. — app/client/src/widgets/BaseInputWidget/component/index.tsx:64
  • app/client/src/components/propertyControls/IconSelectControl.tsx:1 · app/client/src/components/propertyControls/IconSelectControlV2.tsx:1 — these 2 files are line-for-line copies of one another — 237 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. — app/client/src/components/propertyControls/IconSelectControl.tsx:1
  • app/client/src/widgets/TableWidgetV2/component/index.tsx:41 · app/client/src/widgets/wds/WDSTableWidget/component/index.tsx:18 — the two spans are one implementation copied and then locally edited — 1377 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. — app/client/src/widgets/TableWidgetV2/component/index.tsx:41
  • REDACTED:3788 · app/client/public/libraries/jsonwebtoken@8.5.1.js:8297 — 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. — REDACTED:3788
  • app/client/src/widgets/TableWidgetV2/widget/index.tsx:726 · REDACTED:386 — the two spans are one implementation copied and then locally edited — 1401 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. — app/client/src/widgets/TableWidgetV2/widget/index.tsx:726
  • app/client/src/sagas/BuildingBlockSagas/BuildingBlockAdditionSagas.ts:476 · app/client/src/sagas/WidgetOperationSagas.tsx:1314 — the two spans are one implementation copied and then locally edited — 1105 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. — app/client/src/sagas/BuildingBlockSagas/BuildingBlockAdditionSagas.ts:476
  • app/client/src/git/components/BranchList/BranchListView.tsx:39 · app/client/src/pages/Editor/gitSync/components/BranchList.tsx:55 — the two spans are one implementation copied and then locally edited — 1008 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. — app/client/src/git/components/BranchList/BranchListView.tsx:39
  • app/client/src/widgets/NumberSliderWidget/widget/propertyConfig/contentConfig.ts:1 · app/client/src/widgets/RangeSliderWidget/widget/propertyConfig/contentConfig.ts:1 — these 2 files are line-for-line copies of one another — 199 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. — app/client/src/widgets/NumberSliderWidget/widget/propertyConfig/contentConfig.ts:1
  • app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:637 · app/client/src/entities/Widget/utils.ts:27 — the two spans are one implementation copied and then locally edited — 876 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. — app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:637
  • app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useCanvasDragging.ts:92 · app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/hooks/useCanvasDragging.ts:113 — the two spans are one implementation copied and then locally edited — 847 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. — app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useCanvasDragging.ts:92
  • app/client/src/widgets/TableWidgetV2/widget/index.tsx:1089 · REDACTED:706 — the two spans are one implementation copied and then locally edited — 955 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. — app/client/src/widgets/TableWidgetV2/widget/index.tsx:1089
  • REDACTED:7154 · app/client/public/libraries/jsonwebtoken@8.5.1.js:18081 — 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. — REDACTED:7154

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 Boundaries0.0 / 10Critical✓ 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.

  • app/client/packages/design-system/ads-old/src/DialogComponent/index.tsx:6 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/DialogComponent/index.tsx:6
  • app/client/packages/design-system/ads-old/src/DisplayImageUpload/index.tsx:15 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/DisplayImageUpload/index.tsx:15
  • app/client/packages/design-system/ads-old/src/EditableTextSubComponent/index.tsx:8 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/EditableTextSubComponent/index.tsx:8
  • app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:6 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:6
  • app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:8 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:8
  • app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:10 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:10
  • app/client/packages/design-system/ads-old/src/GifPlayer/index.tsx:3 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/GifPlayer/index.tsx:3
  • app/client/packages/design-system/ads-old/src/MenuItem/index.tsx:7 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/MenuItem/index.tsx:7
  • app/client/packages/design-system/ads-old/src/Table/index.tsx:11 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/Table/index.tsx:11
  • app/client/packages/design-system/ads-old/src/TreeDropdown/index.tsx:21 imports @appsmith/ads, 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. — app/client/packages/design-system/ads-old/src/TreeDropdown/index.tsx:21
  • app/client/packages/design-system/theming/src/hooks/src/useCssTokens.tsx:3 imports @appsmith/utils, 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. — app/client/packages/design-system/theming/src/hooks/src/useCssTokens.tsx:3
  • app/client/packages/design-system/theming/src/hooks/src/useCssTokens.tsx:8 imports @appsmith/utils, 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. — app/client/packages/design-system/theming/src/hooks/src/useCssTokens.tsx:8
  • app/client/packages/design-system/theming/src/hooks/src/useTypography.tsx:12 imports @appsmith/utils, 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. — app/client/packages/design-system/theming/src/hooks/src/useTypography.tsx:12
  • app/client/packages/design-system/theming/src/utils/cssRule.ts:4 imports @appsmith/utils, 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. — app/client/packages/design-system/theming/src/utils/cssRule.ts:4
  • app/client/packages/design-system/widgets-old/src/TableDropdown/index.tsx:1 imports @blueprintjs/core/lib/esm/common/position, 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. — app/client/packages/design-system/widgets-old/src/TableDropdown/index.tsx:1
  • app/client/packages/design-system/widgets-old/src/TableDropdown/index.tsx:2 imports @blueprintjs/core/lib/esm/components/popover/popover, 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. — app/client/packages/design-system/widgets-old/src/TableDropdown/index.tsx:2
  • app/client/packages/design-system/widgets-old/src/Tooltip/index.tsx:5 imports @blueprintjs/core/lib/esm/components/popover/popoverSharedProps, 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. — app/client/packages/design-system/widgets-old/src/Tooltip/index.tsx:5
  • app/client/packages/design-system/widgets-old/src/Tooltip/index.tsx:6 imports @blueprintjs/core/lib/esm/components/tooltip/tooltip, 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. — app/client/packages/design-system/widgets-old/src/Tooltip/index.tsx:6
  • app/client/packages/design-system/widgets/src/components/CodeBlock/src/CodeBlock.tsx:4 imports react-syntax-highlighter/dist/cjs/styles/hljs, 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. — app/client/packages/design-system/widgets/src/components/CodeBlock/src/CodeBlock.tsx:4
  • app/client/packages/design-system/widgets/src/components/Markdown/src/mdComponents/Code.tsx:5 imports react-syntax-highlighter/dist/cjs/styles/hljs, 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. — app/client/packages/design-system/widgets/src/components/Markdown/src/mdComponents/Code.tsx:5
  • app/client/packages/rts/src/services/DslService.ts:1 imports @shared/dsl, 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. — app/client/packages/rts/src/services/DslService.ts:1
  • app/client/src/PluginActionEditor/components/PluginActionResponse/components/ApiResponseMeta.tsx:9 imports @blueprintjs/core/lib/esm/components/text/text, 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. — app/client/src/PluginActionEditor/components/PluginActionResponse/components/ApiResponseMeta.tsx:9
  • app/client/src/ce/pages/Applications/index.tsx:45 imports @blueprintjs/core/lib/esm/common/position, 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. — app/client/src/ce/pages/Applications/index.tsx:45
  • app/client/src/components/designSystems/blueprintjs/icon/Icon.tsx:13 imports @blueprintjs/core/lib/esm/common/classes, 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. — app/client/src/components/designSystems/blueprintjs/icon/Icon.tsx:13
  • app/client/src/entities/Action/actionProperties.test.ts:2 imports app/client/src/entities/Plugin/index.ts against the feature-sliced rules. — app/client/src/entities/Action/actionProperties.test.ts:2
  • app/client/src/entities/Action/index.ts:7 imports app/client/src/entities/Plugin/index.ts against the feature-sliced rules. — app/client/src/entities/Action/index.ts:7
  • app/client/src/entities/AppTheming/utils.test.ts:3 imports app/client/src/widgets/ButtonWidget/index.ts against the feature-sliced rules. — app/client/src/entities/AppTheming/utils.test.ts:3
  • app/client/src/entities/AppTheming/utils.test.ts:4 imports app/client/src/widgets/TableWidget/index.ts against the feature-sliced rules. — app/client/src/entities/AppTheming/utils.test.ts:4
  • app/client/src/entities/AppTheming/utils.test.ts:5 imports app/client/src/widgets/JSONFormWidget/index.ts against the feature-sliced rules. — app/client/src/entities/AppTheming/utils.test.ts:5
  • app/client/src/entities/AppTheming/utils.ts:9 imports app/client/src/widgets/WidgetUtils.ts against the feature-sliced rules. — app/client/src/entities/AppTheming/utils.ts:9
  • app/client/src/entities/AppTheming/utils.ts:10 imports app/client/src/widgets/JSONFormWidget/constants.ts against the feature-sliced rules. — app/client/src/entities/AppTheming/utils.ts:10
  • app/client/src/entities/AppTheming/utils.ts:11 imports app/client/src/widgets/JSONFormWidget/helper.ts against the feature-sliced rules. — app/client/src/entities/AppTheming/utils.ts:11
  • app/client/src/entities/DataTree/dataTreeWidget.ts:1 imports app/client/src/entities/Widget/utils.ts against the feature-sliced rules. — app/client/src/entities/DataTree/dataTreeWidget.ts:1
  • app/client/src/entities/DependencyMap/__tests__/DependencyMapUtils.test.ts:3 imports app/client/src/entities/Plugin/index.ts against the feature-sliced rules. — app/client/src/entities/DependencyMap/__tests__/DependencyMapUtils.test.ts:3
  • app/client/src/entities/Engine/factory.ts:1 imports app/client/src/entities/App.ts against the feature-sliced rules. — app/client/src/entities/Engine/factory.ts:1
  • app/client/src/entities/Engine/index.ts:17 imports app/client/src/entities/URLRedirect/factory.ts against the feature-sliced rules. — app/client/src/entities/Engine/index.ts:17
  • app/client/src/entities/URLRedirect/DefaultURLRedirect.ts:3 imports app/client/src/entities/App.ts against the feature-sliced rules. — app/client/src/entities/URLRedirect/DefaultURLRedirect.ts:3
  • app/client/src/entities/URLRedirect/SlugURLRedirect.ts:3 imports app/client/src/entities/App.ts against the feature-sliced rules. — app/client/src/entities/URLRedirect/SlugURLRedirect.ts:3
  • app/client/src/entities/Widget/utils.test.ts:3 imports app/client/src/widgets/TableWidget/widget/propertyConfig.ts against the feature-sliced rules. — app/client/src/entities/Widget/utils.test.ts:3
  • app/client/src/entities/Widget/utils.test.ts:4 imports app/client/src/widgets/ChartWidget/widget/propertyConfig.ts against the feature-sliced rules. — app/client/src/entities/Widget/utils.test.ts:4

What to do

  • Fix the listed violations: respect the layer/slice order — import only through a slice's public index and never upward into a higher layer (610 rows); declare the workspace packages these files import in the importing package's own package.json dependencies (15 rows) — those imports are already bare package specifiers, so the import statements do not change, only the manifest; import through the target package's declared public entry rather than a deep path into its internals or a relative path into its directory (10 rows).
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.

  • migrateVersionedDSL has cyclomatic complexity 97 and cognitive complexity 98; 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. — app/client/packages/dsl/src/migrate/index.ts:151
  • renderCell has cyclomatic complexity 90 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 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. — app/client/src/widgets/TableWidgetV2/widget/index.tsx:2011
  • exprProblem has cyclomatic complexity 79 and cognitive complexity 125; 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. — app/client/packages/mcp/src/builder/jsExpr.ts:510
  • compileExpr has cyclomatic complexity 70 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 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. — app/client/packages/mcp/src/builder/jsExpr.ts:926
  • (anonymous) has cyclomatic complexity 55 and cognitive complexity 85; 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. — app/client/src/pages/Editor/PropertyPane/PropertyControl.tsx:90
  • (anonymous) has cyclomatic complexity 54 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. — app/client/src/pages/AdminSettings/FormGroup/group.tsx:123
  • evaluateTree has cyclomatic complexity 51 and cognitive complexity 114; 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. — app/client/src/workers/common/DataTreeEvaluator/index.ts:1114
  • (anonymous) has cyclomatic complexity 51 and cognitive complexity 32; 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. — app/client/packages/dsl/src/migrate/migrations/057-migrate-styling-properties-for-theming.ts:221
  • Deploy has cyclomatic complexity 49 and cognitive complexity 32; 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. — app/client/src/pages/Editor/gitSync/Tabs/Deploy.tsx:100
  • TabDeployView has cyclomatic complexity 49 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. — app/client/src/git/components/OpsModal/TabDeploy/TabDeployView.tsx:99
  • updateWidgetAutoHeightSaga has cyclomatic complexity 46 and cognitive complexity 135; 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. — app/client/src/sagas/autoHeightSagas/widgets.ts:78
  • applyWidgetPatch has cyclomatic complexity 46 and cognitive complexity 114; 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. — app/client/packages/mcp/src/builder/editPatch.ts:1612
  • WrappedPropsComponent has cyclomatic complexity 46 and cognitive complexity 63; 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. — app/client/src/widgets/withWidgetProps.tsx:58
  • (anonymous) has cyclomatic complexity 46 and cognitive complexity 56; 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. — app/client/public/libraries/jsonwebtoken@8.5.1.js:2737
  • Cell has cyclomatic complexity 45 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 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. — app/client/src/widgets/TableWidget/widget/index.tsx:509
  • (anonymous) has cyclomatic complexity 44 and cognitive complexity 95; 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. — app/client/src/sagas/WidgetOperationSagas.tsx:1340
  • _decode has cyclomatic complexity 44 and cognitive complexity 69; 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. — app/client/public/libraries/jsonwebtoken@8.5.1.js:3268

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files7.8 / 10Strong✓ 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.

  • REDACTED has 20765 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
  • app/client/public/libraries/jsonwebtoken@8.5.1.js has 19964 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/public/libraries/jsonwebtoken@8.5.1.js:1
  • REDACTED has 8080 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
  • app/client/packages/mcp/src/app.ts has 7870 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/mcp/src/app.ts:1
  • app/client/packages/design-system/widgets/src/components/Icon/src/icons.ts has 5401 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/design-system/widgets/src/components/Icon/src/icons.ts:1
  • app/client/src/constants/DefaultTheme.tsx has 2935 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/constants/DefaultTheme.tsx:1
  • app/client/src/widgets/TableWidgetV2/widget/index.tsx has 2784 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/widgets/TableWidgetV2/widget/index.tsx:1
  • app/client/src/ce/constants/messages.ts has 2740 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/ce/constants/messages.ts:1
  • app/client/src/components/designSystems/blueprintjs/icon/svgImportsMap.ts has 2188 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/components/designSystems/blueprintjs/icon/svgImportsMap.ts:1
  • app/client/packages/mcp/src/builder/schema.ts has 2182 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/mcp/src/builder/schema.ts:1
  • app/client/src/reflow/reflowUtils.ts has 2052 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/reflow/reflowUtils.ts:1
  • app/client/src/ce/sagas/DatasourcesSagas.ts has 2037 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/ce/sagas/DatasourcesSagas.ts:1
  • app/client/packages/mcp/src/builder/editPatch.ts has 1978 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/mcp/src/builder/editPatch.ts:1
  • app/client/src/sagas/WidgetOperationSagas.tsx has 1860 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/sagas/WidgetOperationSagas.tsx:1
  • app/client/src/workers/common/DataTreeEvaluator/index.ts has 1847 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/workers/common/DataTreeEvaluator/index.ts:1
  • app/client/src/widgets/TableWidget/widget/propertyConfig.ts has 1828 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/widgets/TableWidget/widget/propertyConfig.ts:1
  • app/client/src/components/editorComponents/CodeEditor/index.tsx has 1711 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/components/editorComponents/CodeEditor/index.tsx:1
  • REDACTED has 1692 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
  • app/client/src/sagas/WidgetOperationUtils.ts has 1676 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/sagas/WidgetOperationUtils.ts:1
  • app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx has 1640 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx:1
  • app/client/src/sagas/ActionExecution/PluginActionSaga.ts has 1577 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/sagas/ActionExecution/PluginActionSaga.ts:1
  • app/client/src/ce/selectors/entitiesSelector.ts has 1557 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/ce/selectors/entitiesSelector.ts:1
  • app/client/src/ce/sagas/PageSagas.tsx has 1479 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/ce/sagas/PageSagas.tsx:1
  • app/client/packages/design-system/ads/src/Grid/Grid.stories.tsx has 1451 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/design-system/ads/src/Grid/Grid.stories.tsx:1
  • app/client/src/widgets/JSONFormWidget/schemaTestData.ts has 1448 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/widgets/JSONFormWidget/schemaTestData.ts:1
  • app/client/packages/mcp/src/builder/templates.ts has 1433 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/mcp/src/builder/templates.ts:1
  • REDACTED has 1428 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
  • app/client/packages/ast/src/actionCreator/index.ts has 1412 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/ast/src/actionCreator/index.ts:1
  • app/client/packages/design-system/ads/src/Flex/Flex.stories.tsx has 1403 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/design-system/ads/src/Flex/Flex.stories.tsx:1
  • app/client/src/ce/constants/ReduxActionConstants.tsx has 1392 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/ce/constants/ReduxActionConstants.tsx:1
  • app/client/src/widgets/ListWidget/widget/index.tsx has 1389 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/widgets/ListWidget/widget/index.tsx:1
  • app/client/src/widgets/TableWidget/widget/index.tsx has 1388 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/widgets/TableWidget/widget/index.tsx:1
  • REDACTED has 1340 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
  • app/client/src/ce/sagas/ApplicationSagas.tsx has 1334 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/ce/sagas/ApplicationSagas.tsx:1
  • app/client/src/widgets/ListWidgetV2/widget/index.tsx has 1324 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/widgets/ListWidgetV2/widget/index.tsx:1
  • app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx has 1318 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:1
  • app/client/src/ce/pages/Applications/index.tsx has 1318 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/ce/pages/Applications/index.tsx:1
  • app/client/src/pages/AdminSettings/AI/index.tsx has 1307 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/pages/AdminSettings/AI/index.tsx:1
  • REDACTED 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. — REDACTED:1
  • app/client/src/sagas/GitSyncSagas.ts has 1253 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — app/client/src/sagas/GitSyncSagas.ts:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage9.4 / 10Exemplary✓ 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.

  • 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. (×40) — app/client/public/libraries/jsonwebtoken@8.5.1.js:1, REDACTED:1, app/client/src/constants/DefaultTheme.tsx: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.

R7 · Dead Code7.5 / 10Strong✓ 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.

  • Unreachable from the 194 application, 156 tooling and 1765 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
  • no import path from any entry point (194 application, 156 tooling, 1765 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 (×29) — app/client/src/constants/DefaultTheme.tsx, app/client/src/constants/ISDCodes.tsx, app/client/src/constants/ISDCodes_v2.tsx, …
  • no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 3 in-repo import(s) from 2 other file(s) do name it (app/client/src/constants/DefaultTheme.tsx, app/client/src/constants/IconConstants.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — REDACTED
  • no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/pages/Editor/Explorer/Files/index.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it (×3) — app/client/src/pages/Editor/Explorer/Files/Submenu.tsx, app/client/src/pages/Editor/Explorer/Actions/ActionEntity.tsx, app/client/src/pages/Editor/Explorer/JSActions/JSActionEntity.tsx
  • no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/pages/Editor/Explorer/JSActions/JSActionEntity.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — app/client/src/pages/Editor/Explorer/JSActions/JSActionContextMenu.tsx
  • no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 2 in-repo import(s) from 1 other file(s) do name it (app/client/src/constants/DefaultTheme.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — app/client/src/constants/typography.ts
  • no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/Visualization.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it (×2) — REDACTED, app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/useGenerateVisualization.ts
  • no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/index.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/Visualization.tsx
  • no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/pages/Editor/Explorer/Common/EntityExplorerResizeHandler.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — app/client/src/utils/hooks/useResize.tsx

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 only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json. (×7) — app/client/src/components/designSystems/blueprintjs/icon/Icon.tsx:30, app/client/src/IDE/Components/Nudge/Nudge.tsx:4, app/client/playwright/helpers/a11y.ts:3, …
  • Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×18) — app/client/src/widgets/wds/WDSDatePickerWidget/widget/index.tsx:9, app/client/src/pages/Editor/IntegrationEditor/RequestNewIntegration/form.tsx:2, app/client/src/components/editorComponents/PremiumFeatureTag.tsx:3, …
  • Declared in app/client/packages/design-system/headless/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 app/client/packages/design-system/widgets/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.
  • Every import is type-only — move it to devDependencies. — app/client/packages/design-system/ads/src/Radio/Radio.types.tsx:3
  • Only test files import it (first: app/client/cypress/scripts/util.ts:2) — move it to devDependencies. — app/client/package.json:60

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.

  • app/client/packages/ast/index.ts → app/client/packages/ast/src/actionCreator/index.ts → app/client/packages/ast/src/index.ts → app/client/packages/ast/src/jsObject/index.ts → app/client/packages/ast/index.ts (one verified cycle inside a mutually-dependent group of 7 files) — app/client/packages/ast/index.ts:45
  • app/client/packages/design-system/ads-old/src/EditableText/index.tsx → app/client/packages/design-system/ads-old/src/EditableTextSubComponent/index.tsx → app/client/packages/design-system/ads-old/src/index.ts → app/client/packages/design-system/ads-old/src/EditableText/index.tsx — app/client/packages/design-system/ads-old/src/EditableText/index.tsx:4
  • app/client/packages/design-system/widgets-old/src/Icon/index.tsx → app/client/packages/design-system/widgets-old/src/Spinner/index.tsx → app/client/packages/design-system/widgets-old/src/Icon/index.tsx — app/client/packages/design-system/widgets-old/src/Icon/index.tsx:7
  • app/client/packages/design-system/widgets/src/components/Button/index.ts → app/client/packages/design-system/widgets/src/components/Button/src/index.ts → app/client/packages/design-system/widgets/src/components/Button/src/Button.tsx → app/client/packages/design-system/widgets/src/index.ts → app/client/packages/design-system/widgets/src/components/Button/index.ts (one verified cycle inside a mutually-dependent group of 103 files) — app/client/packages/design-system/widgets/src/components/Button/index.ts:1
  • app/client/packages/storybook/src/components/ColorTable.tsx → app/client/packages/storybook/src/index.ts → app/client/packages/storybook/src/components/ColorTable.tsx — app/client/packages/storybook/src/components/ColorTable.tsx:3
  • app/client/src/PluginActionEditor/components/PluginActionResponse/PluginActionResponse.tsx → app/client/src/ee/PluginActionEditor/components/PluginActionResponse/hooks/useDefaultTab.tsx → app/client/src/ce/PluginActionEditor/components/PluginActionResponse/hooks/useDefaultTab.tsx → app/client/src/PluginActionEditor/index.ts → app/client/src/PluginActionEditor/components/PluginActionResponse/index.ts → app/client/src/PluginActionEditor/components/PluginActionResponse/PluginActionResponse.tsx — app/client/src/PluginActionEditor/components/PluginActionResponse/PluginActionResponse.tsx:16
  • app/client/src/WidgetProvider/factory/helpers.ts → app/client/src/WidgetProvider/factory/index.tsx → app/client/src/WidgetProvider/factory/helpers.ts — app/client/src/WidgetProvider/factory/helpers.ts:10
  • app/client/src/store.ts → app/client/src/ee/sagas/index.tsx → app/client/src/ce/sagas/index.tsx → app/client/src/ce/sagas/AIAssistantSagas.ts → app/client/src/ee/api/OrganizationApi.ts → app/client/src/ce/api/OrganizationApi.ts → app/client/src/api/Api.ts → app/client/src/api/interceptors/index.ts → app/client/src/api/interceptors/request/index.ts → app/client/src/api/interceptors/request/apiRequestInterceptor.ts → app/client/src/store.ts (one verified cycle inside a mutually-dependent group of 280 files) — app/client/src/store.ts:6
  • app/client/src/actions/datasourceActions.ts → app/client/src/ee/entities/Engine/actionHelpers.ts → app/client/src/ce/entities/Engine/actionHelpers.ts → app/client/src/actions/datasourceActions.ts — app/client/src/actions/datasourceActions.ts:14
  • app/client/src/ce/entities/DataTree/utils.ts → app/client/src/ee/workers/Evaluation/evaluationUtils.ts → app/client/src/ce/workers/Evaluation/evaluationUtils.ts → app/client/src/ee/entities/DataTree/utils.ts → app/client/src/ce/entities/DataTree/utils.ts (one verified cycle inside a mutually-dependent group of 8 files) — app/client/src/ce/entities/DataTree/utils.ts:10
  • app/client/src/ce/pages/Applications/ApplicationCardList.tsx → app/client/src/ee/pages/Applications/index.tsx → app/client/src/ce/pages/Applications/index.tsx → app/client/src/ee/pages/Applications/ApplicationCardList.tsx → app/client/src/ce/pages/Applications/ApplicationCardList.tsx — app/client/src/ce/pages/Applications/ApplicationCardList.tsx:8
  • app/client/src/ce/workers/Evaluation/Actions.ts → app/client/src/ee/workers/Evaluation/fns/index.ts → app/client/src/ce/workers/Evaluation/fns/index.ts → app/client/src/workers/Evaluation/fns/index.ts → app/client/src/workers/Evaluation/fns/actionFns.ts → app/client/src/workers/Evaluation/fns/utils/Promisify.ts → app/client/src/workers/Evaluation/fns/utils/Messenger.ts → REDACTED → app/client/src/ee/workers/Evaluation/Actions.ts → app/client/src/ce/workers/Evaluation/Actions.ts (one verified cycle inside a mutually-dependent group of 40 files) — app/client/src/ce/workers/Evaluation/Actions.ts:13
  • app/client/src/ce/workers/common/DependencyMap/utils/getEntityDependenciesByType.ts → app/client/src/workers/common/DependencyMap/utils/getEntityDependencies.ts → app/client/src/ee/workers/common/DependencyMap/utils/getEntityDependenciesByType.ts → app/client/src/ce/workers/common/DependencyMap/utils/getEntityDependenciesByType.ts — app/client/src/ce/workers/common/DependencyMap/utils/getEntityDependenciesByType.ts:20
  • app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts → app/client/src/components/editorComponents/ActionCreator/utils.ts → app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts — app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts:19
  • app/client/src/components/editorComponents/ActionCreator/index.tsx → app/client/src/components/editorComponents/ActionCreator/viewComponents/Action/index.tsx → app/client/src/components/editorComponents/ActionCreator/viewComponents/Action/ActionTree.tsx → app/client/src/components/editorComponents/ActionCreator/index.tsx (one verified cycle inside a mutually-dependent group of 5 files) — app/client/src/components/editorComponents/ActionCreator/index.tsx:10
  • app/client/src/components/editorComponents/CodeEditor/commandsHelper.ts → app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx → app/client/src/components/editorComponents/CodeEditor/commandsHelper.ts — app/client/src/components/editorComponents/CodeEditor/commandsHelper.ts:7
  • app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts → app/client/src/components/editorComponents/CodeEditor/utils/sqlHint.ts → app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts — app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts:14
  • app/client/src/sagas/WidgetOperationUtils.ts → app/client/src/layoutSystems/anvil/utils/paste/utils.ts → app/client/src/sagas/WidgetOperationUtils.ts (one verified cycle inside a mutually-dependent group of 8 files) — app/client/src/sagas/WidgetOperationUtils.ts:31
  • app/client/src/components/editorComponents/PropertyPaneSidebar.tsx → app/client/src/pages/Editor/PropertyPane/index.tsx → app/client/src/pages/Editor/PropertyPane/PropertyPaneView.tsx → app/client/src/components/editorComponents/PropertyPaneSidebar.tsx (one verified cycle inside a mutually-dependent group of 7 files) — app/client/src/components/editorComponents/PropertyPaneSidebar.tsx:11
  • app/client/src/components/editorComponents/WidgetQueryGeneratorForm/index.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/index.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/DatasourceDropdown/index.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/DatasourceDropdown/useSource/index.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/DatasourceDropdown/useSource/useConnectToOptions.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/index.tsx (one verified cycle inside a mutually-dependent group of 25 files) — app/client/src/components/editorComponents/WidgetQueryGeneratorForm/index.tsx:5
  • app/client/src/layoutSystems/anvil/layoutComponents/BaseLayoutComponent.tsx → app/client/src/layoutSystems/anvil/utils/layouts/layoutUtils.ts → app/client/src/layoutSystems/anvil/layoutComponents/components/AlignedLayoutColumn.tsx → app/client/src/layoutSystems/anvil/layoutComponents/BaseLayoutComponent.tsx (one verified cycle inside a mutually-dependent group of 12 files) — app/client/src/layoutSystems/anvil/layoutComponents/BaseLayoutComponent.tsx:12
  • app/client/src/pages/AdminSettings/FormGroup/Accordion.tsx → app/client/src/pages/AdminSettings/FormGroup/group.tsx → app/client/src/pages/AdminSettings/FormGroup/Accordion.tsx — app/client/src/pages/AdminSettings/FormGroup/Accordion.tsx:5
  • app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx → app/client/src/pages/Editor/ThemePropertyPane/index.tsx → app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx — app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx:2
  • app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx → app/client/src/pages/Editor/CustomWidgetBuilder/index.tsx → app/client/src/pages/Editor/CustomWidgetBuilder/Editor/index.tsx → app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx (one verified cycle inside a mutually-dependent group of 18 files) — app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx:25
  • app/client/src/pages/Editor/DataSourceEditor/index.tsx → app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx → app/client/src/pages/Editor/DataSourceEditor/index.tsx — app/client/src/pages/Editor/DataSourceEditor/index.tsx:41
  • app/client/src/pages/Editor/EntityNavigation/ActionPane/ApiPaneNavigation.ts → app/client/src/pages/Editor/EntityNavigation/ActionPane/exports.ts → app/client/src/pages/Editor/EntityNavigation/ActionPane/ApiPaneNavigation.ts (one verified cycle inside a mutually-dependent group of 3 files) — app/client/src/pages/Editor/EntityNavigation/ActionPane/ApiPaneNavigation.ts:3
  • app/client/src/pages/Editor/Explorer/ExplorerIcons.tsx → app/client/src/pages/Editor/Explorer/Widgets/WidgetIcon.tsx → app/client/src/pages/Editor/Explorer/ExplorerIcons.tsx — app/client/src/pages/Editor/Explorer/ExplorerIcons.tsx:16
  • app/client/src/pages/Editor/FirstTimeUserOnboarding/HelpMenu.tsx → app/client/src/pages/Editor/HelpButton.tsx → app/client/src/pages/Editor/FirstTimeUserOnboarding/Modal.tsx → app/client/src/pages/Editor/FirstTimeUserOnboarding/HelpMenu.tsx — app/client/src/pages/Editor/FirstTimeUserOnboarding/HelpMenu.tsx:9
  • app/client/src/utils/autocomplete/AutocompleteSortRules.ts → app/client/src/utils/autocomplete/CodemirrorTernService.ts → app/client/src/utils/autocomplete/AutocompleteSortRules.ts — app/client/src/utils/autocomplete/AutocompleteSortRules.ts:12
  • app/client/src/utils/hooks/useFeatureFlagOverride.ts → app/client/src/utils/storage.ts → app/client/src/utils/hooks/useFeatureFlagOverride.ts — app/client/src/utils/hooks/useFeatureFlagOverride.ts:10
  • app/client/src/widgets/ChartWidget/component/EChartsConfigurationBuilder.ts → app/client/src/widgets/ChartWidget/component/LayoutBuilders/EChartsLayoutBuilder.ts → app/client/src/widgets/ChartWidget/component/LayoutBuilders/EChartsXAxisLayoutBuilder.ts → app/client/src/widgets/ChartWidget/component/helpers.ts → app/client/src/widgets/ChartWidget/component/EChartsConfigurationBuilder.ts (one verified cycle inside a mutually-dependent group of 5 files) — app/client/src/widgets/ChartWidget/component/EChartsConfigurationBuilder.ts:11
  • app/client/src/widgets/JSONFormWidget/constants.ts → app/client/src/widgets/JSONFormWidget/fields/index.ts → app/client/src/widgets/JSONFormWidget/fields/ArrayField.tsx → app/client/src/widgets/JSONFormWidget/constants.ts (one verified cycle inside a mutually-dependent group of 16 files) — app/client/src/widgets/JSONFormWidget/constants.ts:4
  • REDACTED → app/client/src/widgets/ListWidgetV2/widget/index.tsx → REDACTED — REDACTED:29
  • app/client/src/widgets/TableWidgetV2/widget/index.tsx → app/client/src/widgets/TableWidgetV2/widget/propertyConfig/contentConfig.ts → app/client/src/widgets/TableWidgetV2/widget/index.tsx — app/client/src/widgets/TableWidgetV2/widget/index.tsx:115
  • REDACTED → app/client/src/widgets/TableWidgetV2/widget/utilities.ts → REDACTED — REDACTED:13
  • app/client/src/widgets/wds/WDSTableWidget/config/autocompleteConfig.ts → REDACTED → app/client/src/widgets/wds/WDSTableWidget/config/index.ts → app/client/src/widgets/wds/WDSTableWidget/config/autocompleteConfig.ts — app/client/src/widgets/wds/WDSTableWidget/config/autocompleteConfig.ts:11
  • app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts → app/client/src/widgets/wds/WDSTableWidget/widget/utilities.ts → app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts — app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:8

What to do

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

Other · Security — Only what this repository's own non-C# files could be read for was assessed — 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 — and because this repository commits the configuration that serves its own HTTP surface, that configuration could be read in full for the security response headers it sets. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so 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.

  • `https://cdn.jsdelivr.net/npm/container-query-polyfill@1/dist/container-query-polyfill.modern.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. — app/client/packages/storybook/.storybook/preview-head.html: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 `vercel.json` 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.) — app/client/vercel.json:1

What to do

  • 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` / `REDACTED` 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 correctness8.0 / 10Strong✓ Tool-verified

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.

  • `forEach` ignores what its callback returns, so the Promise each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early), and a rejection is never handled — in Node.js an unhandled rejection terminates the process by default, and in a browser it is lost. Iterate with `for (const item of items) { await … }` when the work must run in order, or `await Promise.all(items.map(async (item) => { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape. — app/client/src/components/formControls/MultiFilePickerControl.tsx:197

What to do

  • `async` callback passed to `forEach`
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.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.

Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. 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 document1.5 / 10Critical✓ 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.

  • `stringifyFnsInObject` is exported, takes a document from its caller (line 100) and hands it to `parseFunctionsInObject`, which calls itself at line 152 (`parseFunctionsInObject`) with a piece of `userObject` (and at line 169) — and nowhere in `parseFunctionsInObject` 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 `parseFunctionsInObject` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/src/workers/Evaluation/helpers.ts:152
  • `getDynamicBindingsChangesSaga` is exported, takes a document from its caller (line 548) and hands it to `getDynamicValuePaths`, which calls itself at line 537 (`getDynamicValuePaths`) with a piece of `val` (and at line 543) — and nowhere in `getDynamicValuePaths` 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 `getDynamicValuePaths` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/src/utils/DynamicBindingUtils.ts:537
  • `flattenObject` is exported, takes a document from its caller (line 656) and hands it to `recurse`, which calls itself at line 668 (`recurse`) with a piece of `cur` (and at line 676) — and nowhere in `recurse` 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 `recurse` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/src/utils/helpers.tsx:668
  • `createObjectPeekData` is exported and takes `defs: any` from its caller, and it calls itself at line 30 (`createObjectPeekData`) with a piece of `defs` — and nowhere in `createObjectPeekData` 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 `createObjectPeekData` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/src/utils/FilterInternalProperties/Common.ts:30
  • `getValueFromTree` is exported and takes `obj: Record<string, unknown>` from its caller, and it calls itself at line 1791 (`getValueFromTree`) with a piece of `obj` — and nowhere in `getValueFromTree` 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 `getValueFromTree` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/src/sagas/WidgetOperationUtils.ts:1791
  • `cleanValuesInObjectForHashing` is exported and takes `obj: Record<string, unknown>` from its caller, and it calls itself at line 226 (`cleanValuesInObjectForHashing`) with a piece of `obj` — and nowhere in `cleanValuesInObjectForHashing` 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 `cleanValuesInObjectForHashing` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/src/sagas/helper.ts:226
  • `getTrimmedData` is exported and takes `formData: any` from its caller, and it calls itself at line 59 (`getTrimmedData`) with a piece of `formData` — and nowhere in `getTrimmedData` 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 `getTrimmedData` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/src/components/formControls/utils.ts:59
  • `getActionValidationConfig` is exported, takes a document from its caller (line 1273) and hands it to `getActionValidationConfigFromPlugin`, which calls itself at line 1326 (`getActionValidationConfigFromPlugin`) with a piece of `editorConfigs` — and nowhere in `getActionValidationConfigFromPlugin` 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 `getActionValidationConfigFromPlugin` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/src/ce/selectors/entitiesSelector.ts:1326
  • `canonicalStableSerialize` is exported and takes `value: unknown` from its caller, and it calls itself at line 550 (`canonicalStableSerialize`) with a piece of `value` (and at line 564) — and nowhere in `canonicalStableSerialize` 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 `canonicalStableSerialize` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — app/client/packages/mcp/src/builder/semantic.ts:550

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.
X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.

Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.

X20 · Mistyped argument guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.

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.

X22 · Contradicted release guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.

Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. 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 unescaped4.8 / 10Weak✓ 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.

  • `detail` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` 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. — app/client/src/ce/pages/Upgrade/Carousel.tsx:169
  • ``${columnPosition-currentFlexGrow.leftZone+leftZoneComputedColumnsRoundOff} / ${SectionColumns}`` 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. — app/client/src/layoutSystems/anvil/sectionSpaceDistributor/utils/onMouseMoveUtils.ts:159
  • `ZoneMinColumnWidth.toString()` 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. (×2) — app/client/src/layoutSystems/anvil/sectionSpaceDistributor/utils/onMouseMoveUtils.ts:208, app/client/src/layoutSystems/anvil/sectionSpaceDistributor/utils/onMouseMoveUtils.ts:233
  • `descriptionHtml` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` 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. — REDACTED:162
  • ``:root {${cssTokensContent}}`` 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. — REDACTED:149

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.
X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.

X27 · Collection changed while being enumerated7.2 / 10Strong✓ Tool-verified

Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. Whether a `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

  • `updatedChanges.keySet()` is a live view over `updatedChanges` and shares its modification count, and line 235 calls `updatedChanges.remove(…)` inside the loop body — a structural change to a `HashMap`. The loop's hidden iterator is fail-fast, so its next `next()` throws `ConcurrentModificationException`: every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen. — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:233

What to do

  • Each finding names the two spans that cannot both stand — the enhanced `for` source, and the call inside the body that structurally changes that same collection. Confirm from those two, then pick one: remove through the iterator itself (`Iterator<T> it = c.iterator(); … it.remove();`) or replace the loop with `c.removeIf(…)`; iterate a copy (`for (T x : new ArrayList<>(c))`); collect what needs changing and apply it after the loop; or — where the loop was only ever meant to act on the first match — `break` immediately after the mutation, which is the one shape that is already safe. In Python: Each finding names the two lines that cannot both stand — the `for` over the collection (or its `keys()`/`values()`/`items()` view), and the call inside the body that changes its size. Confirm from those two, then pick one: walk a snapshot (`for k in list(d):`, `for x in s.copy():`); build the result instead of editing in place (`d = {k: v for k, v in d.items() if keep(v)}`); collect what needs removing and remove it after the loop; or — where only the first match was ever meant — `break` straight after the change, which is the one shape that is already safe.
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 element10.0 / 10Exemplary○ Nothing flagged

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.

X3 · Exception handling6.3 / 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. (×35) — deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs:42, app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:991, app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1108, …
  • `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×2) — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/NumberUtils.java:20, app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java:748
  • `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. — app/client/src/serviceWorker.ts:41
  • `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — app/client/src/widgets/TableWidget/widget/propertyUtils.ts:459
  • `catch (error)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — app/client/src/widgets/DocumentViewerWidget/component/index.tsx:72

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.

X4 · Structured logging5.0 / 10Adequate✓ Tool-verified

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. 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 `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.

  • `error` at line 525 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:525
  • `error` at line 543 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:543
  • `error` at line 781 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:781
  • `info` at line 187 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextServiceCEImpl.java:187
  • `debug` at line 209 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextServiceCEImpl.java:209
  • `debug` at line 356 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextServiceCEImpl.java:356
  • `warn` at line 316 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:316
  • `warn` at line 336 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:336
  • `warn` at line 366 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:366
  • `warn` at line 386 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:386
  • `warn` at line 449 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:449
  • `warn` at line 469 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:469
  • `warn` at line 534 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:534
  • `warn` at line 592 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:592
  • `warn` at line 619 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:619
  • `warn` at line 640 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:640
  • `warn` at line 732 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:732
  • `warn` at line 775 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:775
  • `warn` at line 519 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:519
  • `warn` at line 656 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:656
  • `warn` at line 44 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. (×3) — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration033AddOpenAIPlugin.java:44, app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration039AddDatabricksPlugin.java:44, app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration040AddAWSLambdaPlugin.java:44
  • `warn` at line 43 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. (×3) — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration035AddAnthropicPlugin.java:43, app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration038AddGoogleAIPlugin.java:43, app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration040AddAppsmithAiPlugin.java:43
  • `error` at line 14 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/util/ObservabilityLogger.java:14
  • `trace` at line 58 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/SegmentConfig.java:58
  • `debug` at line 60 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/SegmentConfig.java:60
  • `error` at line 62 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/SegmentConfig.java:62
  • `debug` at line 74 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:74
  • `debug` at line 84 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:84
  • `debug` at line 109 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:109
  • `debug` at line 128 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:128
  • `debug` at line 158 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:158
  • `debug` at line 161 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:161
  • `debug` at line 201 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:201
  • `debug` at line 242 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:242
  • `debug` at line 311 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:311
  • `debug` at line 314 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:314

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types9.0 / 10Strong✓ 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.

  • 14/16 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.
  • ~0.1 `!` null assertions per 1k TypeScript source lines — 67 assertion(s) across the 588946 source line(s) of the 4937 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: app/client/packages/mcp/src/builder/mongoQuery.ts (9), app/client/packages/mcp/src/app.ts (8), app/client/packages/mcp/src/builder/occupancy.ts (6). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.

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
AC7 · A11y enforcementenforcement — no page criterionEnforcement posture (process)

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 Health65%AdequateAcceptable, with room to improve.
Architecture47%Weak — gated by R11, R9Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity67%Adequate — gated by D34Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness39%Weak — gated by D13, R8, P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security53%Adequate — gated by D28, D29, D30, D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling96%ExemplaryStrongest area.
Accessibility40%Weak — gated by AC2, AC4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance64%AdequateAcceptable, with room to improve.
Unscored — 3 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 — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 12 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 3 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) 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. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) 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. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) 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. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
Not included — 38 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.

  • AX4 Dependency direction — not applicable to a CQRS architecture (the inward-dependency rule is for layered/clean styles)
  • 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 — compose up failed (exit 18 — an image could not be pulled) — appsmith Pulling appsmith Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: appsmith Pulling appsmith Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped 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 — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) 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. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) 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. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D11 Test Reliability — Test reliability not measured — JavaScript/TypeScript suite did not run
  • D12 Dependency Hygiene — Not scored — 31 Maven/Gradle manifest(s) were read, stating a version for 84 dependency(ies) and leaving 224 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • 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.
  • D21 Naming Consistency — Naming consistency is measured on C# only; Java, JavaScript, Python, TypeScript, html not measured.
  • D22 Internal API Consistency — API consistency is measured on C# only; the exposed TypeScript surface was not measured.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — D24 reads C# and Visual Basic comments only — this repository's production source is .java, .py, .ts, .tsx, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — D27 reads resolved call sites in the languages it reads only — this repository's production source is .java, .py, .tsx, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D42 Runtime Threat Enforcement — The repository ships application workloads but no cluster-governance resources (CRDs, admission webhooks, or a committed policy engine). Runtime threat-detection (Falco/Tetragon) and admission control (Kyverno/OPA-Gatekeeper/PodSecurity) are cluster-OPERATOR controls owned by the platform, not shipped by an application repo/chart — nothing for this repo to assess.
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not measured — JavaScript/TypeScript suite
  • DM1 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
  • DM11 Constructible invalid state — no entities detected — construction-time invariants not assessable
  • DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
  • DM3 Integration-event coupling — no integration events detected — coupling check not applicable
  • DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
  • DM5 Encapsulated state — no domain entities found — DM5 grades how entities protect their state, and this repository declares none
  • DM6 Domain ↔ infrastructure boundary — this TypeScript/JavaScript repository maps no type to a persistence framework (TypeORM/Prisma/MikroORM/Sequelize/Mongoose), so DM6's domain↔infrastructure fusion read has no population to be taken over
  • ED1 Event-Driven — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 4 event handler(s); 1 CQRS handler(s)
  • ED5 Idempotency — Not assessed, and this one is on us: 5 command handler(s) or message consumer(s) were found here, but this check does not yet recognise persistence writes in this repository's language. Idempotency was neither confirmed nor ruled out — this is a limit of the analyzer, not a finding about your code.
  • ES1 Event Sourcing — not scored — this repository shows only 1 of the 3 signals this lens looks for (an Axon event-sourcing framework (@Aggregate/@CommandHandler/@EventSourcingHandler annotations))
  • 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 — no coverage report found on disk — produce a coverage report in a standard format (lcov — `vitest --coverage`, `jest --coverage`, `bun test --coverage --coverage-reporter=lcov`, or `nyc`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
  • 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
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X2 Cancellation propagation — no C# was loaded; this repository's Java and Python were read, and no request in it can be cancelled by a caller — a Java request off Android takes no token: it is cancelled through the handle it returns (Future.cancel, Call.cancel, a Disposable), ambiently (io.grpc.Context) or by interrupting its thread, not through a parameter; a Python request takes no token: asyncio cancels the task and trio or anyio the scope that made it, from outside the call, and requests, httpx, aiohttp and gRPC take a timeout, not a cancellation
  • 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.
  • 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 — 795 finding(s)
D29 · Static Analysis (SAST) · 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
  • REDACTED
  • + 311 more in this group — see findings.md.
D29 · Static Analysis (SAST) · 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
  • REDACTED
  • + 62 more in this group — see findings.md.
D29 · Static Analysis (SAST) · 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
  • REDACTED
  • + 29 more in this group — see findings.md.
D28 · Secrets (history) · REDACTED · ×47
  • 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
  • + 22 more in this group — see findings.md.
AC4 · Keyboard semantics · Click handler on a non-interactive <div> · ×27
  • Click handler on a non-interactive <div> app/client/packages/design-system/ads-old/src/DialogComponent/index.tsx:172 — 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> app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx:191 — 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> app/client/src/components/utils/CollapseComponent.tsx:52 — 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> app/client/src/git/components/BranchList/BranchListView.tsx:125 — 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> app/client/src/pages/AppViewer/Navigation/components/MobileNavToggle.tsx:17 — 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> app/client/src/pages/AppViewer/PageMenu.tsx:87 — 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> app/client/src/pages/Editor/CustomWidgetBuilder/Editor/Header/referenceTrigger.tsx:26 — 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> app/client/src/pages/Editor/CustomWidgetBuilder/Editor/References/collapsible.tsx:17 — 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> app/client/src/pages/Editor/CustomWidgetBuilder/Editor/References/events.tsx:57 — 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> app/client/src/pages/Editor/CustomWidgetBuilder/Editor/References/events.tsx:63 — 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> app/client/src/pages/Editor/CustomWidgetBuilder/Preview/Debugger/counter.tsx:14 — 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> app/client/src/pages/Editor/Explorer/Libraries/index.tsx:239 — 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> app/client/src/pages/Editor/PropertyPane/PropertyHelpLabel.tsx:36 — 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> app/client/src/pages/Editor/PropertyPane/PropertySection.tsx:185 — 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> app/client/src/pages/Editor/ThemePropertyPane/SettingSection.tsx:37 — 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> app/client/src/pages/Editor/ThemePropertyPane/ThemeCard.tsx:174 — 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> app/client/src/pages/Editor/WidgetsEditor/components/WidgetEditorContentWrapper.tsx:68 — 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> app/client/src/pages/Editor/gitSync/components/BranchList.tsx:128 — 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> app/client/src/widgets/ButtonWidget/component/index.tsx:469 — 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> app/client/src/widgets/TableWidget/component/TableFilterPaneContent.tsx:193 — 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> app/client/src/widgets/TableWidget/component/TableUtilities.tsx:116 — 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> app/client/src/widgets/TableWidget/component/TableUtilities.tsx:416 — 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> app/client/src/widgets/TableWidget/component/TableUtilities.tsx:849 — 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> app/client/src/widgets/TableWidgetV2/component/cellComponents/HeaderCell.tsx:314 — 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> app/client/src/widgets/TableWidgetV2/component/cellComponents/ImageCell.tsx:110 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • + 2 more in this group — see findings.md.
D29 · Static Analysis (SAST) · 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
  • REDACTED
  • + 2 more in this group — see findings.md.
D28 · Secrets (history) · High secret · ×25
  • 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
AC1 · Text alternatives · <img> without a text alternative · ×18
  • <img> without a text alternative app/client/packages/design-system/ads-old/src/GifPlayer/index.tsx:62 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/packages/design-system/ads-old/src/GifPlayer/index.tsx:71 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/ce/pages/Applications/ApplicationCardList.tsx:85 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/ce/pages/Applications/index.tsx:867 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx:338 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx:380 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/components/editorComponents/Debugger/EntityDependecies.tsx:153 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/components/editorComponents/GlobalSearch/SearchResults.tsx:285 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/components/featureWalkthrough/walkthroughRenderer.tsx:326 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/pages/Editor/CustomWidgetBuilder/Preview/Debugger/index.tsx:102 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/pages/Editor/Explorer/ExplorerIcons.tsx:356 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/pages/Editor/Explorer/Widgets/WidgetIcon.tsx:16 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/pages/Editor/widgetSidebar/WidgetCard.tsx:101 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/pages/Templates/DatasourceChip.tsx:39 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/pages/Templates/WidgetInfo.tsx:29 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/pages/UserAuth/Container.tsx:75 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/pages/UserAuth/index.tsx:42 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative app/client/src/widgets/TableWidgetV2/component/cellComponents/ImageCell.tsx:118 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
R9 · Circular Imports · Import cycle (2 files) · ×18
  • Import cycle (2 files) app/client/packages/design-system/widgets-old/src/Icon/index.tsx:7 — app/client/packages/design-system/widgets-old/src/Icon/index.tsx → app/client/packages/design-system/widgets-old/src/Spinner/index.tsx → app/client/packages/design-system/widgets-old/src/Icon/index.tsx
  • Import cycle (2 files) app/client/packages/storybook/src/components/ColorTable.tsx:3 — app/client/packages/storybook/src/components/ColorTable.tsx → app/client/packages/storybook/src/index.ts → app/client/packages/storybook/src/components/ColorTable.tsx
  • Import cycle (2 files) app/client/src/WidgetProvider/factory/helpers.ts:10 — app/client/src/WidgetProvider/factory/helpers.ts → app/client/src/WidgetProvider/factory/index.tsx → app/client/src/WidgetProvider/factory/helpers.ts
  • Import cycle (2 files) app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts:19 — app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts → app/client/src/components/editorComponents/ActionCreator/utils.ts → app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts
  • Import cycle (2 files) app/client/src/components/editorComponents/CodeEditor/commandsHelper.ts:7 — app/client/src/components/editorComponents/CodeEditor/commandsHelper.ts → app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx → app/client/src/components/editorComponents/CodeEditor/commandsHelper.ts
  • Import cycle (2 files) app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts:14 — app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts → app/client/src/components/editorComponents/CodeEditor/utils/sqlHint.ts → app/client/src/components/editorComponents/CodeEditor/hintHelpers.ts
  • Import cycle (2 files) app/client/src/sagas/WidgetOperationUtils.ts:31 — app/client/src/sagas/WidgetOperationUtils.ts → app/client/src/layoutSystems/anvil/utils/paste/utils.ts → app/client/src/sagas/WidgetOperationUtils.ts (one verified cycle inside a mutually-dependent group of 8 files)
  • Import cycle (2 files) app/client/src/pages/AdminSettings/FormGroup/Accordion.tsx:5 — app/client/src/pages/AdminSettings/FormGroup/Accordion.tsx → app/client/src/pages/AdminSettings/FormGroup/group.tsx → app/client/src/pages/AdminSettings/FormGroup/Accordion.tsx
  • Import cycle (2 files) app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx:2 — app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx → app/client/src/pages/Editor/ThemePropertyPane/index.tsx → app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx
  • Import cycle (2 files) app/client/src/pages/Editor/DataSourceEditor/index.tsx:41 — app/client/src/pages/Editor/DataSourceEditor/index.tsx → app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx → app/client/src/pages/Editor/DataSourceEditor/index.tsx
  • Import cycle (2 files) app/client/src/pages/Editor/EntityNavigation/ActionPane/ApiPaneNavigation.ts:3 — app/client/src/pages/Editor/EntityNavigation/ActionPane/ApiPaneNavigation.ts → app/client/src/pages/Editor/EntityNavigation/ActionPane/exports.ts → app/client/src/pages/Editor/EntityNavigation/ActionPane/ApiPaneNavigation.ts (one verified cycle inside a mutually-dependent group of 3 files)
  • Import cycle (2 files) app/client/src/pages/Editor/Explorer/ExplorerIcons.tsx:16 — app/client/src/pages/Editor/Explorer/ExplorerIcons.tsx → app/client/src/pages/Editor/Explorer/Widgets/WidgetIcon.tsx → app/client/src/pages/Editor/Explorer/ExplorerIcons.tsx
  • Import cycle (2 files) app/client/src/utils/autocomplete/AutocompleteSortRules.ts:12 — app/client/src/utils/autocomplete/AutocompleteSortRules.ts → app/client/src/utils/autocomplete/CodemirrorTernService.ts → app/client/src/utils/autocomplete/AutocompleteSortRules.ts
  • Import cycle (2 files) app/client/src/utils/hooks/useFeatureFlagOverride.ts:10 — app/client/src/utils/hooks/useFeatureFlagOverride.ts → app/client/src/utils/storage.ts → app/client/src/utils/hooks/useFeatureFlagOverride.ts
  • Import cycle (2 files) REDACTED:29 — REDACTED → app/client/src/widgets/ListWidgetV2/widget/index.tsx → REDACTED
  • Import cycle (2 files) app/client/src/widgets/TableWidgetV2/widget/index.tsx:115 — app/client/src/widgets/TableWidgetV2/widget/index.tsx → app/client/src/widgets/TableWidgetV2/widget/propertyConfig/contentConfig.ts → app/client/src/widgets/TableWidgetV2/widget/index.tsx
  • Import cycle (2 files) REDACTED:13 — REDACTED → app/client/src/widgets/TableWidgetV2/widget/utilities.ts → REDACTED
  • Import cycle (2 files) app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:8 — app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts → app/client/src/widgets/wds/WDSTableWidget/widget/utilities.ts → app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts
D35 · Change Coupling · Boundary-crossing change coupling · ×17
  • Boundary-crossing change coupling: RestAPIActivateUtils.java ↔ RestApiPlugin.java app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RestAPIActivateUtils.java:1 — `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RestAPIActivateUtils.java` (context appsmith-interfaces) and `app/server/appsmith-plugins/restApiPlugin/src/main/java/com/external/plugins/RestApiPlugin.java` (context appsmith-plugins) sit in DIFFERENT parts of the tree yet change together 77% of the time (10 of the 13 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `287f1cd5` fix: replace generic "Response not valid" with actionable error messa…; `2b2d7868` chore: added plugin tags (#39955); `a8a831cd` chore: added telemetry to the plugin flow (#39861) — run `git show` on any of them.
  • Boundary-crossing change coupling: DatasourceForm.tsx ↔ datasourceReducer.ts app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx:1 — `app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx` (context pages) and `app/client/src/reducers/entityReducers/datasourceReducer.ts` (context reducers) sit in DIFFERENT parts of the tree yet change together 70% of the time (7 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `ae805567` chore: Update integration modal (#39976); `1277a6f5` chore: update carbon integration modal (#39901); `391bfaec` fix: Fixes bug of gsheets not going into edit mode (#23839) — run `git show` on any of them.
  • Boundary-crossing change coupling: FSGitHandler.java ↔ GitHandlingServiceCE.java app/server/appsmith-interfaces/src/main/java/com/appsmith/external/git/handler/FSGitHandler.java:1 — `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/git/handler/FSGitHandler.java` (context appsmith-interfaces) and `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/GitHandlingServiceCE.java` (context appsmith-server) sit in DIFFERENT parts of the tree yet change together 64% of the time (7 of the 11 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `93f4a85b` chore: revert in-memory git status (CE) (#40971); `dea1c030` chore: in memory git status (#40891); `b6fc1de1` chore: Modifying git fetch remote method signature (#40896) — run `git show` on any of them.
  • Boundary-crossing change coupling: FSGitHandlerCEImpl.java ↔ GitFSServiceCEImpl.java app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1 — `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java` (context appsmith-git) and `app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java` (context appsmith-server) sit in DIFFERENT parts of the tree yet change together 63% of the time (12 of the 19 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are `bd51e382` fix(git): surface the real cause of git failures instead of a static …; `11a5a963` feat: add git route aspect for branch handling (#41097); `93f4a85b` chore: revert in-memory git status (CE) (#40971) — run `git show` on any of them.
  • Boundary-crossing change coupling: JSActionSagas.ts ↔ ActionSagas.ts app/client/src/ce/sagas/JSActionSagas.ts:1 — `app/client/src/ce/sagas/JSActionSagas.ts` (context ce) and `app/client/src/sagas/ActionSagas.ts` (context sagas) sit in DIFFERENT parts of the tree yet change together 63% of the time (17 of the 27 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are `3e937a94` chore: remove dsl flag (#30986); `0a58544f` fix: The case of the missing tabs (#33066); `5a671807` feat: revamped logic for tabs removal and action/JS deletion (#32690) — run `git show` on any of them.
  • Boundary-crossing change coupling: RestAPIActivateUtils.java ↔ GraphQLPlugin.java app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RestAPIActivateUtils.java:1 — `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RestAPIActivateUtils.java` (context appsmith-interfaces) and `app/server/appsmith-plugins/graphqlPlugin/src/main/java/com/external/plugins/GraphQLPlugin.java` (context appsmith-plugins) sit in DIFFERENT parts of the tree yet change together 62% of the time (8 of the 13 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `2b2d7868` chore: added plugin tags (#39955); `a8a831cd` chore: added telemetry to the plugin flow (#39861); `b59838c0` fix: apiKey security issue (#33528) — run `git show` on any of them.
  • Boundary-crossing change coupling: REDACTED ↔ datasourceReducer.ts app/client/src/pages/common/datasourceAuth/index.tsx:1 — `app/client/src/pages/common/datasourceAuth/index.tsx` (context pages) and `app/client/src/reducers/entityReducers/datasourceReducer.ts` (context reducers) sit in DIFFERENT parts of the tree yet 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `7a7ceed3` fix: edit datasource for External saas plugins (#38672); `391bfaec` fix: Fixes bug of gsheets not going into edit mode (#23839); `d837cfed` fix: Fixes bug of gsheets not going into edit mode (#23839) — run `git show` on any of them.
  • Boundary-crossing change coupling: FeatureFlag.ts ↔ ConnectionSuccess.tsx app/client/src/ce/entities/FeatureFlag.ts:1 — `app/client/src/ce/entities/FeatureFlag.ts` (context ce) and `app/client/src/pages/Editor/gitSync/Tabs/ConnectionSuccess.tsx` (context pages) sit in DIFFERENT parts of the tree yet 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `41d064fc` fix: remove feature flag and minor fixes for git branch protection (#…; `89601117` fix: git branch protection fixes (#28667); `d24a0bf4` feat: branch protection (#28526) — run `git show` on any of them.
  • Boundary-crossing change coupling: FileUtilsCEImpl.java ↔ AutoCommitSolutionCEImpl.java app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:1 — `app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java` (context appsmith-git) and `app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitSolutionCEImpl.java` (context appsmith-server) sit in DIFFERENT parts of the tree yet change together 58% of the time (7 of the 12 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `bd51e382` fix(git): surface the real cause of git failures instead of a static …; `098e5369` refactor(git): remove GitExecutor abstraction (#42010); `e71a817b` chore: Moving autocommit to new git implementation (#40915) (at that commit the file was still `app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitEventHandlerCEImpl.java`) — run `git show` on any of them.
  • Boundary-crossing change coupling: gitSyncReducer.ts ↔ gitSyncSelectors.tsx app/client/src/reducers/uiReducers/gitSyncReducer.ts:1 — `app/client/src/reducers/uiReducers/gitSyncReducer.ts` (context reducers) and `app/client/src/selectors/gitSyncSelectors.tsx` (context selectors) sit in DIFFERENT parts of the tree yet change together 56% of the time (10 of the 18 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `c169d488` chore: git mod - minor fixes (#38563); `c85631c0` fix: adding branch protection callout (#32707); `99639d44` fix: Homepage error message with no workspaces & Github changes messa… — run `git show` on any of them.
  • Boundary-crossing change coupling: Merge.tsx ↔ GitSyncSagas.ts app/client/src/pages/Editor/gitSync/Tabs/Merge.tsx:1 — `app/client/src/pages/Editor/gitSync/Tabs/Merge.tsx` (context pages) and `app/client/src/sagas/GitSyncSagas.ts` (context sagas) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `c85631c0` fix: adding branch protection callout (#32707); `10cc58b3` fix: git branch protection fixes (#28667); `b061ce1f` fix: git branch protection fixes (#28667) — run `git show` on any of them.
  • Boundary-crossing change coupling: FSGitHandlerCEImpl.java ↔ CentralGitServiceCEImpl.java app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1 — `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java` (context appsmith-git) and `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java` (context appsmith-server) sit in DIFFERENT parts of the tree yet change together 53% of the time (10 of the 19 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `bd51e382` fix(git): surface the real cause of git failures instead of a static …; `93f4a85b` chore: revert in-memory git status (CE) (#40971); `dea1c030` chore: in memory git status (#40891) — run `git show` on any of them.
  • Boundary-crossing change coupling: ReduxActionConstants.tsx ↔ templatesSelectors.tsx app/client/src/ce/constants/ReduxActionConstants.tsx:1 — `app/client/src/ce/constants/ReduxActionConstants.tsx` (context ce) and `app/client/src/selectors/templatesSelectors.tsx` (context selectors) sit in DIFFERENT parts of the tree yet change together 50% of the time (8 of the 16 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `c72433dd` fix: remove building blocks on canvas (#33761); `7c403430` fix: starter building blocks on canvas removes existing queries and J…; `60d45ea6` feat: add analytics for drag and drop building blocks (#32699) — run `git show` on any of them.
  • Boundary-crossing change coupling: AppIDEFocusSetters.ts ↔ FocusElements.ts app/client/src/ce/navigation/AppIDEFocusSetters.ts:1 — `app/client/src/ce/navigation/AppIDEFocusSetters.ts` (context ce) and `app/client/src/navigation/FocusElements.ts` (context navigation) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `e9966ce0` fix: [IDE] Page switch and State switch have deep links to entity to … (at that commit the file was still `app/client/src/ce/navigation/FocusSetters.ts`); `8e886762` fix: Widget Context Switching (#29735) (at that commit the file was still `app/client/src/navigation/FocusSetters.ts`); `22854862` chore: Added context switching for pages pane (#29100) (at that commit the file was still `app/client/src/navigation/FocusSetters.ts`) — run `git show` on any of them.
  • Boundary-crossing change coupling: dataTreeJSAction.ts ↔ index.ts app/client/src/ce/entities/DataTree/dataTreeJSAction.ts:1 — `app/client/src/ce/entities/DataTree/dataTreeJSAction.ts` (context ce) and `app/client/src/workers/common/DataTreeEvaluator/index.ts` (context workers) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `abb08783` chore: optimise first evaluation by adding worker scope cache (CE) (#…; `e37d3b8d` feat: Remove Action/Query/JS data from unevalTree (#27056) (at that commit the file was still `app/client/src/entities/DataTree/dataTreeJSAction.ts`); `717664b8` revert: Parse js actions for view mode changes (#19033) (at that commit the file was still `app/client/src/entities/DataTree/dataTreeJSAction.ts`) — run `git show` on any of them.
  • Boundary-crossing change coupling: REDACTED ↔ datasourceReducer.ts app/client/src/pages/Editor/DataSourceEditor/index.tsx:1 — `app/client/src/pages/Editor/DataSourceEditor/index.tsx` (context pages) and `app/client/src/reducers/entityReducers/datasourceReducer.ts` (context reducers) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `ae805567` chore: Update integration modal (#39976); `1277a6f5` chore: update carbon integration modal (#39901); `391bfaec` fix: Fixes bug of gsheets not going into edit mode (#23839) — run `git show` on any of them.
  • Boundary-crossing change coupling: FeatureFlag.ts ↔ REDACTED app/client/src/ce/entities/FeatureFlag.ts:1 — `app/client/src/ce/entities/FeatureFlag.ts` (context ce) and `app/client/src/pages/Editor/CanvasPropertyPane/index.tsx` (context pages) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `bc592635` chore: Make App Sidebar Generally Available (#30923); `e68cf543` chore: Make App Sidebar Generally Available (#30923); `b26a954d` chore: Add an extra feature flag to control App sidebar rollout (#28876) — run `git show` on any of them.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · High CVE · ×13
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R9 · Circular Imports · Import cycle (3 files) · ×10
  • Import cycle (3 files) app/client/packages/design-system/ads-old/src/EditableText/index.tsx:4 — app/client/packages/design-system/ads-old/src/EditableText/index.tsx → app/client/packages/design-system/ads-old/src/EditableTextSubComponent/index.tsx → app/client/packages/design-system/ads-old/src/index.ts → app/client/packages/design-system/ads-old/src/EditableText/index.tsx
  • Import cycle (3 files) app/client/src/actions/datasourceActions.ts:14 — app/client/src/actions/datasourceActions.ts → app/client/src/ee/entities/Engine/actionHelpers.ts → app/client/src/ce/entities/Engine/actionHelpers.ts → app/client/src/actions/datasourceActions.ts
  • Import cycle (3 files) app/client/src/ce/workers/common/DependencyMap/utils/getEntityDependenciesByType.ts:20 — app/client/src/ce/workers/common/DependencyMap/utils/getEntityDependenciesByType.ts → app/client/src/workers/common/DependencyMap/utils/getEntityDependencies.ts → app/client/src/ee/workers/common/DependencyMap/utils/getEntityDependenciesByType.ts → app/client/src/ce/workers/common/DependencyMap/utils/getEntityDependenciesByType.ts
  • Import cycle (3 files) app/client/src/components/editorComponents/ActionCreator/index.tsx:10 — app/client/src/components/editorComponents/ActionCreator/index.tsx → app/client/src/components/editorComponents/ActionCreator/viewComponents/Action/index.tsx → app/client/src/components/editorComponents/ActionCreator/viewComponents/Action/ActionTree.tsx → app/client/src/components/editorComponents/ActionCreator/index.tsx (one verified cycle inside a mutually-dependent group of 5 files)
  • Import cycle (3 files) app/client/src/components/editorComponents/PropertyPaneSidebar.tsx:11 — app/client/src/components/editorComponents/PropertyPaneSidebar.tsx → app/client/src/pages/Editor/PropertyPane/index.tsx → app/client/src/pages/Editor/PropertyPane/PropertyPaneView.tsx → app/client/src/components/editorComponents/PropertyPaneSidebar.tsx (one verified cycle inside a mutually-dependent group of 7 files)
  • Import cycle (3 files) app/client/src/layoutSystems/anvil/layoutComponents/BaseLayoutComponent.tsx:12 — app/client/src/layoutSystems/anvil/layoutComponents/BaseLayoutComponent.tsx → app/client/src/layoutSystems/anvil/utils/layouts/layoutUtils.ts → app/client/src/layoutSystems/anvil/layoutComponents/components/AlignedLayoutColumn.tsx → app/client/src/layoutSystems/anvil/layoutComponents/BaseLayoutComponent.tsx (one verified cycle inside a mutually-dependent group of 12 files)
  • Import cycle (3 files) app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx:25 — app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx → app/client/src/pages/Editor/CustomWidgetBuilder/index.tsx → app/client/src/pages/Editor/CustomWidgetBuilder/Editor/index.tsx → app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx (one verified cycle inside a mutually-dependent group of 18 files)
  • Import cycle (3 files) app/client/src/pages/Editor/FirstTimeUserOnboarding/HelpMenu.tsx:9 — app/client/src/pages/Editor/FirstTimeUserOnboarding/HelpMenu.tsx → app/client/src/pages/Editor/HelpButton.tsx → app/client/src/pages/Editor/FirstTimeUserOnboarding/Modal.tsx → app/client/src/pages/Editor/FirstTimeUserOnboarding/HelpMenu.tsx
  • Import cycle (3 files) app/client/src/widgets/JSONFormWidget/constants.ts:4 — app/client/src/widgets/JSONFormWidget/constants.ts → app/client/src/widgets/JSONFormWidget/fields/index.ts → app/client/src/widgets/JSONFormWidget/fields/ArrayField.tsx → app/client/src/widgets/JSONFormWidget/constants.ts (one verified cycle inside a mutually-dependent group of 16 files)
  • Import cycle (3 files) app/client/src/widgets/wds/WDSTableWidget/config/autocompleteConfig.ts:11 — app/client/src/widgets/wds/WDSTableWidget/config/autocompleteConfig.ts → REDACTED → app/client/src/widgets/wds/WDSTableWidget/config/index.ts → app/client/src/widgets/wds/WDSTableWidget/config/autocompleteConfig.ts
D29 · Static Analysis (SAST) · REDACTED · ×9
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <select> without a programmatic label · ×6
  • <select> without a programmatic label app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:53 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:62 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:71 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:111 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:120 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:129 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
D13 · REDACTED Scanning · Leaked secret · ×5
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D31 · IaC & Container Security · Critical IaC · ×5
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R9 · Circular Imports · Import cycle (4 files) · ×5
  • Import cycle (4 files) app/client/packages/ast/index.ts:45 — app/client/packages/ast/index.ts → app/client/packages/ast/src/actionCreator/index.ts → app/client/packages/ast/src/index.ts → app/client/packages/ast/src/jsObject/index.ts → app/client/packages/ast/index.ts (one verified cycle inside a mutually-dependent group of 7 files)
  • Import cycle (4 files) app/client/packages/design-system/widgets/src/components/Button/index.ts:1 — app/client/packages/design-system/widgets/src/components/Button/index.ts → app/client/packages/design-system/widgets/src/components/Button/src/index.ts → app/client/packages/design-system/widgets/src/components/Button/src/Button.tsx → app/client/packages/design-system/widgets/src/index.ts → app/client/packages/design-system/widgets/src/components/Button/index.ts (one verified cycle inside a mutually-dependent group of 103 files)
  • Import cycle (4 files) app/client/src/ce/entities/DataTree/utils.ts:10 — app/client/src/ce/entities/DataTree/utils.ts → app/client/src/ee/workers/Evaluation/evaluationUtils.ts → app/client/src/ce/workers/Evaluation/evaluationUtils.ts → app/client/src/ee/entities/DataTree/utils.ts → app/client/src/ce/entities/DataTree/utils.ts (one verified cycle inside a mutually-dependent group of 8 files)
  • Import cycle (4 files) app/client/src/ce/pages/Applications/ApplicationCardList.tsx:8 — app/client/src/ce/pages/Applications/ApplicationCardList.tsx → app/client/src/ee/pages/Applications/index.tsx → app/client/src/ce/pages/Applications/index.tsx → app/client/src/ee/pages/Applications/ApplicationCardList.tsx → app/client/src/ce/pages/Applications/ApplicationCardList.tsx
  • Import cycle (4 files) app/client/src/widgets/ChartWidget/component/EChartsConfigurationBuilder.ts:11 — app/client/src/widgets/ChartWidget/component/EChartsConfigurationBuilder.ts → app/client/src/widgets/ChartWidget/component/LayoutBuilders/EChartsLayoutBuilder.ts → app/client/src/widgets/ChartWidget/component/LayoutBuilders/EChartsXAxisLayoutBuilder.ts → app/client/src/widgets/ChartWidget/component/helpers.ts → app/client/src/widgets/ChartWidget/component/EChartsConfigurationBuilder.ts (one verified cycle inside a mutually-dependent group of 5 files)
AC2 · Forms & labels · <input> without a programmatic label · ×4
  • <input> without a programmatic label app/client/packages/design-system/ads-old/src/Checkbox/index.tsx:185 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:437 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label app/client/packages/design-system/ads-old/src/RectangularSwitcher/index.tsx:114 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label app/client/src/components/editorComponents/GlobalSearch/SearchBox.tsx:144 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
AC2 · Forms & labels · Custom control with no accessible name on <div> · ×4
  • Custom control with no accessible name on <div> app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:179 — 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> app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:210 — 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> app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:234 — 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> app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:266 — 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.
AC3 · Page structure · <iframe> without a title · ×4
  • <iframe> without a title REDACTED:130 — An iframe with no title (or an empty one) is announced only as "frame". Add a non-empty title describing its content, or an aria-label.
  • <iframe> without a title app/client/src/pages/Templates/TemplateView.tsx:204 — An iframe with no title (or an empty one) is announced only as "frame". Add a non-empty title describing its content, or an aria-label.
  • <iframe> without a title app/client/src/pages/Templates/TemplatesModal/TemplateDetailedView.tsx:136 — An iframe with no title (or an empty one) is announced only as "frame". Add a non-empty title describing its content, or an aria-label.
  • <iframe> without a title app/client/src/widgets/wds/WDSCustomWidget/component/index.tsx:161 — An iframe with no title (or an empty one) is announced only as "frame". Add a non-empty title describing its content, or an aria-label.
AC4 · Keyboard semantics · Click handler on a non-interactive <span> · ×4
  • Click handler on a non-interactive <span> app/client/public/404.html:67 — 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> app/client/src/components/editorComponents/GlobalSearch/ResultsNotFound.tsx:61 — 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> app/client/src/layoutSystems/anvil/editor/AnvilWidgetName/SplitButton.tsx:123 — 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> app/client/src/layoutSystems/anvil/editor/AnvilWidgetName/SplitButton.tsx:140 — 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 · Hover-only interaction on <div> · ×3
  • Hover-only interaction on <div> app/client/src/components/editorComponents/EntityExplorerSidebar.tsx:130 — 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> app/client/src/widgets/TableWidget/component/Table.tsx:315 — 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> app/client/src/widgets/TableWidgetV2/component/header/TableColumnHeader.tsx:59 — 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.
D14 · License Compliance · Banned license · ×3
  • Banned license: org.openjdk.jmh:jmh-core — `org.openjdk.jmh:jmh-core` 1.35 is published on Maven Central under `GPL-2.0`, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact's POM `<licenses>` block — following `<parent>` where the POM inherits them — and normalised to SPDX before it was judged, because Maven publishes the name as free text (`GNU Affero General Public License v3` is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven's own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception.
  • Banned license: org.openjdk.jmh:jmh-generator-annprocess — `org.openjdk.jmh:jmh-generator-annprocess` 1.35 is published on Maven Central under `GPL-2.0`, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact's POM `<licenses>` block — following `<parent>` where the POM inherits them — and normalised to SPDX before it was judged, because Maven publishes the name as free text (`GNU Affero General Public License v3` is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven's own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception.
  • Banned license: com.mysql:mysql-connector-j — `com.mysql:mysql-connector-j` 9.2.0 is published on Maven Central under `GPL-2.0`, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact's POM `<licenses>` block — following `<parent>` where the POM inherits them — and normalised to SPDX before it was judged, because Maven publishes the name as free text (`GNU Affero General Public License v3` is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven's own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception.
D29 · Static Analysis (SAST) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D31 · IaC & Container Security · High IaC · ×3
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <label> that labels no control · ×2
  • <label> that labels no control app/client/src/components/editorComponents/ActionCreator/viewComponents/SelectorView/index.tsx:16 — 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 app/client/src/components/editorComponents/ActionCreator/viewComponents/TabView/index.tsx:30 — 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.
AC5 · ARIA correctness · aria-expanded on a <span> with no role to carry it · ×2
  • aria-expanded on a <span> with no role to carry it app/client/src/layoutSystems/anvil/editor/AnvilWidgetName/SplitButton.tsx:123 — A plain <span> has the implicit role "generic", which supports no ARIA states, so this aria-expanded is dropped and assistive tech is never told the state at all. Put aria-expanded on the element that owns the behaviour (the button or control the user operates), or give this <span> a role that supports aria-expanded.
  • aria-expanded on a <span> with no role to carry it app/client/src/layoutSystems/anvil/editor/AnvilWidgetName/SplitButton.tsx:140 — A plain <span> has the implicit role "generic", which supports no ARIA states, so this aria-expanded is dropped and assistive tech is never told the state at all. Put aria-expanded on the element that owns the behaviour (the button or control the user operates), or give this <span> a role that supports aria-expanded.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
R8 · Dependency Hygiene · Unlisted import '@internationalized/date' · ×2
  • Unlisted import '@internationalized/date' app/client/src/widgets/wds/WDSDatePickerWidget/widget/index.tsx:9 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
  • Unlisted import '@internationalized/date' app/client/packages/design-system/widgets/src/components/Calendar/stories/Calendar.stories.tsx:3 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@react-aria/visually-hidden' · ×2
  • Unlisted import '@react-aria/visually-hidden' app/client/src/components/editorComponents/PremiumFeatureTag.tsx:3 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
  • Unlisted import '@react-aria/visually-hidden' app/client/packages/design-system/ads/src/Slider/Slider.tsx:5 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'node-fetch' · ×2
  • Unlisted import 'node-fetch' app/client/src/ce/utils/serviceWorkerUtils.test.ts:13 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
  • Unlisted import 'node-fetch' app/client/cypress/scripts/util.ts:6 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@react-aria/i18n' · ×2
  • Unlisted import '@react-aria/i18n' app/client/packages/design-system/ads/src/Slider/Slider.tsx:6 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
  • Unlisted import '@react-aria/i18n' app/client/packages/design-system/widgets/src/components/Calendar/src/CalendarMonthDropdown.tsx:3 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R9 · Circular Imports · Import cycle (5 files) · ×2
  • Import cycle (5 files) app/client/src/PluginActionEditor/components/PluginActionResponse/PluginActionResponse.tsx:16 — app/client/src/PluginActionEditor/components/PluginActionResponse/PluginActionResponse.tsx → app/client/src/ee/PluginActionEditor/components/PluginActionResponse/hooks/useDefaultTab.tsx → app/client/src/ce/PluginActionEditor/components/PluginActionResponse/hooks/useDefaultTab.tsx → app/client/src/PluginActionEditor/index.ts → app/client/src/PluginActionEditor/components/PluginActionResponse/index.ts → app/client/src/PluginActionEditor/components/PluginActionResponse/PluginActionResponse.tsx
  • Import cycle (5 files) app/client/src/components/editorComponents/WidgetQueryGeneratorForm/index.tsx:5 — app/client/src/components/editorComponents/WidgetQueryGeneratorForm/index.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/index.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/DatasourceDropdown/index.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/DatasourceDropdown/useSource/index.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/DatasourceDropdown/useSource/useConnectToOptions.tsx → app/client/src/components/editorComponents/WidgetQueryGeneratorForm/index.tsx (one verified cycle inside a mutually-dependent group of 25 files)
AC3 · Page structure · Viewport restricts zoom · ×1
  • Viewport restricts zoom app/client/public/index.html:6 — user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
AC3 · Page structure · <html> without a lang · ×1
  • <html> without a lang app/client/public/privacy-policy.html:1 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
AC4 · Keyboard semantics · Clickable role="button" that no keyboard user can reach · ×1
  • Clickable role="button" that no keyboard user can reach app/client/src/ce/pages/Upgrade/Carousel.tsx:136 — This <div> announces itself as a role="button" and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}="0" and an Enter/Space key handler, or make it a native <button>. If a parent widget owns the keyboard model, that parent must move focus onto the active role="button" or point aria-activedescendant at it.
AC4 · Keyboard semantics · Hover-only interaction on <thead> · ×1
  • Hover-only interaction on <thead> app/client/src/widgets/wds/WDSTableWidget/component/TableHeader/TableColumnHeader.tsx:59 — This <thead> 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 · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D30 · Dependency Vulnerabilities · Critical CVE · ×1
  • REDACTED
D30 · Dependency Vulnerabilities · High vulnerability · ×1
  • REDACTED
R8 · Dependency Hygiene · Unlisted import '@radix-ui/react-dialog' · ×1
  • Unlisted import '@radix-ui/react-dialog' app/client/src/pages/Editor/IntegrationEditor/RequestNewIntegration/form.tsx:2 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'assets' · ×1
  • Unlisted import 'assets' app/client/src/AppErrorBoundry.tsx:3 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'theme' · ×1
  • Unlisted import 'theme' app/client/src/widgets/RichTextEditorWidget/component/index.tsx:34 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'workbox-core' · ×1
  • Unlisted import 'workbox-core' app/client/src/serviceWorker.ts:1 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'workbox-routing' · ×1
  • Unlisted import 'workbox-routing' app/client/src/serviceWorker.ts:2 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'workbox-strategies' · ×1
  • Unlisted import 'workbox-strategies' app/client/src/serviceWorker.ts:3 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'globby' · ×1
  • Unlisted import 'globby' app/client/cypress/scripts/util.ts:7 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'minimatch' · ×1
  • Unlisted import 'minimatch' app/client/cypress/scripts/util.ts:8 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@react-stately/slider' · ×1
  • Unlisted import '@react-stately/slider' app/client/packages/design-system/ads/src/Slider/Slider.tsx:3 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@react-aria/interactions' · ×1
  • Unlisted import '@react-aria/interactions' app/client/packages/design-system/widgets/src/components/MultiSelect/src/MultiSelect.tsx:13 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R9 · Circular Imports · Import cycle (10 files) · ×1
  • Import cycle (10 files) app/client/src/store.ts:6 — app/client/src/store.ts → app/client/src/ee/sagas/index.tsx → app/client/src/ce/sagas/index.tsx → app/client/src/ce/sagas/AIAssistantSagas.ts → app/client/src/ee/api/OrganizationApi.ts → app/client/src/ce/api/OrganizationApi.ts → app/client/src/api/Api.ts → app/client/src/api/interceptors/index.ts → app/client/src/api/interceptors/request/index.ts → app/client/src/api/interceptors/request/apiRequestInterceptor.ts → app/client/src/store.ts (one verified cycle inside a mutually-dependent group of 280 files)
R9 · Circular Imports · Import cycle (9 files) · ×1
  • Import cycle (9 files) app/client/src/ce/workers/Evaluation/Actions.ts:13 — app/client/src/ce/workers/Evaluation/Actions.ts → app/client/src/ee/workers/Evaluation/fns/index.ts → app/client/src/ce/workers/Evaluation/fns/index.ts → app/client/src/workers/Evaluation/fns/index.ts → app/client/src/workers/Evaluation/fns/actionFns.ts → app/client/src/workers/Evaluation/fns/utils/Promisify.ts → app/client/src/workers/Evaluation/fns/utils/Messenger.ts → REDACTED → app/client/src/ee/workers/Evaluation/Actions.ts → app/client/src/ce/workers/Evaluation/Actions.ts (one verified cycle inside a mutually-dependent group of 40 files)
Serious — 3136 finding(s)
D17 · Explicit Debt · TodoComment · ×358
  • TodoComment app/server/appsmith-server/src/test/utils/com/appsmith/server/git/GitServerInitializerExtension.java:65 — // TODO : Move this to artifact service to enable packages — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/solutions/CreateDBTablePageSolutionTests.java:938 — // TODO this has been disabled as we don't have the getStructure method for mssql-plugin — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/services/ThemeServiceTest.java:410 — // TODO : Change assertion to null if it should be deleted. — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/services/ce/OrganizationServiceCETest.java:116 — // Todo change this to organization admin once we introduce multitenancy — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/services/ce/OrganizationServiceCETest.java:188 — // TODO @Abhijeet: Fix the side-effect of having default fallback when form login is null and enable the test — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/git/ops/GitConnectTests.java:481 — // TODO : write them as templatized integration tests — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/fork/ApplicationForkingServiceTests.java:426 — // TODO: Investigate working of applicationForkingService.forkApplicationToWorkspace() further and fix the — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/fork/ApplicationForkingServiceTests.java:654 — // TODO: Investigate working of applicationForkingService.forkApplicationToWorkspace() further and fix the — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/fork/ApplicationForkingServiceTests.java:743 — // TODO: Investigate working of applicationForkingService.forkApplicationToWorkspace() further and fix the — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/fork/ApplicationForkingServiceTests.java:810 — // TODO: Investigate working of applicationForkingService.forkApplicationToWorkspace() further and fix the — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/fork/ApplicationForkingServiceTests.java:903 — // TODO: Investigate working of applicationForkingService.forkApplicationToWorkspace() further and fix the — 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 app/server/appsmith-server/src/test/java/com/appsmith/server/fork/ApplicationForkingServiceTests.java:985 — // TODO: Investigate working of applicationForkingService.forkApplicationToWorkspace() further and fix the — 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 app/server/appsmith-server/src/test/it/com/appsmith/server/git/GitBranchesWithCentralServiceIT.java:171 — // TODO: — 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 app/server/appsmith-server/src/test/it/com/appsmith/server/git/GitBranchesWithCentralServiceIT.java:207 — // TODO: Check why there is ane extra commit — 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 app/server/appsmith-server/src/test/it/com/appsmith/server/git/GitBranchesWithCentralServiceIT.java:229 — //TODO: Undo this — 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 app/server/appsmith-server/src/test/it/com/appsmith/server/git/GitBranchesWithCentralServiceIT.java:456 — // TODO: I'm having to checkout myself to be able to delete the branch. — 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 app/server/appsmith-server/src/test/it/com/appsmith/server/git/GitBranchesWithCentralServiceIT.java:520 — // TODO: Why is this not clean? — 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 app/server/appsmith-server/src/test/it/com/appsmith/server/git/GitBranchesWithCentralServiceIT.java:593 — // TODO: This needs to be generified for artifacts — 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 app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java:821 — // TODO: Flags are needed here for google sheets integration to support shared drive behind a flag — 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 app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:436 — // TODO add authenticationDTO — 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 app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCE.java:21 — // TODO Remove this interface, once the client handles environmentId changes — 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 app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/DatasourceTriggerSolutionCEImpl.java:120 — // TODO: Flags are needed here for google sheets integration to support shared — 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 app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/PolicySolutionCEImpl.java:60 — // TODO: Investigate a solution without using deep-copy. — 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 app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/PolicySolutionCEImpl.java:100 — // TODO: Investigate a solution without using deep-copy. — 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 app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/PolicySolutionCEImpl.java:61 — // TODO: Do we need to return the domain object? — 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.
  • + 333 more in this group — see findings.md.
D3 · God Classes · FunctionTooLong · ×241
  • FunctionTooLong: index.AISettings app/client/src/pages/AdminSettings/AI/index.tsx:471 — FunctionTooLong — AISettings runs 753 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 653 over it, 7.53× 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: PropertyControl.PropertyControl app/client/src/pages/Editor/PropertyPane/PropertyControl.tsx:90 — FunctionTooLong — PropertyControl runs 685 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 585 over it, 6.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: GeneratePageForm.GeneratePageForm app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GeneratePageForm.tsx:211 — FunctionTooLong — GeneratePageForm runs 511 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 411 over it, 5.11× 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: AutoLayoutResizable.AutoLayoutResizableComponent app/client/src/layoutSystems/autolayout/common/resizer/AutoLayoutResizable.tsx:74 — FunctionTooLong — AutoLayoutResizableComponent runs 505 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 405 over it, 5.05× 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: GeneralSettings.GeneralSettings app/client/src/pages/AppIDE/components/AppSettings/components/GeneralSettings.tsx:139 — FunctionTooLong — GeneralSettings runs 495 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 395 over it, 4.95× 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: schema.widgetSpecSchema app/client/packages/mcp/src/builder/schema.ts:1279 — FunctionTooLong — widgetSpecSchema runs 486 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 386 over it, 4.86× 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: useCanvasDragging.useCanvasDragging app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/hooks/useCanvasDragging.ts:55 — FunctionTooLong — useCanvasDragging runs 431 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 331 over it, 4.31× 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: McpKeysPage.McpKeysPage app/client/src/pages/AdminSettings/Profile/McpKeysPage.tsx:696 — FunctionTooLong — McpKeysPage runs 420 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 320 over it, 4.20× 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: ApplicationCard.ApplicationCard app/client/src/pages/Applications/ApplicationCard.tsx:146 — FunctionTooLong — ApplicationCard runs 398 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 298 over it, 3.98× 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: PageSettings.PageSettings app/client/src/pages/AppIDE/components/AppSettings/components/PageSettings.tsx:63 — FunctionTooLong — PageSettings runs 389 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 289 over it, 3.89× 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: CanvasSelectionArena.CanvasSelectionArena app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/CanvasSelectionArena.tsx:41 — FunctionTooLong — CanvasSelectionArena 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: index.RichtextEditorComponent app/client/src/widgets/RichTextEditorWidget/component/index.tsx:422 — FunctionTooLong — RichtextEditorComponent runs 363 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 263 over it, 3.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: index.ControlPanel app/client/src/widgets/CameraWidget/component/index.tsx:262 — FunctionTooLong — ControlPanel runs 362 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 262 over it, 3.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.
  • FunctionTooLong: GoogleSheetSchema.GoogleSheetSchema app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx:65 — FunctionTooLong — GoogleSheetSchema runs 345 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 245 over it, 3.45× 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: index.ApplicationsSection app/client/src/ce/pages/Applications/index.tsx:698 — FunctionTooLong — ApplicationsSection runs 339 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 239 over it, 3.39× 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: Members.MemberSettings app/client/src/ce/pages/workspace/Members.tsx:192 — FunctionTooLong — MemberSettings runs 327 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 227 over it, 3.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.
  • FunctionTooLong: widgets.updateWidgetAutoHeightSaga app/client/src/sagas/autoHeightSagas/widgets.ts:78 — FunctionTooLong — updateWidgetAutoHeightSaga runs 314 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 214 over it, 3.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: WidgetOperationSagas.pasteWidgetSaga app/client/src/sagas/WidgetOperationSagas.tsx:1215 — FunctionTooLong — pasteWidgetSaga runs 313 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 213 over it, 3.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: ReconnectDatasourceModal.ReconnectDatasourceModal app/client/src/pages/Editor/gitSync/ReconnectDatasourceModal.tsx:257 — FunctionTooLong — ReconnectDatasourceModal runs 297 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 197 over it, 2.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: FixedLayoutResizable.FixedLayoutResizable app/client/src/layoutSystems/fixedlayout/common/resizer/FixedLayoutResizable.tsx:26 — FunctionTooLong — FixedLayoutResizable runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96× 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: index.migrateVersionedDSL app/client/packages/dsl/src/migrate/index.ts:151 — FunctionTooLong — migrateVersionedDSL runs 287 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 187 over it, 2.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: Deploy.Deploy app/client/src/pages/Editor/gitSync/Tabs/Deploy.tsx:100 — FunctionTooLong — Deploy runs 287 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 187 over it, 2.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: index.AppIcon app/client/packages/design-system/ads-old/src/AppIcon/index.tsx:434 — FunctionTooLong — AppIcon runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86× 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: index.Dropdown app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:1030 — FunctionTooLong — Dropdown runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86× 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: index.GlobalSearch app/client/src/components/editorComponents/GlobalSearch/index.tsx:167 — FunctionTooLong — GlobalSearch runs 285 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 185 over it, 2.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.
  • + 216 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×135
  • FileTooLong: libraries/jsonwebtoken@8.5.1.js app/client/public/libraries/jsonwebtoken@8.5.1.js — FileTooLong — 16426 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 14926 over it, 10.95× 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 — 6644 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 5144 over it, 4.43× 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/app.ts app/client/packages/mcp/src/app.ts — FileTooLong — 5435 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4935 over it, 10.87× 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: constants/messages.ts app/client/src/ce/constants/messages.ts — FileTooLong — 2513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2013 over it, 5.03× 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: central/CentralGitServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java — FileTooLong — 2416 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: CentralGitServiceCEImpl (119-3502). The bar is 500 significant lines; this is 1916 over it, 4.83× 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: constants/DefaultTheme.tsx app/client/src/constants/DefaultTheme.tsx — FileTooLong — 2365 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1865 over it, 4.73× 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 app/client/src/widgets/TableWidgetV2/widget/index.tsx — FileTooLong — 2133 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: TableWidgetV2 (168-3113). The bar is 500 significant lines; this is 1633 over it, 4.27× 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: builder/schema.ts app/client/packages/mcp/src/builder/schema.ts — FileTooLong — 1551 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1051 over it, 3.10× 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: builder/editPatch.ts app/client/packages/mcp/src/builder/editPatch.ts — FileTooLong — 1504 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1004 over it, 3.01× 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: sagas/DatasourcesSagas.ts app/client/src/ce/sagas/DatasourcesSagas.ts — FileTooLong — 1478 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 978 over it, 2.96× 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: DataTreeEvaluator/index.ts app/client/src/workers/common/DataTreeEvaluator/index.ts — FileTooLong — 1344 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: DataTreeEvaluator (168-2119). The bar is 500 significant lines; this is 844 over it, 2.69× 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: sagas/WidgetOperationSagas.tsx app/client/src/sagas/WidgetOperationSagas.tsx — FileTooLong — 1342 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 842 over it, 2.68× 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: widget/propertyConfig.ts app/client/src/widgets/TableWidget/widget/propertyConfig.ts — FileTooLong — 1307 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 807 over it, 2.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: CodeEditor/index.tsx app/client/src/components/editorComponents/CodeEditor/index.tsx — FileTooLong — 1298 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 798 over it, 2.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: ce/FSGitHandlerCEImpl.java app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java — FileTooLong — 1287 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: FSGitHandlerCEImpl (98-1766). The bar is 500 significant lines; this is 787 over it, 2.57× 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: reflow/reflowUtils.ts app/client/src/reflow/reflowUtils.ts — FileTooLong — 1263 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 763 over it, 2.53× 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: Icon/Icon.provider.tsx app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx — FileTooLong — 1232 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 732 over it, 2.46× 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: ce/AIConfigServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java — FileTooLong — 1230 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AIConfigServiceCEImpl (54-1593). The bar is 500 significant lines; this is 730 over it, 2.46× 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: REDACTED REDACTED — FileTooLong — 1217 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 717 over it, 2.43× 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: base/NewActionServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java — FileTooLong — 1199 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: NewActionServiceCEImpl (93-1867). The bar is 500 significant lines; this is 699 over it, 2.40× 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: exceptions/AppsmithError.java app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/AppsmithError.java — FileTooLong — 1160 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AppsmithError (12-1188). The bar is 500 significant lines; this is 660 over it, 2.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: selectors/entitiesSelector.ts app/client/src/ce/selectors/entitiesSelector.ts — FileTooLong — 1140 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 640 over it, 2.28× 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: AI/index.tsx app/client/src/pages/AdminSettings/AI/index.tsx — FileTooLong — 1136 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: AISettings (471-1438). The bar is 500 significant lines; this is 636 over it, 2.27× 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/index.tsx app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx — FileTooLong — 1124 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 624 over it, 2.25× 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: ActionExecution/PluginActionSaga.ts app/client/src/sagas/ActionExecution/PluginActionSaga.ts — FileTooLong — 1117 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 617 over it, 2.23× 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.
  • + 110 more in this group — see findings.md.
D3 · God Classes · MethodTooLong · ×85
  • MethodTooLong: TableWidgetV2.renderCell app/client/src/widgets/TableWidgetV2/widget/index.tsx:2011 — MethodTooLong — renderCell runs 549 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 449 over it, 5.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: ButtonGroupWidget.getPropertyPaneContentConfig app/client/src/widgets/ButtonGroupWidget/widget/index.tsx:249 — MethodTooLong — getPropertyPaneContentConfig runs 306 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 206 over it, 3.06× 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: MultiSelectWidget.getPropertyPaneContentConfig app/client/src/widgets/MultiSelectWidgetV2/widget/index.tsx:230 — MethodTooLong — getPropertyPaneContentConfig runs 291 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 191 over it, 2.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: SelectWidget.getPropertyPaneContentConfig app/client/src/widgets/SelectWidget/widget/index.tsx:253 — MethodTooLong — getPropertyPaneContentConfig runs 281 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 181 over it, 2.81× 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: AIConfigServiceCEImpl.testLlmConnectionInternal app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:369 — MethodTooLong — testLlmConnectionInternal runs 278 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 178 over it, 2.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.
  • MethodTooLong: S3PluginExecutor.executeCommon app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:533 — MethodTooLong — executeCommon runs 276 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 176 over it, 2.76× 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: ListWidget.getDefaults app/client/src/widgets/ListWidget/widget/index.tsx:105 — MethodTooLong — getDefaults runs 256 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 156 over it, 2.56× 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: MultiSelectWidget.getPropertyPaneConfig app/client/src/widgets/MultiSelectWidget/widget/index.tsx:145 — MethodTooLong — getPropertyPaneConfig runs 243 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 143 over it, 2.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.
  • MethodTooLong: ConsolidatedAPIServiceCEImpl.getAllFetchableMonos app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ConsolidatedAPIServiceCEImpl.java:184 — MethodTooLong — getAllFetchableMonos runs 236 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 136 over it, 2.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: MultiSelectTreeWidget.getPropertyPaneContentConfig app/client/src/widgets/MultiSelectTreeWidget/widget/index.tsx:200 — MethodTooLong — getPropertyPaneContentConfig runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26× 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: DropdownWidget.getPropertyPaneConfig app/client/src/widgets/DropdownWidget/widget/index.tsx:139 — MethodTooLong — getPropertyPaneConfig runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.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: DatePickerWidget.getPropertyPaneContentConfig app/client/src/widgets/DatePickerWidget2/widget/index.tsx:210 — MethodTooLong — getPropertyPaneContentConfig runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.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: SingleSelectTreeWidget.getPropertyPaneContentConfig app/client/src/widgets/SingleSelectTreeWidget/widget/index.tsx:165 — MethodTooLong — getPropertyPaneContentConfig runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.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.
  • MethodTooLong: PostgresPluginExecutor.executeCommon app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:355 — MethodTooLong — executeCommon runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.11× 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: ApplicationForkingServiceCEImpl.forkApplications app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java:105 — MethodTooLong — forkApplications runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.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.
  • MethodTooLong: CentralGitServiceCEImpl.connectArtifactToGit app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1144 — MethodTooLong — connectArtifactToGit runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00× 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: FormButtonWidget.getPropertyPaneConfig app/client/src/widgets/FormButtonWidget/widget/index.tsx:107 — MethodTooLong — getPropertyPaneConfig runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00× 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: CreateDBTablePageSolutionCEImpl.createPageFromDBTable app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:200 — MethodTooLong — createPageFromDBTable runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95× 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: HttpAsyncClientBuilder.build app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/org/apache/http/impl/nio/client/HttpAsyncClientBuilder.java:653 — MethodTooLong — build runs 194 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 94 over it, 1.94× 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: ModalWidget.getDefaults app/client/src/widgets/ModalWidget/widget/index.tsx:67 — MethodTooLong — getDefaults runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93× 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: PostgresPluginExecutor.getStructure app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:794 — MethodTooLong — getStructure runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88× 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: TableWidget.getTableColumns app/client/src/widgets/TableWidget/widget/index.tsx:473 — MethodTooLong — getTableColumns runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.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.
  • MethodTooLong: DatePickerComponent.render app/client/src/widgets/DatePickerWidget2/component/index.tsx:198 — MethodTooLong — render runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81× 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: CheckboxGroupWidget.getPropertyPaneContentConfig app/client/src/widgets/CheckboxGroupWidget/widget/index.tsx:185 — MethodTooLong — getPropertyPaneContentConfig runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.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.
  • MethodTooLong: ButtonWidget.getPropertyPaneStyleConfig app/client/src/widgets/ButtonWidget/widget/index.tsx:297 — MethodTooLong — getPropertyPaneStyleConfig runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77× 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.
  • + 60 more in this group — see findings.md.
D3 · God Classes · ClassTooLong · ×68
  • ClassTooLong: CentralGitServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:119 — ClassTooLong — 2302 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 400 significant lines; this is 1902 over it, 5.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: TableWidgetV2 app/client/src/widgets/TableWidgetV2/widget/index.tsx:168 — ClassTooLong — 1978 significant lines (blank, comment-only and punctuation-only lines excluded), 74 methods. The bar is 400 significant lines; this is 1578 over it, 4.95× 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: FSGitHandlerCEImpl app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:98 — ClassTooLong — 1194 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 794 over it, 2.99× 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: DataTreeEvaluator app/client/src/workers/common/DataTreeEvaluator/index.ts:168 — ClassTooLong — 1183 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 783 over it, 2.96× 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: AIConfigServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:54 — ClassTooLong — 1181 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 781 over it, 2.95× 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: AppsmithError app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/AppsmithError.java:12 — ClassTooLong — 1152 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 752 over it, 2.88× 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: NewActionServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:93 — ClassTooLong — 1111 significant lines (blank, comment-only and punctuation-only lines excluded), 87 methods. The bar is 400 significant lines; this is 711 over it, 2.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: ApplicationPageServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java:108 — ClassTooLong — 1007 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 607 over it, 2.52× 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: TableWidget app/client/src/widgets/TableWidget/widget/index.tsx:95 — ClassTooLong — 966 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 566 over it, 2.42× 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: WDSTableWidget REDACTED:109 — ClassTooLong — 944 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 544 over it, 2.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: PostgresPlugin app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:123 — ClassTooLong — 907 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 507 over it, 2.27× 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: ListWidget app/client/src/widgets/ListWidget/widget/index.tsx:84 — ClassTooLong — 866 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 466 over it, 2.17× 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: MigrationHelperMethods app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:54 — ClassTooLong — 854 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 454 over it, 2.14× 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: AmazonS3Plugin app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:133 — ClassTooLong — 840 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 440 over it, 2.10× 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: ListWidget app/client/src/widgets/ListWidgetV2/widget/index.tsx:144 — ClassTooLong — 835 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 435 over it, 2.09× 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: OnLoadExecutablesUtilCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java:77 — ClassTooLong — 787 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 387 over it, 1.97× 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: DatasourceServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:77 — ClassTooLong — 717 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 317 over it, 1.79× 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: DatasourceRestAPIEditor app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx:95 — ClassTooLong — 699 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 299 over it, 1.75× 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: DarkModeTheme app/client/packages/design-system/theming/src/color/src/DarkModeTheme.ts:7 — ClassTooLong — 687 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 287 over it, 1.72× 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: LightModeTheme app/client/packages/design-system/theming/src/color/src/LightModeTheme.ts:7 — ClassTooLong — 687 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 287 over it, 1.72× 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: PropertyControl app/client/src/pages/Editor/PropertyPane/PropertyControl.tsx:1 — ClassTooLong — 685 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 285 over it, 1.71× 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: GitFSServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:70 — ClassTooLong — 682 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 282 over it, 1.71× 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: StaticUrlServiceImpl app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:62 — ClassTooLong — 661 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 261 over it, 1.65× 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: ApplicationServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:81 — ClassTooLong — 657 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 257 over it, 1.64× 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: UserServiceCEImpl REDACTED:96 — ClassTooLong — 650 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 250 over it, 1.63× 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.
  • + 43 more in this group — see findings.md.
D2 · Cognitive Complexity · (anonymous) · ×61
  • (anonymous)::_decode (cognitive 69) app/client/public/libraries/jsonwebtoken@8.5.1.js:3268 — (anonymous)::_decode has cognitive complexity 69 (threshold 15). Drivers by points: if/else 13 (26 pts), ternaries 8 (22 pts), boolean chains 18, error handling 1 (3 pts) (nesting depth added 29). 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.
  • (anonymous)::(anonymous)::D (cognitive 44) app/client/public/libraries/jsonwebtoken@8.5.1.js:9411 — (anonymous)::(anonymous)::D has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (37 pts), boolean chains 6, loops 1 (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.
  • (anonymous)::(anonymous)::B (cognitive 44) REDACTED:4902 — (anonymous)::(anonymous)::B has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (37 pts), boolean chains 6, loops 1 (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.
  • (anonymous)::_wnafMulAdd (cognitive 40) app/client/public/libraries/jsonwebtoken@8.5.1.js:10803 — (anonymous)::_wnafMulAdd has cognitive complexity 40 (threshold 15). Drivers by points: loops 8 (14 pts), ternaries 5 (13 pts), if/else 4 (8 pts), boolean chains 5 (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.
  • (anonymous)::(anonymous)::exports (cognitive 38) app/client/public/libraries/jsonwebtoken@8.5.1.js:2530 — (anonymous)::(anonymous)::exports has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 12, error handling 4 (7 pts), ternaries 3 (4 pts) (nesting depth added 7). 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.
  • (anonymous)::(anonymous)::b (cognitive 37) app/client/public/libraries/jsonwebtoken@8.5.1.js:8499 — (anonymous)::(anonymous)::b has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (7 pts), boolean chains 6, 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.
  • (anonymous)::(anonymous)::y (cognitive 37) REDACTED:3990 — (anonymous)::(anonymous)::y has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (7 pts), boolean chains 6, 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.
  • (anonymous)::(anonymous)::fill (cognitive 35) app/client/public/libraries/jsonwebtoken@8.5.1.js:9369 — (anonymous)::(anonymous)::fill has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 10, ternaries 3 (7 pts), loops 2 (4 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.
  • (anonymous)::sign (cognitive 35) app/client/public/libraries/jsonwebtoken@8.5.1.js:12215 — (anonymous)::sign has cognitive complexity 35 (threshold 15). Drivers by points: if/else 4 (14 pts), ternaries 3 (14 pts), boolean chains 6, loops 1 (nesting depth added 21). 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.
  • (anonymous)::(anonymous)::fill (cognitive 35) REDACTED:4860 — (anonymous)::(anonymous)::fill has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 10, ternaries 3 (7 pts), loops 2 (4 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.
  • (anonymous)::(anonymous)::u (cognitive 33) app/client/public/libraries/jsonwebtoken@8.5.1.js:19518 — (anonymous)::(anonymous)::u has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (12 pts), ternaries 6 (8 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.
  • (anonymous)::(anonymous)::l (cognitive 33) REDACTED:7760 — (anonymous)::(anonymous)::l has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (12 pts), ternaries 6 (8 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.
  • (anonymous)::_encodeValue (cognitive 30) app/client/public/libraries/jsonwebtoken@8.5.1.js:3427 — (anonymous)::_encodeValue has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8, ternaries 4 (7 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.
  • (anonymous)::toArray (cognitive 28) app/client/public/libraries/jsonwebtoken@8.5.1.js:14861 — (anonymous)::toArray has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (9 pts), loops 3 (8 pts), boolean chains 1 (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.
  • (anonymous)::(anonymous)::egcd (cognitive 26) app/client/public/libraries/jsonwebtoken@8.5.1.js:5973 — (anonymous)::(anonymous)::egcd has cognitive complexity 26 (threshold 15). Drivers by points: loops 6 (12 pts), boolean chains 7, if/else 2 (4 pts), ternaries 2 (3 pts) (nesting depth added 9). 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.
  • (anonymous)::(anonymous)::intersects (cognitive 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:1939 — (anonymous)::(anonymous)::intersects has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 22, if/else 3. 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.
  • (anonymous)::(anonymous)::toString (cognitive 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:4550 — (anonymous)::(anonymous)::toString has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, loops 4 (8 pts), ternaries 2 (6 pts), if/else 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.
  • (anonymous)::(anonymous)::_invmp (cognitive 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:6015 — (anonymous)::(anonymous)::_invmp has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (11 pts), boolean chains 6, if/else 2 (4 pts), ternaries 3 (4 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.
  • (anonymous)::(anonymous)::p (cognitive 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:8468 — (anonymous)::(anonymous)::p has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 7 (9 pts), boolean chains 4 (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.
  • (anonymous)::v (cognitive 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:10617 — (anonymous)::v has cognitive complexity 25 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 5 (9 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 11). 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.
  • (anonymous)::(anonymous)::p (cognitive 25) REDACTED:3959 — (anonymous)::(anonymous)::p has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 7 (9 pts), boolean chains 4 (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.
  • (anonymous)::(anonymous)::read (cognitive 23) app/client/public/libraries/jsonwebtoken@8.5.1.js:17085 — (anonymous)::(anonymous)::read has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 16, ternaries 4 (5 pts), if/else 2 (nesting depth added 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.
  • (anonymous)::gatherDataBetweenQuotes (cognitive 23) REDACTED:1312 — (anonymous)::gatherDataBetweenQuotes has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 3 (11 pts), if/else 4 (7 pts), boolean chains 4, loops 1 (nesting depth added 11). 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.
  • (anonymous)::(anonymous)::We (cognitive 23) REDACTED:2362 — (anonymous)::(anonymous)::We has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (4 pts), boolean chains 3, loops 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.
  • (anonymous)::(anonymous)::Le (cognitive 23) REDACTED:3005 — (anonymous)::(anonymous)::Le has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (4 pts), boolean chains 3, loops 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.
  • + 36 more in this group — see findings.md.
D1 · Cyclomatic Complexity · (anonymous) · ×46
  • (anonymous)::_decode (cyclomatic 44) app/client/public/libraries/jsonwebtoken@8.5.1.js:3268 — (anonymous)::_decode 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.
  • (anonymous)::(anonymous)::exports (cyclomatic 31) app/client/public/libraries/jsonwebtoken@8.5.1.js:2530 — (anonymous)::(anonymous)::exports 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.
  • (anonymous)::(anonymous)::u (cyclomatic 31) app/client/public/libraries/jsonwebtoken@8.5.1.js:19518 — (anonymous)::(anonymous)::u has cyclomatic complexity 31 (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.
  • (anonymous)::(anonymous)::l (cyclomatic 31) REDACTED:7760 — (anonymous)::(anonymous)::l has cyclomatic complexity 31 (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.
  • (anonymous)::(anonymous)::intersects (cyclomatic 28) app/client/public/libraries/jsonwebtoken@8.5.1.js:1939 — (anonymous)::(anonymous)::intersects 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.
  • (anonymous)::(anonymous)::write (cyclomatic 27) app/client/public/libraries/jsonwebtoken@8.5.1.js:8929 — (anonymous)::(anonymous)::write has cyclomatic complexity 27 (threshold 15). 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.
  • (anonymous)::(anonymous)::write (cyclomatic 27) REDACTED:4420 — (anonymous)::(anonymous)::write has cyclomatic complexity 27 (threshold 15). 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.
  • (anonymous)::(anonymous)::E (cyclomatic 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:8593 — (anonymous)::(anonymous)::E 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.
  • (anonymous)::(anonymous)::read (cyclomatic 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:17085 — (anonymous)::(anonymous)::read 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.
  • (anonymous)::(anonymous)::T (cyclomatic 25) REDACTED:4084 — (anonymous)::(anonymous)::T 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.
  • (anonymous)::(anonymous)::read (cyclomatic 25) REDACTED:6158 — (anonymous)::(anonymous)::read 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.
  • (anonymous)::_encodeValue (cyclomatic 24) app/client/public/libraries/jsonwebtoken@8.5.1.js:3427 — (anonymous)::_encodeValue 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.
  • (anonymous)::(anonymous)::copy (cyclomatic 24) app/client/public/libraries/jsonwebtoken@8.5.1.js:9339 — (anonymous)::(anonymous)::copy has cyclomatic complexity 24 (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.
  • (anonymous)::(anonymous)::fill (cyclomatic 24) app/client/public/libraries/jsonwebtoken@8.5.1.js:9369 — (anonymous)::(anonymous)::fill 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.
  • (anonymous)::(anonymous)::Ee (cyclomatic 24) REDACTED:2803 — (anonymous)::(anonymous)::Ee has cyclomatic complexity 24 (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.
  • (anonymous)::(anonymous)::copy (cyclomatic 24) REDACTED:4830 — (anonymous)::(anonymous)::copy has cyclomatic complexity 24 (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.
  • (anonymous)::(anonymous)::fill (cyclomatic 24) REDACTED:4860 — (anonymous)::(anonymous)::fill 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.
  • (anonymous)::(anonymous)::inc (cyclomatic 23) app/client/public/libraries/jsonwebtoken@8.5.1.js:1594 — (anonymous)::(anonymous)::inc has cyclomatic complexity 23 (threshold 15). 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.
  • (anonymous)::(anonymous)::d (cyclomatic 22) app/client/public/libraries/jsonwebtoken@8.5.1.js:8429 — (anonymous)::(anonymous)::d has cyclomatic complexity 22 (threshold 15). 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.
  • (anonymous)::(anonymous)::D (cyclomatic 22) app/client/public/libraries/jsonwebtoken@8.5.1.js:9411 — (anonymous)::(anonymous)::D 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.
  • (anonymous)::_wnafMulAdd (cyclomatic 22) app/client/public/libraries/jsonwebtoken@8.5.1.js:10803 — (anonymous)::_wnafMulAdd 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.
  • (anonymous)::(anonymous)::h (cyclomatic 22) REDACTED:3920 — (anonymous)::(anonymous)::h has cyclomatic complexity 22 (threshold 15). 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.
  • (anonymous)::(anonymous)::B (cyclomatic 22) REDACTED:4902 — (anonymous)::(anonymous)::B 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.
  • (anonymous)::(anonymous)::compare (cyclomatic 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:8883 — (anonymous)::(anonymous)::compare has cyclomatic complexity 21 (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.
  • (anonymous)::(anonymous)::compare (cyclomatic 21) REDACTED:4374 — (anonymous)::(anonymous)::compare has cyclomatic complexity 21 (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.
  • + 21 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×40
  • TooManyMethods: NewActionServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:93 — TooManyMethods — 87 methods. The bar is 30 methods; this is 57 over it, 2.90× 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: MetaWidgetGenerator REDACTED:216 — TooManyMethods — 80 methods. The bar is 30 methods; this is 50 over it, 2.67× 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: ListWidget app/client/src/widgets/ListWidgetV2/widget/index.tsx:144 — TooManyMethods — 76 methods. The bar is 30 methods; this is 46 over it, 2.53× 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: TableWidgetV2 app/client/src/widgets/TableWidgetV2/widget/index.tsx:168 — TooManyMethods — 74 methods. The bar is 30 methods; this is 44 over it, 2.47× 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: CentralGitServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:119 — TooManyMethods — 65 methods. The bar is 30 methods; this is 35 over it, 2.17× 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: WDSTableWidget REDACTED:109 — TooManyMethods — 56 methods. The bar is 30 methods; this is 26 over it, 1.87× 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: DatasourceStorageServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:59 — TooManyMethods — 55 methods. The bar is 30 methods; this is 25 over it, 1.83× 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: ApplicationServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:81 — TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× the bar. Most of these members implement base.ApplicationServiceCE (38 of 49 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: RestrictedHostFilter app/server/appsmith-interfaces/src/main/java/com/appsmith/util/RestrictedHostFilter.java:57 — TooManyMethods — 49 methods. The bar is 30 methods; this is 19 over it, 1.63× 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: FSGitHandlerCEImpl app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:98 — TooManyMethods — 48 methods. The bar is 30 methods; this is 18 over it, 1.60× 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: DatabaseChangelog1 app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:52 — TooManyMethods — 48 methods. The bar is 30 methods; this is 18 over it, 1.60× 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: ApplicationPageServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java:108 — TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× 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: GitFSServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:70 — TooManyMethods — 45 methods. The bar is 30 methods; this is 15 over it, 1.50× the bar. Most of these members implement central.GitHandlingServiceCE (33 of 38 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: BaseWidget app/client/src/widgets/BaseWidget.tsx:79 — TooManyMethods — 45 methods. The bar is 30 methods; this is 15 over it, 1.50× 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: HttpAsyncClientBuilder app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/org/apache/http/impl/nio/client/HttpAsyncClientBuilder.java:152 — TooManyMethods — 43 methods. The bar is 30 methods; this is 13 over it, 1.43× 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: NewPageServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/base/NewPageServiceCEImpl.java:64 — TooManyMethods — 43 methods. The bar is 30 methods; this is 13 over it, 1.43× the bar. Most of these members implement base.NewPageServiceCE (36 of 42 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: CodeEditor app/client/src/components/editorComponents/CodeEditor/index.tsx:301 — TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× 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: ActionCollectionServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java:53 — TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× 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: DatasourceServiceCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:77 — TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× 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: TableWidget app/client/src/widgets/TableWidget/widget/index.tsx:95 — TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× 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: FileUtilsCEImpl app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:74 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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: DataTreeEvaluator app/client/src/workers/common/DataTreeEvaluator/index.ts:168 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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: CustomNewActionRepositoryCEImpl app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:43 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× 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: CommonGitFileUtilsCE app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:93 — TooManyMethods — 36 methods. The bar is 30 methods; this is 6 over it, 1.20× 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: JSONFormWidget app/client/src/widgets/JSONFormWidget/widget/index.tsx:129 — TooManyMethods — 36 methods. The bar is 30 methods; this is 6 over it, 1.20× 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.
  • + 15 more in this group — see findings.md.
R4 · Test Coverage · No test reaches this file · ×40
  • No test reaches this file app/client/public/libraries/jsonwebtoken@8.5.1.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 app/client/src/constants/DefaultTheme.tsx: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 app/client/src/components/designSystems/blueprintjs/icon/svgImportsMap.ts: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 app/client/src/constants/Currency.tsx: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 app/client/src/constants/WidgetValidation.ts: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 app/client/src/globalStyles/CodemirrorHintStyles.ts: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 app/client/src/components/featureWalkthrough/walkthroughRenderer.tsx: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 app/client/src/pages/UserAuth/SignUp.tsx: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 app/client/src/pages/common/SearchBar/EntitySearchBar.tsx: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 app/client/src/pages/AppIDE/AppIDE.tsx: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 app/client/src/pages/AdminSettings/LeftPane.tsx: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 app/client/src/pages/AppIDE/layouts/components/Header/index.tsx: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 app/client/src/components/editorComponents/Debugger/EntityDependecies.tsx: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 app/client/packages/mcp/live-harness.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 app/client/packages/mcp/src/server.ts: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 app/client/src/pages/UserAuth/ResetPassword.tsx: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 app/client/src/components/editorComponents/PartialImportExport/PartialImportModal/index.tsx: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 app/client/src/pages/Editor/QueryEditor/QueryDebuggerTabs.tsx: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 app/client/packages/rts/src/ctl/move-to-postgres.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 app/client/src/pages/Editor/Explorer/Files/index.tsx: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 app/client/src/pages/Editor/Explorer/Files/Submenu.tsx: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 app/client/src/constants/AppsmithActionConstants/ActionConstants.tsx: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.
  • + 15 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×36
  • Swallowed exception (empty catch) deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs:42 — 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) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:991 — 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) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1108 — 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) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1279 — 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) app/client/src/serviceWorker.ts:41 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) app/client/src/workers/Evaluation/evaluationSubstitution.ts:126 — 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) app/client/src/workers/Evaluation/formEval.ts:332 — 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) app/client/src/workers/Evaluation/formEval.ts:450 — 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) app/client/src/workers/Evaluation/handlers/jsLibrary.ts:391 — 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) app/client/src/workers/Evaluation/JSObject/index.ts:172 — 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) app/client/src/widgets/wds/WDSTableWidget/widget/derived.js:254 — 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) app/client/src/widgets/wds/WDSSelectWidget/widget/helpers.ts:35 — 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) app/client/src/widgets/wds/WDSMultiSelectWidget/widget/helpers.ts:35 — 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) app/client/src/widgets/TableWidgetV2/widget/derived.js:379 — 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) app/client/src/widgets/TableWidget/widget/index.tsx:590 — 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) app/client/src/widgets/SwitchGroupWidget/widget/index.tsx:585 — 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) app/client/src/widgets/SelectWidget/widget/propertyUtils.ts:41 — 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) app/client/src/widgets/SelectWidget/widget/propertyUtils.ts:75 — 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) app/client/src/widgets/RichTextEditorWidget/component/index.tsx:417 — 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) app/client/src/widgets/MultiSelectWidgetV2/widget/propertyUtils.ts:147 — 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) app/client/src/widgets/JSONFormWidget/widget/propertyConfig/properties/select.ts:48 — 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) app/client/src/widgets/FilePickerWidgetV2/widget/FileParser.ts:106 — 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) app/client/src/widgets/FilePickerWidgetV2/widget/FileParser.ts:134 — 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) app/client/src/widgets/FilePickerWidgetV2/widget/FileParser.ts:154 — 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) app/client/src/utils/BrandingUtils.ts:219 — 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.
  • + 11 more in this group — see findings.md.
IC1 · Incompleteness & stubs · Hollow method · ×32
  • Hollow method — returns a constant without doing the work app/client/src/ce/actions/applicationActions.ts:334 — `fetchAllPackages` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/entities/AppsmithConsole/utils.ts:21 — `getModuleInstanceInvalidErrors` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/pages/Editor/Explorer/hooks.tsx:355 — `useConvertToModuleOptions` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/plugins/Linting/utils/getInvalidModuleInputsError.ts:13 — `getInvalidModuleInputsError` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/reducers/entityReducers/index.ts:34 — `moduleInstanceEntities` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/engineSelectors.ts:6 — `getFeatureFlagsForEngine` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/entitiesSelector.ts:1636 — `getModuleInstances` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/entitiesSelector.ts:1667 — `getIsActionConverting` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/environmentSelectors.tsx:6 — `areEnvironmentsFetched` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/environmentSelectors.tsx:22 — `getCurrentEnvironmentName` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/environmentSelectors.tsx:33 — `allowManageEnvironmentAccessForUser` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/environmentSelectors.tsx:36 — `isEnvironmentFetching` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/moduleInstanceSelectors.ts:6 — `getModuleInstanceById` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/moduleInstanceSelectors.ts:11 — `getModuleInstanceJSCollectionById` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/moduleInstanceSelectors.ts:17 — `getAllUniqueWidgetTypesInUiModules` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/modulesSelector.ts:11 — `getCurrentModuleId` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/modulesSelector.ts:13 — `getCurrentBaseModuleId` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/modulesSelector.ts:15 — `showUIModulesList` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/modulesSelector.ts:17 — `getActionsInCurrentModule` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/modulesSelector.ts:18 — `getJSCollectionsInCurrentModule` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/modulesSelector.ts:20 — `getModuleInstanceActions` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/modulesSelector.ts:21 — `getModuleInstanceJSCollections` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/workflowSelectors.ts:18 — `getIsCurrentEditorWorkflowType` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/selectors/workflowSelectors.ts:26 — `getCurrentWorkflowJSActions` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work app/client/src/ce/utils/moduleInstanceNavigationData.ts:4 — `getModuleInstanceNavigationData` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • + 7 more in this group — see findings.md.
D10 · Test Quality · No assertions · ×29
  • No assertions: Check if ${widget.type}'s deprecation config has a proper replacement Widget app/client/src/utils/testPropertyPaneConfig.test.ts:203 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: production mode there are no errors thrown app/client/src/utils/hooks/useDeepEffect.test.ts:31 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 set 'shouldRespondWithLogs'to evaluations when the log level is debug app/client/src/sagas/EvaluationsSaga.test.ts:53 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 set 'shouldRespondWithLogs' to false when the log level is not debug app/client/src/sagas/EvaluationsSaga.test.ts:106 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 propagate affectedJSObjects property to evaluation action app/client/src/sagas/EvaluationsSaga.test.ts:159 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 call evalWorker.request with isFirstEvaluation as true when isFirstEvaluation is set as true in evaluateTreeSaga app/client/src/sagas/EvaluationsSaga.test.ts:221 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 call a regular evaluation with the consolidated action data payload when both updateActionData and evaluation action is triggered app/client/src/sagas/EvaluationsSaga.test.ts:492 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 call an evalTreeWithChanges when only updateActionData actions are triggered app/client/src/sagas/EvaluationsSaga.test.ts:552 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 call a regular evaluation when evaluation actions are triggered app/client/src/sagas/EvaluationsSaga.test.ts:594 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 navigate to the current page and trigger re-evaluation app/client/src/sagas/__tests__/NavigateActionSaga.test.ts:139 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 navigate to page with query params app/client/src/sagas/__tests__/NavigateActionSaga.test.ts:218 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 call pushToHistory with the given payload app/client/src/sagas/__tests__/NavigateActionSaga.test.ts:408 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 refresh appsmith.URL from window.location and trigger re-evaluation app/client/src/sagas/__tests__/NavigateActionSaga.test.ts:427 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: tests the order of execute in startAppEngine app/client/src/sagas/__tests__/initSagas.test.ts:42 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Empty canvas: Render UI add state app/client/src/pages/AppIDE/layouts/routers/UISegmentLeftPane/UIRender.test.tsx:19 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Empty canvas: Render UI list state app/client/src/pages/AppIDE/layouts/routers/UISegmentLeftPane/UIRender.test.tsx:38 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Selected widget in canvas: Render UI list state app/client/src/pages/AppIDE/layouts/routers/UISegmentLeftPane/UIRender.test.tsx:61 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 Fullscreen Blank State app/client/src/pages/AppIDE/layouts/routers/QueryEditor/QueryRender.test.tsx:38 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 Split Screen Blank State app/client/src/pages/AppIDE/layouts/routers/QueryEditor/QueryRender.test.tsx:58 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 Fullscreen Blank State app/client/src/pages/AppIDE/layouts/routers/JSEditor/JSRender.test.tsx:35 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 Split Screen Blank State app/client/src/pages/AppIDE/layouts/routers/JSEditor/JSRender.test.tsx:57 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 Fullscreen Add in Blank State app/client/src/pages/AppIDE/layouts/routers/JSEditor/JSRender.test.tsx:82 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 Split Screen Add in Blank State app/client/src/pages/AppIDE/layouts/routers/JSEditor/JSRender.test.tsx:104 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 the component app/client/src/components/editorComponents/ActionCreator/Field/Field.test.tsx:178 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 put setupPageSaga with pageWithMigratedDsl app/client/src/ce/sagas/__tests__/PageSaga.test.ts:15 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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.
  • + 4 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED · ×28
  • 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
  • + 3 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×25
  • Duplicated block (9 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1579 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1579-1587 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1603-1611 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1579` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:148 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:148-156 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:203-211 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:148` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:164 — app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:164-172 | app/server/appsmith-plugins/restApiPlugin/src/main/java/com/external/plugins/RestApiPlugin.java:98-106 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:652 — app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:652-660 | app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:669-677 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:652` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileListMethod.java:57 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileListMethod.java:57-65 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileListMethod.java:86-94 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:236 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:236-244 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:254-262 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:236` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Count.java:78 — app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Count.java:78-86 | app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Distinct.java:99-107 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Count.java:101 — app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Count.java:101-109 | app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Distinct.java:124-133 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Count.java:101` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Distinct.java:121` calls `setDataValueSafelyInFormData` and `app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Count.java:99` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) REDACTED:281 — REDACTED:281-289 | REDACTED:527-535 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:281` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:152 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:152-160 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:471-479 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:873 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:873-881 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:511-519 — before extracting anything, compare `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:873` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:940 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:940-948 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:579-587 — before extracting anything, compare `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:940` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:939` calls `startsWith` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:578` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:113 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:113-121 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/NewActionImportableServiceCEImpl.java:269-277 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:113` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:183 — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:183-191 | app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:234-242 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:1091 — app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:1091-1099 | app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:351-359 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:721 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:721-729 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:2264-2272 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:721` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/WidgetSpecificUtils.java:59 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/WidgetSpecificUtils.java:59-68 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:968-976 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/WidgetSpecificUtils.java:59` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration017UnsetEncryptionVersion2Fields.java:80 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration017UnsetEncryptionVersion2Fields.java:80-88 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration020TransferToDatasourceStorage.java:131-139 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:306 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:306-314 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:334-342 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:306` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:657 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:657-665 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:840-848 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:657` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:320 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:320-328 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:473-481 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:208 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:208-216 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:227-235 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:208` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/SchemaVersionUpdateAudit.java:15 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/SchemaVersionUpdateAudit.java:15-23 | app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/PageBaseIdAudit.java:15-23 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:135 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:135-143 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:135-143 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java` and `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsLambdaPlugin.java:413 — app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsLambdaPlugin.java:413-421 | app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java:391-399 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D35 · Change Coupling · Change coupling · ×24
  • Change coupling: DarkModeTheme.ts ↔ LightModeTheme.ts app/client/packages/design-system/theming/src/color/src/DarkModeTheme.ts:1 — `app/client/packages/design-system/theming/src/color/src/DarkModeTheme.ts` and `app/client/packages/design-system/theming/src/color/src/LightModeTheme.ts` change together 92% of the time (54 of the 59 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 54 shared commits counted here, the most recent 3 are `d64040bf` chore: Adjust WDS fg negative (#40297); `43baad91` fix: WDS neutral foregrounds (#40037); `b52f03aa` chore: Adjust WDS text colors (#40034) — run `git show` on any of them.
  • Change coupling: GitDefaultBranch.tsx ↔ REDACTED app/client/src/pages/Editor/gitSync/GitSettingsModal/TabBranch/GitDefaultBranch.tsx:1 — `app/client/src/pages/Editor/gitSync/GitSettingsModal/TabBranch/GitDefaultBranch.tsx` and `app/client/src/pages/Editor/gitSync/QuickGitActions/index.tsx` change together 90% of the time (9 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 9 shared commits counted here, the most recent 3 are `877aa1a2` fix: adding new settings modal (#30320); `41d064fc` fix: remove feature flag and minor fixes for git branch protection (#… (at that commit the file was still `app/client/src/pages/Editor/gitSync/Tabs/GitSettings/GitDefaultBranch.tsx`); `64ef0c33` fix: git branch protection bug fixes (#28749) (at that commit the file was still `app/client/src/pages/Editor/gitSync/Tabs/GitSettings/GitDefaultBranch.tsx`) — run `git show` on any of them.
  • Change coupling: JSSegmentList.tsx ↔ QuerySegmentList.tsx app/client/src/pages/AppIDE/components/JSExplorer/JSSegmentList.tsx:1 — `app/client/src/pages/AppIDE/components/JSExplorer/JSSegmentList.tsx` and `app/client/src/pages/AppIDE/components/QueryExplorer/QuerySegmentList.tsx` change together 83% of the time (20 of the 24 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 20 shared commits counted here, the most recent 3 are `093f0069` chore: Removing feature flag for app IDE new entity explorer (#39912); `4b2a4200` chore: Removing the hook for create actions permission (#39470); `019f22a9` chore: Moving the util for grouping & sorting entity list to a commo… — run `git show` on any of them.
  • Change coupling: REDACTED ↔ SignUp.tsx REDACTED:1 — `REDACTED` and `app/client/src/pages/UserAuth/SignUp.tsx` change together 78% of the time (14 of the 18 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 14 shared commits counted here, the most recent 3 are `82f061a1` chore: added approved messages (#40108); `9de62e0d` chore: Upgrade packages to resolve Dependabot issues (#39710); `32ed0ac9` fix: Use Spring's native CSRF protection, and fix login page (#37292) — run `git show` on any of them.
  • Change coupling: LayoutActionServiceCEImpl.java ↔ LayoutCollectionServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java` change together 70% of the time (19 of the 27 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 19 shared commits counted here, the most recent 3 are `73c8458a` chore: Prep for post delete (#39971); `7612e4f1` chore: perf optimisation for js action creation phase 1 (#37391); `dc5fbed6` chore: Add spans attributes for no of lines and action count (#37001) — run `git show` on any of them.
  • Change coupling: REDACTED ↔ ConnectionSuccess.tsx app/client/src/pages/Editor/gitSync/QuickGitActions/index.tsx:1 — `app/client/src/pages/Editor/gitSync/QuickGitActions/index.tsx` and `app/client/src/pages/Editor/gitSync/Tabs/ConnectionSuccess.tsx` change together 70% of the time (7 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 7 shared commits counted here, the most recent 3 are `877aa1a2` fix: adding new settings modal (#30320); `41d064fc` fix: remove feature flag and minor fixes for git branch protection (#…; `89601117` fix: git branch protection fixes (#28667) — run `git show` on any of them.
  • Change coupling: CustomNewActionRepositoryCEImpl.java ↔ NewActionRepositoryCE.java app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/NewActionRepositoryCE.java` change together 70% of the time (7 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `d9b1729c` chore: refactor crud methods (#38158); `61ef8f77` fix: fixed failing queries using aggregation pipeline (#26132); `439af215` fix: fixed failing queries using aggregation pipeline (#26132) — run `git show` on any of them.
  • Change coupling: CustomNewPageRepositoryCEImpl.java ↔ NewActionRepositoryCE.java app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCEImpl.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/NewActionRepositoryCE.java` change together 70% of the time (7 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `8cbb13ea` chore: Change `policies` set to `policyMap` (#34566); `61ef8f77` fix: fixed failing queries using aggregation pipeline (#26132); `439af215` fix: fixed failing queries using aggregation pipeline (#26132) — run `git show` on any of them.
  • Change coupling: applicationActions.ts ↔ applicationsReducer.tsx app/client/src/ce/actions/applicationActions.ts:1 — `app/client/src/ce/actions/applicationActions.ts` and `app/client/src/ce/reducers/uiReducers/applicationsReducer.tsx` change together 69% of the time (9 of the 13 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 9 shared commits counted here, the most recent 3 are `b0b91a2f` feat: add optional application description shown on app cards (#42312); `9bc4c971` chore: Refactoring multiple environments to use editorId instead of a…; `73b3079a` fix: Revert "chore: Refactoring multiple environments to use editorId… — run `git show` on any of them.
  • Change coupling: jest.config.js ↔ types.ts app/client/jest.config.js:1 — `app/client/jest.config.js` and `app/client/src/ce/configs/types.ts` change together 68% of the time (19 of the 28 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 19 shared commits counted here, the most recent 3 are `81165f49` feat: Add Betterbugs SDK support (#41532); `7c66c078` chore: Remove Algolia, we don't use it anymore (#37664); `27bdeb92` chore: Distributed tracing for client (#37101) — run `git show` on any of them.
  • Change coupling: jest.config.js ↔ index.ts app/client/jest.config.js:1 — `app/client/jest.config.js` and `app/client/src/ce/configs/index.ts` change together 68% of the time (19 of the 28 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 19 shared commits counted here, the most recent 3 are `81165f49` feat: Add Betterbugs SDK support (#41532); `7c66c078` chore: Remove Algolia, we don't use it anymore (#37664); `27bdeb92` chore: Distributed tracing for client (#37101) — run `git show` on any of them.
  • Change coupling: NewPageServiceCE.java ↔ CustomNewPageRepositoryCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/base/NewPageServiceCE.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/base/NewPageServiceCE.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCEImpl.java` change together 62% of the time (13 of the 21 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 13 shared commits counted here, the most recent 3 are `9a260661` chore: introduce caching and projection to optimise FPL (#36118); `83326ef1` chore: optimise pages API in view mode (#35915); `979f44b2` chore: Remove unused methods in `NewPageServiceCE` (#34369) — run `git show` on any of them.
  • Change coupling: NewPageServiceCE.java ↔ CustomNewPageRepositoryCE.java app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/base/NewPageServiceCE.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/base/NewPageServiceCE.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCE.java` change together 62% of the time (13 of the 21 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 13 shared commits counted here, the most recent 3 are `9a260661` chore: introduce caching and projection to optimise FPL (#36118); `83326ef1` chore: optimise pages API in view mode (#35915); `979f44b2` chore: Remove unused methods in `NewPageServiceCE` (#34369) — run `git show` on any of them.
  • Change coupling: DatasourceServiceCEImpl.java ↔ DatasourceStorageServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java` change together 60% of the time (15 of the 25 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 15 shared commits counted here, the most recent 3 are `de938c8c` fix(security): preserve datasource identity on update (#42356); `4c61d6b7` chore: move metadata calculation to datasource storage (#39657); `d9211106` chore: add postSaveHook (#39306) — run `git show` on any of them.
  • Change coupling: ApplicationImportServiceCEImpl.java ↔ ImportServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/applications/imports/ApplicationImportServiceCEImpl.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/imports/ApplicationImportServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/imports/internal/ImportServiceCEImpl.java` change together 58% of the time (7 of the 12 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 7 shared commits counted here, the most recent 3 are `a0d0c2fa` fix(imports): strip identity fields from imported JSON before persist…; `88395cc5` chore: CE changes for dry operation removal (#41513); `fbaa0324` chore: remove setting published entities while importing (#41485) — run `git show` on any of them.
  • Change coupling: generateQuickCommands.tsx ↔ REDACTED app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx:1 — `app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx` and `app/client/src/components/editorComponents/CodeEditor/index.tsx` change together 57% of the time (8 of the 14 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 8 shared commits counted here, the most recent 3 are `da07ad2c` feat: add Ask AI CE stubs and shared file wiring (#41692); `af184f3c` feat: add edit option in suggested queries in hint commands (#32076); `ba41d51e` chore: Remove AI sign posting (#28861) — run `git show` on any of them.
  • Change coupling: DatasourceForm.tsx ↔ REDACTED app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx:1 — `app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx` and `app/client/src/pages/common/datasourceAuth/index.tsx` change together 54% of the time (20 of the 37 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 20 shared commits counted here, the most recent 3 are `d036064b` chore: Update flags for self-hosting agents (#40639); `53f355a8` chore: change saas authentication to context based (#31064); `ab8e4ba1` feat: onboarding start with data cancel cta (#29228) — run `git show` on any of them.
  • Change coupling: QueryAddView.tsx ↔ QuerySegmentList.tsx app/client/src/pages/AppIDE/components/QueryAdd/QueryAddView.tsx:1 — `app/client/src/pages/AppIDE/components/QueryAdd/QueryAddView.tsx` and `app/client/src/pages/AppIDE/components/QueryExplorer/QuerySegmentList.tsx` change together 53% of the time (9 of the 17 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 9 shared commits counted here, the most recent 3 are `ddb83c00` chore: Move smaller Entity Explorer components into ADS (#38321) (at that commit the files were still `app/client/src/pages/Editor/IDE/EditorPane/Query/Add.tsx` and `app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx`); `8a142c43` perf: entity group items filter utility refactor (#38108) (at that commit the files were still `app/client/src/pages/Editor/IDE/EditorPane/Query/Add.tsx` and `app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx`); `67f16f84` fix: Add & list tabs padding fixes (#35057) (at that commit the files were still `app/client/src/pages/Editor/IDE/EditorPane/Query/Add.tsx` and `app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx`) — run `git show` on any of them.
  • Change coupling: CustomNewPageRepositoryCE.java ↔ ApplicationPageServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCE.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCE.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java` change together 52% of the time (11 of the 21 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 11 shared commits counted here, the most recent 3 are `9a260661` chore: introduce caching and projection to optimise FPL (#36118); `83326ef1` chore: optimise pages API in view mode (#35915); `cdc5a358` chore: Remove `InsertManyResult` and `BulkWriteResult` (#31037) — run `git show` on any of them.
  • Change coupling: InstanceConfig.java ↔ InstanceConfigHelperCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/InstanceConfig.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/InstanceConfig.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/InstanceConfigHelperCEImpl.java` change together 50% of the time (7 of the 14 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 7 shared commits counted here, the most recent 3 are `5f3b6b8b` feat: Restrict cron execution for single pod in clustered environment…; `821f179b` chore: Remove ready banner (#31903); `b4a728e0` feat: Introduce support for non-reactive method to bifurcate the impl… — run `git show` on any of them.
  • Change coupling: REDACTED ↔ useNavigationMenuData.ts app/client/src/pages/Editor/CanvasPropertyPane/index.tsx:1 — `app/client/src/pages/Editor/CanvasPropertyPane/index.tsx` and `app/client/src/pages/Editor/EditorName/useNavigationMenuData.ts` change together 50% of the time (5 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 5 shared commits counted here, the most recent 3 are `bc592635` chore: Make App Sidebar Generally Available (#30923) (at that commit the file was still `app/client/src/pages/Editor/EditorName/NavigationMenuData.ts`); `e68cf543` chore: Make App Sidebar Generally Available (#30923) (at that commit the file was still `app/client/src/pages/Editor/EditorName/NavigationMenuData.ts`); `b26a954d` chore: Add an extra feature flag to control App sidebar rollout (#28876) (at that commit the file was still `app/client/src/pages/Editor/EditorName/NavigationMenuData.ts`) — run `git show` on any of them.
  • Change coupling: CentralGitServiceCEImpl.java ↔ GitApplicationControllerCE.java app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1 — `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/git/controllers/GitApplicationControllerCE.java` change together 50% of the time (5 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 5 shared commits counted here, the most recent 3 are `75b4834d` fix(server): add audit context hooks for Git rehydrate and artifact c…; `b6fc1de1` chore: Modifying git fetch remote method signature (#40896); `2e598068` chore: speeding up and verifying git apis (#38952) — run `git show` on any of them.
  • Change coupling: GitSyncAPI.tsx ↔ messages.ts app/client/src/api/GitSyncAPI.tsx:1 — `app/client/src/api/GitSyncAPI.tsx` and `app/client/src/ce/constants/messages.ts` change together 50% of the time (5 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 5 shared commits counted here, the most recent 3 are `8ce25219` feat: autocommit UI integration (#29755); `7c65e35e` fix: rebase error message during conflicts (#24414); `36013bf2` chore: revert git rebase with discard (#24479) — run `git show` on any of them.
  • Change coupling: PropertyControl.tsx ↔ PropertySection.tsx app/client/src/pages/Editor/PropertyPane/PropertyControl.tsx:1 — `app/client/src/pages/Editor/PropertyPane/PropertyControl.tsx` and `app/client/src/pages/Editor/PropertyPane/PropertySection.tsx` change together 50% of the time (5 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 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 5 shared commits counted here, the most recent 3 are `a5f8aed1` feat: implement disabled functionality in the property pane section a…; `22c272c2` feat: debugger error navigation (#25505); `421dfb9b` chore: Fixing broken client build (#17634) — run `git show` on any of them.
R11 · Import Boundaries · Boundary violation [package · ×24
  • Boundary violation [package:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/DialogComponent/index.tsx:6 — app/client/packages/design-system/ads-old/src/DialogComponent/index.tsx:6 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/DisplayImageUpload/index.tsx:15 — app/client/packages/design-system/ads-old/src/DisplayImageUpload/index.tsx:15 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/EditableTextSubComponent/index.tsx:8 — app/client/packages/design-system/ads-old/src/EditableTextSubComponent/index.tsx:8 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:6 — app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:6 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:8 — app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:8 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:10 — app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:10 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/GifPlayer/index.tsx:3 — app/client/packages/design-system/ads-old/src/GifPlayer/index.tsx:3 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/MenuItem/index.tsx:7 — app/client/packages/design-system/ads-old/src/MenuItem/index.tsx:7 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/Table/index.tsx:11 — app/client/packages/design-system/ads-old/src/Table/index.tsx:11 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/ads-old/src/TreeDropdown/index.tsx:21 — app/client/packages/design-system/ads-old/src/TreeDropdown/index.tsx:21 imports @appsmith/ads, 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:undeclared-workspace-dep] app/client/packages/design-system/theming/src/hooks/src/useCssTokens.tsx:3 — app/client/packages/design-system/theming/src/hooks/src/useCssTokens.tsx:3 imports @appsmith/utils, 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:undeclared-workspace-dep] app/client/packages/design-system/theming/src/hooks/src/useCssTokens.tsx:8 — app/client/packages/design-system/theming/src/hooks/src/useCssTokens.tsx:8 imports @appsmith/utils, 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:undeclared-workspace-dep] app/client/packages/design-system/theming/src/hooks/src/useTypography.tsx:12 — app/client/packages/design-system/theming/src/hooks/src/useTypography.tsx:12 imports @appsmith/utils, 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:undeclared-workspace-dep] app/client/packages/design-system/theming/src/utils/cssRule.ts:4 — app/client/packages/design-system/theming/src/utils/cssRule.ts:4 imports @appsmith/utils, 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] app/client/packages/design-system/widgets-old/src/TableDropdown/index.tsx:1 — app/client/packages/design-system/widgets-old/src/TableDropdown/index.tsx:1 imports @blueprintjs/core/lib/esm/common/position, 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] app/client/packages/design-system/widgets-old/src/TableDropdown/index.tsx:2 — app/client/packages/design-system/widgets-old/src/TableDropdown/index.tsx:2 imports @blueprintjs/core/lib/esm/components/popover/popover, 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] app/client/packages/design-system/widgets-old/src/Tooltip/index.tsx:5 — app/client/packages/design-system/widgets-old/src/Tooltip/index.tsx:5 imports @blueprintjs/core/lib/esm/components/popover/popoverSharedProps, 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] app/client/packages/design-system/widgets-old/src/Tooltip/index.tsx:6 — app/client/packages/design-system/widgets-old/src/Tooltip/index.tsx:6 imports @blueprintjs/core/lib/esm/components/tooltip/tooltip, 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] app/client/packages/design-system/widgets/src/components/CodeBlock/src/CodeBlock.tsx:4 — app/client/packages/design-system/widgets/src/components/CodeBlock/src/CodeBlock.tsx:4 imports react-syntax-highlighter/dist/cjs/styles/hljs, 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] app/client/packages/design-system/widgets/src/components/Markdown/src/mdComponents/Code.tsx:5 — app/client/packages/design-system/widgets/src/components/Markdown/src/mdComponents/Code.tsx:5 imports react-syntax-highlighter/dist/cjs/styles/hljs, 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] app/client/packages/rts/src/services/DslService.ts:1 — app/client/packages/rts/src/services/DslService.ts:1 imports @shared/dsl, 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] app/client/src/PluginActionEditor/components/PluginActionResponse/components/ApiResponseMeta.tsx:9 — app/client/src/PluginActionEditor/components/PluginActionResponse/components/ApiResponseMeta.tsx:9 imports @blueprintjs/core/lib/esm/components/text/text, 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] app/client/src/ce/pages/Applications/index.tsx:45 — app/client/src/ce/pages/Applications/index.tsx:45 imports @blueprintjs/core/lib/esm/common/position, 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] app/client/src/components/designSystems/blueprintjs/icon/Icon.tsx:13 — app/client/src/components/designSystems/blueprintjs/icon/Icon.tsx:13 imports @blueprintjs/core/lib/esm/common/classes, 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.
D29 · Static Analysis (SAST) · REDACTED · ×23
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×23
  • Duplicated block (5 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:645 — app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:645-649 | app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:674-678 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:645` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1350 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1350-1354 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1392-1396 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1350` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:143 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:143-149 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:174-178 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:143` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) REDACTED:210 — REDACTED:210-214 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:221-225 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:210` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) REDACTED:206 — REDACTED:206-210 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:365-369 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) REDACTED:378 — REDACTED:378-382 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:695-699 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:378` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (5 lines × 2) app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:628 — app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:628-632 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:355-359 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:628` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:598 — app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:598-602 | app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:608-612 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:818 — app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:818-822 | app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:838-842 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:214 — app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:214-218 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:283-287 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:214` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `e` to `AppsmithPluginException` in one and `Exception` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/AiDatasourceSchemaSerializerCE.java:57 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/AiDatasourceSchemaSerializerCE.java:57-61 | app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/AiDatasourceSchemaSerializerCE.java:80-84 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:888 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:888-892 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:918-922 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:888` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:224 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:224-228 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:245-253 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:224` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:128 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:128-132 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:128-132 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java` and `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:274 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:274-278 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:268-272 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java:118 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java:118-122 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:765-769 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/ApplicationGitFileUtilsCEImpl.java:180 — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/ApplicationGitFileUtilsCEImpl.java:180-184 | app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/GitApplicationHelperCEImpl.java:189-193 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:587 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:587-591 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:233-237 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java:106 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java:106-110 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java:518-522 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind `page` to `NewPage` in one and `PageDTO` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java:41 — app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java:41-45 | app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOidcUserServiceCEImpl.java:43-47 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOidcUserServiceCEImpl.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `userRequest` to `OAuth2UserRequest` in one and `OidcUserRequest` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration009UpdateOracleLogoToSVG.java:24 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration009UpdateOracleLogoToSVG.java:24-28 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration018UpdateOraclePluginDocumentationLink.java:24-29 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:248 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:248-252 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:230-234 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:246` calls `queryParam` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:228` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 2) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:403 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:403-407 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/utils/RedshiftDatasourceUtils.java:55-59 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×22
  • Focus outline removed in CSS without a :focus replacement app/client/public/privacy-policy.html:51 — `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 app/client/public/404.css:85 — `.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 app/client/public/static/js/skins/ui/oxide/content.css:42 — `.tox-comments-visible span.tox-comment:not([data-mce-selected])` 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 app/client/public/static/js/skins/ui/oxide/content.css:534 — `.mce-content-body.mce-content-readonly *[contentEditable=true]: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 app/client/public/static/js/skins/ui/oxide/content.css:556 — `.mce-content-body td[data-mce-selected] *` 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 app/client/public/static/js/skins/ui/oxide/skin.css:45 — `.tox *:not(svg):not(rect)` 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 app/client/public/static/js/skins/ui/oxide/skin.css:91 — `.tox-tinymce *: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 app/client/public/static/js/skins/ui/oxide/skin.css:305 — `.tox .tox-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 app/client/public/static/js/skins/ui/oxide/skin.css:420 — `.tox .tox-button--secondary` 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 app/client/public/static/js/skins/ui/oxide/skin.css:1085 — `.tox .tox-swatches__picker-btn` 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 app/client/public/static/js/skins/ui/oxide/skin.css:2070 — `.tox .tox-toolbar-textfield` 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 app/client/public/static/js/skins/ui/oxide/skin.css:2484 — `.tox .tox-mbtn` 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 app/client/packages/storybook/.storybook/styles.css:35 — `*: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 app/client/packages/design-system/widgets/src/components/TagGroup/src/styles.module.css:81 — `.tag [slot="remove"]` 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 app/client/packages/design-system/widgets/src/components/TagGroup/src/styles.module.css:28 — `.tag` 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 app/client/packages/design-system/widgets/src/components/Modal/src/styles.module.css:14 — `.overlay .content` 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 app/client/packages/design-system/widgets/src/components/Input/src/styles.module.css:23 — `.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 app/client/packages/design-system/ads/src/__theme__/default/index.css:255 — `: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 app/client/packages/design-system/ads/src/Select/rc-styles.css:74 — `.rc-select-single:not(.rc-select-customize-input) .rc-select-selector .rc-select-selection-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 app/client/packages/design-system/ads/src/Select/rc-styles.css:133 — `.rc-select-multiple .rc-select-selector .rc-select-selection-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 app/client/packages/design-system/ads/src/Select/styles.css:339 — `.ads-v2-select__dropdown .rc-select-item.rc-select-item-option.rc-select-item-option-active` 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 app/client/packages/design-system/ads/src/Select/styles.css:386 — `.ads-v2-select__dropdown .ads-v2-search-input 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.
D36 · Supply-chain Provenance & Signing REDACTED · ×19
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×18
  • Duplicated block (6 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:240 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:240-245 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:251-256 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:240` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:181 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:181-186 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:190-195 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) REDACTED:226 — REDACTED:226-231 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/ExecutionUtils.java:48-55 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:226` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) REDACTED:321 — REDACTED:321-326 | REDACTED:186-192 — before extracting anything, compare `REDACTED` and `REDACTED` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:321` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:90 — app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:90-95 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:98-103 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:90` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:168 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:168-173 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:187-192 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:168` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java:507 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java:507-512 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:610-615 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:792 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:792-797 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:844-850 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:842` calls `getRefName` and `app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:790` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:479 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:479-484 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:745-750 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration028TagUserManagementRolesWithoutDefaultDomainTypeAndId.java:55 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration028TagUserManagementRolesWithoutDefaultDomainTypeAndId.java:55-60 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration029PopulateDefaultDomainIdInUserManagementRoles.java:56-61 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration028TagUserManagementRolesWithoutDefaultDomainTypeAndId.java:55` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1525 — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1525-1530 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextServiceCEImpl.java:578-583 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1525` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:303 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:303-308 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:342-347 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:303` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:37 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:37-42 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java:37-42 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutableDependencyEdge.java:58 — app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutableDependencyEdge.java:58-63 | app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutionDependencyEdge.java:52-57 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomPermissionGroupRepositoryCEImpl.java:41 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomPermissionGroupRepositoryCEImpl.java:41-46 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomUserRepositoryCEImpl.java:112-117 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsLambdaPlugin.java:351 — app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsLambdaPlugin.java:351-356 | app/server/appsmith-plugins/smtpPlugin/src/main/java/com/external/plugins/SmtpPlugin.java:231-236 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java:56 — app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java:56-61 | app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionControllerCE.java:58-63 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionControllerCE.java:58` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind `resource` to `ActionCollectionDTO` in one and `ActionDTO` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java:144 — app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java:144-149 | app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/PageControllerCE.java:139-144 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
AC6 · Visual & motion safety · Animation without a prefers-reduced-motion guard · ×17
  • Animation without a prefers-reduced-motion guard deploy/docker/fs/opt/appsmith/templates/loading.html:82 — `.loader` moves (`animation: spin 1s linear infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/src/App.css:6 — `.App-logo` moves (`animation: App-logo-spin infinite 20s linear`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:1061 — `.tox .tox-swatch` moves (`transition: transform 0.15s, box-shadow 0.15s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:2555 — `.tox .tox-notification` moves (`transition: transform 100ms ease-in, opacity 150ms ease-in`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:2678 — `.tox .tox-pop--resizing` moves (`transition: width 0.1s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:2825 — `.tox .tox-sidebar--sliding-growing` moves (`transition: width 0.5s ease, opacity 0.5s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:2886 — `.tox .tox-spinner > div` moves (`animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:3527 — `.tox .tox-toolbar__overflow--growing` moves (`transition: height 0.3s ease, opacity 0.2s linear 0.1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:3530 — `.tox .tox-toolbar__overflow--shrinking` moves (`transition: opacity 0.3s ease, height 0.2s linear 0.1s, visibility 0s linear 0.3s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:3815 — `.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron` moves (`transition: transform 0.5s ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/public/static/js/skins/ui/oxide/skin.css:3850 — `.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing` moves (`transition: height 0.5s ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/packages/design-system/widgets/src/components/Spinner/src/styles.module.css:2 — `.spinner` moves (`animation: spin 1s linear infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/packages/design-system/widgets/src/components/Sidebar/src/styles.module.css:75 — `.sidebar` moves (`transition: left 300ms ease-in-out, right 300ms ease-in-out, width 300ms ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/packages/design-system/widgets/src/components/Sheet/src/styles.module.css:60 — `.start[data-entering]` moves (`animation: slide-in-start 0.3s cubic-bezier(0.4, 0, 0.2, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/packages/design-system/widgets/src/components/Sheet/src/styles.module.css:64 — `.start[data-exiting]` moves (`animation: slide-out-start 0.3s cubic-bezier(0.4, 0, 0.2, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/packages/design-system/widgets/src/components/Sheet/src/styles.module.css:76 — `.end[data-entering]` moves (`animation: slide-in-end 0.3s cubic-bezier(0.4, 0, 0.2, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard app/client/packages/design-system/widgets/src/components/Sheet/src/styles.module.css:80 — `.end[data-exiting]` moves (`animation: slide-out-end 0.3s cubic-bezier(0.4, 0, 0.2, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
D30 · Dependency Vulnerabilities · Medium CVE · ×17
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×16
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×16
  • Duplicated block (11 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:653 — app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:653-663 | app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:682-692 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:653` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (11 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:120 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:120-130 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2ClientCredentials.java:100-110 — before extracting anything, compare `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java` and `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2ClientCredentials.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:120` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:229 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:229-239 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:244-254 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:229` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) REDACTED:474 — REDACTED:474-484 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:640-650 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:640` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `REDACTED:471` calls `debug`, `currentThread`, `getName` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:639` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:320 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:320-330 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:633-643 — before extracting anything, compare `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:320` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:644` calls `getRequestedAt`, `setRequestedAt` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:331` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:545 — app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:545-555 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:203-213 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:545` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/refactors/ActionCollectionRefactoringServiceCEImpl.java:158 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/refactors/ActionCollectionRefactoringServiceCEImpl.java:158-168 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:210-220 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/refactors/ActionCollectionRefactoringServiceCEImpl.java:158` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:389 — app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:389-399 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/GitRedisUtils.java:56-66 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:389` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:801 — app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:801-811 | app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:825-835 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:801` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java:539 — app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java:539-551 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java:838-848 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java:539` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:81 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:81-91 | app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:134-144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:81` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:216 — app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:216-226 | app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:433-443 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:216` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:214` calls `name`, `tap`, `observation` and `app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:432` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:901 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:901-911 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:959-969 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:901` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration013AddEmailBodyTypeToSMTPPlugin.java:33 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration013AddEmailBodyTypeToSMTPPlugin.java:33-43 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration013AddEmailBodyTypeToSMTPPlugin.java:46-56 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:597 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:597-607 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:885-895 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:597` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:163 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:163-173 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:163-173 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java` and `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
R11 · Import Boundaries · Boundary violation [fsd · ×16
  • Boundary violation [fsd:cross-slice] app/client/src/entities/Action/actionProperties.test.ts:2 — app/client/src/entities/Action/actionProperties.test.ts:2 imports app/client/src/entities/Plugin/index.ts against the feature-sliced rules.
  • Boundary violation [fsd:cross-slice] app/client/src/entities/Action/index.ts:7 — app/client/src/entities/Action/index.ts:7 imports app/client/src/entities/Plugin/index.ts against the feature-sliced rules.
  • Boundary violation [fsd:upward-import] app/client/src/entities/AppTheming/utils.test.ts:3 — app/client/src/entities/AppTheming/utils.test.ts:3 imports app/client/src/widgets/ButtonWidget/index.ts against the feature-sliced rules.
  • Boundary violation [fsd:upward-import] app/client/src/entities/AppTheming/utils.test.ts:4 — app/client/src/entities/AppTheming/utils.test.ts:4 imports app/client/src/widgets/TableWidget/index.ts against the feature-sliced rules.
  • Boundary violation [fsd:upward-import] app/client/src/entities/AppTheming/utils.test.ts:5 — app/client/src/entities/AppTheming/utils.test.ts:5 imports app/client/src/widgets/JSONFormWidget/index.ts against the feature-sliced rules.
  • Boundary violation [fsd:upward-import] app/client/src/entities/AppTheming/utils.ts:9 — app/client/src/entities/AppTheming/utils.ts:9 imports app/client/src/widgets/WidgetUtils.ts against the feature-sliced rules.
  • Boundary violation [fsd:upward-import] app/client/src/entities/AppTheming/utils.ts:10 — app/client/src/entities/AppTheming/utils.ts:10 imports app/client/src/widgets/JSONFormWidget/constants.ts against the feature-sliced rules.
  • Boundary violation [fsd:upward-import] app/client/src/entities/AppTheming/utils.ts:11 — app/client/src/entities/AppTheming/utils.ts:11 imports app/client/src/widgets/JSONFormWidget/helper.ts against the feature-sliced rules.
  • Boundary violation [fsd:cross-slice] app/client/src/entities/DataTree/dataTreeWidget.ts:1 — app/client/src/entities/DataTree/dataTreeWidget.ts:1 imports app/client/src/entities/Widget/utils.ts against the feature-sliced rules.
  • Boundary violation [fsd:cross-slice] app/client/src/entities/DependencyMap/__tests__/DependencyMapUtils.test.ts:3 — app/client/src/entities/DependencyMap/__tests__/DependencyMapUtils.test.ts:3 imports app/client/src/entities/Plugin/index.ts against the feature-sliced rules.
  • Boundary violation [fsd:cross-slice] app/client/src/entities/Engine/factory.ts:1 — app/client/src/entities/Engine/factory.ts:1 imports app/client/src/entities/App.ts against the feature-sliced rules.
  • Boundary violation [fsd:cross-slice] app/client/src/entities/Engine/index.ts:17 — app/client/src/entities/Engine/index.ts:17 imports app/client/src/entities/URLRedirect/factory.ts against the feature-sliced rules.
  • Boundary violation [fsd:cross-slice] app/client/src/entities/URLRedirect/DefaultURLRedirect.ts:3 — app/client/src/entities/URLRedirect/DefaultURLRedirect.ts:3 imports app/client/src/entities/App.ts against the feature-sliced rules.
  • Boundary violation [fsd:cross-slice] app/client/src/entities/URLRedirect/SlugURLRedirect.ts:3 — app/client/src/entities/URLRedirect/SlugURLRedirect.ts:3 imports app/client/src/entities/App.ts against the feature-sliced rules.
  • Boundary violation [fsd:upward-import] app/client/src/entities/Widget/utils.test.ts:3 — app/client/src/entities/Widget/utils.test.ts:3 imports app/client/src/widgets/TableWidget/widget/propertyConfig.ts against the feature-sliced rules.
  • Boundary violation [fsd:upward-import] app/client/src/entities/Widget/utils.test.ts:4 — app/client/src/entities/Widget/utils.test.ts:4 imports app/client/src/widgets/ChartWidget/widget/propertyConfig.ts against the feature-sliced rules.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×15
  • Duplicated block (7 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:126 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:126-132 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:181-187 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:126` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:489 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:489-495 | app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java:264-270 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) REDACTED:353 — REDACTED:353-359 | REDACTED:823-829 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:353` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:494 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:494-500 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:518-524 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:482 — app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:482-488 | app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:673-679 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:482` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:667` calls `removeSpecialCharactersFromKeys` and `app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:476` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:199 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:199-205 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:306-312 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:871 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:871-879 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:881-887 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:871` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:896 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:896-902 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:926-932 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:896` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:761 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:761-767 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:778-784 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:761` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:786` calls `isObject`, `path` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:769` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:785 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:785-791 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:801-807 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCEImpl.java:473 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCEImpl.java:473-479 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCEImpl.java:517-523 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:196 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:196-202 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:196-202 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java` and `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/AppsmithAiPlugin.java:85 — app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/AppsmithAiPlugin.java:85-91 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/TriggerServiceCEImpl.java:93-99 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:430 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:430-436 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/NewActionImportableServiceCEImpl.java:171-177 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:46 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:46-52 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java:46-52 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:46` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×14
  • Duplicated block (10 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:359 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:359-368 | app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:424-433 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:359` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:113 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:113-122 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:125-134 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:124` calls `get` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:112` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) REDACTED:285 — REDACTED:285-294 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:331-340 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:285` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:111 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:111-120 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:386-395 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:111` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:287 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:287-296 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:489-498 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:287` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutableDependencyEdge.java:35 — app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutableDependencyEdge.java:35-44 | app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutionDependencyEdge.java:35-44 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/WidgetSpecificUtils.java:15 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/WidgetSpecificUtils.java:15-24 | app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/WidgetSpecificUtils.java:45-54 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/WidgetSpecificUtils.java:15` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:474 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:474-483 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:615-624 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:415 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:415-424 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:563-572 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:211 — app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:211-220 | app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:619-628 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:211` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutableDependencyEdge.java:19 — app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutableDependencyEdge.java:19-28 | app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ExecutionDependencyEdge.java:19-28 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextInvalidationSubscriber.java:119 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextInvalidationSubscriber.java:119-128 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/InstanceRestartSubscriber.java:82-91 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/AnthropicMethodStrategy.java:32 — app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/AnthropicMethodStrategy.java:32-41 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/utils/GoogleAIMethodStrategy.java:30-39 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/CustomJSLibCE.java:115 — app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/CustomJSLibCE.java:115-124 | app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/ce/CustomJSLibContextCE_DTO.java:18-27 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×14
  • Duplicated block (8 lines × 2) app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:66 — app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:66-73 | app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java:70-77 — before extracting anything, compare `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java` and `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) REDACTED:301 — REDACTED:301-308 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:346-353 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:301` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:419 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:419-426 | app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:461-468 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:419` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1289 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1289-1296 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1317-1324 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1289` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:879 — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:879-886 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java:457-464 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:879` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/exportable/PluginExportableServiceCEImpl.java:46 — app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/exportable/PluginExportableServiceCEImpl.java:46-53 | app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/importable/PluginImportableServiceCEImpl.java:44-51 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/exportable/PluginExportableServiceCEImpl.java:46` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/exportable/PluginExportableServiceCEImpl.java:44` calls `getById`, `getArtifact`, `getWorkspaceId` and `app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/importable/PluginImportableServiceCEImpl.java:42` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1210 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1210-1217 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1220-1227 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1210` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1207` calls `add`, `createStep` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1217` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/MockDataServiceCEImpl.java:151 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/MockDataServiceCEImpl.java:151-158 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/MockDataServiceCEImpl.java:191-198 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:111 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:111-118 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:130-137 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:111` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/server/reactive-caching/src/main/java/com/appsmith/caching/aspects/DistributedLockAspect.java:97 — app/server/reactive-caching/src/main/java/com/appsmith/caching/aspects/DistributedLockAspect.java:97-104 | app/server/reactive-caching/src/main/java/com/appsmith/caching/aspects/DistributedLockAspect.java:122-129 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/reactive-caching/src/main/java/com/appsmith/caching/aspects/DistributedLockAspect.java:97` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileDeleteMethod.java:30 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileDeleteMethod.java:30-37 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:89-97 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:164 — app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:164-171 | app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java:241-248 — before extracting anything, compare `app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java` and `app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java:82 — app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java:82-90 | app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOidcUserServiceCEImpl.java:88-95 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOidcUserServiceCEImpl.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/exportable/DatasourceExportableServiceCEImpl.java:117 — app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/exportable/DatasourceExportableServiceCEImpl.java:117-124 | app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/fork/DatasourceStorageForkableServiceCEImpl.java:85-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×13
  • Duplicated block (12 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:132 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:132-143 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2ClientCredentials.java:112-123 — before extracting anything, compare `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java` and `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2ClientCredentials.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:132` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:177 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:177-188 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:177-188 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java` and `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:274 — app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:274-285 | app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:291-302 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:274` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:324 — app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:324-335 | app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:316-327 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:324` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:328` calls `setMessages` and `app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:336` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (12 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:69 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:69-80 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:99-110 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) REDACTED:360 — REDACTED:360-371 | REDACTED:628-639 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:407 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:407-418 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:105-117 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:407` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:297 — app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:297-308 | app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:474-485 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:297` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:444 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:444-455 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:486-497 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:125 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:125-136 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:191-202 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:125` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:520 — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:520-531 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:716-727 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:520` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:149 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:149-160 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:149-160 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java` and `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:850 — app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:850-861 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration020TransferToDatasourceStorage.java:153-164 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration020TransferToDatasourceStorage.java:153` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×12
  • Duplicated block (17 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:490 — app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:490-506 | app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:529-545 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/files/FileUtilsCEImpl.java:490` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/plugins/PluginExecutor.java:143 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/plugins/PluginExecutor.java:143-159 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/plugins/PluginExecutor.java:350-366 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/plugins/PluginExecutor.java:143` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:64 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:64-80 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:64-80 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java` and `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (17 lines × 2) app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:76 — app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:76-92 | app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java:79-95 — before extracting anything, compare `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java` and `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:76` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (17 lines × 2) app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsLambdaPlugin.java:164 — app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsLambdaPlugin.java:164-180 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsLambdaPlugin.java:187-203 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsLambdaPlugin.java:164` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:573 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:573-589 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:278-294 — before extracting anything, compare `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (17 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitSolutionCEImpl.java:146 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitSolutionCEImpl.java:146-162 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitSolutionCEImpl.java:341-357 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitSolutionCEImpl.java:146` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:99 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:99-115 | app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:152-168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:329 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:329-345 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:389-405 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:329` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:522 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:522-538 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:582-598 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:522` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/AccessDeniedHandlerCE.java:1 — app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/AccessDeniedHandlerCE.java:1-17 | app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/AuthenticationEntryPointCE.java:1-29 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/AccessDeniedHandlerCE.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ImportArtifactPermissionProvider.java:31 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ImportArtifactPermissionProvider.java:31-47 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/WorkspaceServiceImpl.java:35-52 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ImportArtifactPermissionProvider.java:31` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×11
  • Duplicated block (13 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1373 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1373-1385 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1447-1459 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1373` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1372` calls `stopAndLogTimeInMillis` and `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1446` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (13 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/PluginUtils.java:247 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/PluginUtils.java:247-259 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/PluginUtils.java:284-296 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/PluginUtils.java:247` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) REDACTED:133 — REDACTED:133-145 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:124-136 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:210 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:210-222 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:233-245 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:124 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:124-136 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:187-199 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:124` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:137` calls `debug` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:200` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (13 lines × 2) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:90 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:90-102 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1236-1248 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:90` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:239 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:239-251 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:391-403 — before extracting anything, compare `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:239` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:237` calls `error`, `getMessage`, `printStackTrace` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:383` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (13 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:117 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:117-129 | app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:170-182 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:117` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration035AddAnthropicPlugin.java:37 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration035AddAnthropicPlugin.java:37-49 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration040AddAppsmithAiPlugin.java:37-49 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration035AddAnthropicPlugin.java:37` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration038AddGoogleAIPlugin.java:39 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration038AddGoogleAIPlugin.java:39-51 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration039AddDatabricksPlugin.java:40-52 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration038AddGoogleAIPlugin.java:39` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:65 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:65-77 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java:65-77 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D15 · Churn × Complexity Hotspots · Hotspot · ×9
  • Hotspot: app/client/packages/mcp/src/app.ts app/client/packages/mcp/src/app.ts:2516 — app/client/packages/mcp/src/app.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 412 in app.buildMcpServer at line 2516. 5 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/client/packages/mcp/src/app.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: app/client/src/pages/AdminSettings/SettingsForm.tsx app/client/src/pages/AdminSettings/SettingsForm.tsx:107 — app/client/src/pages/AdminSettings/SettingsForm.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in SettingsForm.SettingsForm at line 107. 2 of those changes were fix/bug commits, and the other 3 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/client/src/pages/AdminSettings/SettingsForm.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: app/client/src/widgets/RichTextEditorWidget/component/index.tsx app/client/src/widgets/RichTextEditorWidget/component/index.tsx:422 — app/client/src/widgets/RichTextEditorWidget/component/index.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in index.RichtextEditorComponent at line 422. 1 of those changes was a fix/bug commit, and the other 1 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/client/src/widgets/RichTextEditorWidget/component/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: app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:414 — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in EnvManagerCEImpl.applyChanges at line 414. 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java`: 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: app/client/src/ce/components/editorComponents/GlobalAISidePanel/index.tsx app/client/src/ce/components/editorComponents/GlobalAISidePanel/index.tsx:142 — app/client/src/ce/components/editorComponents/GlobalAISidePanel/index.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in index.GlobalAISidePanel at line 142. 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/client/src/ce/components/editorComponents/GlobalAISidePanel/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: app/client/config/webpack.config.js app/client/config/webpack.config.js:82 — app/client/config/webpack.config.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in exports at line 82. 1 of those changes was a fix/bug commit, and the other 1 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/client/config/webpack.config.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: app/client/src/ce/components/editorComponents/GPT/AISidePanel.tsx app/client/src/ce/components/editorComponents/GPT/AISidePanel.tsx:152 — app/client/src/ce/components/editorComponents/GPT/AISidePanel.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in AISidePanel.AISidePanel at line 152. 1 of those changes was a fix/bug commit, and the other 1 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/client/src/ce/components/editorComponents/GPT/AISidePanel.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: app/client/src/components/propertyControls/DropDownControl.tsx app/client/src/components/propertyControls/DropDownControl.tsx:61 — app/client/src/components/propertyControls/DropDownControl.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in DropDownControl.render at line 61. 1 of those changes was a fix/bug commit, and the other 1 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/client/src/components/propertyControls/DropDownControl.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: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:815 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in AIAssistantServiceCEImpl.callAzureOpenAIAPI at line 815. 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java`: 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.
D29 · Static Analysis (SAST) · REDACTED · ×9
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×9
  • Recursive walk over a caller-supplied document has no depth cap app/client/src/workers/Evaluation/helpers.ts:152 — `stringifyFnsInObject` is exported, takes a document from its caller (line 100) and hands it to `parseFunctionsInObject`, which calls itself at line 152 (`parseFunctionsInObject`) with a piece of `userObject` (and at line 169) — and nowhere in `parseFunctionsInObject` 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 `parseFunctionsInObject` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap app/client/src/utils/DynamicBindingUtils.ts:537 — `getDynamicBindingsChangesSaga` is exported, takes a document from its caller (line 548) and hands it to `getDynamicValuePaths`, which calls itself at line 537 (`getDynamicValuePaths`) with a piece of `val` (and at line 543) — and nowhere in `getDynamicValuePaths` 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 `getDynamicValuePaths` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap app/client/src/utils/helpers.tsx:668 — `flattenObject` is exported, takes a document from its caller (line 656) and hands it to `recurse`, which calls itself at line 668 (`recurse`) with a piece of `cur` (and at line 676) — and nowhere in `recurse` 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 `recurse` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap app/client/src/utils/FilterInternalProperties/Common.ts:30 — `createObjectPeekData` is exported and takes `defs: any` from its caller, and it calls itself at line 30 (`createObjectPeekData`) with a piece of `defs` — and nowhere in `createObjectPeekData` 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 `createObjectPeekData` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap app/client/src/sagas/WidgetOperationUtils.ts:1791 — `getValueFromTree` is exported and takes `obj: Record<string, unknown>` from its caller, and it calls itself at line 1791 (`getValueFromTree`) with a piece of `obj` — and nowhere in `getValueFromTree` 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 `getValueFromTree` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap app/client/src/sagas/helper.ts:226 — `cleanValuesInObjectForHashing` is exported and takes `obj: Record<string, unknown>` from its caller, and it calls itself at line 226 (`cleanValuesInObjectForHashing`) with a piece of `obj` — and nowhere in `cleanValuesInObjectForHashing` 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 `cleanValuesInObjectForHashing` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap app/client/src/components/formControls/utils.ts:59 — `getTrimmedData` is exported and takes `formData: any` from its caller, and it calls itself at line 59 (`getTrimmedData`) with a piece of `formData` — and nowhere in `getTrimmedData` 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 `getTrimmedData` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap app/client/src/ce/selectors/entitiesSelector.ts:1326 — `getActionValidationConfig` is exported, takes a document from its caller (line 1273) and hands it to `getActionValidationConfigFromPlugin`, which calls itself at line 1326 (`getActionValidationConfigFromPlugin`) with a piece of `editorConfigs` — and nowhere in `getActionValidationConfigFromPlugin` 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 `getActionValidationConfigFromPlugin` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap app/client/packages/mcp/src/builder/semantic.ts:550 — `canonicalStableSerialize` is exported and takes `value: unknown` from its caller, and it calls itself at line 550 (`canonicalStableSerialize`) with a piece of `value` (and at line 564) — and nowhere in `canonicalStableSerialize` 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 `canonicalStableSerialize` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
AC2 · Forms & labels · <Select> field component without a label · ×8
  • <Select> field component without a label app/client/src/PluginActionEditor/components/PluginActionForm/components/GraphQLEditor/Pagination.tsx:253 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <Select> field component without a label app/client/src/ce/pages/Applications/index.tsx:1268 — This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <Select> field component without a label app/client/src/components/editorComponents/WidgetQueryGeneratorForm/DatasourceSpecificControls/GoogleSheetControls/SheetsDropdown/index.tsx:28 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <Select> field component without a label app/client/src/components/editorComponents/WidgetQueryGeneratorForm/WidgetSpecificControls/OtherFields/Field/Dropdown/Dropdown.tsx:45 — This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <Select> field component without a label app/client/src/components/editorComponents/form/fields/DropdownField.tsx:27 — This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <Select> field component without a label app/client/src/components/editorComponents/form/fields/DropdownFieldWrapper.tsx:33 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <Select> field component without a label app/client/src/components/editorComponents/form/fields/DropdownWrapper.tsx:82 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <Select> field component without a label app/client/src/components/propertyControls/PrimaryColumnDropdownControl.tsx:65 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×8
  • Duplicated block (14 lines × 2) app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:95 — app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:95-108 | app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java:98-111 — before extracting anything, compare `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java` and `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:95` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:344 — app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:344-357 | app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:173-186 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (14 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:49 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:49-62 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:63-76 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:49` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:85 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:85-98 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:85-98 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:85` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (14 lines × 2) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:844 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:844-857 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:481-494 — before extracting anything, compare `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration059PolicySetToPolicyMap.java:74 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration059PolicySetToPolicyMap.java:74-87 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration062AddEmptyPolicyMapForNullValues.java:74-87 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration059PolicySetToPolicyMap.java:74` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:262 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:262-275 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:284-297 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:262` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) REDACTED:408 — REDACTED:408-421 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/UserSignupCEImpl.java:140-153 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D2 · Cognitive Complexity · (anonymous) (cognitive 17) · ×7
  • (anonymous) (cognitive 17) app/client/public/libraries/jsonwebtoken@8.5.1.js:674 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 4, error handling 2. None of this is in the body itself: all 17 points belong to 13 function items inside it that branch (b, u, y, …). 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.
  • (anonymous) (cognitive 17) app/client/public/libraries/jsonwebtoken@8.5.1.js:6883 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 7, loops 1 (2 pts), ternaries 1 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 8 function items inside it that branch (_update, _final, a function literal at line 6897, …). 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.
  • (anonymous) (cognitive 17) app/client/public/libraries/jsonwebtoken@8.5.1.js:14574 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, loops 3, if/else 1, ternaries 1. None of this is in the body itself: all 17 points belong to 16 function items inside it that branch (_prepareBlock, g, w, …). 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.
  • (anonymous) (cognitive 17) app/client/public/libraries/jsonwebtoken@8.5.1.js:16036 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (7 pts), boolean chains 6, ternaries 4 (nesting depth added 3). None of this is in the body itself: all 17 points belong to 6 function items inside it that branch (exports, h, a function literal at line 16055, …). 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.
  • (anonymous) (cognitive 17) app/client/public/libraries/jsonwebtoken@8.5.1.js:17991 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, ternaries 3. None of this is in the body itself: all 17 points belong to 4 function items inside it that branch (destroy, a function literal at line 18012, undestroy, …). 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.
  • (anonymous) (cognitive 17) REDACTED:963 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2, ternaries 2 (nesting depth added 5). None of this is in the body itself: all 17 points belong to 6 function items inside it that branch (parseWithComments, parseRow, removeBOM, …). 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.
  • (anonymous) (cognitive 17) REDACTED:7064 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, ternaries 3. None of this is in the body itself: all 17 points belong to 4 function items inside it that branch (destroy, a function literal at line 7085, undestroy, …). 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.
D31 · IaC & Container Security · Medium IaC · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×7
  • Members sharing a duplicated core (4 members, 50+ identical tokens) REDACTED:761 — REDACTED:761-840 | REDACTED:459-531 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:367-446 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1046-1157 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AmazonS3ErrorUtils.java:49 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AmazonS3ErrorUtils.java:49-97 | app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/utils/ArangoDBErrorUtils.java:36-95 | app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/utils/MongoErrorUtils.java:28-97 | app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlErrorUtils.java:27-58 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/ImageClassificationServiceImpl.java:27 — app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/ImageClassificationServiceImpl.java:27-43 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/ImageEntityExtractionServiceImpl.java:27-42 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/TextClassificationServiceImpl.java:27-42 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/TextEntityExtractionServiceImpl.java:27-42 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:106 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:106-175 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:796-1036 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:559-622 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:123-176 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:261 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:261-281 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:283-303 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:305-320 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:326-357 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:473 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:473-547 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:555-607 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:614-732 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:823-895 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:369 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:369-692 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:945-1053 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1061-1183 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1186-1344 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×7
  • Duplicated block (15 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:754 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:754-768 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:838-852 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:754` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:853` calls `stopAndLogTimeInMillis` and `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:769` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (15 lines × 2) REDACTED:329 — REDACTED:329-343 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:312-326 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:329` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/GitApplicationHelperCEImpl.java:127 — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/GitApplicationHelperCEImpl.java:127-141 | app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/GitApplicationHelperCEImpl.java:147-161 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/GitApplicationHelperCEImpl.java:127` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/GitApplicationHelperCEImpl.java:126` calls `setRefType` and `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/git/GitApplicationHelperCEImpl.java:146` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (15 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:831 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:831-845 | app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:880-894 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:878` calls `check` and `app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java:829` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (15 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:452 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:452-466 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:628-642 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:452` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:402 — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:402-416 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:586-600 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:402` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:704 — app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:704-718 | app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:908-922 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:704` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×7
  • Duplicated block (9–10 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:276 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:276-285 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:340-348 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:276` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:310 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:310-319 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:618-626 — before extracting anything, compare `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:310` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9–10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:175 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:175-184 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/NewActionImportableServiceCEImpl.java:325-333 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:175` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:792 — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:792-801 | app/server/appsmith-server/src/main/java/com/appsmith/server/artifacts/base/ArtifactServiceCEImpl.java:217-225 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:792` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/EmailServiceCEImpl.java:92 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/EmailServiceCEImpl.java:92-100 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/EmailServiceCEImpl.java:155-164 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/EmailServiceCEImpl.java:92` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserWorkspaceServiceCEImpl.java:276 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserWorkspaceServiceCEImpl.java:276-284 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserWorkspaceServiceCEImpl.java:347-356 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserWorkspaceServiceCEImpl.java:276` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:102 — app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:102-110 | app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:203-212 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:102` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D2 · Cognitive Complexity · (anonymous) (cognitive 18) · ×6
  • (anonymous) (cognitive 18) app/client/public/libraries/jsonwebtoken@8.5.1.js:8197 — (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 3, ternaries 1 (nesting depth added 3). None of this is in the body itself: all 18 points belong to 5 function items inside it that branch ((anonymous)::exports, (anonymous)::s, a function literal at line 8212, …). 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.
  • (anonymous) (cognitive 18) app/client/public/libraries/jsonwebtoken@8.5.1.js:15473 — (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 5, ternaries 3 (5 pts), boolean chains 1 (nesting depth added 5). None of this is in the body itself: all 18 points belong to 4 function items inside it that branch (toArray, i, o, …). 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.
  • (anonymous) (cognitive 18) app/client/public/libraries/jsonwebtoken@8.5.1.js:17375 — (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 6, ternaries 2. None of this is in the body itself: all 18 points belong to 11 function items inside it that branch (o, a, f, …). 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.
  • (anonymous) (cognitive 18) REDACTED:1590 — (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11, boolean chains 4, if/else 2, error handling 1. Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 1651, a function literal at line 1594, a function literal at line 1624, …). 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.
  • (anonymous) (cognitive 18) REDACTED:3319 — (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, ternaries 8, error handling 1, if/else 1. Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 3320, (anonymous)::m, a function literal at line 3345, …). 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.
  • (anonymous) (cognitive 18) REDACTED:6448 — (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 6, ternaries 2. None of this is in the body itself: all 18 points belong to 11 function items inside it that branch (o, s, u, …). 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.
D29 · Static Analysis (SAST) · REDACTED · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D32 · Data Compliance (PII/GDPR) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×6
  • Outbound HTTP without resilience app/server/appsmith-interfaces/src/main/java/com/appsmith/util/WebClientUtils.java:149 — `WebClient.builder(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:135 — `WebClient.builder(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:388 — `RestClient.builder(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/RTSCallerCEImpl.java:54 — `WebClient.builder(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:322 — `WebClient.create(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience REDACTED:30 — `urllib.request.urlopen(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×6
  • Sync-over-async blocking app/client/cypress/plugins/index.js:120 — `fs.readFileSync` in `exports` 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 app/client/cypress/plugins/index.js:170 — `fs.readFileSync` in `changeVideoSource` 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 app/client/cypress/plugins/index.js:195 — `fs.readFileSync` in `resetVideoSource` 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 app/client/cypress/scripts/util.ts:110 — `fs.readFileSync` in `uploadToS3` 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 app/client/playwright/fixtures/migration.setup.ts:274 — `fs.mkdirSync` in `setup("import v1.9.24 migration app via Git")` 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 app/client/playwright/fixtures/migration.setup.ts:275 — `fs.writeFileSync` in `setup("import v1.9.24 migration app via Git")` 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.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×6
  • Untrusted text written into markup unescaped app/client/src/ce/pages/Upgrade/Carousel.tsx:169 — `detail` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` 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 app/client/src/layoutSystems/anvil/sectionSpaceDistributor/utils/onMouseMoveUtils.ts:159 — ``${columnPosition-currentFlexGrow.leftZone+leftZoneComputedColumnsRoundOff} / ${SectionColumns}`` 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 app/client/src/layoutSystems/anvil/sectionSpaceDistributor/utils/onMouseMoveUtils.ts:208 — `ZoneMinColumnWidth.toString()` 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 app/client/src/layoutSystems/anvil/sectionSpaceDistributor/utils/onMouseMoveUtils.ts:233 — `ZoneMinColumnWidth.toString()` 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 REDACTED:162 — `descriptionHtml` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` 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 REDACTED:149 — ``:root {${cssTokensContent}}`` 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.
AC2 · Forms & labels · <SearchInput> field component without a label · ×5
  • <SearchInput> field component without a label app/client/packages/design-system/ads/src/Templates/EntityExplorer/SearchAndAdd/SearchAndAdd.tsx:19 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <SearchInput> field component without a label app/client/src/PluginActionEditor/components/PluginActionResponse/components/DatasourceTab/TableColumns.tsx:120 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <SearchInput> field component without a label app/client/src/components/editorComponents/Debugger/FilterHeader.tsx:100 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <SearchInput> field component without a label app/client/src/components/editorComponents/Debugger/StateInspector/StateInspector.tsx:40 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <SearchInput> field component without a label app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/DatasourceDropdown/index.tsx:132 — This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 21) · ×5
  • (anonymous) (cyclomatic 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:2922 — (anonymous) 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 11 function items inside it that branch (join, s, readUInt8, …). 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.
  • (anonymous) (cyclomatic 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:8055 — (anonymous) 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 10 function items inside it that branch ((anonymous)::exports, (anonymous)::h, a function literal at line 8138, …). 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.
  • (anonymous) (cyclomatic 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:12325 — (anonymous) 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 12 function items inside it that branch (_importPublic, validate, getPublic, …). 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.
  • (anonymous) (cyclomatic 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:17375 — (anonymous) 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 11 function items inside it that branch (o, a, f, …). 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.
  • (anonymous) (cyclomatic 21) REDACTED:6448 — (anonymous) 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 11 function items inside it that branch (o, s, u, …). 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.
D15 · Churn × Complexity Hotspots · Repeated repair · ×5
  • Repeated repair: deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs:267 — deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs 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 6 (its worst body is caddy-reconfigure.finalizeHtmlFiles at line 267), 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: rate-limit hashed static assets in their own Caddy zone at 10x (APP-16028) (#42286)”; “Revert "feat: embedded MCP server with user-scoped token authentication (#15383)" (#42098)”; “fix: key Caddy rate limit on trusted client IP, restrict trusted_proxies (#42071)”. 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs`: 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: app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java:215 — app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java 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 11 (its worst body is DatasourceServiceCEImpl.createEx at line 215), 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(server): preserve workspace binding on application and datasource update (#42462)”; “fix(security): preserve datasource identity on update (#42356)”; “fix: bind datasource credentials to connection configuration (#42339)”. 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCEImpl.java`: 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: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java:148 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java 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 9 (its worst body is ApplicationPageServiceCEImpl.createPage at line 148), 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(server): add audit context hooks for Git rehydrate and artifact copy (#42429)”; “fix(server): require edit permission for editor-mode page reads (#42425)”; “fix: load the cloned page once and bound fan-out when cloning page actions (#42228)”. 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java`: 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: app/server/appsmith-server/src/main/java/com/appsmith/server/filters/McpAllowlistWebFilter.java app/server/appsmith-server/src/main/java/com/appsmith/server/filters/McpAllowlistWebFilter.java:192 — app/server/appsmith-server/src/main/java/com/appsmith/server/filters/McpAllowlistWebFilter.java 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 8 (its worst body is McpAllowlistWebFilter.validateExtensionRule at line 192), 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(mcp): give create_branch a 120s budget and return the existing branch's applicationId on branch_exists (#42413)”; “fix(mcp): close the JS-object create/update bugs and authoring gaps from the Banner editor (#42311)”; “Revert "feat: embedded MCP server with user-scoped token authentication (#15383)" (#42098)”. 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/server/appsmith-server/src/main/java/com/appsmith/server/filters/McpAllowlistWebFilter.java`: 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: app/client/src/plugins/Linting/constants.ts app/client/src/plugins/Linting/constants.ts:14 — app/client/src/plugins/Linting/constants.ts 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 2 (its worst body is constants.lintOptions at line 14), 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: stop false 'is not defined' lint errors for Blob, URL, FormData and other worker web APIs (#42381)”; “fix: prevent custom widget builder crash on large syntax errors (#42198)”; “fix: stop false 'Intl is not defined' lint error (#42080)”. 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-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-28 15:40:41 -05:00' --until='2026-10-26 15:40:41 -05:00' --full-history --no-merges -- app/client/src/plugins/Linting/constants.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.
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×5
  • Duplicated block (16 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:183 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:183-198 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2ClientCredentials.java:163-178 — before extracting anything, compare `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java` and `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2ClientCredentials.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/CommandUtils.java:42 — app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/CommandUtils.java:42-57 | app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java:201-216 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1363 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1363-1378 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/utils/RedshiftDatasourceUtils.java:83-98 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1363` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/utils/RedshiftDatasourceUtils.java:82` calls `getConnection` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1360` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (16 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:874 — app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:874-889 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:152-167 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:874` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:516 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:516-531 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:572-587 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×5
  • Duplicated block (6 lines × 3) REDACTED:285 — REDACTED:285-290 | REDACTED:531-536 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:269-274 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (6 lines × 3) app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:251 — app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:251-256 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:262-267 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:273-278 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:251` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 3) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:127 — app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:127-132 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/plugins/GoogleSheetsPlugin.java:336-341 | app/server/appsmith-plugins/restApiPlugin/src/main/java/com/external/plugins/RestApiPlugin.java:334-339 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:127` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:174 — app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:174-179 | app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/EmbeddingsCommand.java:130-135 | app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java:251-256 — before extracting anything, compare `app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java` and `app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionControllerCE.java:163 — app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionControllerCE.java:163-171 | app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/DatasourceControllerCE.java:60-66 | app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/PluginControllerCE.java:48-53 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionControllerCE.java:163` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D6 · Cohesion (LCOM4) · Low cohesion · ×5
  • Low cohesion: AggregateHelper (LCOM4 20) app/client/cypress/support/Pages/AggregateHelper.ts:55 — AggregateHelper's methods fall into 20 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 20 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: Table (LCOM4 7) app/client/cypress/support/Pages/Table.ts:33 — Table's methods fall into 7 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 7 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: DataSources (LCOM4 4) REDACTED:53 — DataSources'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: AnvilSectionsZonesHelper (LCOM4 4) app/client/cypress/support/Pages/Anvil/AnvilSectionsZonesHelper.ts:6 — AnvilSectionsZonesHelper'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: FocusRetention (LCOM4 4) app/client/src/sagas/FocusRetentionSaga.ts:41 — FocusRetention'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.
AC2 · Forms & labels · <TextField> field component without a label · ×4
  • <TextField> field component without a label app/client/packages/design-system/widgets/src/components/MultiSelect/src/MultiSelect.tsx:145 — This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <TextField> field component without a label app/client/packages/design-system/widgets/src/testing/ComplexForm.tsx:142 — This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <TextField> field component without a label app/client/packages/design-system/widgets/src/testing/ComplexForm.tsx:170 — This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <TextField> field component without a label app/client/src/components/formControls/FixedKeyInputControl.tsx:20 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
AC4 · Keyboard semantics · Anchor without href · ×4
  • Anchor without href app/client/src/pages/AppIDE/components/AppSettings/components/PageSettings.tsx:447 — 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.
  • Anchor without href app/client/src/widgets/ListWidget/component/ListPagination.tsx:456 — 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.
  • Anchor without href app/client/src/widgets/ListWidgetV2/component/ListPagination.tsx:456 — 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.
  • Anchor without href app/client/src/widgets/SelectWidget/component/index.tsx:225 — 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.
AX2 · Stateful singletons · Stateful singleton · ×4
  • Stateful singleton: CommonConfig app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CommonConfig.java:35 — `CommonConfig` is a singleton (@Configuration: the container shares one instance across every request thread) but mutates instance state outside any lock (allowedDomains, allowedDomainsForOauth; e.g. `allowedDomains` in `getAllowedDomains` at line 126).
  • Stateful singleton: CacheableTemplateHelper app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/CacheableTemplateHelper.java:33 — `CacheableTemplateHelper` is a singleton (@Component: the container shares one instance across every request thread) but mutates instance state outside any lock (cacheableApplicationJsonMap, applicationTemplateList; e.g. `cacheableApplicationJsonMap` in `getApplicationByTemplateId` at line 80).
  • Stateful singleton: InMemoryCacheableRepositoryHelper app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/InMemoryCacheableRepositoryHelper.java:14 — `InMemoryCacheableRepositoryHelper` is a singleton (@Configuration: the container shares one instance across every request thread) but mutates instance state outside any lock (inMemoryOrganizationIdOrganizationPermissionGroupIdMap; e.g. `inMemoryOrganizationIdOrganizationPermissionGroupIdMap` in `setOrganizationAdminPermissionGroupId` at line 28).
  • Stateful singleton: PerformanceLoggingHandler app/server/appsmith-server/src/main/java/com/appsmith/server/performancelogging/PerformanceLoggingHandler.java:18 — `PerformanceLoggingHandler` is a singleton (@Component: the container shares one instance across every request thread) but mutates instance state outside any lock (requestID; e.g. `requestID` in `onStart` at line 26).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 23) · ×4
  • (anonymous) (cyclomatic 23) app/client/public/libraries/jsonwebtoken@8.5.1.js:183 — (anonymous) has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 4 function items inside it that branch (derToJose, joseToDer, c, …). 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.
  • (anonymous) (cyclomatic 23) app/client/public/libraries/jsonwebtoken@8.5.1.js:13472 — (anonymous) has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 6 function items inside it that branch (getJSF, getNAF, a function literal at line 13540, …). 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.
  • (anonymous) (cyclomatic 23) app/client/public/libraries/jsonwebtoken@8.5.1.js:16326 — (anonymous) has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 4 function items inside it that branch (exports, a function literal at line 16374, a function literal at line 16346, …). 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.
  • (anonymous) (cyclomatic 23) REDACTED:491 — (anonymous) has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 25 function items inside it that branch (a function literal at line 492, a function literal at line 523, a function literal at line 535, …). 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 · (anonymous) (cyclomatic 19) · ×4
  • (anonymous) (cyclomatic 19) app/client/public/libraries/jsonwebtoken@8.5.1.js:674 — (anonymous) 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 13 function items inside it that branch (b, y, u, …). 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.
  • (anonymous) (cyclomatic 19) app/client/public/libraries/jsonwebtoken@8.5.1.js:16638 — (anonymous) has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 8 function items inside it that branch (h, get, d, …). 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.
  • (anonymous) (cyclomatic 19) REDACTED:1590 — (anonymous) has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 1651, a function literal at line 1594, a function literal at line 1624, …). 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.
  • (anonymous) (cyclomatic 19) REDACTED:5711 — (anonymous) has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 8 function items inside it that branch (c, get, h, …). 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 · (anonymous) (cyclomatic 18) · ×4
  • (anonymous) (cyclomatic 18) app/client/public/libraries/jsonwebtoken@8.5.1.js:6656 — (anonymous) 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 10 function items inside it that branch (_reset, a function literal at line 6747, i, …). 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. This is NOT this file's highest cyclomatic complexity: (anonymous)::c (cyclomatic 19) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
  • (anonymous) (cyclomatic 18) app/client/public/libraries/jsonwebtoken@8.5.1.js:14574 — (anonymous) 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 16 function items inside it that branch (_prepareBlock, g, w, …). 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. This is NOT this file's highest cyclomatic complexity: (anonymous)::c (cyclomatic 19) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
  • (anonymous) (cyclomatic 18) app/client/public/libraries/jsonwebtoken@8.5.1.js:17991 — (anonymous) 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 4 function items inside it that branch (destroy, a function literal at line 18012, undestroy, …). 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. This is NOT this file's highest cyclomatic complexity: (anonymous)::c (cyclomatic 19) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
  • (anonymous) (cyclomatic 18) REDACTED:7064 — (anonymous) 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 4 function items inside it that branch (destroy, a function literal at line 7085, undestroy, …). 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 · (anonymous) (cognitive 22) · ×4
  • (anonymous) (cognitive 22) app/client/public/libraries/jsonwebtoken@8.5.1.js:183 — (anonymous) has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, ternaries 4, boolean chains 3, loops 3. None of this is in the body itself: all 22 points belong to 4 function items inside it that branch (derToJose, joseToDer, c, …). 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.
  • (anonymous) (cognitive 22) app/client/public/libraries/jsonwebtoken@8.5.1.js:1220 — (anonymous) has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, match/switch 1 (2 pts), ternaries 2 (nesting depth added 3). None of this is in the body itself: all 22 points belong to 5 function items inside it that branch (exports, a function literal at line 1235, a function literal at line 1288, …). 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.
  • (anonymous) (cognitive 22) app/client/public/libraries/jsonwebtoken@8.5.1.js:16407 — (anonymous) has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 5 (7 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). None of this is in the body itself: all 22 points belong to 4 function items inside it that branch (exports, a function literal at line 16438, a function literal at line 16445, …). 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.
  • (anonymous) (cognitive 22) REDACTED:862 — (anonymous) has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 15, loops 2 (3 pts), if/else 2, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 893, a function literal at line 905, a function literal at line 867, …). 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 · (anonymous) (cognitive 21) · ×4
  • (anonymous) (cognitive 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:6656 — (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (10 pts), loops 8, boolean chains 3 (nesting depth added 5). None of this is in the body itself: all 21 points belong to 10 function items inside it that branch (_reset, a function literal at line 6747, i, …). 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.
  • (anonymous) (cognitive 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:10442 — (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, ternaries 3 (4 pts), if/else 3, match/switch 1 (nesting depth added 1). None of this is in the body itself: all 21 points belong to 14 function items inside it that branch (a function literal at line 10492, (anonymous)::d, (anonymous)::l, …). 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.
  • (anonymous) (cognitive 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:12325 — (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, ternaries 8 (9 pts), if/else 1 (nesting depth added 1). None of this is in the body itself: all 21 points belong to 12 function items inside it that branch (_importPublic, validate, getPublic, …). 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.
  • (anonymous) (cognitive 21) app/client/public/libraries/jsonwebtoken@8.5.1.js:15889 — (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 4, error handling 2 (3 pts) (nesting depth added 1). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 15 function items inside it that branch ((anonymous)::exports, a function literal at line 15959, a function literal at line 15890, …). 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.
D29 · Static Analysis (SAST) · REDACTED · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×4
  • Duplicated block (23 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:87 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:87-109 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:87-109 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java` and `app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:87` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (23 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:100 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:100-122 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:163-185 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:100` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (23 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java:58 — app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java:58-80 | app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOidcUserServiceCEImpl.java:64-86 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOidcUserServiceCEImpl.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/handlers/ce/CustomOAuth2UserServiceCEImpl.java:58` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `userRequest` to `OAuth2UserRequest` in one and `OidcUserRequest` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (23 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ConsolidatedAPIServiceImpl.java:44 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ConsolidatedAPIServiceImpl.java:44-66 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce_compatible/ConsolidatedAPIServiceCECompatibleImpl.java:47-69 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ConsolidatedAPIServiceImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce_compatible/ConsolidatedAPIServiceCECompatibleImpl.java` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ConsolidatedAPIServiceImpl.java:44` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (13–14 lines × 2) · ×4
  • Duplicated block (13–14 lines × 2) REDACTED:337 — REDACTED:337-349 | REDACTED:464-477 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:337` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `REDACTED:478` calls `getRequestedAt`, `setRequestedAt` and `REDACTED:350` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (13–14 lines × 2) REDACTED:269 — REDACTED:269-281 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:314-327 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13–14 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:605 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:605-618 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:627-639 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:605` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13–14 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCEImpl.java:491 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCEImpl.java:491-504 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCEImpl.java:525-537 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCEImpl.java:491` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×4
  • Duplicated block (11–12 lines × 2) app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/FieldValidationHelper.java:14 — app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/FieldValidationHelper.java:14-25 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/FieldValidationHelper.java:30-40 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11–12 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:118 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:118-129 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java:120-130 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:118` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11–12 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:940 — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:940-951 | app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:998-1008 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:940` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11–12 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:630 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:630-640 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:642-653 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:642` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10–11 lines × 2) · ×4
  • Duplicated block (10–11 lines × 2) app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java:410 — app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java:410-419 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:434-444 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java:410` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10–11 lines × 2) REDACTED:409 — REDACTED:409-418 | REDACTED:832-842 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10–11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:2074 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:2074-2083 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:2411-2421 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10–11 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:371 — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:371-380 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:382-392 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:382` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×4
  • Duplicated block (8 lines × 4) app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/ImageClassificationServiceImpl.java:36 — app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/ImageClassificationServiceImpl.java:36-43 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/ImageEntityExtractionServiceImpl.java:35-42 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/TextClassificationServiceImpl.java:35-42 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/TextEntityExtractionServiceImpl.java:35-42 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/services/features/ImageClassificationServiceImpl.java:36` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (8 lines × 4) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:140 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:140-147 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:153-162 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:145-152 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/SheetDeleteMethod.java:76-85 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 4) app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:134 — app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:134-141 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:228-235 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:247-254 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:284-291 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:134` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `e` to `java.util.concurrent.TimeoutException` in one and `AccessDeniedException` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (8 lines × 4) app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:479 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:479-486 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:732-739 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:774-781 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:839-846 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×4
  • Duplicated block (8 lines × 3) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:212 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:212-219 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:895-903 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:969-977 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:212` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 3) REDACTED:115 — REDACTED:115-122 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/AppsmithAiPlugin.java:100-107 | REDACTED:78-85 — before extracting anything, compare `REDACTED` and `REDACTED` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 3) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:71 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:71-78 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:528-535 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:231-238 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (8 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:119 — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:119-126 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:401-408 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:585-592 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×4
  • Duplicated block (5 lines × 3) REDACTED:82 — REDACTED:82-86 | REDACTED:255-259 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:79-83 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 3) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:170 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:170-174 | app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:207-211 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:223-227 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:170` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:262 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:262-266 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:284-288 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:306-310 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/BaseAppsmithRepositoryCEImpl.java:262` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:522 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:522-526 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:582-586 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:680-684 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:522` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
IC1 · Incompleteness & stubs · Empty method body · ×4
  • Empty method body — does nothing with its inputs app/client/src/ce/sagas/moduleInstanceSagaUtils.ts:14 — `executionForJSModuleInstance` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs app/client/src/ce/sagas/moduleInterfaceSagas.ts:25 — `waitForPackageInitialization` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs app/client/src/ce/sagas/moduleInterfaceSagas.ts:32 — `handleUIModuleWidgetReplay` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs app/client/src/ce/selectors/modulesSelector.ts:5 — `getAllModules` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×4
  • Swallowed exception (caught, then discarded) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/NumberUtils.java:20 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java:748 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) app/client/src/widgets/TableWidget/widget/propertyUtils.ts:459 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) app/client/src/widgets/DocumentViewerWidget/component/index.tsx:72 — `catch (error)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
AC2 · Forms & labels · <NumberInput> field component without a label · ×3
  • <NumberInput> field component without a label app/client/src/components/propertyControls/ClearableNumericInputControl.tsx:34 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <NumberInput> field component without a label app/client/src/components/propertyControls/NumericInputControl.tsx:49 — This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <NumberInput> field component without a label app/client/src/components/propertyControls/StepControl.tsx:67 — This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
AC3 · Page structure · Page without a main landmark · ×3
  • Page without a main landmark app/client/public/404.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark app/client/public/privacy-policy.html:1 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark deploy/docker/fs/opt/appsmith/templates/loading.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 26) · ×3
  • (anonymous) (cyclomatic 26) app/client/public/libraries/jsonwebtoken@8.5.1.js:1000 — (anonymous) has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 1023, a function literal at line 1020, l, …). 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.
  • (anonymous) (cyclomatic 26) app/client/public/libraries/jsonwebtoken@8.5.1.js:12401 — (anonymous) has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 7 function items inside it that branch (_importDER, a, c, …). 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.
  • (anonymous) (cyclomatic 26) REDACTED:3319 — (anonymous) has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 4 of the 26 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 3320, (anonymous)::m, (anonymous)::exports, …). 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 · (anonymous) (cyclomatic 22) · ×3
  • (anonymous) (cyclomatic 22) app/client/public/libraries/jsonwebtoken@8.5.1.js:7011 — (anonymous) 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 11 function items inside it that branch (d, a function literal at line 7060, get, …). 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.
  • (anonymous) (cyclomatic 22) app/client/public/libraries/jsonwebtoken@8.5.1.js:15889 — (anonymous) has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 15959, (anonymous)::exports, a function literal at line 15890, …). 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.
  • (anonymous) (cyclomatic 22) REDACTED:862 — (anonymous) has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body's own statements and 11 belong to 13 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 · (anonymous) (cyclomatic 16) · ×3
  • (anonymous) (cyclomatic 16) app/client/public/libraries/jsonwebtoken@8.5.1.js:8197 — (anonymous) 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 5 function items inside it that branch ((anonymous)::exports, (anonymous)::s, a function literal at line 8212, …). 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. This is NOT this file's highest cyclomatic complexity: (anonymous)::c (cyclomatic 19) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
  • (anonymous) (cyclomatic 16) app/client/public/libraries/jsonwebtoken@8.5.1.js:14221 — (anonymous) 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 6 function items inside it that branch (h, d, l, …). 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. This is NOT this file's highest cyclomatic complexity: (anonymous)::c (cyclomatic 19) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
  • (anonymous) (cyclomatic 16) app/client/public/libraries/jsonwebtoken@8.5.1.js:15028 — (anonymous) 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 6 function items inside it that branch (a, generate, _update, …). 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. This is NOT this file's highest cyclomatic complexity: (anonymous)::c (cyclomatic 19) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D2 · Cognitive Complexity · app.buildMcpServer · ×3
  • app.buildMcpServer::elicitDestructiveApproval (cognitive 31) app/client/packages/mcp/src/app.ts:2935 — app.buildMcpServer::elicitDestructiveApproval has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 6, error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 6). 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: 2 other methods here (app.buildMcpServer::sendElicitationPrompt, app.buildMcpServer::commitLayout) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
  • app.buildMcpServer::sendElicitationPrompt (cognitive 18) app/client/packages/mcp/src/app.ts:2830 — app.buildMcpServer::sendElicitationPrompt has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 4 (6 pts), boolean chains 1, error handling 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. This shape REPEATS in the file: 2 other methods here (app.buildMcpServer::elicitDestructiveApproval, app.buildMcpServer::commitLayout) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
  • app.buildMcpServer::commitLayout (cognitive 18) app/client/packages/mcp/src/app.ts:3150 — app.buildMcpServer::commitLayout has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 5, boolean chains 1, error handling 1 (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. This shape REPEATS in the file: 2 other methods here (app.buildMcpServer::sendElicitationPrompt, app.buildMcpServer::elicitDestructiveApproval) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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 · (anonymous) (cognitive 16) · ×3
  • (anonymous) (cognitive 16) app/client/public/libraries/jsonwebtoken@8.5.1.js:4188 — (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (7 pts), boolean chains 4, loops 4, if/else 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (fromByteArray, toByteArray, c, …). 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.
  • (anonymous) (cognitive 16) app/client/public/libraries/jsonwebtoken@8.5.1.js:14001 — (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (6 pts), boolean chains 4, if/else 3 (4 pts), error handling 2 (nesting depth added 2). None of this is in the body itself: all 16 points belong to 8 function items inside it that branch (update, digest, a function literal at line 14034, …). 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.
  • (anonymous) (cognitive 16) REDACTED:3689 — (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (7 pts), boolean chains 4, loops 4, if/else 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (fromByteArray, toByteArray, f, …). 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.
D29 · Static Analysis (SAST) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D35 · Change Coupling · Change-coupling hub · ×3
  • Change-coupling hub: GitFSServiceCEImpl.java → CentralGitServiceCE.java, CentralGitServiceCEImpl.java, GitApplicationControllerCE.java app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java — `app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java` changes together with 3 other files — `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCE.java`, `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java`, `app/server/appsmith-server/src/main/java/com/appsmith/server/git/controllers/GitApplicationControllerCE.java` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
  • Change-coupling hub: ReduxActionConstants.tsx → AppIDE.ts, REDACTED, REDACTED, REDACTED, applicationSelectors.tsx app/client/src/ce/constants/ReduxActionConstants.tsx — `app/client/src/ce/constants/ReduxActionConstants.tsx` changes together with 5 other files — `app/client/src/ce/navigation/FocusElements/AppIDE.ts`, `app/client/src/ce/reducers/index.tsx`, `app/client/src/ce/reducers/uiReducers/index.tsx`, `app/client/src/ce/sagas/index.tsx`, `app/client/src/ce/selectors/applicationSelectors.tsx` — none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5.
  • Change-coupling hub: ActionCollectionServiceCE.java → NewActionServiceCE.java, NewActionServiceCEImpl.java, CustomActionCollectionRepositoryCE.java, CustomActionCollectionRepositoryCEImpl.java app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCE.java — `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCE.java` changes together with 4 other files — `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCE.java`, `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java`, `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomActionCollectionRepositoryCE.java`, `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomActionCollectionRepositoryCEImpl.java` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×3
  • Members sharing a duplicated core (5 members, 50+ identical tokens) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1120 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1120-1156 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1158-1184 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1186-1209 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1211-1230 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1232-1250 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:311 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:311-334 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:482-505 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/utils/PostgresDatasourceUtils.java:17-40 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/utils/RedshiftDatasourceUtils.java:110-133 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SnowflakeDatasourceUtils.java:17-40 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:132 — app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:132-146 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:213-222 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:226-240 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:245-259 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:282-296 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×3
  • Duplicated block (24 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:713 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:713-736 | app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:766-789 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (24 lines × 2) app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:217 — app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:217-240 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:633-656 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (24 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceImpl.java:54 — app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceImpl.java:54-77 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ActionExecutionSolutionImpl.java:47-70 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceImpl.java:54` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×3
  • Duplicated block (19 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3394 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3394-3412 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3431-3449 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3394` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (19 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:300 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:300-318 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:363-381 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:300` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:428 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:428-446 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:575-593 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:428` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17–18 lines × 2) · ×3
  • Duplicated block (17–18 lines × 2) app/server/appsmith-plugins/graphqlPlugin/src/main/java/com/external/plugins/GraphQLPlugin.java:187 — app/server/appsmith-plugins/graphqlPlugin/src/main/java/com/external/plugins/GraphQLPlugin.java:187-204 | app/server/appsmith-plugins/restApiPlugin/src/main/java/com/external/plugins/RestApiPlugin.java:169-185 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/graphqlPlugin/src/main/java/com/external/plugins/GraphQLPlugin.java:187` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (17–18 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3206 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3206-3223 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3451-3467 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3206` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (17–18 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration071MoveFormLoginDisabledToOrganizationConfiguration.java:31 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration071MoveFormLoginDisabledToOrganizationConfiguration.java:31-47 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration072MoveSignupDisabledToOrganizationConfiguration.java:31-48 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration071MoveFormLoginDisabledToOrganizationConfiguration.java:31` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12–13 lines × 2) · ×3
  • Duplicated block (12–13 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:86 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:86-98 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:113-124 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:125` calls `equalsIgnoreCase`, `getQueryFormat` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:100` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (12–13 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:89 — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:89-100 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java:89-101 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/applications/NewActionApplicationImportableServiceCEImpl.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/applications/ActionCollectionApplicationImportableServiceCEImpl.java:89` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12–13 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextInvalidationSubscriber.java:52 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextInvalidationSubscriber.java:52-64 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/InstanceRestartSubscriber.java:45-56 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextInvalidationSubscriber.java:52` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×3
  • Duplicated block (12 lines × 3) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:346 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:346-357 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:657-668 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:364-375 — before extracting anything, compare `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:135 — app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:135-146 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:229-240 | app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:285-296 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java:135` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind `e` to `java.util.concurrent.TimeoutException` in one and `AccessDeniedException` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1002 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1002-1013 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1119-1130 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1302-1313 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1002` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×3
  • Duplicated block (10 lines × 3) app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:143 — app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:143-152 | app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:85-94 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleExecuteUtils.java:134-143 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleExecuteUtils.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:143` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:566 — app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:566-575 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1146-1155 | app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java:1418-1427 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:566` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1157` calls `add` and `app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java:1430` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:199 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:199-208 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1383-1392 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1441-1450 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×3
  • Duplicated block (7 lines × 3) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Aggregate.java:156 — app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Aggregate.java:156-162 | app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/Delete.java:89-95 | app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/commands/UpdateMany.java:106-112 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (7 lines × 3) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1214 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1214-1220 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/utils/RedshiftDatasourceUtils.java:44-50 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:512-518 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (7 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:506 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:506-512 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:753-759 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/fs/GitFSServiceCEImpl.java:788-794 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D5 · Coupling · Off the main sequence · ×3
  • Off the main sequence: @appsmith/wds-theming — @appsmith/wds-theming: abstractness 0.06, instability 0.00, distance 0.94 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
  • Off the main sequence: @appsmith/wds-headless — @appsmith/wds-headless: abstractness 0.14, instability 0.00, distance 0.86 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
  • Off the main sequence: interfaces — interfaces: abstractness 0.19, instability 0.00, distance 0.81 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
P1 · CI/CD gates · CI formatting step cannot fail · ×3
  • CI formatting step cannot fail REDACTED:73 — `yarn run prettier:ci` invokes prettier in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner's throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one — it enforces nothing, and no other step in this file reads the result. `--check` is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted.
  • CI formatting step cannot fail REDACTED:71 — `yarn prettier:ci` invokes prettier in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner's throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one — it enforces nothing, and no other step in this file reads the result. `--check` is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted.
  • CI formatting step cannot fail REDACTED:102 — `yarn prettier` invokes prettier in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner's throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one — it enforces nothing, and no other step in this file reads the result. `--check` is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted.
R8 · Dependency Hygiene · Unlisted import '*.svg' · ×3
  • Unlisted import '*.svg' app/client/src/components/designSystems/blueprintjs/icon/Icon.tsx:30 — Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
  • Unlisted import '*.svg' app/client/packages/design-system/ads/src/Icon/loadables.tsx:34 — Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
  • Unlisted import '*.svg' app/client/packages/design-system/ads-old/src/utils/icon-loadables.tsx:34 — Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
AC2 · Forms & labels · <ComboBox> field component without a label · ×2
  • <ComboBox> field component without a label app/client/packages/design-system/widgets/src/testing/ComplexForm.tsx:143 — This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
  • <ComboBox> field component without a label app/client/packages/design-system/widgets/src/testing/ComplexForm.tsx:171 — This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 111) · ×2
  • (anonymous) (cyclomatic 111) app/client/public/libraries/jsonwebtoken@8.5.1.js:17480 — (anonymous) has cyclomatic complexity 111 (threshold 15). Most of this is not in the body itself: 4 of the 111 points are its own statements and the rest belongs to 43 function items inside it that branch ((anonymous)::m, (anonymous)::write, (anonymous)::_, …). 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.
  • (anonymous) (cyclomatic 111) REDACTED:6553 — (anonymous) has cyclomatic complexity 111 (threshold 15). Most of this is not in the body itself: 4 of the 111 points are its own statements and the rest belongs to 43 function items inside it that branch ((anonymous)::g, (anonymous)::write, (anonymous)::_, …). 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 · (anonymous) (cyclomatic 86) · ×2
  • (anonymous) (cyclomatic 86) app/client/public/libraries/jsonwebtoken@8.5.1.js:18090 — (anonymous) has cyclomatic complexity 86 (threshold 15). Most of this is not in the body itself: 2 of the 86 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 18117, a function literal at line 18095, a function literal at line 18268, …). 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.
  • (anonymous) (cyclomatic 86) REDACTED:7163 — (anonymous) has cyclomatic complexity 86 (threshold 15). Most of this is not in the body itself: 2 of the 86 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 7190, a function literal at line 7168, a function literal at line 7341, …). 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 · isValid (cyclomatic 36) · ×2
  • isValid (cyclomatic 36) REDACTED:3 — isValid 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.
  • isValid (cyclomatic 36) REDACTED:3 — isValid 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.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 29) · ×2
  • (anonymous) (cyclomatic 29) app/client/public/libraries/jsonwebtoken@8.5.1.js:16175 — (anonymous) has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 16 function items inside it that branch (f, a function literal at line 16232, a function literal at line 16199, …). 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.
  • (anonymous) (cyclomatic 29) REDACTED:5584 — (anonymous) has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 16 function items inside it that branch (u, a function literal at line 5641, a function literal at line 5608, …). 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 · (anonymous) (cyclomatic 28) · ×2
  • (anonymous) (cyclomatic 28) app/client/public/libraries/jsonwebtoken@8.5.1.js:1142 — (anonymous) has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 1162, a function literal at line 1159, a function literal at line 1158, …). 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.
  • (anonymous) (cyclomatic 28) app/client/public/libraries/jsonwebtoken@8.5.1.js:10261 — (anonymous) has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to 11 function items inside it that branch (pc1, ip, rip, …). 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 · propertyUtils.selectColumnOptionsValidation (cyclomatic 27) · ×2
  • propertyUtils.selectColumnOptionsValidation (cyclomatic 27) REDACTED:871 — propertyUtils.selectColumnOptionsValidation has cyclomatic complexity 27 (threshold 15). Of this number, 20 points are the body's own statements and 7 belong to 2 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.
  • propertyUtils.selectColumnOptionsValidation (cyclomatic 27) app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:798 — propertyUtils.selectColumnOptionsValidation has cyclomatic complexity 27 (threshold 15). Of this number, 20 points are the body's own statements and 7 belong to 2 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 · (anonymous) (cyclomatic 25) · ×2
  • (anonymous) (cyclomatic 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:10442 — (anonymous) has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 14 function items inside it that branch (a function literal at line 10492, (anonymous)::d, (anonymous)::l, …). 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.
  • (anonymous) (cyclomatic 25) REDACTED:1707 — (anonymous) has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 4 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 1708, (anonymous)::d, (anonymous)::exports, …). 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 · index.AISettings · ×2
  • index.AISettings::handleSave (cyclomatic 24) app/client/src/pages/AdminSettings/AI/index.tsx:678 — index.AISettings::handleSave 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. This shape REPEATS in the file: 2 other methods here (index.AISettings, index.AISettings::handleTestApiKey) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
  • index.AISettings::handleTestApiKey (cyclomatic 16) app/client/src/pages/AdminSettings/AI/index.tsx:828 — index.AISettings::handleTestApiKey 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. This shape REPEATS in the file: 2 other methods here (index.AISettings, index.AISettings::handleSave) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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 · (anonymous) (cyclomatic 24) · ×2
  • (anonymous) (cyclomatic 24) app/client/public/libraries/jsonwebtoken@8.5.1.js:335 — (anonymous) has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 28 function items inside it that branch (d, a function literal at line 381, l, …). 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.
  • (anonymous) (cyclomatic 24) app/client/public/libraries/jsonwebtoken@8.5.1.js:15392 — (anonymous) 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 6 function items inside it that branch (test, getDivisor, _randbelow, …). 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 · (anonymous) (cyclomatic 20) · ×2
  • (anonymous) (cyclomatic 20) app/client/public/libraries/jsonwebtoken@8.5.1.js:19841 — (anonymous) 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 22 function items inside it that branch (runInContext, indexOf, Object_keys, …). 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.
  • (anonymous) (cyclomatic 20) REDACTED:1282 — (anonymous) 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 4 function items inside it that branch (gatherDataBetweenQuotes, parse, checkForMalformedColumn, …). 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 · propertyUtils.updateInlineEditingOptionDropdownVisibilityHook (cyclomatic 17) · ×2
  • propertyUtils.updateInlineEditingOptionDropdownVisibilityHook (cyclomatic 17) REDACTED:262 — propertyUtils.updateInlineEditingOptionDropdownVisibilityHook has cyclomatic complexity 17 (threshold 15). Of this number, 16 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.
  • propertyUtils.updateInlineEditingOptionDropdownVisibilityHook (cyclomatic 17) app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:257 — propertyUtils.updateInlineEditingOptionDropdownVisibilityHook has cyclomatic complexity 17 (threshold 15). Of this number, 16 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 · (anonymous) (cyclomatic 17) · ×2
  • (anonymous) (cyclomatic 17) app/client/public/libraries/jsonwebtoken@8.5.1.js:6883 — (anonymous) 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 8 function items inside it that branch (_update, _final, a function literal at line 6897, …). 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. This is NOT this file's highest cyclomatic complexity: (anonymous)::c (cyclomatic 19) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
  • (anonymous) (cyclomatic 17) REDACTED:1028 — (anonymous) 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 5 function items inside it that branch (parse, shouldSkipColumnParse, getStartToken, …). 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 · propertyUtils.selectColumnOptionsValidation (cognitive 78) · ×2
  • propertyUtils.selectColumnOptionsValidation (cognitive 78) REDACTED:871 — propertyUtils.selectColumnOptionsValidation has cognitive complexity 78 (threshold 15). Drivers by points: if/else 25 (59 pts), loops 3 (15 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 46). Of this number, 70 points are the body's own statements and 8 belong to 2 function items inside it that branch. 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.
  • propertyUtils.selectColumnOptionsValidation (cognitive 78) app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:798 — propertyUtils.selectColumnOptionsValidation has cognitive complexity 78 (threshold 15). Drivers by points: if/else 25 (59 pts), loops 3 (15 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 46). Of this number, 70 points are the body's own statements and 8 belong to 2 function items inside it that branch. 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 · (anonymous) (cognitive 78) · ×2
  • (anonymous) (cognitive 78) app/client/public/libraries/jsonwebtoken@8.5.1.js:18090 — (anonymous) has cognitive complexity 78 (threshold 15). Drivers by points: if/else 23 (34 pts), ternaries 18 (19 pts), boolean chains 18, match/switch 3 (5 pts), loops 1 (2 pts) (nesting depth added 15). Most of this is not in the body itself: 1 of the 78 points is its own statement and the rest belongs to 18 function items inside it that branch (a function literal at line 18268, a function literal at line 18178, write, …). 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.
  • (anonymous) (cognitive 78) REDACTED:7163 — (anonymous) has cognitive complexity 78 (threshold 15). Drivers by points: if/else 23 (34 pts), ternaries 18 (19 pts), boolean chains 18, match/switch 3 (5 pts), loops 1 (2 pts) (nesting depth added 15). Most of this is not in the body itself: 1 of the 78 points is its own statement and the rest belongs to 18 function items inside it that branch (a function literal at line 7341, a function literal at line 7251, write, …). 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 · index.AISettings · ×2
  • index.AISettings::handleSave (cognitive 44) app/client/src/pages/AdminSettings/AI/index.tsx:678 — index.AISettings::handleSave has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (43 pts), error handling 1 (nesting depth added 20). 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: 2 other methods here (index.AISettings, index.AISettings::handleTestApiKey) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
  • index.AISettings::handleTestApiKey (cognitive 18) app/client/src/pages/AdminSettings/AI/index.tsx:828 — index.AISettings::handleTestApiKey has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 5, boolean chains 3, error handling 1 (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, 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: 2 other methods here (index.AISettings, index.AISettings::handleSave) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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 · (anonymous) (cognitive 37) · ×2
  • (anonymous) (cognitive 37) app/client/public/libraries/jsonwebtoken@8.5.1.js:10261 — (anonymous) has cognitive complexity 37 (threshold 15). Drivers by points: loops 27 (37 pts) (nesting depth added 10). None of this is in the body itself: all 37 points belong to 11 function items inside it that branch (pc1, ip, rip, …). 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.
  • (anonymous) (cognitive 37) REDACTED:1475 — (anonymous) has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 10, ternaries 7 (9 pts), loops 1 (nesting depth added 8). Most of this is not in the body itself: 2 of the 37 points are its own statements and the rest belongs to 9 function items inside it that branch (shouldMapRow, processRow, mapHeaders, …). 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 · (anonymous) (cognitive 36) · ×2
  • (anonymous) (cognitive 36) app/client/public/libraries/jsonwebtoken@8.5.1.js:16175 — (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: error handling 6 (10 pts), boolean chains 8, if/else 6 (8 pts), loops 3 (7 pts), ternaries 3 (nesting depth added 10). None of this is in the body itself: all 36 points belong to 16 function items inside it that branch (f, p, a function literal at line 16232, …). 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.
  • (anonymous) (cognitive 36) REDACTED:5584 — (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: error handling 6 (10 pts), boolean chains 8, if/else 6 (8 pts), loops 3 (7 pts), ternaries 3 (nesting depth added 10). None of this is in the body itself: all 36 points belong to 16 function items inside it that branch (u, p, a function literal at line 5641, …). 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 · isValid (cognitive 36) · ×2
  • isValid (cognitive 36) REDACTED:3 — isValid has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 7, error handling 1 (2 pts), match/switch 2, ternaries 1 (2 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.
  • isValid (cognitive 36) REDACTED:3 — isValid has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 7, error handling 1 (2 pts), match/switch 2, ternaries 1 (2 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 · (anonymous) (cognitive 33) · ×2
  • (anonymous) (cognitive 33) app/client/public/libraries/jsonwebtoken@8.5.1.js:16549 — (anonymous) has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14, boolean chains 13, ternaries 5 (6 pts) (nesting depth added 1). Most of this is not in the body itself: 3 of the 33 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous)::h, (anonymous)::d, (anonymous)::randomFill, …). 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.
  • (anonymous) (cognitive 33) REDACTED:629 — (anonymous) has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 10, boolean chains 5, error handling 4 (nesting depth added 2). None of this is in the body itself: all 33 points belong to 23 function items inside it that branch (a function literal at line 727, a function literal at line 740, (anonymous)::processRows::i, …). 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 · (anonymous) (cognitive 24) · ×2
  • (anonymous) (cognitive 24) app/client/public/libraries/jsonwebtoken@8.5.1.js:12401 — (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9, boolean chains 8, loops 4 (5 pts), ternaries 2 (nesting depth added 1). None of this is in the body itself: all 24 points belong to 7 function items inside it that branch (_importDER, a, u, …). 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.
  • (anonymous) (cognitive 24) REDACTED:1028 — (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 6, ternaries 3 (5 pts), loops 1 (nesting depth added 8). None of this is in the body itself: all 24 points belong to 5 function items inside it that branch (parse, shouldSkipColumnParse, getStartToken, …). 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 · (anonymous) (cognitive 23) · ×2
  • (anonymous) (cognitive 23) app/client/public/libraries/jsonwebtoken@8.5.1.js:2922 — (anonymous) has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, ternaries 7 (nesting depth added 2). None of this is in the body itself: all 23 points belong to 11 function items inside it that branch (s, join, readUInt8, …). 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.
  • (anonymous) (cognitive 23) REDACTED:491 — (anonymous) has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, loops 2 (3 pts), if/else 2, ternaries 2, error handling 1 (nesting depth added 1). None of this is in the body itself: all 23 points belong to 25 function items inside it that branch (a function literal at line 492, a function literal at line 523, a function literal at line 535, …). 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 · propertyUtils.updateInlineEditingOptionDropdownVisibilityHook (cognitive 21) · ×2
  • propertyUtils.updateInlineEditingOptionDropdownVisibilityHook (cognitive 21) REDACTED:262 — propertyUtils.updateInlineEditingOptionDropdownVisibilityHook has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5 (nesting depth added 8). 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, 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.
  • propertyUtils.updateInlineEditingOptionDropdownVisibilityHook (cognitive 21) app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:257 — propertyUtils.updateInlineEditingOptionDropdownVisibilityHook has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5 (nesting depth added 8). 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, 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 · valueKeyValidation.valueKeyValidation (cognitive 18) · ×2
  • valueKeyValidation.valueKeyValidation (cognitive 18) app/client/src/widgets/wds/WDSSelectWidget/config/propertyPaneConfig/validations/valueKeyValidation.ts:10 — valueKeyValidation.valueKeyValidation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 4). Of this number, 16 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.
  • valueKeyValidation.valueKeyValidation (cognitive 18) app/client/src/widgets/wds/WDSMultiSelectWidget/config/propertyPaneConfig/validations/valueKeyValidation.ts:10 — valueKeyValidation.valueKeyValidation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 4). Of this number, 16 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 · propertyUtils.tableDataValidation (cognitive 16) · ×2
  • propertyUtils.tableDataValidation (cognitive 16) REDACTED:1077 — propertyUtils.tableDataValidation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (2 pts) (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.
  • propertyUtils.tableDataValidation (cognitive 16) app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:1004 — propertyUtils.tableDataValidation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (2 pts) (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 · propertyUtils.textForEachRowValidation (cognitive 16) · ×2
  • propertyUtils.textForEachRowValidation (cognitive 16) REDACTED:1158 — propertyUtils.textForEachRowValidation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 7). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 1188, generateResponseAndReturn, a function literal at line 1195). 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.
  • propertyUtils.textForEachRowValidation (cognitive 16) app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:1085 — propertyUtils.textForEachRowValidation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 7). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 1115, generateResponseAndReturn, a function literal at line 1122). 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 · getSelectedOptionLabel (cognitive 16) · ×2
  • getSelectedOptionLabel (cognitive 16) app/client/src/widgets/SelectWidget/widget/derived.js:90 — getSelectedOptionLabel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, other 2 (nesting depth added 5). Of this number, 15 points are the body's own statements and 1 belongs 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.
  • getSelectedOptionLabel (cognitive 16) app/client/src/widgets/wds/WDSSelectWidget/widget/derived.js:67 — getSelectedOptionLabel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, other 2 (nesting depth added 5). Of this number, 15 points are the body's own statements and 1 belongs 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.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (45 lines × 3) · ×2
  • Duplicated block (45 lines × 3) REDACTED:467 — REDACTED:467-511 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:376-420 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1063-1107 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:467` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `REDACTED:513` calls `IllegalArgumentException` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:423` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (45 lines × 3) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/dtos/LayoutExecutableUpdateDTO.java:1 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/dtos/LayoutExecutableUpdateDTO.java:1-45 | app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/LayoutExecutableUpdateDTO.java:1-45 | app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/ce/ActionViewCE_DTO.java:1-66 — before extracting anything, compare `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/dtos/LayoutExecutableUpdateDTO.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/LayoutExecutableUpdateDTO.java` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/dtos/LayoutExecutableUpdateDTO.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (22–23 lines × 2) · ×2
  • Duplicated block (22–23 lines × 2) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:567 — app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:567-589 | app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:763-784 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:567` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (22–23 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:97 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:97-118 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:487-509 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:97` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×2
  • Duplicated block (22 lines × 2) REDACTED:210 — REDACTED:210-231 | REDACTED:158-179 — before extracting anything, compare `REDACTED` and `REDACTED` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:210` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (22 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:109 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:109-130 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:202-223 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (19–20 lines × 2) · ×2
  • Duplicated block (19–20 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:196 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:196-215 | app/server/appsmith-plugins/saasPlugin/src/main/java/com/external/helpers/RequestCaptureFilter.java:131-149 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:196` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (19–20 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:408 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:408-426 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:702-721 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×2
  • Duplicated block (20 lines × 2) app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:142 — app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java:142-161 | app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java:219-238 — before extracting anything, compare `app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/ChatCommand.java` and `app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:541 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:541-560 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:596-615 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (17–19 lines × 2) · ×2
  • Duplicated block (17–19 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:310 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:310-328 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:365-381 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:310` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17–19 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:633 — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:633-651 | app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:655-671 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:633` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×2
  • Duplicated block (18 lines × 3) REDACTED:160 — REDACTED:160-177 | REDACTED:202-219 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:265-282 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (18 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceImpl.java:44 — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceImpl.java:44-61 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce_compatible/ApplicationServiceCECompatibleImpl.java:39-56 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ScheduledTaskImpl.java:48-65 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce_compatible/ApplicationServiceCECompatibleImpl.java` as WHOLE FILES: 86% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceImpl.java:44` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (12–14 lines × 2) · ×2
  • Duplicated block (12–14 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:209 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:209-222 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2ClientCredentials.java:185-196 — before extracting anything, compare `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java` and `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2ClientCredentials.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:209` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (12–14 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CacheableFeatureFlagHelperCEImpl.java:155 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CacheableFeatureFlagHelperCEImpl.java:155-166 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CacheablePylonHelperCEImpl.java:69-82 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CacheableFeatureFlagHelperCEImpl.java:155` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11–12 lines × 4) · ×2
  • Duplicated block (11–12 lines × 4) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:130 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:130-140 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:142-153 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:135-145 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:127-138 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:130` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11–12 lines × 4) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:108 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:108-118 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:919-930 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:561-571 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:125-135 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:108` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8–10 lines × 2) · ×2
  • Duplicated block (8–10 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:64 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:64-73 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetDatasourceMetadataMethod.java:101-108 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8–10 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:1177 — app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:1177-1184 | app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:1222-1231 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:1177` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:1233` calls `setStaticUrlSettings` and `app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java:1185` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (9 lines × 7) · ×2
  • Duplicated block (9 lines × 7) app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:453 — app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:453-461 | app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:505-513 | REDACTED:561-569 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:452-460 | app/server/appsmith-plugins/redisPlugin/src/main/java/com/external/plugins/RedisPlugin.java:533-541 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:454-462 | app/server/appsmith-plugins/smtpPlugin/src/main/java/com/external/plugins/SmtpPlugin.java:360-368 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:453` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:451` calls `debug`, `currentThread`, `getName` and `REDACTED:560` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 7) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:440 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:440-448 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:449-457 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:459-467 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:469-477 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:482-490 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:491-499 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:759-767 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:469` calls `convertToFormDataObject`, `get` and `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:450` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×2
  • Duplicated block (9 lines × 4) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AmazonS3ErrorUtils.java:51 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AmazonS3ErrorUtils.java:51-59 | app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/utils/ArangoDBErrorUtils.java:37-48 | app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/utils/MongoErrorUtils.java:29-40 | app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlErrorUtils.java:28-39 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
  • Duplicated block (9 lines × 4) app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:76 — app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:76-84 | app/server/appsmith-plugins/appsmithAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:142-150 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:84-92 | app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:126-134 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×2
  • Duplicated block (9 lines × 3) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:85 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:85-93 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:542-550 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:200-208 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (9 lines × 3) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:308 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:308-316 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:616-624 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:306-314 — before extracting anything, compare `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:308` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:315` calls `printStackTrace` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:317` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×2
  • Duplicated block (7–8 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:740 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:740-746 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:821-828 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:740` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7–8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:377 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:377-383 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCEImpl.java:257-264 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (6–7 lines × 2) · ×2
  • Duplicated block (6–7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:884 — app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:884-890 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:516-521 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/aspect/ce/GitRouteAspectCE.java:884` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6–7 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/PolicySolutionCEImpl.java:72 — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/PolicySolutionCEImpl.java:72-78 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/PolicySolutionCEImpl.java:106-111 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/PolicySolutionCEImpl.java:72` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×2
  • Duplicated block (6 lines × 4) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:581 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:581-586 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1033-1038 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1163-1168 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1324-1329 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:581` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 4) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomApplicationRepositoryCEImpl.java:45 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomApplicationRepositoryCEImpl.java:45-50 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomApplicationRepositoryCEImpl.java:53-58 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomApplicationRepositoryCEImpl.java:61-66 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomWorkspaceRepositoryCEImpl.java:24-29 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
IC1 · Incompleteness & stubs · Fake-async · ×2
  • Fake-async — async method never awaits app/client/src/api/interceptors/response/failureHandlers/handleBadRequestError.ts:7 — `handleBadRequestError` 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 app/client/src/api/interceptors/response/failureHandlers/handleCancelError.ts:5 — `handleCancelError` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
R10 · Code Duplication · Duplicated block with local edits (194 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (194 matched lines × 2 locations) app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useCanvasDragging.ts:92 — app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useCanvasDragging.ts:92 · app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/hooks/useCanvasDragging.ts:113 — the two spans are one implementation copied and then locally edited — 847 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 (194 matched lines × 2 locations) app/client/src/widgets/TableWidgetV2/widget/index.tsx:1089 — app/client/src/widgets/TableWidgetV2/widget/index.tsx:1089 · REDACTED:706 — the two spans are one implementation copied and then locally edited — 955 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.
R7 · Dead Code · Dead file (~76 LoC) · ×2
  • Dead file (~76 LoC) app/client/src/IDE/Structure/Header.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~76 LoC) app/client/src/components/editorComponents/form/fields/DropdownField.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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
AC2 · Forms & labels · <RadioGroup> field component without a label · ×1
  • <RadioGroup> field component without a label app/client/src/components/editorComponents/form/fields/RadioGroupWrapper.tsx:47 — This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
AC2 · Forms & labels · <DatePicker> field component without a label · ×1
  • <DatePicker> field component without a label app/client/src/components/propertyControls/DatePickerControl.tsx:82 — This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
AC3 · Page structure · meta-refresh timed redirect/refresh · ×1
  • meta-refresh timed redirect/refresh deploy/docker/fs/opt/appsmith/templates/loading.html:4 — A timed meta-refresh moves users with no control or warning. Use a server redirect or a user-triggered action instead.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.0 · ×1
  • Low contrast colour pair in CSS (3.0:1) app/client/public/404.css:103 — `.primary` sets color: #fff on background-color: #f86a2b — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · getFilteredTableData (cyclomatic 123) · ×1
  • getFilteredTableData (cyclomatic 123) app/client/src/widgets/TableWidgetV2/widget/derived.js:276 — getFilteredTableData has cyclomatic complexity 123 (threshold 15). Of this number, 19 points are the body's own statements and 104 belong to 57 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 · 057-migrate-styling-properties-for-theming.migrateStylingPropertiesForTheming (cyclomatic 116) · ×1
  • 057-migrate-styling-properties-for-theming.migrateStylingPropertiesForTheming (cyclomatic 116) app/client/packages/dsl/src/migrate/migrations/057-migrate-styling-properties-for-theming.ts:202 — 057-migrate-styling-properties-for-theming.migrateStylingPropertiesForTheming has cyclomatic complexity 116 (threshold 15). Of this number, 20 points are the body's own statements and 96 belong to 4 function literals inside it that branch. 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 109) · ×1
  • (anonymous) (cyclomatic 109) app/client/public/libraries/jsonwebtoken@8.5.1.js:11376 — (anonymous) has cyclomatic complexity 109 (threshold 15). Most of this is not in the body itself: 1 of the 109 points is its own statement and the rest belongs to 47 function items inside it that branch (_getEndomorphism, _getEndoBasis, dblp, …). 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 · PropertyControl.PropertyControl (cyclomatic 101) · ×1
  • PropertyControl.PropertyControl (cyclomatic 101) app/client/src/pages/Editor/PropertyPane/PropertyControl.tsx:90 — PropertyControl.PropertyControl has cyclomatic complexity 101 (threshold 15). Of this number, 56 points are the body's own statements and 45 belong to 21 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.migrateVersionedDSL (cyclomatic 97) · ×1
  • index.migrateVersionedDSL (cyclomatic 97) app/client/packages/dsl/src/migrate/index.ts:151 — index.migrateVersionedDSL has cyclomatic complexity 97 (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 · (anonymous) (cyclomatic 96) · ×1
  • (anonymous) (cyclomatic 96) REDACTED:3401 — (anonymous) has cyclomatic complexity 96 (threshold 15). Most of this is not in the body itself: 4 of the 96 points are its own statements and the rest belongs to 43 function items inside it that branch (a function literal at line 3649, a function literal at line 3402, (anonymous)::B, …). 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 · GeneralSettings.GeneralSettings (cyclomatic 91) · ×1
  • GeneralSettings.GeneralSettings (cyclomatic 91) app/client/src/pages/AppIDE/components/AppSettings/components/GeneralSettings.tsx:139 — GeneralSettings.GeneralSettings has cyclomatic complexity 91 (threshold 15). Of this number, 34 points are the body's own statements and 57 belong to 21 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 · GeneratePageForm.GeneratePageForm (cyclomatic 88) · ×1
  • GeneratePageForm.GeneratePageForm (cyclomatic 88) app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GeneratePageForm.tsx:211 — GeneratePageForm.GeneratePageForm has cyclomatic complexity 88 (threshold 15). Of this number, 38 points are the body's own statements and 50 belong to 15 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 · TableWidgetV2.renderCell (cyclomatic 87) · ×1
  • TableWidgetV2.renderCell (cyclomatic 87) app/client/src/widgets/TableWidgetV2/widget/index.tsx:2011 — TableWidgetV2.renderCell has cyclomatic complexity 87 (threshold 15). Of this number, 75 points are the body's own statements and 12 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 · (anonymous) (cyclomatic 79) · ×1
  • (anonymous) (cyclomatic 79) app/client/public/libraries/jsonwebtoken@8.5.1.js:786 — (anonymous) has cyclomatic complexity 79 (threshold 15). Most of this is not in the body itself: 1 of the 79 points is its own statement and the rest belongs to 25 function items inside it that branch (a function literal at line 914, j, exports, …). 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 · PageSettings.PageSettings (cyclomatic 76) · ×1
  • PageSettings.PageSettings (cyclomatic 76) app/client/src/pages/AppIDE/components/AppSettings/components/PageSettings.tsx:63 — PageSettings.PageSettings has cyclomatic complexity 76 (threshold 15). Of this number, 23 points are the body's own statements and 53 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 · AutoLayoutResizable.AutoLayoutResizableComponent (cyclomatic 75) · ×1
  • AutoLayoutResizable.AutoLayoutResizableComponent (cyclomatic 75) app/client/src/layoutSystems/autolayout/common/resizer/AutoLayoutResizable.tsx:74 — AutoLayoutResizable.AutoLayoutResizableComponent has cyclomatic complexity 75 (threshold 15). Of this number, 22 points are the body's own statements and 53 belong to 14 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 · index.Dropdown (cyclomatic 74) · ×1
  • index.Dropdown (cyclomatic 74) app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:1030 — index.Dropdown has cyclomatic complexity 74 (threshold 15). Of this number, 20 points are the body's own statements and 54 belong to 12 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 · jsExpr.exprProblem (cyclomatic 74) · ×1
  • jsExpr.exprProblem (cyclomatic 74) app/client/packages/mcp/src/builder/jsExpr.ts:510 — jsExpr.exprProblem has cyclomatic complexity 74 (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 · index.RichtextEditorComponent (cyclomatic 73) · ×1
  • index.RichtextEditorComponent (cyclomatic 73) app/client/src/widgets/RichTextEditorWidget/component/index.tsx:422 — index.RichtextEditorComponent has cyclomatic complexity 73 (threshold 15). Most of this is not in the body itself: 6 of the 73 points are its own statements and the rest belongs to 25 function literals inside it that branch (lines 894, 763, 804, …). 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 · CanvasSelectionArena.CanvasSelectionArena (cyclomatic 72) · ×1
  • CanvasSelectionArena.CanvasSelectionArena (cyclomatic 72) app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/CanvasSelectionArena.tsx:41 — CanvasSelectionArena.CanvasSelectionArena has cyclomatic complexity 72 (threshold 15). Most of this is not in the body itself: 13 of the 72 points are its own statements and the rest belongs to 15 function literals inside it that branch (lines 303, 136, 172, …). 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 · jsExpr.compileExpr (cyclomatic 71) · ×1
  • jsExpr.compileExpr (cyclomatic 71) app/client/packages/mcp/src/builder/jsExpr.ts:926 — jsExpr.compileExpr has cyclomatic complexity 71 (threshold 15). Of this number, 68 points are the body's own statements and 3 belong to one function literal inside it that branches. 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · getFilteredTableData (cyclomatic 68) · ×1
  • getFilteredTableData (cyclomatic 68) app/client/src/widgets/wds/WDSTableWidget/widget/derived.js:226 — getFilteredTableData has cyclomatic complexity 68 (threshold 15). Most of this is not in the body itself: 14 of the 68 points are its own statements and the rest belongs to 31 function items inside it that branch (a function literal at line 477, a function literal at line 308, a function literal at line 247, …). 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 · ReconnectDatasourceModal.ReconnectDatasourceModal (cyclomatic 67) · ×1
  • ReconnectDatasourceModal.ReconnectDatasourceModal (cyclomatic 67) app/client/src/pages/Editor/gitSync/ReconnectDatasourceModal.tsx:257 — ReconnectDatasourceModal.ReconnectDatasourceModal has cyclomatic complexity 67 (threshold 15). Of this number, 23 points are the body's own statements and 44 belong to 12 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 · GoogleSheetSchema.GoogleSheetSchema (cyclomatic 66) · ×1
  • GoogleSheetSchema.GoogleSheetSchema (cyclomatic 66) app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx:65 — GoogleSheetSchema.GoogleSheetSchema has cyclomatic complexity 66 (threshold 15). Of this number, 19 points are the body's own statements and 47 belong to 18 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 · ResizableComponent.ResizableComponent (cyclomatic 64) · ×1
  • ResizableComponent.ResizableComponent (cyclomatic 64) app/client/src/layoutSystems/common/resizer/ResizableComponent.tsx:75 — ResizableComponent.ResizableComponent has cyclomatic complexity 64 (threshold 15). Of this number, 30 points are the body's own statements and 34 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 · WidgetOperationSagas.pasteWidgetSaga (cyclomatic 64) · ×1
  • WidgetOperationSagas.pasteWidgetSaga (cyclomatic 64) app/client/src/sagas/WidgetOperationSagas.tsx:1215 — WidgetOperationSagas.pasteWidgetSaga has cyclomatic complexity 64 (threshold 15). Of this number, 19 points are the body's own statements and 45 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 · (anonymous) (cyclomatic 64) · ×1
  • (anonymous) (cyclomatic 64) app/client/public/libraries/jsonwebtoken@8.5.1.js:3686 — (anonymous) has cyclomatic complexity 64 (threshold 15). Most of this is not in the body itself: 1 of the 64 points is its own statement and the rest belongs to 16 function items inside it that branch (_decodeStr, _decodeTag, h, …). 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 · MigrationHelperMethods.mapGoogleSheetsToNewFormData (cyclomatic 63) · ×1
  • MigrationHelperMethods.mapGoogleSheetsToNewFormData (cyclomatic 63) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:773 — MigrationHelperMethods.mapGoogleSheetsToNewFormData has cyclomatic complexity 63 (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 · getFilteredTableData (cyclomatic 61) · ×1
  • getFilteredTableData (cyclomatic 61) app/client/src/widgets/TableWidget/widget/derived.js:255 — getFilteredTableData has cyclomatic complexity 61 (threshold 15). Most of this is not in the body itself: 9 of the 61 points are its own statements and the rest belongs to 24 function items inside it that branch (a function literal at line 326, a function literal at line 483, a function literal at line 266, …). 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 · useCanvasDragging.useCanvasDragging (cyclomatic 60) · ×1
  • useCanvasDragging.useCanvasDragging (cyclomatic 60) app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/hooks/useCanvasDragging.ts:55 — useCanvasDragging.useCanvasDragging 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 12 function literals inside it that branch (lines 284, 376, 257, …). 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 · TabDeployView.TabDeployView (cyclomatic 59) · ×1
  • TabDeployView.TabDeployView (cyclomatic 59) app/client/src/git/components/OpsModal/TabDeploy/TabDeployView.tsx:99 — TabDeployView.TabDeployView has cyclomatic complexity 59 (threshold 15). Of this number, 49 points are the body's own statements and 10 belong to 9 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 · ApplicationCard.ApplicationCard (cyclomatic 58) · ×1
  • ApplicationCard.ApplicationCard (cyclomatic 58) app/client/src/pages/Applications/ApplicationCard.tsx:146 — ApplicationCard.ApplicationCard has cyclomatic complexity 58 (threshold 15). Of this number, 16 points are the body's own statements and 42 belong to 22 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 · Deploy.Deploy (cyclomatic 58) · ×1
  • Deploy.Deploy (cyclomatic 58) app/client/src/pages/Editor/gitSync/Tabs/Deploy.tsx:100 — Deploy.Deploy has cyclomatic complexity 58 (threshold 15). Of this number, 49 points are the body's own statements and 9 belong to 8 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 · group.Group (cyclomatic 57) · ×1
  • group.Group (cyclomatic 57) app/client/src/pages/AdminSettings/FormGroup/group.tsx:101 — group.Group has cyclomatic complexity 57 (threshold 15). Of this number, 31 points are the body's own statements and 26 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 · HttpAsyncClientBuilder.build (cyclomatic 55) · ×1
  • HttpAsyncClientBuilder.build (cyclomatic 55) app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/org/apache/http/impl/nio/client/HttpAsyncClientBuilder.java:653 — HttpAsyncClientBuilder.build has cyclomatic complexity 55 (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 · index.renderDropdown (cyclomatic 54) · ×1
  • index.renderDropdown (cyclomatic 54) app/client/src/components/formControls/DropDownControl/index.tsx:253 — index.renderDropdown has cyclomatic complexity 54 (threshold 15). Of this number, 32 points are the body's own statements and 22 belong to 7 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 · TableWidget.getTableColumns (cyclomatic 54) · ×1
  • TableWidget.getTableColumns (cyclomatic 54) app/client/src/widgets/TableWidget/widget/index.tsx:473 — TableWidget.getTableColumns has cyclomatic complexity 54 (threshold 15). Of this number, 19 points are the body's own statements and 35 belong to one function literal 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 · (anonymous) (cyclomatic 52) · ×1
  • (anonymous) (cyclomatic 52) app/client/public/libraries/jsonwebtoken@8.5.1.js:10961 — (anonymous) has cyclomatic complexity 52 (threshold 15). Most of this is not in the body itself: 1 of the 52 points is its own statement and the rest belongs to 28 function items inside it that branch (c, pointFromX, pointFromY, …). 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 · index.ApplicationsSection (cyclomatic 51) · ×1
  • index.ApplicationsSection (cyclomatic 51) app/client/src/ce/pages/Applications/index.tsx:698 — index.ApplicationsSection has cyclomatic complexity 51 (threshold 15). Of this number, 37 points are the body's own statements and 14 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 · DatasourceViewModeSchema.DatasourceViewModeSchema (cyclomatic 51) · ×1
  • DatasourceViewModeSchema.DatasourceViewModeSchema (cyclomatic 51) app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx:61 — DatasourceViewModeSchema.DatasourceViewModeSchema has cyclomatic complexity 51 (threshold 15). Of this number, 28 points are the body's own statements and 23 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 · DataTreeEvaluator.evaluateTree (cyclomatic 51) · ×1
  • DataTreeEvaluator.evaluateTree (cyclomatic 51) app/client/src/workers/common/DataTreeEvaluator/index.ts:1114 — DataTreeEvaluator.evaluateTree has cyclomatic complexity 51 (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 · (anonymous) (cyclomatic 50) · ×1
  • (anonymous) (cyclomatic 50) app/client/public/libraries/jsonwebtoken@8.5.1.js:1220 — (anonymous) has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 1 of the 50 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 1235, exports, a function literal at line 1288, …). 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 · exports (cyclomatic 50) · ×1
  • exports (cyclomatic 50) app/client/config/webpack.config.js:82 — exports has cyclomatic complexity 50 (threshold 15). Of this number, 34 points are the body's own statements and 16 belong to 12 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 · index.DatasourceAuth (cyclomatic 49) · ×1
  • index.DatasourceAuth (cyclomatic 49) app/client/src/pages/common/datasourceAuth/index.tsx:140 — index.DatasourceAuth has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 14 of the 49 points are its own statements and the rest belongs to 6 function items inside it that branch (datasourceButtonsComponentMap, a function literal at line 205, handleOauthDatasourceSave, …). 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 · widgets.updateWidgetAutoHeightSaga (cyclomatic 48) · ×1
  • widgets.updateWidgetAutoHeightSaga (cyclomatic 48) app/client/src/sagas/autoHeightSagas/widgets.ts:78 — widgets.updateWidgetAutoHeightSaga has cyclomatic complexity 48 (threshold 15). Of this number, 46 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 · index.Field (cyclomatic 46) · ×1
  • index.Field (cyclomatic 46) app/client/src/components/editorComponents/ActionCreator/Field/index.tsx:42 — index.Field has cyclomatic complexity 46 (threshold 15). Of this number, 45 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · index.FilePickerComponent (cyclomatic 45) · ×1
  • index.FilePickerComponent (cyclomatic 45) app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:213 — index.FilePickerComponent has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 8 of the 45 points are its own statements and the rest belongs to 11 function items inside it that branch (handleImageFileUpload, handleOtherFileUpload, a function literal at line 396, …). 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 · editPatch.applyWidgetPatch (cyclomatic 45) · ×1
  • editPatch.applyWidgetPatch (cyclomatic 45) app/client/packages/mcp/src/builder/editPatch.ts:1612 — editPatch.applyWidgetPatch has cyclomatic complexity 45 (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 · codeComment.performLineUncommenting (cyclomatic 45) · ×1
  • codeComment.performLineUncommenting (cyclomatic 45) app/client/src/components/editorComponents/CodeEditor/utils/codeComment.ts:176 — codeComment.performLineUncommenting has cyclomatic complexity 45 (threshold 15). Of this number, 32 points are the body's own statements and 13 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 · AddDeployKey.AddDeployKey (cyclomatic 45) · ×1
  • AddDeployKey.AddDeployKey (cyclomatic 45) app/client/src/git/components/common/AddDeployKey.tsx:127 — AddDeployKey.AddDeployKey has cyclomatic complexity 45 (threshold 15). Of this number, 23 points are the body's own statements and 22 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 · withWidgetProps.withWidgetProps · ×1
  • withWidgetProps.withWidgetProps::WrappedPropsComponent (cyclomatic 45) app/client/src/widgets/withWidgetProps.tsx:58 — withWidgetProps.withWidgetProps::WrappedPropsComponent has cyclomatic complexity 45 (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 · (anonymous) (cyclomatic 43) · ×1
  • (anonymous) (cyclomatic 43) app/client/public/libraries/jsonwebtoken@8.5.1.js:12155 — (anonymous) has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 1 of the 43 points is its own statement and the rest belongs to 10 function items inside it that branch (sign, genKeyPair, verify, …). 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 · useCanvasDragging.useCanvasDragging (cyclomatic 42) · ×1
  • useCanvasDragging.useCanvasDragging (cyclomatic 42) app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useCanvasDragging.ts:35 — useCanvasDragging.useCanvasDragging has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 4 of the 42 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 199, 226, 349, …). 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 · NumberInput.NumberInput (cyclomatic 41) · ×1
  • NumberInput.NumberInput (cyclomatic 41) app/client/packages/design-system/ads/src/NumberInput/NumberInput.tsx:17 — NumberInput.NumberInput has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 5 of the 41 points are its own statements and the rest belongs to 12 function items inside it that branch (handleChange, handlePrefixAndSuffix, 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.
D1 · Cyclomatic Complexity · index.ControlPanel (cyclomatic 41) · ×1
  • index.ControlPanel (cyclomatic 41) app/client/src/widgets/CameraWidget/component/index.tsx:262 — index.ControlPanel has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 1 of the 41 points is its own statement and the rest belongs to 10 function items inside it that branch (a function literal at line 335, renderControls, renderMediaDeviceSelectors, …). 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 · BuildingBlockAdditionSagas.pasteBuildingBlockWidgetsSaga (cyclomatic 40) · ×1
  • BuildingBlockAdditionSagas.pasteBuildingBlockWidgetsSaga (cyclomatic 40) app/client/src/sagas/BuildingBlockSagas/BuildingBlockAdditionSagas.ts:409 — BuildingBlockAdditionSagas.pasteBuildingBlockWidgetsSaga has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 15 of the 40 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 502, 561, 653). 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 · (anonymous) (cyclomatic 40) · ×1
  • (anonymous) (cyclomatic 40) app/client/public/libraries/jsonwebtoken@8.5.1.js:14820 — (anonymous) 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 26 function items inside it that branch (toArray, f, sum64_5_hi, …). 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 · index.GlobalAISidePanel (cyclomatic 39) · ×1
  • index.GlobalAISidePanel (cyclomatic 39) app/client/src/ce/components/editorComponents/GlobalAISidePanel/index.tsx:142 — index.GlobalAISidePanel has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 15 of the 39 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 166, 209, 313, …). 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 · Members.MemberSettings (cyclomatic 39) · ×1
  • Members.MemberSettings (cyclomatic 39) app/client/src/ce/pages/workspace/Members.tsx:192 — Members.MemberSettings has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 14 of the 39 points are its own statements and the rest belongs to 12 function items inside it that branch (onDeleteMember, a function literal at line 378, a function literal at line 270, …). 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 · positionUtils.extractAlignmentInfo (cyclomatic 39) · ×1
  • positionUtils.extractAlignmentInfo (cyclomatic 39) app/client/src/layoutSystems/autolayout/utils/positionUtils.ts:329 — positionUtils.extractAlignmentInfo has cyclomatic complexity 39 (threshold 15). Of this number, 30 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 · SettingsForm.SettingsForm (cyclomatic 39) · ×1
  • SettingsForm.SettingsForm (cyclomatic 39) app/client/src/pages/AdminSettings/SettingsForm.tsx:107 — SettingsForm.SettingsForm has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 8 of the 39 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 205, a function literal at line 236, saveChangedSettings, …). 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 · FormControl.FormControl (cyclomatic 39) · ×1
  • FormControl.FormControl (cyclomatic 39) app/client/src/pages/Editor/FormControl.tsx:45 — FormControl.FormControl has cyclomatic complexity 39 (threshold 15). Of this number, 27 points are the body's own statements and 12 belong to 7 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 · AIConfigServiceCEImpl.testLlmConnectionInternal (cyclomatic 39) · ×1
  • AIConfigServiceCEImpl.testLlmConnectionInternal (cyclomatic 39) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:369 — AIConfigServiceCEImpl.testLlmConnectionInternal has cyclomatic complexity 39 (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 · EncryptionHandler.findCandidateFieldsForType (cyclomatic 39) · ×1
  • EncryptionHandler.findCandidateFieldsForType (cyclomatic 39) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:38 — EncryptionHandler.findCandidateFieldsForType has cyclomatic complexity 39 (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 · TabMergeView.TabMergeView (cyclomatic 38) · ×1
  • TabMergeView.TabMergeView (cyclomatic 38) app/client/src/git/components/OpsModal/TabMerge/TabMergeView.tsx:86 — TabMergeView.TabMergeView has cyclomatic complexity 38 (threshold 15). Of this number, 24 points are the body's own statements and 14 belong to 6 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 · index.RenderDropdownOptions (cyclomatic 37) · ×1
  • index.RenderDropdownOptions (cyclomatic 37) app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:832 — index.RenderDropdownOptions has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 7 of the 37 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 889, a function literal at line 839, onOptionSearch, …). 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 · index.AIAssistant (cyclomatic 37) · ×1
  • index.AIAssistant (cyclomatic 37) app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx:331 — index.AIAssistant has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 14 of the 37 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 373, 568, 438, …). 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 · Merge.Merge (cyclomatic 37) · ×1
  • Merge.Merge (cyclomatic 37) app/client/src/pages/Editor/gitSync/Tabs/Merge.tsx:80 — Merge.Merge has cyclomatic complexity 37 (threshold 15). Of this number, 26 points are the body's own statements and 11 belong to 5 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 · HeaderCell.HeaderCellComponent (cyclomatic 37) · ×1
  • HeaderCell.HeaderCellComponent (cyclomatic 37) app/client/src/widgets/TableWidgetV2/component/cellComponents/HeaderCell.tsx:201 — HeaderCell.HeaderCellComponent has cyclomatic complexity 37 (threshold 15). Of this number, 26 points are the body's own statements and 11 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 · PostgresPluginExecutor.executeCommon (cyclomatic 37) · ×1
  • PostgresPluginExecutor.executeCommon (cyclomatic 37) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:355 — PostgresPluginExecutor.executeCommon has cyclomatic complexity 37 (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 · index.EditableTextSubComponent (cyclomatic 36) · ×1
  • index.EditableTextSubComponent (cyclomatic 36) app/client/packages/design-system/ads-old/src/EditableTextSubComponent/index.tsx:132 — index.EditableTextSubComponent has cyclomatic complexity 36 (threshold 15). Of this number, 16 points are the body's own statements and 20 belong to 4 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 · utils.getActionHeading (cyclomatic 36) · ×1
  • utils.getActionHeading (cyclomatic 36) app/client/src/components/editorComponents/ActionCreator/viewComponents/ActionBlockTree/utils.tsx:100 — utils.getActionHeading has cyclomatic complexity 36 (threshold 15). 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · index.GlobalSearch (cyclomatic 36) · ×1
  • index.GlobalSearch (cyclomatic 36) app/client/src/components/editorComponents/GlobalSearch/index.tsx:167 — index.GlobalSearch has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 3 of the 36 points are its own statements and the rest belongs to 17 function items inside it that branch (a function literal at line 300, a function literal at line 257, handleUpKey, …). 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 · IconSelectControl.handleKeydown (cyclomatic 36) · ×1
  • IconSelectControl.handleKeydown (cyclomatic 36) app/client/src/components/propertyControls/IconSelectControl.tsx:262 — IconSelectControl.handleKeydown 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.
D1 · Cyclomatic Complexity · IconSelectControlV2.handleKeydown (cyclomatic 36) · ×1
  • IconSelectControlV2.handleKeydown (cyclomatic 36) app/client/src/components/propertyControls/IconSelectControlV2.tsx:281 — IconSelectControlV2.handleKeydown 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.
D1 · Cyclomatic Complexity · Table.Table (cyclomatic 36) · ×1
  • Table.Table (cyclomatic 36) app/client/src/widgets/TableWidgetV2/component/Table.tsx:90 — Table.Table has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 9 of the 36 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 275, a function literal at line 226, handleResizeColumn, …). 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 · (anonymous) (cyclomatic 36) · ×1
  • (anonymous) (cyclomatic 36) REDACTED:316 — (anonymous) has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 3 of the 36 points are its own statements and the rest belongs to 21 function items inside it that branch (a function literal at line 377, gatherColumns, finish, …). 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 · index.DraggableList (cyclomatic 35) · ×1
  • index.DraggableList (cyclomatic 35) app/client/packages/design-system/ads-old/src/DraggableList/index.tsx:62 — index.DraggableList has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 3 of the 35 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 132, a function literal at line 104, a function literal at line 96, …). 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 · GoogleSheetForm.GoogleSheetForm (cyclomatic 35) · ×1
  • GoogleSheetForm.GoogleSheetForm (cyclomatic 35) app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GoogleSheetForm.tsx:111 — GoogleSheetForm.GoogleSheetForm has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 8 of the 35 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 160, onSelectSheetOption, a function literal at line 185, …). 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 · JSPaneUtils.getDifferenceInJSCollection (cyclomatic 34) · ×1
  • JSPaneUtils.getDifferenceInJSCollection (cyclomatic 34) app/client/src/utils/JSPaneUtils.tsx:40 — JSPaneUtils.getDifferenceInJSCollection has cyclomatic complexity 34 (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 · DraggableListCard.DraggableListCard (cyclomatic 34) · ×1
  • DraggableListCard.DraggableListCard (cyclomatic 34) app/client/src/components/propertyControls/DraggableListCard.tsx:69 — DraggableListCard.DraggableListCard has cyclomatic complexity 34 (threshold 15). Of this number, 16 points are the body's own statements and 18 belong to 7 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 · FixedLayoutResizable.FixedLayoutResizable (cyclomatic 34) · ×1
  • FixedLayoutResizable.FixedLayoutResizable (cyclomatic 34) app/client/src/layoutSystems/fixedlayout/common/resizer/FixedLayoutResizable.tsx:26 — FixedLayoutResizable.FixedLayoutResizable has cyclomatic complexity 34 (threshold 15). Of this number, 18 points are the body's own statements and 16 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 · Popper.default (cyclomatic 34) · ×1
  • Popper.default (cyclomatic 34) app/client/src/pages/Editor/Popper.tsx:88 — Popper.default has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 7 of the 34 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 183, onPositionChangeFn, 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 · S3PluginExecutor.executeCommon (cyclomatic 34) · ×1
  • S3PluginExecutor.executeCommon (cyclomatic 34) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:533 — S3PluginExecutor.executeCommon has cyclomatic complexity 34 (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 · BaseInputField.BaseInputField (cyclomatic 33) · ×1
  • BaseInputField.BaseInputField (cyclomatic 33) app/client/src/widgets/JSONFormWidget/fields/BaseInputField.tsx:150 — BaseInputField.BaseInputField has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 317, 211, 284, …). 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 · DropTargetComponent.DropTargetComponent (cyclomatic 33) · ×1
  • DropTargetComponent.DropTargetComponent (cyclomatic 33) app/client/src/layoutSystems/common/dropTarget/DropTargetComponent.tsx:196 — DropTargetComponent.DropTargetComponent has cyclomatic complexity 33 (threshold 15). Of this number, 18 points are the body's own statements and 15 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 · PanelPropertiesEditor.PanelPropertiesEditor (cyclomatic 33) · ×1
  • PanelPropertiesEditor.PanelPropertiesEditor (cyclomatic 33) app/client/src/pages/Editor/PropertyPane/PanelPropertiesEditor.tsx:54 — PanelPropertiesEditor.PanelPropertiesEditor has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 115, a function literal at line 99, updatePropertyTitle, …). 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 · index.CardComponent (cyclomatic 33) · ×1
  • index.CardComponent (cyclomatic 33) app/client/src/widgets/CardWidget/component/index.tsx:567 — index.CardComponent has cyclomatic complexity 33 (threshold 15). Of this number, 23 points are the body's own statements and 10 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 · (anonymous) (cyclomatic 33) · ×1
  • (anonymous) (cyclomatic 33) app/client/public/libraries/jsonwebtoken@8.5.1.js:16549 — (anonymous) has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 4 of the 33 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous)::h, (anonymous)::d, (anonymous)::randomFill, …). 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 · DynamicBindingUtils.getDynamicBindingsChangesSaga (cyclomatic 32) · ×1
  • DynamicBindingUtils.getDynamicBindingsChangesSaga (cyclomatic 32) app/client/src/utils/DynamicBindingUtils.ts:548 — DynamicBindingUtils.getDynamicBindingsChangesSaga has cyclomatic complexity 32 (threshold 15). Of this number, 31 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 · DatasourceCard.DatasourceCard (cyclomatic 32) · ×1
  • DatasourceCard.DatasourceCard (cyclomatic 32) app/client/src/pages/Editor/IntegrationEditor/DatasourceCard.tsx:150 — DatasourceCard.DatasourceCard has cyclomatic complexity 32 (threshold 15). Of this number, 22 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 · LintService.lintUpdatedTree (cyclomatic 32) · ×1
  • LintService.lintUpdatedTree (cyclomatic 32) app/client/src/plugins/Linting/handlers/lintService.ts:159 — LintService.lintUpdatedTree has cyclomatic complexity 32 (threshold 15). Of this number, 31 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 · CurlImporterServiceCEImpl.parse (cyclomatic 32) · ×1
  • CurlImporterServiceCEImpl.parse (cyclomatic 32) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CurlImporterServiceCEImpl.java:299 — CurlImporterServiceCEImpl.parse has cyclomatic complexity 32 (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 · PostgresPluginExecutor.getStructure (cyclomatic 32) · ×1
  • PostgresPluginExecutor.getStructure (cyclomatic 32) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:794 — PostgresPluginExecutor.getStructure has cyclomatic complexity 32 (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 · FirestorePluginExecutor.methodGetCollection (cyclomatic 32) · ×1
  • FirestorePluginExecutor.methodGetCollection (cyclomatic 32) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:620 — FirestorePluginExecutor.methodGetCollection has cyclomatic complexity 32 (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 · app.createMcpHttpServer · ×1
  • app.createMcpHttpServer::serveRequest (cyclomatic 31) app/client/packages/mcp/src/app.ts:8600 — app.createMcpHttpServer::serveRequest has cyclomatic complexity 31 (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 · FocusEntity.identifyEntityFromPath (cyclomatic 31) · ×1
  • FocusEntity.identifyEntityFromPath (cyclomatic 31) app/client/src/navigation/FocusEntity.ts:116 — FocusEntity.identifyEntityFromPath has cyclomatic complexity 31 (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 · index.AISettings (cyclomatic 31) · ×1
  • index.AISettings (cyclomatic 31) app/client/src/pages/AdminSettings/AI/index.tsx:471 — index.AISettings has cyclomatic complexity 31 (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: 2 other methods here (index.AISettings::handleSave, index.AISettings::handleTestApiKey) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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 · AddDeployKey.AddDeployKey (cyclomatic 31) · ×1
  • AddDeployKey.AddDeployKey (cyclomatic 31) app/client/src/pages/Editor/gitSync/Tabs/GitConnectionV2/AddDeployKey.tsx:150 — AddDeployKey.AddDeployKey has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 14 of the 31 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 188, 204, 169). 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 · index.GitConnectionV2 (cyclomatic 31) · ×1
  • index.GitConnectionV2 (cyclomatic 31) app/client/src/pages/Editor/gitSync/Tabs/GitConnectionV2/index.tsx:99 — index.GitConnectionV2 has cyclomatic complexity 31 (threshold 15). Of this number, 21 points are the body's own statements and 10 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 · (anonymous) (cyclomatic 31) · ×1
  • (anonymous) (cyclomatic 31) REDACTED:629 — (anonymous) has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 23 function items inside it that branch (a function literal at line 740, a function literal at line 727, (anonymous)::processRows::i, …). 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 · getEditableCellValidity (cyclomatic 31) · ×1
  • getEditableCellValidity (cyclomatic 31) app/client/src/widgets/wds/WDSTableWidget/widget/derived.js:716 — getEditableCellValidity has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 6 of the 31 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 782, createRegex, 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.
D1 · Cyclomatic Complexity · FormRender.FormRender (cyclomatic 30) · ×1
  • FormRender.FormRender (cyclomatic 30) app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/FormRender.tsx:76 — FormRender.FormRender has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 3 of the 30 points are its own statements and the rest belongs to 5 function items inside it that branch (renderEachConfigV2, renderConfig, renderNodeWithChildren, …). 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 · AISidePanel.AISidePanel (cyclomatic 30) · ×1
  • AISidePanel.AISidePanel (cyclomatic 30) app/client/src/ce/components/editorComponents/GPT/AISidePanel.tsx:152 — AISidePanel.AISidePanel has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 269, 310, 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.
D1 · Cyclomatic Complexity · CodeEditor.render (cyclomatic 30) · ×1
  • CodeEditor.render (cyclomatic 30) app/client/src/components/editorComponents/CodeEditor/index.tsx:1655 — CodeEditor.render has cyclomatic complexity 30 (threshold 15). Of this number, 25 points are the body's own statements and 5 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 · MainContainerWrapper.MainContainerWrapper (cyclomatic 30) · ×1
  • MainContainerWrapper.MainContainerWrapper (cyclomatic 30) app/client/src/pages/Editor/WidgetsEditor/components/MainContainerWrapper.tsx:110 — MainContainerWrapper.MainContainerWrapper 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 · index.MultiSelectComponent (cyclomatic 30) · ×1
  • index.MultiSelectComponent (cyclomatic 30) app/client/src/widgets/MultiSelectWidgetV2/component/index.tsx:83 — index.MultiSelectComponent has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 6 of the 30 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 137, a function literal at line 261, a function literal at line 224, …). 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 · Table.Table (cyclomatic 30) · ×1
  • Table.Table (cyclomatic 30) app/client/src/widgets/TableWidget/component/Table.tsx:104 — Table.Table has cyclomatic complexity 30 (threshold 15). Of this number, 19 points are the body's own statements and 11 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 · (anonymous) (cyclomatic 30) · ×1
  • (anonymous) (cyclomatic 30) REDACTED:1475 — (anonymous) has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 3 of the 30 points are its own statements and the rest belongs to 9 function items inside it that branch (shouldMapRow, processRow, setHeaders, …). 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 · RestAPIDatasourceFormTransformer.datasourceToFormAuthentication (cyclomatic 29) · ×1
  • RestAPIDatasourceFormTransformer.datasourceToFormAuthentication (cyclomatic 29) app/client/src/PluginActionEditor/transformers/RestAPIDatasourceFormTransformer.ts:244 — RestAPIDatasourceFormTransformer.datasourceToFormAuthentication has cyclomatic complexity 29 (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 · utils.actionToCode (cyclomatic 29) · ×1
  • utils.actionToCode (cyclomatic 29) app/client/src/components/editorComponents/ActionCreator/utils.ts:469 — utils.actionToCode has cyclomatic complexity 29 (threshold 15). Of this number, 23 points are the body's own statements and 6 belong to 6 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 · DatasourceSaaSEditor.renderDataSourceConfigForm (cyclomatic 29) · ×1
  • DatasourceSaaSEditor.renderDataSourceConfigForm (cyclomatic 29) app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx:577 — DatasourceSaaSEditor.renderDataSourceConfigForm has cyclomatic complexity 29 (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 · CodeMirrorTernService.requestCallback (cyclomatic 29) · ×1
  • CodeMirrorTernService.requestCallback (cyclomatic 29) app/client/src/utils/autocomplete/CodemirrorTernService.ts:505 — CodeMirrorTernService.requestCallback has cyclomatic complexity 29 (threshold 15). Of this number, 24 points are the body's own statements and 5 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 · common.getExpectedValue (cyclomatic 29) · ×1
  • common.getExpectedValue (cyclomatic 29) app/client/src/utils/validation/common.ts:26 — common.getExpectedValue has cyclomatic complexity 29 (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 · index.CameraComponent (cyclomatic 29) · ×1
  • index.CameraComponent (cyclomatic 29) app/client/src/widgets/CameraWidget/component/index.tsx:845 — index.CameraComponent has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 3 of the 29 points are its own statements and the rest belongs to 15 function items inside it that branch (renderComponent, a function literal at line 900, a function literal at line 930, …). 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 · jsExpr.stepProblem (cyclomatic 28) · ×1
  • jsExpr.stepProblem (cyclomatic 28) app/client/packages/mcp/src/builder/jsExpr.ts:771 — jsExpr.stepProblem has cyclomatic complexity 28 (threshold 15). Of this number, 27 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 · index.getAppsmithConfigs (cyclomatic 28) · ×1
  • index.getAppsmithConfigs (cyclomatic 28) app/client/src/ce/configs/index.ts:154 — index.getAppsmithConfigs 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 · EvalErrorHandler.logLatestEvalPropertyErrors (cyclomatic 28) · ×1
  • EvalErrorHandler.logLatestEvalPropertyErrors (cyclomatic 28) app/client/src/sagas/EvalErrorHandler.ts:37 — EvalErrorHandler.logLatestEvalPropertyErrors has cyclomatic complexity 28 (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 · ColorPickerComponentV2.ColorPickerComponent · ×1
  • ColorPickerComponentV2.ColorPickerComponent::handleKeydown (cyclomatic 28) app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:396 — ColorPickerComponentV2.ColorPickerComponent::handleKeydown has cyclomatic complexity 28 (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 · index.ConnectInitialize (cyclomatic 28) · ×1
  • index.ConnectInitialize (cyclomatic 28) app/client/src/git/components/ConnectModal/ConnectInitialize/index.tsx:100 — index.ConnectInitialize has cyclomatic complexity 28 (threshold 15). Of this number, 19 points are the body's own statements and 9 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 · McpKeysPage.McpKeysPage (cyclomatic 28) · ×1
  • McpKeysPage.McpKeysPage (cyclomatic 28) app/client/src/pages/AdminSettings/Profile/McpKeysPage.tsx:696 — McpKeysPage.McpKeysPage has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 8 of the 28 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 747, copyCreatedToken, copyClientConfig, …). 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 · Login.Login (cyclomatic 28) · ×1
  • Login.Login (cyclomatic 28) REDACTED:99 — Login.Login has cyclomatic complexity 28 (threshold 15). Of this number, 22 points are the body's own statements and 6 belong to 2 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 · SignUp.SignUp (cyclomatic 28) · ×1
  • SignUp.SignUp (cyclomatic 28) app/client/src/pages/UserAuth/SignUp.tsx:103 — SignUp.SignUp has cyclomatic complexity 28 (threshold 15). Of this number, 21 points are the body's own statements and 7 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 · reflowHelpers.getMovementMapHelper (cyclomatic 28) · ×1
  • reflowHelpers.getMovementMapHelper (cyclomatic 28) app/client/src/reflow/reflowHelpers.ts:617 — reflowHelpers.getMovementMapHelper has cyclomatic complexity 28 (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 · index.CustomComponent (cyclomatic 28) · ×1
  • index.CustomComponent (cyclomatic 28) REDACTED:56 — index.CustomComponent has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 5 of the 28 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 75, 150, 162, …). 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 · DatePickerComponent.render · ×1
  • DatePickerComponent.render::getInitialMonth (cyclomatic 28) app/client/src/widgets/DatePickerWidget2/component/index.tsx:241 — DatePickerComponent.render::getInitialMonth has cyclomatic complexity 28 (threshold 15). 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 · ListWidget.updateTemplateWidgetProperties (cyclomatic 28) · ×1
  • ListWidget.updateTemplateWidgetProperties (cyclomatic 28) app/client/src/widgets/ListWidget/widget/index.tsx:963 — ListWidget.updateTemplateWidgetProperties has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 5 of the 28 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 984, 1082, 1054, …). 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 · getColumnsPureFn.getColumnsPureFn (cyclomatic 28) · ×1
  • getColumnsPureFn.getColumnsPureFn (cyclomatic 28) app/client/src/widgets/TableWidgetV2/widget/reactTableUtils/getColumnsPureFn.tsx:30 — getColumnsPureFn.getColumnsPureFn has cyclomatic complexity 28 (threshold 15). Of this number, 15 points are the body's own statements and 13 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 · HeaderCell.HeaderCellComponent (cyclomatic 28) · ×1
  • HeaderCell.HeaderCellComponent (cyclomatic 28) app/client/src/widgets/wds/WDSTableWidget/component/cellComponents/HeaderCell.tsx:52 — HeaderCell.HeaderCellComponent has cyclomatic complexity 28 (threshold 15). Of this number, 17 points are the body's own statements and 11 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 · Table.Table (cyclomatic 28) · ×1
  • Table.Table (cyclomatic 28) app/client/src/widgets/wds/WDSTableWidget/component/Table.tsx:139 — Table.Table has cyclomatic complexity 28 (threshold 15). Of this number, 18 points are the body's own statements and 10 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 · getEditableCellValidity (cyclomatic 28) · ×1
  • getEditableCellValidity (cyclomatic 28) app/client/src/widgets/TableWidgetV2/widget/derived.js:1185 — getEditableCellValidity has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 6 of the 28 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 1251, createRegex, a function literal at line 1233, …). 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 · 040-revert-button-style-to-button-color.revertButtonStyleToButtonColor (cyclomatic 27) · ×1
  • 040-revert-button-style-to-button-color.revertButtonStyleToButtonColor (cyclomatic 27) app/client/packages/dsl/src/migrate/migrations/040-revert-button-style-to-button-color.ts:20 — 040-revert-button-style-to-button-color.revertButtonStyleToButtonColor has cyclomatic complexity 27 (threshold 15). Of this number, 26 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 · editPatch.applyMove (cyclomatic 27) · ×1
  • editPatch.applyMove (cyclomatic 27) app/client/packages/mcp/src/builder/editPatch.ts:1853 — editPatch.applyMove has cyclomatic complexity 27 (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 · InviteUsersForm.InviteUsersForm (cyclomatic 27) · ×1
  • InviteUsersForm.InviteUsersForm (cyclomatic 27) app/client/src/ce/pages/workspace/InviteUsersForm.tsx:283 — InviteUsersForm.InviteUsersForm has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to 8 function items inside it that branch (inviteUsersSubmitHandler, a function literal at line 434, a function literal at line 497, …). 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 · DebuggerSagas.debuggerLogSaga (cyclomatic 27) · ×1
  • DebuggerSagas.debuggerLogSaga (cyclomatic 27) app/client/src/sagas/DebuggerSagas.ts:180 — DebuggerSagas.debuggerLogSaga has cyclomatic complexity 27 (threshold 15). Of this number, 21 points are the body's own statements and 6 belong to 3 function literals inside it that branch. 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · CodeEditor.componentDidUpdate (cyclomatic 27) · ×1
  • CodeEditor.componentDidUpdate (cyclomatic 27) app/client/src/components/editorComponents/CodeEditor/index.tsx:588 — CodeEditor.componentDidUpdate has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 632, 602, 619). 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 · index.Profile (cyclomatic 27) · ×1
  • index.Profile (cyclomatic 27) app/client/src/pages/AdminSettings/Profile/index.tsx:80 — index.Profile has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 10 of the 27 points are its own statements and the rest belongs to 9 function items inside it that branch (updateConfig, a function literal at line 119, onSave, …). 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 · DatasourceFormRenderer.DatasourceFormRenderer (cyclomatic 27) · ×1
  • DatasourceFormRenderer.DatasourceFormRenderer (cyclomatic 27) app/client/src/pages/Editor/DataSourceEditor/DatasourceFormRenderer.tsx:117 — DatasourceFormRenderer.DatasourceFormRenderer has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to one function literal inside it that branches (line 126). 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 · EntitySearchBar.EntitySearchBar (cyclomatic 27) · ×1
  • EntitySearchBar.EntitySearchBar (cyclomatic 27) app/client/src/pages/common/SearchBar/EntitySearchBar.tsx:55 — EntitySearchBar.EntitySearchBar has cyclomatic complexity 27 (threshold 15). Of this number, 15 points are the body's own statements and 12 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 · evalTree.evalTree (cyclomatic 27) · ×1
  • evalTree.evalTree (cyclomatic 27) app/client/src/workers/Evaluation/handlers/evalTree.ts:48 — evalTree.evalTree has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body's own statements and 2 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 · formEval.generateInitialEvalState (cyclomatic 27) · ×1
  • formEval.generateInitialEvalState (cyclomatic 27) app/client/src/workers/Evaluation/formEval.ts:55 — formEval.generateInitialEvalState has cyclomatic complexity 27 (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 · CreateDBTablePageSolutionCEImpl.createPageFromDBTable (cyclomatic 27) · ×1
  • CreateDBTablePageSolutionCEImpl.createPageFromDBTable (cyclomatic 27) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:200 — CreateDBTablePageSolutionCEImpl.createPageFromDBTable has cyclomatic complexity 27 (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 · MySqlDatasourceUtils.validateDatasource (cyclomatic 27) · ×1
  • MySqlDatasourceUtils.validateDatasource (cyclomatic 27) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:175 — MySqlDatasourceUtils.validateDatasource has cyclomatic complexity 27 (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 · index.TagInputComponent (cyclomatic 26) · ×1
  • index.TagInputComponent (cyclomatic 26) app/client/packages/design-system/ads-old/src/TagInput/index.tsx:116 — index.TagInputComponent has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 4 of the 26 points are its own statements and the rest belongs to 8 function items inside it that branch (onKeyDown, a function literal at line 127, a function literal at line 118, …). 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 · schema.formulaProblem (cyclomatic 26) · ×1
  • schema.formulaProblem (cyclomatic 26) app/client/packages/mcp/src/builder/schema.ts:696 — schema.formulaProblem 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 · evaluationUtils.translateDiffEventToDataTreeDiffEvent (cyclomatic 26) · ×1
  • evaluationUtils.translateDiffEventToDataTreeDiffEvent (cyclomatic 26) app/client/src/ce/workers/Evaluation/evaluationUtils.ts:147 — evaluationUtils.translateDiffEventToDataTreeDiffEvent 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.
D1 · Cyclomatic Complexity · KeyValueArrayControl.KeyValueRow (cyclomatic 26) · ×1
  • KeyValueArrayControl.KeyValueRow (cyclomatic 26) app/client/src/components/formControls/KeyValueArrayControl.tsx:86 — KeyValueArrayControl.KeyValueRow has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 5 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 189, 129, 95, …). 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 · useSpaceDistributionEvents.useSpaceDistributionEvents (cyclomatic 26) · ×1
  • useSpaceDistributionEvents.useSpaceDistributionEvents (cyclomatic 26) app/client/src/layoutSystems/anvil/sectionSpaceDistributor/useSpaceDistributionEvents.ts:42 — useSpaceDistributionEvents.useSpaceDistributionEvents has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 254, 109, 150, …). 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 · index.NavigationSettings (cyclomatic 26) · ×1
  • index.NavigationSettings (cyclomatic 26) app/client/src/pages/AppIDE/components/AppSettings/components/NavigationSettings/index.tsx:21 — index.NavigationSettings 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 3 function literals inside it that branch (lines 69, 107, 35). 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 · index.Entity (cyclomatic 26) · ×1
  • index.Entity (cyclomatic 26) app/client/src/pages/Editor/Explorer/Entity/index.tsx:259 — index.Entity has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 7 function items inside it that branch (toggleChildren, open, a function literal at line 322, …). 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 · WidgetSelectionSagas.selectWidgetSaga (cyclomatic 26) · ×1
  • WidgetSelectionSagas.selectWidgetSaga (cyclomatic 26) app/client/src/sagas/WidgetSelectionSagas.ts:71 — WidgetSelectionSagas.selectWidgetSaga has cyclomatic complexity 26 (threshold 15). 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 · QueryPaneSagas.formValueChangeSaga (cyclomatic 26) · ×1
  • QueryPaneSagas.formValueChangeSaga (cyclomatic 26) app/client/src/sagas/QueryPaneSagas.ts:208 — QueryPaneSagas.formValueChangeSaga 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 · CurlImporterServiceCEImpl.lex (cyclomatic 26) · ×1
  • CurlImporterServiceCEImpl.lex (cyclomatic 26) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CurlImporterServiceCEImpl.java:143 — CurlImporterServiceCEImpl.lex 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.
D1 · Cyclomatic Complexity · 009-table-widget-property-pane-migration.tableWidgetPropertyPaneMigrations (cyclomatic 25) · ×1
  • 009-table-widget-property-pane-migration.tableWidgetPropertyPaneMigrations (cyclomatic 25) app/client/packages/dsl/src/migrate/migrations/009-table-widget-property-pane-migration.ts:30 — 009-table-widget-property-pane-migration.tableWidgetPropertyPaneMigrations has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 31, 77). 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 · jsExpr.compileSteps (cyclomatic 25) · ×1
  • jsExpr.compileSteps (cyclomatic 25) app/client/packages/mcp/src/builder/jsExpr.ts:1106 — jsExpr.compileSteps 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 · app.buildMcpServer · ×1
  • app.buildMcpServer::elicitDestructiveApproval (cyclomatic 25) app/client/packages/mcp/src/app.ts:2935 — app.buildMcpServer::elicitDestructiveApproval 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 · JSResponseView.JSResponseView (cyclomatic 25) · ×1
  • JSResponseView.JSResponseView (cyclomatic 25) app/client/src/components/editorComponents/JSResponseView.tsx:77 — JSResponseView.JSResponseView 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 5 function literals inside it that branch (lines 138, 92, 102, …). 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 · KeyValueFieldArray.KeyValueRow (cyclomatic 25) · ×1
  • KeyValueFieldArray.KeyValueRow (cyclomatic 25) app/client/src/components/editorComponents/form/fields/KeyValueFieldArray.tsx:101 — KeyValueFieldArray.KeyValueRow has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 132, 102). 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 · DropDownControl.render (cyclomatic 25) · ×1
  • DropDownControl.render (cyclomatic 25) app/client/src/components/propertyControls/DropDownControl.tsx:61 — DropDownControl.render has cyclomatic complexity 25 (threshold 15). Of this number, 21 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 · multiSelect.defaultOptionValueValidation (cyclomatic 25) · ×1
  • multiSelect.defaultOptionValueValidation (cyclomatic 25) app/client/src/widgets/JSONFormWidget/widget/propertyConfig/properties/multiSelect.ts:11 — multiSelect.defaultOptionValueValidation has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body's own statements and 10 belong to 2 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.WidgetNameComponent (cyclomatic 25) · ×1
  • index.WidgetNameComponent (cyclomatic 25) app/client/src/layoutSystems/common/widgetName/index.tsx:78 — index.WidgetNameComponent has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 4 function items inside it that branch (shouldShowWidgetName, a function literal at line 106, getCurrentActivity, …). 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 · index.TestResultDisplay (cyclomatic 25) · ×1
  • index.TestResultDisplay (cyclomatic 25) app/client/src/pages/AdminSettings/AI/index.tsx:347 — index.TestResultDisplay 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 · PropertySection.PropertySection (cyclomatic 25) · ×1
  • PropertySection.PropertySection (cyclomatic 25) app/client/src/pages/Editor/PropertyPane/PropertySection.tsx:95 — PropertySection.PropertySection has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body's own statements and 9 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 · PropertyPaneTitle.PropertyPaneTitle (cyclomatic 25) · ×1
  • PropertyPaneTitle.PropertyPaneTitle (cyclomatic 25) app/client/src/pages/Editor/PropertyPane/PropertyPaneTitle.tsx:61 — PropertyPaneTitle.PropertyPaneTitle has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 10 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 102, a function literal at line 88, a function literal at line 123, …). 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 · PluginActionSaga.runActionSaga (cyclomatic 25) · ×1
  • PluginActionSaga.runActionSaga (cyclomatic 25) app/client/src/sagas/ActionExecution/PluginActionSaga.ts:739 — PluginActionSaga.runActionSaga 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 · OneClickBindingSaga.BindWidgetToDatasource (cyclomatic 25) · ×1
  • OneClickBindingSaga.BindWidgetToDatasource (cyclomatic 25) app/client/src/sagas/OneClickBindingSaga.ts:100 — OneClickBindingSaga.BindWidgetToDatasource has cyclomatic complexity 25 (threshold 15). Of this number, 23 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 · containers.dynamicallyUpdateContainersSaga (cyclomatic 25) · ×1
  • containers.dynamicallyUpdateContainersSaga (cyclomatic 25) app/client/src/sagas/autoHeightSagas/containers.ts:23 — containers.dynamicallyUpdateContainersSaga has cyclomatic complexity 25 (threshold 15). 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, 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 · RangeSlider.RangeSliderComponent (cyclomatic 25) · ×1
  • RangeSlider.RangeSliderComponent (cyclomatic 25) app/client/src/widgets/RangeSliderWidget/component/RangeSlider.tsx:104 — RangeSlider.RangeSliderComponent 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 (setRangedValue, handleTrackKeydownCapture, handleTrackMouseDownCapture, …). 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 · getColumnsPureFn.getColumnsPureFn (cyclomatic 25) · ×1
  • getColumnsPureFn.getColumnsPureFn (cyclomatic 25) app/client/src/widgets/wds/WDSTableWidget/widget/reactTableUtils/getColumnsPureFn.tsx:29 — getColumnsPureFn.getColumnsPureFn has cyclomatic complexity 25 (threshold 15). Of this number, 14 points are the body's own statements and 11 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 · validations.getExpectedType (cyclomatic 25) · ×1
  • validations.getExpectedType (cyclomatic 25) REDACTED:355 — validations.getExpectedType 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 · index.updateDependencyMap (cyclomatic 25) · ×1
  • index.updateDependencyMap (cyclomatic 25) app/client/src/workers/common/DependencyMap/index.ts:169 — index.updateDependencyMap 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 one function literal inside it that branches (line 197). 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 · AIConfigServiceCEImpl.testApiKeyInternal (cyclomatic 25) · ×1
  • AIConfigServiceCEImpl.testApiKeyInternal (cyclomatic 25) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:805 — AIConfigServiceCEImpl.testApiKeyInternal 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 · PostgresPlugin.createConnectionPool (cyclomatic 25) · ×1
  • PostgresPlugin.createConnectionPool (cyclomatic 25) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1193 — PostgresPlugin.createConnectionPool 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 · FirestorePluginExecutor.executeParameterized (cyclomatic 25) · ×1
  • FirestorePluginExecutor.executeParameterized (cyclomatic 25) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:135 — FirestorePluginExecutor.executeParameterized 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 · DynamoPlugin.plainToSdk (cyclomatic 25) · ×1
  • DynamoPlugin.plainToSdk (cyclomatic 25) app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java:507 — DynamoPlugin.plainToSdk 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 · DatasourceTab.DatasourceTab (cyclomatic 24) · ×1
  • DatasourceTab.DatasourceTab (cyclomatic 24) app/client/src/PluginActionEditor/components/PluginActionResponse/components/DatasourceTab/DatasourceTab.tsx:44 — DatasourceTab.DatasourceTab has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (getStatusState, renderStatus, a function literal at line 102, …). 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 · Response.Response (cyclomatic 24) · ×1
  • Response.Response (cyclomatic 24) app/client/src/PluginActionEditor/components/PluginActionResponse/components/Response/Response.tsx:48 — Response.Response has cyclomatic complexity 24 (threshold 15). Of this number, 16 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.
D1 · Cyclomatic Complexity · index.getConfigsFromEnvVars (cyclomatic 24) · ×1
  • index.getConfigsFromEnvVars (cyclomatic 24) app/client/src/ce/configs/index.ts:75 — index.getConfigsFromEnvVars has cyclomatic complexity 24 (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 · RouteParamsMiddleware.handler (cyclomatic 24) · ×1
  • RouteParamsMiddleware.handler (cyclomatic 24) app/client/src/ce/middlewares/RouteParamsMiddleware.ts:15 — RouteParamsMiddleware.handler has cyclomatic complexity 24 (threshold 15). 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · AIAssistantSagas.fetchAIResponseSaga (cyclomatic 24) · ×1
  • AIAssistantSagas.fetchAIResponseSaga (cyclomatic 24) app/client/src/ce/sagas/AIAssistantSagas.ts:104 — AIAssistantSagas.fetchAIResponseSaga 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 · codeComment.performLineCommenting (cyclomatic 24) · ×1
  • codeComment.performLineCommenting (cyclomatic 24) app/client/src/components/editorComponents/CodeEditor/utils/codeComment.ts:80 — codeComment.performLineCommenting has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body's own statements and 12 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 · WidgetsMultiSelectBox.WidgetsMultiSelectBox (cyclomatic 24) · ×1
  • WidgetsMultiSelectBox.WidgetsMultiSelectBox (cyclomatic 24) app/client/src/layoutSystems/fixedlayout/common/widgetGrouping/WidgetsMultiSelectBox.tsx:177 — WidgetsMultiSelectBox.WidgetsMultiSelectBox has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 262, a function literal at line 204, a function literal at line 274, …). 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 · index.AppViewer (cyclomatic 24) · ×1
  • index.AppViewer (cyclomatic 24) app/client/src/pages/AppViewer/index.tsx:102 — index.AppViewer has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 6 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 157, renderChildren, 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.
D1 · Cyclomatic Complexity · CustomEChartIFrameComponent.CustomEChartIFrameComponent (cyclomatic 24) · ×1
  • CustomEChartIFrameComponent.CustomEChartIFrameComponent (cyclomatic 24) REDACTED:35 — CustomEChartIFrameComponent.CustomEChartIFrameComponent has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (onMessageCallback, onMessage, a function literal at line 260, …). 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 · DateCell.DateCell (cyclomatic 24) · ×1
  • DateCell.DateCell (cyclomatic 24) app/client/src/widgets/TableWidgetV2/component/cellComponents/DateCell.tsx:156 — DateCell.DateCell has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (onDateSelected, a function literal at line 221, convertInputFormatToMomentFormat, …). 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 · helper.validateInput (cyclomatic 24) · ×1
  • helper.validateInput (cyclomatic 24) app/client/src/widgets/wds/WDSInputWidget/widget/helper.ts:62 — helper.validateInput 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 · utils.updateJSCollectionInUnEvalTree (cyclomatic 24) · ×1
  • utils.updateJSCollectionInUnEvalTree (cyclomatic 24) app/client/src/workers/Evaluation/JSObject/utils.ts:39 — utils.updateJSCollectionInUnEvalTree 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 · formEval.evaluate (cyclomatic 24) · ×1
  • formEval.evaluate (cyclomatic 24) app/client/src/workers/Evaluation/formEval.ts:340 — formEval.evaluate 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 2 function literals inside it that branch (lines 354, 348). 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 · DatasourceUtils.buildClientURI (cyclomatic 24) · ×1
  • DatasourceUtils.buildClientURI (cyclomatic 24) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/utils/DatasourceUtils.java:163 — DatasourceUtils.buildClientURI 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 · index.TreeDropdown · ×1
  • index.TreeDropdown::handleKeydown (cyclomatic 23) app/client/packages/design-system/ads-old/src/TreeDropdown/index.tsx:509 — index.TreeDropdown::handleKeydown 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.
D1 · Cyclomatic Complexity · index.DefaultDropDownValueNode (cyclomatic 23) · ×1
  • index.DefaultDropDownValueNode (cyclomatic 23) app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:694 — index.DefaultDropDownValueNode has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body's own statements and 6 belong to 2 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 · ColorGrid.ColorGrid (cyclomatic 23) · ×1
  • ColorGrid.ColorGrid (cyclomatic 23) app/client/packages/design-system/widgets/src/testing/ColorGrid.tsx:57 — ColorGrid.ColorGrid has cyclomatic complexity 23 (threshold 15). 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 (a function literal at line 120, secondColorName, a function literal at line 139, …). 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 · semantic.safeBindings (cyclomatic 23) · ×1
  • semantic.safeBindings (cyclomatic 23) app/client/packages/mcp/src/builder/semantic.ts:391 — semantic.safeBindings 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.
D1 · Cyclomatic Complexity · DatasourcesSagas.updateDatasourceSaga (cyclomatic 23) · ×1
  • DatasourcesSagas.updateDatasourceSaga (cyclomatic 23) app/client/src/ce/sagas/DatasourcesSagas.ts:527 — DatasourcesSagas.updateDatasourceSaga has cyclomatic complexity 23 (threshold 15). Of this number, 22 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 · PositionedContainer.PositionedContainer (cyclomatic 23) · ×1
  • PositionedContainer.PositionedContainer (cyclomatic 23) app/client/src/components/designSystems/appsmith/PositionedContainer.tsx:57 — PositionedContainer.PositionedContainer has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 120, 65). 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 · ErrorLogItem.ErrorLogItem (cyclomatic 23) · ×1
  • ErrorLogItem.ErrorLogItem (cyclomatic 23) app/client/src/components/editorComponents/Debugger/ErrorLogs/ErrorLogItem.tsx:183 — ErrorLogItem.ErrorLogItem has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body's own statements and 4 belong to 2 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 · CodeEditor.handleAutocompleteKeydown (cyclomatic 23) · ×1
  • CodeEditor.handleAutocompleteKeydown (cyclomatic 23) app/client/src/components/editorComponents/CodeEditor/index.tsx:1446 — CodeEditor.handleAutocompleteKeydown has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body's own statements and 1 belongs 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 · PrimaryCTA.PrimaryCTA (cyclomatic 23) · ×1
  • PrimaryCTA.PrimaryCTA (cyclomatic 23) app/client/src/pages/AppViewer/PrimaryCTA.tsx:51 — PrimaryCTA.PrimaryCTA has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 143, appendOrDeleteForkParam, 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.
D1 · Cyclomatic Complexity · Form.JSEditorForm (cyclomatic 23) · ×1
  • Form.JSEditorForm (cyclomatic 23) app/client/src/pages/Editor/JSEditor/Form.tsx:103 — Form.JSEditorForm has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 157, executeJSAction, handleRunAction, …). 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 · utils.draggableElement (cyclomatic 23) · ×1
  • utils.draggableElement (cyclomatic 23) app/client/src/pages/Editor/utils.tsx:35 — utils.draggableElement has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 9 function items inside it that branch (calculateBoundaryConfinedPosition, elementDrag, teardown, …). 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 · ResetPassword.ResetPassword (cyclomatic 23) · ×1
  • ResetPassword.ResetPassword (cyclomatic 23) app/client/src/pages/UserAuth/ResetPassword.tsx:62 — ResetPassword.ResetPassword has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body's own statements and 1 belongs 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 · useReflow.useReflow.reflowSpaces (cyclomatic 23) · ×1
  • useReflow.useReflow.reflowSpaces (cyclomatic 23) app/client/src/utils/hooks/useReflow.ts:132 — useReflow.useReflow.reflowSpaces has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body's own statements and 3 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 · InputWidget.getWidgetView (cyclomatic 23) · ×1
  • InputWidget.getWidgetView (cyclomatic 23) app/client/src/widgets/InputWidgetV2/widget/index.tsx:792 — InputWidget.getWidgetView 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 · MetaHOC.withMeta (cyclomatic 23) · ×1
  • MetaHOC.withMeta (cyclomatic 23) app/client/src/widgets/MetaHOC.tsx:48 — MetaHOC.withMeta has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 96, 232, 277, …). 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 · index.Actions (cyclomatic 23) · ×1
  • index.Actions (cyclomatic 23) app/client/src/widgets/TableWidgetV2/component/header/actions/index.tsx:93 — index.Actions has cyclomatic complexity 23 (threshold 15). Of this number, 17 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 · WDSInputWidget.onKeyDown (cyclomatic 23) · ×1
  • WDSInputWidget.onKeyDown (cyclomatic 23) app/client/src/widgets/wds/WDSInputWidget/widget/index.tsx:116 — WDSInputWidget.onKeyDown has cyclomatic complexity 23 (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 · validations.validateArray (cyclomatic 23) · ×1
  • validations.validateArray (cyclomatic 23) REDACTED:125 — validations.validateArray has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body's own statements and 8 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 · AIAssistantServiceCEImpl.callLocalLLMAPI (cyclomatic 23) · ×1
  • AIAssistantServiceCEImpl.callLocalLLMAPI (cyclomatic 23) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:609 — AIAssistantServiceCEImpl.callLocalLLMAPI 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 · MigrationHelperMethods.migrateFirestoreActionsFormData (cyclomatic 23) · ×1
  • MigrationHelperMethods.migrateFirestoreActionsFormData (cyclomatic 23) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:507 — MigrationHelperMethods.migrateFirestoreActionsFormData 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.
D1 · Cyclomatic Complexity · WhereConditionUtils.applyWhereConditional (cyclomatic 23) · ×1
  • WhereConditionUtils.applyWhereConditional (cyclomatic 23) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/utils/WhereConditionUtils.java:25 — WhereConditionUtils.applyWhereConditional has cyclomatic complexity 23 (threshold 15). 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · env-file.parse_value (cyclomatic 23) · ×1
  • env-file.parse_value (cyclomatic 23) deploy/docker/fs/opt/appsmith/env-file.py:46 — env-file.parse_value 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.
D1 · Cyclomatic Complexity · index.extractExpressionsFromCode (cyclomatic 22) · ×1
  • index.extractExpressionsFromCode (cyclomatic 22) app/client/packages/ast/src/index.ts:759 — index.extractExpressionsFromCode has cyclomatic complexity 22 (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 · design.planLayout (cyclomatic 22) · ×1
  • design.planLayout (cyclomatic 22) app/client/packages/mcp/src/builder/design.ts:142 — design.planLayout has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body's own statements and 5 belong 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 · customWidgetscript.main (cyclomatic 22) · ×1
  • customWidgetscript.main (cyclomatic 22) REDACTED:115 — customWidgetscript.main has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 285, 270, 140, …). 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 · ActionTree.ActionTree (cyclomatic 22) · ×1
  • ActionTree.ActionTree (cyclomatic 22) app/client/src/components/editorComponents/ActionCreator/viewComponents/Action/ActionTree.tsx:46 — ActionTree.ActionTree has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 288, 102, 129, …). 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 · PeekOverlayPopup.PeekOverlayPopUpContent (cyclomatic 22) · ×1
  • PeekOverlayPopup.PeekOverlayPopUpContent (cyclomatic 22) app/client/src/components/editorComponents/CodeEditor/PeekOverlayPopup/PeekOverlayPopup.tsx:40 — PeekOverlayPopup.PeekOverlayPopUpContent has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body's own statements and 1 belongs to one function literal 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 · actionProperties.getBindingAndReactivePathsOfAction · ×1
  • actionProperties.getBindingAndReactivePathsOfAction::recursiveFindBindingPaths (cyclomatic 22) app/client/src/entities/Action/actionProperties.ts:77 — actionProperties.getBindingAndReactivePathsOfAction::recursiveFindBindingPaths 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 · InputField.isValid (cyclomatic 22) · ×1
  • InputField.isValid (cyclomatic 22) app/client/src/widgets/JSONFormWidget/fields/InputField.tsx:45 — InputField.isValid has cyclomatic complexity 22 (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 · useRenderBlocksOnCanvas.useRenderBlocksOnCanvas (cyclomatic 22) · ×1
  • useRenderBlocksOnCanvas.useRenderBlocksOnCanvas (cyclomatic 22) app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useRenderBlocksOnCanvas.ts:21 — useRenderBlocksOnCanvas.useRenderBlocksOnCanvas 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 2 function items inside it that branch (renderBlocks, drawBlockOnCanvas). 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 · ModalResizable.ModalResizable (cyclomatic 22) · ×1
  • ModalResizable.ModalResizable (cyclomatic 22) app/client/src/layoutSystems/common/resizer/ModalResizable.tsx:107 — ModalResizable.ModalResizable has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body's own statements and 11 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 · NewActionButton.NewActionButton (cyclomatic 22) · ×1
  • NewActionButton.NewActionButton (cyclomatic 22) app/client/src/pages/Editor/DataSourceEditor/NewActionButton.tsx:58 — NewActionButton.NewActionButton 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 5 function items inside it that branch (a function literal at line 113, a function literal at line 172, a function literal at line 85, …). 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 · APIOrSaasPlugins.APIOrSaasPlugins (cyclomatic 22) · ×1
  • APIOrSaasPlugins.APIOrSaasPlugins (cyclomatic 22) app/client/src/pages/Editor/IntegrationEditor/APIOrSaasPlugins.tsx:91 — APIOrSaasPlugins.APIOrSaasPlugins 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 5 function items inside it that branch (handleOnClick, handleCreateNew, 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 · QueryDebuggerTabs.QueryDebuggerTabs (cyclomatic 22) · ×1
  • QueryDebuggerTabs.QueryDebuggerTabs (cyclomatic 22) app/client/src/pages/Editor/QueryEditor/QueryDebuggerTabs.tsx:50 — QueryDebuggerTabs.QueryDebuggerTabs has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 114, 91, 138, …). 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 · reflowUtils.getCollidingSpaceMap (cyclomatic 22) · ×1
  • reflowUtils.getCollidingSpaceMap (cyclomatic 22) app/client/src/reflow/reflowUtils.ts:297 — reflowUtils.getCollidingSpaceMap 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 · PluginActionSaga.evaluateActionParams (cyclomatic 22) · ×1
  • PluginActionSaga.evaluateActionParams (cyclomatic 22) app/client/src/sagas/ActionExecution/PluginActionSaga.ts:376 — PluginActionSaga.evaluateActionParams 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 · propertyUtils.defaultOptionValueValidation (cyclomatic 22) · ×1
  • propertyUtils.defaultOptionValueValidation (cyclomatic 22) app/client/src/widgets/MultiSelectWidgetV2/widget/propertyUtils.ts:8 — propertyUtils.defaultOptionValueValidation has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body's own statements and 5 belong 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 · TableWidget.transformData (cyclomatic 22) · ×1
  • TableWidget.transformData (cyclomatic 22) app/client/src/widgets/TableWidget/widget/index.tsx:721 — TableWidget.transformData 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 · TableWidgetV2.componentDidUpdate (cyclomatic 22) · ×1
  • TableWidgetV2.componentDidUpdate (cyclomatic 22) app/client/src/widgets/TableWidgetV2/widget/index.tsx:950 — TableWidgetV2.componentDidUpdate 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 · index.InputComponent (cyclomatic 22) · ×1
  • index.InputComponent (cyclomatic 22) app/client/src/widgets/wds/WDSInputWidget/component/index.tsx:12 — index.InputComponent has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 64, 27, 35, …). 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 · defaultOptionValueValidation.defaultOptionValueValidation (cyclomatic 22) · ×1
  • defaultOptionValueValidation.defaultOptionValueValidation (cyclomatic 22) app/client/src/widgets/wds/WDSMultiSelectWidget/config/propertyPaneConfig/validations/defaultOptionValueValidation.ts:10 — defaultOptionValueValidation.defaultOptionValueValidation has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body's own statements and 5 belong 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 · PostgresPluginExecutor.substituteValueInInput (cyclomatic 22) · ×1
  • PostgresPluginExecutor.substituteValueInInput (cyclomatic 22) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1039 — PostgresPluginExecutor.substituteValueInInput has cyclomatic complexity 22 (threshold 15). 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · PostgresPluginExecutor.validateDatasource (cyclomatic 22) · ×1
  • PostgresPluginExecutor.validateDatasource (cyclomatic 22) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:713 — PostgresPluginExecutor.validateDatasource 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 · DataUtils.parseMultipartFileData (cyclomatic 22) · ×1
  • DataUtils.parseMultipartFileData (cyclomatic 22) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/DataUtils.java:191 — DataUtils.parseMultipartFileData 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 · DataTypeStringUtils.jsonSmartReplacementPlaceholderWithValue (cyclomatic 22) · ×1
  • DataTypeStringUtils.jsonSmartReplacementPlaceholderWithValue (cyclomatic 22) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:205 — DataTypeStringUtils.jsonSmartReplacementPlaceholderWithValue has cyclomatic complexity 22 (threshold 15). 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · app.serializeArtifact (cyclomatic 21) · ×1
  • app.serializeArtifact (cyclomatic 21) app/client/packages/mcp/src/app.ts:561 — app.serializeArtifact has cyclomatic complexity 21 (threshold 15). Of this number, 12 points are the body's own statements and 9 belong to one function literal 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 · lintHelpers.getLintAnnotations (cyclomatic 21) · ×1
  • lintHelpers.getLintAnnotations (cyclomatic 21) REDACTED:145 — lintHelpers.getLintAnnotations 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 one function literal inside it that branches (line 155). 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 · index.PartialExportModal (cyclomatic 21) · ×1
  • index.PartialExportModal (cyclomatic 21) app/client/src/components/editorComponents/PartialImportExport/PartialExportModal/index.tsx:47 — index.PartialExportModal 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 6 function items inside it that branch (a function literal at line 77, a function literal at line 67, selectOnlyParentIds, …). 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 · ColorPickerComponentV2.ColorPickerPopup (cyclomatic 21) · ×1
  • ColorPickerComponentV2.ColorPickerPopup (cyclomatic 21) app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:131 — ColorPickerComponentV2.ColorPickerPopup has cyclomatic complexity 21 (threshold 15). Of this number, 11 points are the body's own statements and 10 belong to 5 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 · utils.getPropertiesToUpdateForReset (cyclomatic 21) · ×1
  • utils.getPropertiesToUpdateForReset (cyclomatic 21) app/client/src/entities/AppTheming/utils.ts:18 — utils.getPropertiesToUpdateForReset 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 9 function literals inside it that branch (lines 36, 139, 48, …). 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 · highlightSelectionUtils.getViableDropPositions (cyclomatic 21) · ×1
  • highlightSelectionUtils.getViableDropPositions (cyclomatic 21) app/client/src/layoutSystems/autolayout/utils/highlightSelectionUtils.ts:53 — highlightSelectionUtils.getViableDropPositions has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 83, 68). 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 · highlightUtils.generateVerticalHighlights (cyclomatic 21) · ×1
  • highlightUtils.generateVerticalHighlights (cyclomatic 21) app/client/src/layoutSystems/autolayout/utils/highlightUtils.ts:153 — highlightUtils.generateVerticalHighlights has cyclomatic complexity 21 (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 · GlobalHotKeys.GlobalHotKeys (cyclomatic 21) · ×1
  • GlobalHotKeys.GlobalHotKeys (cyclomatic 21) app/client/src/pages/Editor/GlobalHotKeys/GlobalHotKeys.tsx:61 — GlobalHotKeys.GlobalHotKeys 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 12 function literals inside it that branch (lines 150, 191, 259, …). 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 · reflowUtils.ShouldAddToCollisionSpacesArray (cyclomatic 21) · ×1
  • reflowUtils.ShouldAddToCollisionSpacesArray (cyclomatic 21) app/client/src/reflow/reflowUtils.ts:566 — reflowUtils.ShouldAddToCollisionSpacesArray has cyclomatic complexity 21 (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 · PluginSagas.fetchPluginFormConfigsSaga (cyclomatic 21) · ×1
  • PluginSagas.fetchPluginFormConfigsSaga (cyclomatic 21) app/client/src/sagas/PluginSagas.ts:90 — PluginSagas.fetchPluginFormConfigsSaga has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 176, 132). 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 · WidgetOperationUtils.getParentWidgetIdForPasting (cyclomatic 21) · ×1
  • WidgetOperationUtils.getParentWidgetIdForPasting (cyclomatic 21) app/client/src/sagas/WidgetOperationUtils.ts:455 — WidgetOperationUtils.getParentWidgetIdForPasting has cyclomatic complexity 21 (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 · CodeMirrorTernService.updateArgHints (cyclomatic 21) · ×1
  • CodeMirrorTernService.updateArgHints (cyclomatic 21) app/client/src/utils/autocomplete/CodemirrorTernService.ts:273 — CodeMirrorTernService.updateArgHints has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body's own statements and 6 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 · index.ReactTableComponent (cyclomatic 21) · ×1
  • index.ReactTableComponent (cyclomatic 21) app/client/src/widgets/TableWidget/component/index.tsx:86 — index.ReactTableComponent 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 8 function items inside it that branch (a function literal at line 152, sortTableColumn, 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. This is NOT this file's highest cyclomatic complexity: index.default (cyclomatic 38) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · TableWidget.componentDidUpdate (cyclomatic 21) · ×1
  • TableWidget.componentDidUpdate (cyclomatic 21) app/client/src/widgets/TableWidget/widget/index.tsx:1018 — TableWidget.componentDidUpdate has cyclomatic complexity 21 (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 · customWidgetscript.main (cyclomatic 21) · ×1
  • customWidgetscript.main (cyclomatic 21) REDACTED:114 — customWidgetscript.main 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 10 function literals inside it that branch (lines 264, 169, 250, …). 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 · EmptyCell.renderEmptyRows (cyclomatic 21) · ×1
  • EmptyCell.renderEmptyRows (cyclomatic 21) app/client/src/widgets/wds/WDSTableWidget/component/cellComponents/EmptyCell.tsx:26 — EmptyCell.renderEmptyRows has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 129, 64, 43, …). 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 · index.saveResolvedFunctionsAndJSUpdates (cyclomatic 21) · ×1
  • index.saveResolvedFunctionsAndJSUpdates (cyclomatic 21) app/client/src/workers/Evaluation/JSObject/index.ts:82 — index.saveResolvedFunctionsAndJSUpdates 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 · MongoPluginExecutor.validateDatasource (cyclomatic 21) · ×1
  • MongoPluginExecutor.validateDatasource (cyclomatic 21) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java:838 — MongoPluginExecutor.validateDatasource has cyclomatic complexity 21 (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 · index.getThenCatchBlocksFromQuery (cyclomatic 20) · ×1
  • index.getThenCatchBlocksFromQuery (cyclomatic 20) app/client/packages/ast/src/actionCreator/index.ts:958 — index.getThenCatchBlocksFromQuery has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body's own statements and 9 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 · SegmentedControl.SegmentedControl (cyclomatic 20) · ×1
  • SegmentedControl.SegmentedControl (cyclomatic 20) app/client/packages/design-system/ads/src/SegmentedControl/SegmentedControl.tsx:26 — SegmentedControl.SegmentedControl 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 5 function items inside it that branch (handleKeyDown, a function literal at line 91, handleOnChange, …). 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 · editPatch.applyResize (cyclomatic 20) · ×1
  • editPatch.applyResize (cyclomatic 20) app/client/packages/mcp/src/builder/editPatch.ts:2050 — editPatch.applyResize 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 · BindDataButton.BindDataButton (cyclomatic 20) · ×1
  • BindDataButton.BindDataButton (cyclomatic 20) app/client/src/PluginActionEditor/components/PluginActionResponse/components/BindDataButton.tsx:258 — BindDataButton.BindDataButton has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body's own statements and 9 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 · ErrorSagas.errorSaga (cyclomatic 20) · ×1
  • ErrorSagas.errorSaga (cyclomatic 20) app/client/src/sagas/ErrorSagas.tsx:232 — ErrorSagas.errorSaga 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 · index.ActionCreator (cyclomatic 20) · ×1
  • index.ActionCreator (cyclomatic 20) app/client/src/components/editorComponents/ActionCreator/index.tsx:34 — index.ActionCreator 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 6 function literals inside it that branch (lines 143, 70, 227, …). 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 · LogItem.LogItem (cyclomatic 20) · ×1
  • LogItem.LogItem (cyclomatic 20) app/client/src/components/editorComponents/Debugger/LogItem/LogItem.tsx:195 — LogItem.LogItem has cyclomatic complexity 20 (threshold 15). Of this number, 18 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 · EvaluatedValuePopup.PopoverContent (cyclomatic 20) · ×1
  • EvaluatedValuePopup.PopoverContent (cyclomatic 20) app/client/src/components/editorComponents/CodeEditor/EvaluatedValuePopup.tsx:511 — EvaluatedValuePopup.PopoverContent has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body's own statements and 2 belong to 2 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 · CodeEditor.componentDidMount (cyclomatic 20) · ×1
  • CodeEditor.componentDidMount (cyclomatic 20) app/client/src/components/editorComponents/CodeEditor/index.tsx:354 — CodeEditor.componentDidMount has cyclomatic complexity 20 (threshold 15). Of this number, 18 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 · utils.caculateIsHidden (cyclomatic 20) · ×1
  • utils.caculateIsHidden (cyclomatic 20) app/client/src/components/formControls/utils.ts:245 — utils.caculateIsHidden has cyclomatic complexity 20 (threshold 15). 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 · FlexLayout.FlexLayout (cyclomatic 20) · ×1
  • FlexLayout.FlexLayout (cyclomatic 20) app/client/src/layoutSystems/anvil/layoutComponents/components/FlexLayout.tsx:28 — FlexLayout.FlexLayout 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 3 function literals inside it that branch (lines 75, 119, 128). 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 · useCanvasDragToScroll.useCanvasDragToScroll (cyclomatic 20) · ×1
  • useCanvasDragToScroll.useCanvasDragToScroll (cyclomatic 20) app/client/src/layoutSystems/common/canvasArenas/useCanvasDragToScroll.ts:6 — useCanvasDragToScroll.useCanvasDragToScroll 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 4 function literals inside it that branch (lines 62, 30, 16, …). 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 · HelpButton.HelpButtonMenu (cyclomatic 20) · ×1
  • HelpButton.HelpButtonMenu (cyclomatic 20) app/client/src/pages/Editor/HelpButton.tsx:179 — HelpButton.HelpButtonMenu has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body's own statements and 8 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 · PropertyPaneView.PropertyPaneView (cyclomatic 20) · ×1
  • PropertyPaneView.PropertyPaneView (cyclomatic 20) app/client/src/pages/Editor/PropertyPane/PropertyPaneView.tsx:79 — PropertyPaneView.PropertyPaneView has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body's own statements and 10 belong to 4 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 · ChooseGitProvider.ChooseGitProvider (cyclomatic 20) · ×1
  • ChooseGitProvider.ChooseGitProvider (cyclomatic 20) app/client/src/pages/Editor/gitSync/Tabs/GitConnectionV2/ChooseGitProvider.tsx:69 — ChooseGitProvider.ChooseGitProvider has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body's own statements and 5 belong to 2 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 · index.getNewPositionsBasedOnMousePositions (cyclomatic 20) · ×1
  • index.getNewPositionsBasedOnMousePositions (cyclomatic 20) app/client/src/sagas/PasteWidgetUtils/index.ts:137 — index.getNewPositionsBasedOnMousePositions 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 · ImageComponent.render (cyclomatic 20) · ×1
  • ImageComponent.render (cyclomatic 20) app/client/src/widgets/ImageWidget/component/index.tsx:169 — ImageComponent.render has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 238, onClick, a function literal at line 274). 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 · index.MultiSelectComponent (cyclomatic 20) · ×1
  • index.MultiSelectComponent (cyclomatic 20) app/client/src/widgets/MultiSelectWidget/component/index.tsx:71 — index.MultiSelectComponent has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 102, a function literal at line 142, 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.
D1 · Cyclomatic Complexity · useRowHeightMeasurement.useRowHeightMeasurement (cyclomatic 20) · ×1
  • useRowHeightMeasurement.useRowHeightMeasurement (cyclomatic 20) app/client/src/widgets/TableWidgetV2/component/VirtualTable/useRowHeightMeasurement.tsx:44 — useRowHeightMeasurement.useRowHeightMeasurement has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 67, 54, 84, …). 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 · EmptyCell.EmptyRows (cyclomatic 20) · ×1
  • EmptyCell.EmptyRows (cyclomatic 20) app/client/src/widgets/TableWidgetV2/component/cellComponents/EmptyCell.tsx:28 — EmptyCell.EmptyRows has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 124, 64, 49, …). 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 · transformDataPureFn.transformDataPureFn (cyclomatic 20) · ×1
  • transformDataPureFn.transformDataPureFn (cyclomatic 20) app/client/src/widgets/wds/WDSTableWidget/widget/reactTableUtils/transformDataPureFn.tsx:14 — transformDataPureFn.transformDataPureFn has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 24). 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 · DataTreeEvaluator.getDynamicValue (cyclomatic 20) · ×1
  • DataTreeEvaluator.getDynamicValue (cyclomatic 20) app/client/src/workers/common/DataTreeEvaluator/index.ts:1650 — DataTreeEvaluator.getDynamicValue has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 1683). 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 · JsonSchemaMigration.migrateServerSchema (cyclomatic 20) · ×1
  • JsonSchemaMigration.migrateServerSchema (cyclomatic 20) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaMigration.java:110 — JsonSchemaMigration.migrateServerSchema has cyclomatic complexity 20 (threshold 15). 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · OnLoadExecutablesUtilCEImpl.updateExecutablesRunBehaviour (cyclomatic 20) · ×1
  • OnLoadExecutablesUtilCEImpl.updateExecutablesRunBehaviour (cyclomatic 20) app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java:314 — OnLoadExecutablesUtilCEImpl.updateExecutablesRunBehaviour 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 · DynamoPluginExecutor.extractValue (cyclomatic 20) · ×1
  • DynamoPluginExecutor.extractValue (cyclomatic 20) app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java:148 — DynamoPluginExecutor.extractValue 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 · DatePicker.createDefaultShortcuts (cyclomatic 19) · ×1
  • DatePicker.createDefaultShortcuts (cyclomatic 19) app/client/packages/design-system/ads/src/DatePicker/DatePicker.tsx:175 — DatePicker.createDefaultShortcuts 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 · 012-migrate-incorrect-dynamic-binding-path-lists.updateMinMaxDynamicHeight (cyclomatic 19) · ×1
  • 012-migrate-incorrect-dynamic-binding-path-lists.updateMinMaxDynamicHeight (cyclomatic 19) app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:17 — 012-migrate-incorrect-dynamic-binding-path-lists.updateMinMaxDynamicHeight 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 · jsObject.callEdges (cyclomatic 19) · ×1
  • jsObject.callEdges (cyclomatic 19) app/client/packages/mcp/src/builder/jsObject.ts:497 — jsObject.callEdges 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 · mongoQuery.compileMongoQuery (cyclomatic 19) · ×1
  • mongoQuery.compileMongoQuery (cyclomatic 19) app/client/packages/mcp/src/builder/mongoQuery.ts:485 — mongoQuery.compileMongoQuery 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 · app.classifyToolResponse (cyclomatic 19) · ×1
  • app.classifyToolResponse (cyclomatic 19) app/client/packages/mcp/src/app.ts:7775 — app.classifyToolResponse 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 · WidgetFeatures.updateMinMaxDynamicHeight (cyclomatic 19) · ×1
  • WidgetFeatures.updateMinMaxDynamicHeight (cyclomatic 19) app/client/src/utils/WidgetFeatures.ts:189 — WidgetFeatures.updateMinMaxDynamicHeight 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 · PostEvaluationSagas.logSuccessfulBindings (cyclomatic 19) · ×1
  • PostEvaluationSagas.logSuccessfulBindings (cyclomatic 19) app/client/src/sagas/PostEvaluationSagas.ts:116 — PostEvaluationSagas.logSuccessfulBindings 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 one function literal inside it that branches (line 138). 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 · index.OrganizationDropdown (cyclomatic 19) · ×1
  • index.OrganizationDropdown (cyclomatic 19) app/client/src/components/OrganizationDropdown/index.tsx:29 — index.OrganizationDropdown has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 124, a function literal at line 137, a function literal at line 73, …). 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 · index.Resizer (cyclomatic 19) · ×1
  • index.Resizer (cyclomatic 19) app/client/src/components/editorComponents/Debugger/Resizer/index.tsx:30 — index.Resizer has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 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 81, handleResize, a function literal at line 39, …). 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 · EditableText.EditableText (cyclomatic 19) · ×1
  • EditableText.EditableText (cyclomatic 19) app/client/src/components/editorComponents/EditableText.tsx:133 — EditableText.EditableText has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body's own statements and 9 belong to 4 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 · DropdownWrapper.DropdownWrapper (cyclomatic 19) · ×1
  • DropdownWrapper.DropdownWrapper (cyclomatic 19) app/client/src/components/editorComponents/form/fields/DropdownWrapper.tsx:30 — DropdownWrapper.DropdownWrapper has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 4 function items inside it that branch (onSelectHandler, a function literal at line 69, onRemoveOptions, …). 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 · common.useSyncParamsToPath (cyclomatic 19) · ×1
  • common.useSyncParamsToPath (cyclomatic 19) app/client/src/components/formControls/CustomActionControls/common.tsx:71 — common.useSyncParamsToPath 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 2 function literals inside it that branch (lines 80, 146). 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 · DraggableComponent.DraggableComponent (cyclomatic 19) · ×1
  • DraggableComponent.DraggableComponent (cyclomatic 19) app/client/src/layoutSystems/common/draggable/DraggableComponent.tsx:54 — DraggableComponent.DraggableComponent has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body's own statements and 8 belong to 2 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 · GoogleSheetFilePicker.GoogleSheetFilePicker (cyclomatic 19) · ×1
  • GoogleSheetFilePicker.GoogleSheetFilePicker (cyclomatic 19) app/client/src/pages/Editor/SaaSEditor/GoogleSheetFilePicker.tsx:19 — GoogleSheetFilePicker.GoogleSheetFilePicker 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 7 function items inside it that branch (a function literal at line 92, a function literal at line 77, addAnalyticalEvents, …). 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 · CopyEntityToAppModal.CopyEntityToAppModal (cyclomatic 19) · ×1
  • CopyEntityToAppModal.CopyEntityToAppModal (cyclomatic 19) app/client/src/pages/Editor/Explorer/CopyToApp/CopyEntityToAppModal.tsx:76 — CopyEntityToAppModal.CopyEntityToAppModal has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body's own statements and 8 belong to 5 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 · TooltipContent.TooltipContent (cyclomatic 19) · ×1
  • TooltipContent.TooltipContent (cyclomatic 19) app/client/src/pages/Editor/FirstTimeUserOnboarding/TooltipContent.tsx:31 — TooltipContent.TooltipContent has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs 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 · CodeMirrorTernService.getFocusedDocValueAndPos (cyclomatic 19) · ×1
  • CodeMirrorTernService.getFocusedDocValueAndPos (cyclomatic 19) app/client/src/utils/autocomplete/CodemirrorTernService.ts:1018 — CodeMirrorTernService.getFocusedDocValueAndPos 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 · index.RecorderRight (cyclomatic 19) · ×1
  • index.RecorderRight (cyclomatic 19) app/client/src/widgets/AudioRecorderWidget/component/index.tsx:321 — index.RecorderRight has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 7 function items inside it that branch (renderPlayerControls, a function literal at line 360, renderTimer, …). 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 · SelectComponent.render (cyclomatic 19) · ×1
  • SelectComponent.render (cyclomatic 19) app/client/src/widgets/SelectWidget/component/index.tsx:312 — SelectComponent.render has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 belong to 2 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 · Row.Row (cyclomatic 19) · ×1
  • Row.Row (cyclomatic 19) app/client/src/widgets/TableWidgetV2/component/TableBodyCoreComponents/Row.tsx:22 — Row.Row has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body's own statements and 8 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 · transformDataPureFn.transformDataPureFn (cyclomatic 19) · ×1
  • transformDataPureFn.transformDataPureFn (cyclomatic 19) app/client/src/widgets/TableWidgetV2/widget/reactTableUtils/transformDataPureFn.tsx:13 — transformDataPureFn.transformDataPureFn 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 one function literal inside it that branches (line 23). 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 · UpdateLayoutServiceCEImpl.extractAllWidgetNamesAndDynamicBindingsFromDSL (cyclomatic 19) · ×1
  • UpdateLayoutServiceCEImpl.extractAllWidgetNamesAndDynamicBindingsFromDSL (cyclomatic 19) app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:516 — UpdateLayoutServiceCEImpl.extractAllWidgetNamesAndDynamicBindingsFromDSL 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 · MigrationHelperMethods.mapMongoToNewFormData (cyclomatic 19) · ×1
  • MigrationHelperMethods.mapMongoToNewFormData (cyclomatic 19) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:407 — MigrationHelperMethods.mapMongoToNewFormData 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 · RedirectHelper.isSafeRedirectUrl (cyclomatic 19) · ×1
  • RedirectHelper.isSafeRedirectUrl (cyclomatic 19) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/RedirectHelper.java:167 — RedirectHelper.isSafeRedirectUrl 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 · EncryptionHandler.convertEncryption (cyclomatic 19) · ×1
  • EncryptionHandler.convertEncryption (cyclomatic 19) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:236 — EncryptionHandler.convertEncryption 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 · getTableColumns (cyclomatic 19) · ×1
  • getTableColumns (cyclomatic 19) app/client/src/widgets/TableWidget/widget/derived.js:155 — getTableColumns has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 belong to 7 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 · DarkModeTheme.bgAccentHover (cyclomatic 18) · ×1
  • DarkModeTheme.bgAccentHover (cyclomatic 18) app/client/packages/design-system/theming/src/color/src/DarkModeTheme.ts:182 — DarkModeTheme.bgAccentHover 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 · Pagination.PaginationTypeBasedWrapper (cyclomatic 18) · ×1
  • Pagination.PaginationTypeBasedWrapper (cyclomatic 18) app/client/src/PluginActionEditor/components/PluginActionForm/components/GraphQLEditor/Pagination.tsx:199 — Pagination.PaginationTypeBasedWrapper 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 · index.ApplictionsMainPage (cyclomatic 18) · ×1
  • index.ApplictionsMainPage (cyclomatic 18) app/client/src/ce/pages/Applications/index.tsx:1151 — index.ApplictionsMainPage has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1205, 1261, 1199). 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 · EvaluatedValuePopup.EvaluatedValuePopup (cyclomatic 18) · ×1
  • EvaluatedValuePopup.EvaluatedValuePopup (cyclomatic 18) app/client/src/components/editorComponents/CodeEditor/EvaluatedValuePopup.tsx:755 — EvaluatedValuePopup.EvaluatedValuePopup has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 772, getAnchorNode, a function literal at line 802, …). 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 · walkthroughRenderer.WalkthroughRenderer (cyclomatic 18) · ×1
  • walkthroughRenderer.WalkthroughRenderer (cyclomatic 18) app/client/src/components/featureWalkthrough/walkthroughRenderer.tsx:143 — walkthroughRenderer.WalkthroughRenderer has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (updateBoundingRect, a function literal at line 169, a function literal at line 202, …). 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 · index.Walkthrough (cyclomatic 18) · ×1
  • index.Walkthrough (cyclomatic 18) app/client/src/components/featureWalkthrough/index.tsx:29 — index.Walkthrough 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 5 function items inside it that branch (pushFeature, popFeature, updateActiveWalkthrough, …). 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 · utils.getConfigInitialValues · ×1
  • utils.getConfigInitialValues::parseConfig (cyclomatic 18) app/client/src/components/formControls/utils.ts:424 — utils.getConfigInitialValues::parseConfig 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 · MultiSelectField.MultiSelectField (cyclomatic 18) · ×1
  • MultiSelectField.MultiSelectField (cyclomatic 18) app/client/src/widgets/JSONFormWidget/fields/MultiSelectField.tsx:92 — MultiSelectField.MultiSelectField has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 200, 140, 139, …). 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 · ChooseGitProvider.ChooseGitProvider (cyclomatic 18) · ×1
  • ChooseGitProvider.ChooseGitProvider (cyclomatic 18) app/client/src/git/components/ConnectModal/ConnectInitialize/ChooseGitProvider.tsx:56 — ChooseGitProvider.ChooseGitProvider has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body's own statements and 5 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 · FlexBoxComponent.FlexBoxComponent (cyclomatic 18) · ×1
  • FlexBoxComponent.FlexBoxComponent (cyclomatic 18) app/client/src/layoutSystems/autolayout/common/flexCanvas/FlexBoxComponent.tsx:36 — FlexBoxComponent.FlexBoxComponent has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (renderChildren, a function literal at line 146, processIndividualLayer, …). 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 · MainContainerResizer.MainContainerResizer (cyclomatic 18) · ×1
  • MainContainerResizer.MainContainerResizer (cyclomatic 18) app/client/src/layoutSystems/common/mainContainerResizer/MainContainerResizer.tsx:58 — MainContainerResizer.MainContainerResizer has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 75, 132, 106, …). 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 · General.GeneralSettings (cyclomatic 18) · ×1
  • General.GeneralSettings (cyclomatic 18) app/client/src/pages/workspace/General.tsx:112 — General.GeneralSettings has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body's own statements and 3 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 · SettingsPageHeader.SettingsPageHeader (cyclomatic 18) · ×1
  • SettingsPageHeader.SettingsPageHeader (cyclomatic 18) app/client/src/pages/workspace/SettingsPageHeader.tsx:54 — SettingsPageHeader.SettingsPageHeader has cyclomatic complexity 18 (threshold 15). Of this number, 12 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 · WorkspaceInviteUsersForm.WorkspaceInviteUsers (cyclomatic 18) · ×1
  • WorkspaceInviteUsersForm.WorkspaceInviteUsers (cyclomatic 18) app/client/src/pages/workspace/WorkspaceInviteUsersForm.tsx:99 — WorkspaceInviteUsersForm.WorkspaceInviteUsers has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 157, 109, 124). 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 · helpers.getMinHeightBasedOnChildren (cyclomatic 18) · ×1
  • helpers.getMinHeightBasedOnChildren (cyclomatic 18) app/client/src/sagas/autoHeightSagas/helpers.ts:89 — helpers.getMinHeightBasedOnChildren 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 · CodeMirrorTernService.buildRequest (cyclomatic 18) · ×1
  • CodeMirrorTernService.buildRequest (cyclomatic 18) app/client/src/utils/autocomplete/CodemirrorTernService.ts:863 — CodeMirrorTernService.buildRequest 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 · ButtonGroupComponent.render (cyclomatic 18) · ×1
  • ButtonGroupComponent.render (cyclomatic 18) app/client/src/widgets/ButtonGroupWidget/component/index.tsx:539 — ButtonGroupComponent.render 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 items inside it that branch (a function literal at line 576, getOnClick). 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 · index.getDocViewerConfigs (cyclomatic 18) · ×1
  • index.getDocViewerConfigs (cyclomatic 18) app/client/src/widgets/DocumentViewerWidget/component/index.tsx:113 — index.getDocViewerConfigs 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 · CommonUtilities.sortTableFunction (cyclomatic 18) · ×1
  • CommonUtilities.sortTableFunction (cyclomatic 18) app/client/src/widgets/TableWidget/component/CommonUtilities.ts:6 — CommonUtilities.sortTableFunction 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 one function literal inside it that branches (line 17). 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 · TableUtilities.renderCell (cyclomatic 18) · ×1
  • TableUtilities.renderCell (cyclomatic 18) app/client/src/widgets/TableWidget/component/TableUtilities.tsx:57 — TableUtilities.renderCell has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body's own statements and 4 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 · propertyUtils.defaultSelectedRowValidation (cyclomatic 18) · ×1
  • propertyUtils.defaultSelectedRowValidation (cyclomatic 18) app/client/src/widgets/TableWidget/widget/propertyUtils.ts:24 — propertyUtils.defaultSelectedRowValidation has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body's own statements and 5 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 · InlineCellEditor.InlineCellEditor (cyclomatic 18) · ×1
  • InlineCellEditor.InlineCellEditor (cyclomatic 18) app/client/src/widgets/TableWidgetV2/component/cellComponents/InlineCellEditor.tsx:168 — InlineCellEditor.InlineCellEditor has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 220, 200, 251, …). 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 · WDSTableWidget.componentDidUpdate (cyclomatic 18) · ×1
  • WDSTableWidget.componentDidUpdate (cyclomatic 18) REDACTED:602 — WDSTableWidget.componentDidUpdate 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 · CreateDBTablePageSolutionCEImpl.updateTemplateWidgets (cyclomatic 18) · ×1
  • CreateDBTablePageSolutionCEImpl.updateTemplateWidgets (cyclomatic 18) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:933 — CreateDBTablePageSolutionCEImpl.updateTemplateWidgets 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 · RowsBulkAppendMethod.executePrerequisites (cyclomatic 18) · ×1
  • RowsBulkAppendMethod.executePrerequisites (cyclomatic 18) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:105 — RowsBulkAppendMethod.executePrerequisites 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 · Input.Input (cyclomatic 17) · ×1
  • Input.Input (cyclomatic 17) app/client/packages/design-system/ads/src/Input/Input.tsx:29 — Input.Input 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 · useToolbarButtons.useToolbarButtons (cyclomatic 17) · ×1
  • useToolbarButtons.useToolbarButtons (cyclomatic 17) app/client/packages/design-system/widgets/src/components/ToolbarButtons/src/useToolbarButtons.ts:19 — useToolbarButtons.useToolbarButtons 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 (a function literal at line 56, onKeyDown, a function literal at line 111). 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 · schema.compileFormulaExpr (cyclomatic 17) · ×1
  • schema.compileFormulaExpr (cyclomatic 17) app/client/packages/mcp/src/builder/schema.ts:775 — schema.compileFormulaExpr 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 · usePluginActionResponseTabs.usePluginActionResponseTabs (cyclomatic 17) · ×1
  • usePluginActionResponseTabs.usePluginActionResponseTabs (cyclomatic 17) app/client/src/ce/PluginActionEditor/components/PluginActionResponse/hooks/usePluginActionResponseTabs.tsx:41 — usePluginActionResponseTabs.usePluginActionResponseTabs 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.WorkspaceMenuItem (cyclomatic 17) · ×1
  • index.WorkspaceMenuItem (cyclomatic 17) app/client/src/ce/pages/Applications/index.tsx:460 — index.WorkspaceMenuItem has cyclomatic complexity 17 (threshold 15). Of this number, 16 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 · NameEditorComponent.NameEditor (cyclomatic 17) · ×1
  • NameEditorComponent.NameEditor (cyclomatic 17) app/client/src/components/utils/NameEditorComponent.tsx:93 — NameEditorComponent.NameEditor 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 4 function literals inside it that branch (lines 143, 122, 135, …). 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 · SchemaParser.getSchemaItemFor (cyclomatic 17) · ×1
  • SchemaParser.getSchemaItemFor (cyclomatic 17) app/client/src/widgets/JSONFormWidget/schemaParser.ts:522 — SchemaParser.getSchemaItemFor has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 579, 547). 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 · ArrayField.ArrayField (cyclomatic 17) · ×1
  • ArrayField.ArrayField (cyclomatic 17) app/client/src/widgets/JSONFormWidget/fields/ArrayField.tsx:160 — ArrayField.ArrayField has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 256, add, 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 · LocalProfileView.LocalProfileView (cyclomatic 17) · ×1
  • LocalProfileView.LocalProfileView (cyclomatic 17) app/client/src/git/components/LocalProfile/LocalProfileView.tsx:139 — LocalProfileView.LocalProfileView 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 4 function items inside it that branch (a function literal at line 201, a function literal at line 178, onSubmit, …). 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 · utils.getViableDropPositions (cyclomatic 17) · ×1
  • utils.getViableDropPositions (cyclomatic 17) app/client/src/layoutSystems/anvil/editor/canvasArenas/utils/utils.ts:235 — utils.getViableDropPositions 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 3 function literals inside it that branch (lines 256, 244, 291). 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 · spaceRedistributionSagaUtils.redistributeSectionSpace (cyclomatic 17) · ×1
  • spaceRedistributionSagaUtils.redistributeSectionSpace (cyclomatic 17) app/client/src/layoutSystems/anvil/sectionSpaceDistributor/utils/spaceRedistributionSagaUtils.ts:19 — spaceRedistributionSagaUtils.redistributeSectionSpace 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 · usePositionObserver.usePositionObserver (cyclomatic 17) · ×1
  • usePositionObserver.usePositionObserver (cyclomatic 17) app/client/src/layoutSystems/common/utils/LayoutElementPositionsObserver/usePositionObserver.ts:45 — usePositionObserver.usePositionObserver 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 2 function literals inside it that branch (lines 60, 102). 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 · AppSettings.AppSettings (cyclomatic 17) · ×1
  • AppSettings.AppSettings (cyclomatic 17) app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx:76 — AppSettings.AppSettings has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 229, 90). 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 · Editor.componentDidUpdate (cyclomatic 17) · ×1
  • Editor.componentDidUpdate (cyclomatic 17) app/client/src/pages/AppIDE/AppIDE.tsx:120 — Editor.componentDidUpdate 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 · DeployButton.DeployButton (cyclomatic 17) · ×1
  • DeployButton.DeployButton (cyclomatic 17) app/client/src/pages/AppIDE/layouts/components/Header/DeployButton.tsx:41 — DeployButton.DeployButton 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 3 function literals inside it that branch (lines 53, 103, 78). 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 · ConversionForm.ConversionForm (cyclomatic 17) · ×1
  • ConversionForm.ConversionForm (cyclomatic 17) app/client/src/pages/Editor/CanvasLayoutConversion/ConversionForm.tsx:66 — ConversionForm.ConversionForm has cyclomatic complexity 17 (threshold 15). Of this number, 16 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 · FormTitle.FormTitle (cyclomatic 17) · ×1
  • FormTitle.FormTitle (cyclomatic 17) app/client/src/pages/Editor/DataSourceEditor/FormTitle.tsx:33 — FormTitle.FormTitle 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 5 function literals inside it that branch (lines 100, 65, 87, …). 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 · DSFormHeader.DSFormHeader (cyclomatic 17) · ×1
  • DSFormHeader.DSFormHeader (cyclomatic 17) app/client/src/pages/Editor/DataSourceEditor/DSFormHeader.tsx:101 — DSFormHeader.DSFormHeader 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, 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 · GitUserSettings.GitUserSettings (cyclomatic 17) · ×1
  • GitUserSettings.GitUserSettings (cyclomatic 17) app/client/src/pages/Editor/gitSync/GitSettingsModal/TabGeneral/GitUserSettings.tsx:140 — GitUserSettings.GitUserSettings 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 4 function items inside it that branch (a function literal at line 192, a function literal at line 171, a function literal at line 165, …). 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 · ExpandableChange.ExpandableChange (cyclomatic 17) · ×1
  • ExpandableChange.ExpandableChange (cyclomatic 17) app/client/src/pages/Editor/gitSync/components/GitChangesList/ExpandableChange.tsx:125 — ExpandableChange.ExpandableChange 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 · SetupForm.SetupForm (cyclomatic 17) · ×1
  • SetupForm.SetupForm (cyclomatic 17) app/client/src/pages/setup/SetupForm.tsx:93 — SetupForm.SetupForm 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 2 function items inside it that branch (onKeyDown, onSubmit). 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 · reflowHelpers.getCollisionTreeHelper (cyclomatic 17) · ×1
  • reflowHelpers.getCollisionTreeHelper (cyclomatic 17) app/client/src/reflow/reflowHelpers.ts:329 — reflowHelpers.getCollisionTreeHelper 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 · WidgetAdditionSagas.getChildWidgetProps (cyclomatic 17) · ×1
  • WidgetAdditionSagas.getChildWidgetProps (cyclomatic 17) app/client/src/sagas/WidgetAdditionSagas.ts:76 — WidgetAdditionSagas.getChildWidgetProps has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs 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 · index.CodeScannerComponent (cyclomatic 17) · ×1
  • index.CodeScannerComponent (cyclomatic 17) app/client/src/widgets/CodeScannerWidget/component/index.tsx:417 — index.CodeScannerComponent 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 items inside it that branch (renderComponent, renderComponent::handleOnResult, a function literal at line 454, …). 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 · Row.Row (cyclomatic 17) · ×1
  • Row.Row (cyclomatic 17) app/client/src/widgets/wds/WDSTableWidget/component/TableBody/Row.tsx:19 — Row.Row has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body's own statements and 7 belong to one function literal 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 · resetWidget.resetWidgetMetaProperty (cyclomatic 17) · ×1
  • resetWidget.resetWidgetMetaProperty (cyclomatic 17) app/client/src/workers/Evaluation/fns/resetWidget.ts:64 — resetWidget.resetWidgetMetaProperty 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 · CurlImporterServiceCEImpl.normalize (cyclomatic 17) · ×1
  • CurlImporterServiceCEImpl.normalize (cyclomatic 17) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CurlImporterServiceCEImpl.java:243 — CurlImporterServiceCEImpl.normalize 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 · DatasourceStorageServiceCEImpl.containsEncryptedValue (cyclomatic 17) · ×1
  • DatasourceStorageServiceCEImpl.containsEncryptedValue (cyclomatic 17) app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:460 — DatasourceStorageServiceCEImpl.containsEncryptedValue 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 · AiDatasourceSchemaSerializerCE.serializeTable (cyclomatic 17) · ×1
  • AiDatasourceSchemaSerializerCE.serializeTable (cyclomatic 17) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/AiDatasourceSchemaSerializerCE.java:126 — AiDatasourceSchemaSerializerCE.serializeTable 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 · OnLoadExecutablesUtilCEImpl.getExecutableBindingsMap (cyclomatic 17) · ×1
  • OnLoadExecutablesUtilCEImpl.getExecutableBindingsMap (cyclomatic 17) app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java:1383 — OnLoadExecutablesUtilCEImpl.getExecutableBindingsMap 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 · CreateDBTablePageSolutionCEImpl.cloneActionsFromTemplateApplication (cyclomatic 17) · ×1
  • CreateDBTablePageSolutionCEImpl.cloneActionsFromTemplateApplication (cyclomatic 17) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:615 — CreateDBTablePageSolutionCEImpl.cloneActionsFromTemplateApplication 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 · EnvManagerCEImpl.applyChanges (cyclomatic 17) · ×1
  • EnvManagerCEImpl.applyChanges (cyclomatic 17) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:414 — EnvManagerCEImpl.applyChanges 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 · SnowflakePluginExecutor.validateDatasource (cyclomatic 17) · ×1
  • SnowflakePluginExecutor.validateDatasource (cyclomatic 17) app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:241 — SnowflakePluginExecutor.validateDatasource 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 · DataTypeStringUtils.stringToKnownDataTypeConverter (cyclomatic 17) · ×1
  • DataTypeStringUtils.stringToKnownDataTypeConverter (cyclomatic 17) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:64 — DataTypeStringUtils.stringToKnownDataTypeConverter has cyclomatic complexity 17 (threshold 15). 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 · MustacheHelper.tokenize (cyclomatic 17) · ×1
  • MustacheHelper.tokenize (cyclomatic 17) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/MustacheHelper.java:81 — MustacheHelper.tokenize 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 · index.entityRefactorFromCode (cyclomatic 16) · ×1
  • index.entityRefactorFromCode (cyclomatic 16) app/client/packages/ast/src/index.ts:473 — index.entityRefactorFromCode has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 532, 519). 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 · 041-migrate-button-variant.migrateButtonVariant (cyclomatic 16) · ×1
  • 041-migrate-button-variant.migrateButtonVariant (cyclomatic 16) app/client/packages/dsl/src/migrate/migrations/041-migrate-button-variant.ts:9 — 041-migrate-button-variant.migrateButtonVariant has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body's own statements and 3 belong to one function literal inside it that branches. 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 · ApplicationSagas.updateApplicationSaga (cyclomatic 16) · ×1
  • ApplicationSagas.updateApplicationSaga (cyclomatic 16) app/client/src/ce/sagas/ApplicationSagas.tsx:501 — ApplicationSagas.updateApplicationSaga 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 · generateQuickCommands.generateQuickCommands (cyclomatic 16) · ×1
  • generateQuickCommands.generateQuickCommands (cyclomatic 16) app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx:267 — generateQuickCommands.generateQuickCommands has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 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 · ProductAlertBanner.ProductAlertBanner (cyclomatic 16) · ×1
  • ProductAlertBanner.ProductAlertBanner (cyclomatic 16) app/client/src/components/editorComponents/ProductAlertBanner.tsx:43 — ProductAlertBanner.ProductAlertBanner has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 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 · RadioButtonGroup.RadioButtonGroup (cyclomatic 16) · ×1
  • RadioButtonGroup.RadioButtonGroup (cyclomatic 16) app/client/src/components/editorComponents/RadioButtonGroup.tsx:81 — RadioButtonGroup.RadioButtonGroup has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (onClickHandler, a function literal at line 96). 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 · index.DatasourceDropdown (cyclomatic 16) · ×1
  • index.DatasourceDropdown (cyclomatic 16) app/client/src/components/editorComponents/WidgetQueryGeneratorForm/CommonControls/DatasourceDropdown/index.tsx:74 — index.DatasourceDropdown has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body's own statements and 3 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 · index.mapStateToProps (cyclomatic 16) · ×1
  • index.mapStateToProps (cyclomatic 16) app/client/src/components/formControls/DropDownControl/index.tsx:562 — index.mapStateToProps 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.
D1 · Cyclomatic Complexity · MultiFilePickerControl.FilePicker (cyclomatic 16) · ×1
  • MultiFilePickerControl.FilePicker (cyclomatic 16) app/client/src/components/formControls/MultiFilePickerControl.tsx:76 — MultiFilePickerControl.FilePicker 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 7 function items inside it that branch (handleFileChange, uploadFilesToTriggerApi, validateFileSizes, …). 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 · DateField.DateField (cyclomatic 16) · ×1
  • DateField.DateField (cyclomatic 16) app/client/src/widgets/JSONFormWidget/fields/DateField.tsx:104 — DateField.DateField 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 4 function literals inside it that branch (lines 183, 140, 167, …). 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 · useWidgetBorderStyles.useWidgetBorderStyles (cyclomatic 16) · ×1
  • useWidgetBorderStyles.useWidgetBorderStyles (cyclomatic 16) app/client/src/layoutSystems/anvil/common/hooks/useWidgetBorderStyles.ts:13 — useWidgetBorderStyles.useWidgetBorderStyles 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.
D1 · Cyclomatic Complexity · useGridLayoutTemplate.useGridLayoutTemplate (cyclomatic 16) · ×1
  • useGridLayoutTemplate.useGridLayoutTemplate (cyclomatic 16) app/client/src/pages/AppIDE/layouts/hooks/useGridLayoutTemplate.ts:27 — useGridLayoutTemplate.useGridLayoutTemplate 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 one function literal inside it that branches (line 46). 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 · Sidebar.Sidebar (cyclomatic 16) · ×1
  • Sidebar.Sidebar (cyclomatic 16) app/client/src/pages/AppViewer/Navigation/Sidebar.tsx:58 — Sidebar.Sidebar has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body's own statements and 5 belong to 2 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 · TopHeader.TopHeader (cyclomatic 16) · ×1
  • TopHeader.TopHeader (cyclomatic 16) app/client/src/pages/AppViewer/Navigation/components/TopHeader.tsx:35 — TopHeader.TopHeader 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.
D1 · Cyclomatic Complexity · ForkApplicationModal.ForkApplicationModal (cyclomatic 16) · ×1
  • ForkApplicationModal.ForkApplicationModal (cyclomatic 16) app/client/src/pages/Applications/ForkApplicationModal.tsx:39 — ForkApplicationModal.ForkApplicationModal 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 5 function items inside it that branch (a function literal at line 63, getApplicationsListAndOpenModal, handleOnOpenChange, …). 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 · FormConfig.renderFormConfigTop (cyclomatic 16) · ×1
  • FormConfig.renderFormConfigTop (cyclomatic 16) app/client/src/pages/Editor/FormConfig.tsx:186 — FormConfig.renderFormConfigTop 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.
D1 · Cyclomatic Complexity · DatasourceRestAPIEditor.ensureOAuthDefaultsAreCorrect (cyclomatic 16) · ×1
  • DatasourceRestAPIEditor.ensureOAuthDefaultsAreCorrect (cyclomatic 16) app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx:150 — DatasourceRestAPIEditor.ensureOAuthDefaultsAreCorrect 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 · DatasourceEditorRouter.render (cyclomatic 16) · ×1
  • DatasourceEditorRouter.render (cyclomatic 16) app/client/src/pages/Editor/DataSourceEditor/index.tsx:943 — DatasourceEditorRouter.render 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.
D1 · Cyclomatic Complexity · propertyPaneSearch.search (cyclomatic 16) · ×1
  • propertyPaneSearch.search (cyclomatic 16) REDACTED:87 — propertyPaneSearch.search 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 · ImportModal.ImportModal (cyclomatic 16) · ×1
  • ImportModal.ImportModal (cyclomatic 16) app/client/src/pages/common/ImportModal.tsx:192 — ImportModal.ImportModal has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 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 · reflowUtils.shouldReplaceOldMovement (cyclomatic 16) · ×1
  • reflowUtils.shouldReplaceOldMovement (cyclomatic 16) app/client/src/reflow/reflowUtils.ts:41 — reflowUtils.shouldReplaceOldMovement 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.
D1 · Cyclomatic Complexity · index.reflow (cyclomatic 16) · ×1
  • index.reflow (cyclomatic 16) app/client/src/reflow/index.ts:56 — index.reflow 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.
D1 · Cyclomatic Complexity · AutoLayoutUpdateSagas.updateWidgetDimensionsSaga (cyclomatic 16) · ×1
  • AutoLayoutUpdateSagas.updateWidgetDimensionsSaga (cyclomatic 16) app/client/src/sagas/AutoLayoutUpdateSagas.tsx:250 — AutoLayoutUpdateSagas.updateWidgetDimensionsSaga 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 · AutoLayoutUpdateSagas.processAutoLayoutDimensionUpdatesSaga (cyclomatic 16) · ×1
  • AutoLayoutUpdateSagas.processAutoLayoutDimensionUpdatesSaga (cyclomatic 16) app/client/src/sagas/AutoLayoutUpdateSagas.tsx:324 — AutoLayoutUpdateSagas.processAutoLayoutDimensionUpdatesSaga 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 · JSPaneSagas.handleEachUpdateJSCollection (cyclomatic 16) · ×1
  • JSPaneSagas.handleEachUpdateJSCollection (cyclomatic 16) app/client/src/sagas/JSPaneSagas.ts:203 — JSPaneSagas.handleEachUpdateJSCollection 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 · generateTree.generateTree (cyclomatic 16) · ×1
  • generateTree.generateTree (cyclomatic 16) app/client/src/utils/autoHeight/generateTree.ts:9 — generateTree.generateTree has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body's own statements and 3 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 · validations.optionsCustomValidation (cyclomatic 16) · ×1
  • validations.optionsCustomValidation (cyclomatic 16) app/client/src/widgets/CategorySliderWidget/validations.ts:4 — validations.optionsCustomValidation 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 one function item inside it that branches (validationUtil). 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 · FilePickerWidget.initializeUppyEventListeners (cyclomatic 16) · ×1
  • FilePickerWidget.initializeUppyEventListeners (cyclomatic 16) app/client/src/widgets/FilePickerWidgetV2/widget/index.tsx:512 — FilePickerWidget.initializeUppyEventListeners 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 7 function literals inside it that branch (lines 571, 631, 618, …). 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 · InputWidget.getWidgetView (cyclomatic 16) · ×1
  • InputWidget.getWidgetView (cyclomatic 16) app/client/src/widgets/InputWidget/widget/index.tsx:987 — InputWidget.getWidgetView 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 · Marker.Marker (cyclomatic 16) · ×1
  • Marker.Marker (cyclomatic 16) app/client/src/widgets/MapWidget/component/Marker.tsx:14 — Marker.Marker 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 9 function literals inside it that branch (lines 25, 42, 89, …). 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 · formEval.getFormEvaluation (cyclomatic 16) · ×1
  • formEval.getFormEvaluation (cyclomatic 16) app/client/src/workers/Evaluation/formEval.ts:457 — formEval.getFormEvaluation has cyclomatic complexity 16 (threshold 15). 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, 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 · AIConfigServiceCEImpl.testAzureOpenaiKey (cyclomatic 16) · ×1
  • AIConfigServiceCEImpl.testAzureOpenaiKey (cyclomatic 16) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1185 — AIConfigServiceCEImpl.testAzureOpenaiKey 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 · CentralGitServiceCEImpl.connectArtifactToGit (cyclomatic 16) · ×1
  • CentralGitServiceCEImpl.connectArtifactToGit (cyclomatic 16) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1144 — CentralGitServiceCEImpl.connectArtifactToGit 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 · NewActionServiceCEImpl.validateAction (cyclomatic 16) · ×1
  • NewActionServiceCEImpl.validateAction (cyclomatic 16) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:552 — NewActionServiceCEImpl.validateAction 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 · MySqlPluginExecutor.executeCommon (cyclomatic 16) · ×1
  • MySqlPluginExecutor.executeCommon (cyclomatic 16) REDACTED:310 — MySqlPluginExecutor.executeCommon 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 · RowsAppendMethod.executePrerequisites (cyclomatic 16) · ×1
  • RowsAppendMethod.executePrerequisites (cyclomatic 16) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:102 — RowsAppendMethod.executePrerequisites 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 · FilterDataServiceCE.generateLogicalExpression (cyclomatic 16) · ×1
  • FilterDataServiceCE.generateLogicalExpression (cyclomatic 16) REDACTED:895 — FilterDataServiceCE.generateLogicalExpression 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 · FilterDataServiceCE.setValueInStatement (cyclomatic 16) · ×1
  • FilterDataServiceCE.setValueInStatement (cyclomatic 16) REDACTED:756 — FilterDataServiceCE.setValueInStatement 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.
D17 · Explicit Debt · TodoComment repeated across 884 files · ×1
  • TodoComment repeated across 884 files app/client/src/index.tsx:60 — The identical TodoComment appears in 884 files (2855 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 2855 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO: Fix this the next time the file is edited". 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 · TodoComment repeated across 18 files · ×1
  • TodoComment repeated across 18 files app/client/src/widgets/wds/WDSTableWidget/widget/parseDerivedProperties.ts:5 — The identical TodoComment appears in 18 files (18 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 18 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(abhinav):". 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 REDACTED:893 — // Hacky fix for now to supply width to table widget — 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.
D17 · Explicit Debt · FixmeComment · ×1
  • FixmeComment app/client/cypress/e2e/Sanity/Datasources/Arango_Basic_Spec.ts:20 — //FIXME: Running tests only for CE, since in EE repo, chrome crashes. — 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 19 files · ×1
  • TodoComment repeated across 19 files app/client/cypress/e2e/Regression/ClientSide/Anvil/AnvilModal_spec.ts:137 — The identical TodoComment appears in 19 files (19 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 19 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO: Enable when issue(github.com/appsmithorg/appsmith/issues/36419) is solved.". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
D2 · Cognitive Complexity · getFilteredTableData (cognitive 214) · ×1
  • getFilteredTableData (cognitive 214) app/client/src/widgets/TableWidgetV2/widget/derived.js:276 — getFilteredTableData has cognitive complexity 214 (threshold 15). Drivers by points: if/else 62 (123 pts), boolean chains 32, ternaries 11 (28 pts), error handling 8 (16 pts), other 8, match/switch 2 (6 pts), loops 1 (nesting depth added 90). Of this number, 22 points are the body's own statements and 192 belong to 57 function items inside it that branch. 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 · PropertyControl.PropertyControl (cognitive 148) · ×1
  • PropertyControl.PropertyControl (cognitive 148) app/client/src/pages/Editor/PropertyPane/PropertyControl.tsx:90 — PropertyControl.PropertyControl has cognitive complexity 148 (threshold 15). Drivers by points: if/else 46 (84 pts), boolean chains 36, ternaries 13 (26 pts), error handling 1 (2 pts) (nesting depth added 52). Of this number, 87 points are the body's own statements and 61 belong to 21 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 · widgets.updateWidgetAutoHeightSaga (cognitive 139) · ×1
  • widgets.updateWidgetAutoHeightSaga (cognitive 139) app/client/src/sagas/autoHeightSagas/widgets.ts:78 — widgets.updateWidgetAutoHeightSaga has cognitive complexity 139 (threshold 15). Drivers by points: if/else 30 (114 pts), boolean chains 11, loops 5 (11 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 91). Of this number, 135 points are the body's own statements and 4 belong to 2 function literals inside it that branch. 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 · getFilteredTableData (cognitive 129) · ×1
  • getFilteredTableData (cognitive 129) app/client/src/widgets/TableWidget/widget/derived.js:255 — getFilteredTableData has cognitive complexity 129 (threshold 15). Drivers by points: ternaries 17 (61 pts), if/else 19 (32 pts), error handling 7 (15 pts), boolean chains 14, match/switch 1 (4 pts), loops 2 (3 pts) (nesting depth added 69). Most of this is not in the body itself: 11 of the 129 points are its own statements and the rest belongs to 24 function items inside it that branch (a function literal at line 326, a function literal at line 266, a function literal at line 483, …). 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 · index.Dropdown (cognitive 118) · ×1
  • index.Dropdown (cognitive 118) app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:1030 — index.Dropdown has cognitive complexity 118 (threshold 15). Drivers by points: if/else 38 (67 pts), ternaries 11 (27 pts), boolean chains 23, match/switch 1 (nesting depth added 45). Of this number, 18 points are the body's own statements and 100 belong to 12 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 · jsExpr.exprProblem (cognitive 117) · ×1
  • jsExpr.exprProblem (cognitive 117) app/client/packages/mcp/src/builder/jsExpr.ts:510 — jsExpr.exprProblem has cognitive complexity 117 (threshold 15). Drivers by points: if/else 33 (66 pts), ternaries 10 (24 pts), boolean chains 18, loops 5 (9 pts) (nesting depth added 51). 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 · GeneratePageForm.GeneratePageForm (cognitive 117) · ×1
  • GeneratePageForm.GeneratePageForm (cognitive 117) app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GeneratePageForm.tsx:211 — GeneratePageForm.GeneratePageForm has cognitive complexity 117 (threshold 15). Drivers by points: if/else 34 (68 pts), boolean chains 34, ternaries 7 (8 pts), loops 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 39). Of this number, 30 points are the body's own statements and 87 belong to 15 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 · DataTreeEvaluator.evaluateTree (cognitive 114) · ×1
  • DataTreeEvaluator.evaluateTree (cognitive 114) app/client/src/workers/common/DataTreeEvaluator/index.ts:1114 — DataTreeEvaluator.evaluateTree has cognitive complexity 114 (threshold 15). Drivers by points: if/else 32 (91 pts), boolean chains 13, error handling 2 (4 pts), ternaries 1 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 64). 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 · (anonymous) (cognitive 114) · ×1
  • (anonymous) (cognitive 114) REDACTED:3401 — (anonymous) has cognitive complexity 114 (threshold 15). Drivers by points: ternaries 33 (43 pts), boolean chains 28, if/else 15 (25 pts), loops 10 (13 pts), error handling 3 (5 pts) (nesting depth added 25). Most of this is not in the body itself: 3 of the 114 points are its own statements and the rest belongs to 43 function items inside it that branch (a function literal at line 3649, a function literal at line 3402, a function literal at line 3420, …). 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 · editPatch.applyWidgetPatch (cognitive 113) · ×1
  • editPatch.applyWidgetPatch (cognitive 113) app/client/packages/mcp/src/builder/editPatch.ts:1612 — editPatch.applyWidgetPatch has cognitive complexity 113 (threshold 15). Drivers by points: if/else 29 (92 pts), loops 4 (11 pts), boolean chains 10 (nesting depth added 70). 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 · HttpAsyncClientBuilder.build (cognitive 111) · ×1
  • HttpAsyncClientBuilder.build (cognitive 111) app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/org/apache/http/impl/nio/client/HttpAsyncClientBuilder.java:653 — HttpAsyncClientBuilder.build has cognitive complexity 111 (threshold 15). Drivers by points: if/else 53 (90 pts), loops 5 (13 pts), ternaries 3 (8 pts) (nesting depth added 50). 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 · WidgetOperationSagas.pasteWidgetSaga (cognitive 109) · ×1
  • WidgetOperationSagas.pasteWidgetSaga (cognitive 109) app/client/src/sagas/WidgetOperationSagas.tsx:1215 — WidgetOperationSagas.pasteWidgetSaga has cognitive complexity 109 (threshold 15). Drivers by points: if/else 31 (63 pts), boolean chains 14, loops 5 (12 pts), error handling 4 (10 pts), ternaries 5 (10 pts) (nesting depth added 50). Of this number, 18 points are the body's own statements and 91 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 · getFilteredTableData (cognitive 109) · ×1
  • getFilteredTableData (cognitive 109) app/client/src/widgets/wds/WDSTableWidget/widget/derived.js:226 — getFilteredTableData has cognitive complexity 109 (threshold 15). Drivers by points: if/else 28 (47 pts), boolean chains 24, ternaries 7 (18 pts), error handling 7 (15 pts), match/switch 1 (4 pts), loops 1 (nesting depth added 41). Of this number, 16 points are the body's own statements and 93 belong to 31 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 · EncryptionHandler.findCandidateFieldsForType (cognitive 105) · ×1
  • EncryptionHandler.findCandidateFieldsForType (cognitive 105) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:38 — EncryptionHandler.findCandidateFieldsForType has cognitive complexity 105 (threshold 15). Drivers by points: if/else 34 (86 pts), loops 2 (9 pts), boolean chains 8, error handling 1 (2 pts) (nesting depth added 60). 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 · useCanvasDragging.useCanvasDragging (cognitive 103) · ×1
  • useCanvasDragging.useCanvasDragging (cognitive 103) app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/hooks/useCanvasDragging.ts:55 — useCanvasDragging.useCanvasDragging has cognitive complexity 103 (threshold 15). Drivers by points: if/else 26 (77 pts), boolean chains 22, ternaries 1 (4 pts) (nesting depth added 54). Most of this is not in the body itself: 2 of the 103 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 284, 376, 257, …). 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 · index.migrateVersionedDSL (cognitive 98) · ×1
  • index.migrateVersionedDSL (cognitive 98) app/client/packages/dsl/src/migrate/index.ts:151 — index.migrateVersionedDSL has cognitive complexity 98 (threshold 15). Drivers by points: if/else 95 (97 pts), boolean chains 1 (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 · (anonymous) (cognitive 96) · ×1
  • (anonymous) (cognitive 96) app/client/public/libraries/jsonwebtoken@8.5.1.js:786 — (anonymous) has cognitive complexity 96 (threshold 15). Drivers by points: ternaries 22 (38 pts), boolean chains 34, if/else 10 (17 pts), loops 6 (7 pts) (nesting depth added 24). None of this is in the body itself: all 96 points belong to 25 function items inside it that branch (a function literal at line 914, j, exports, …). 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 · TableWidget.transformData (cognitive 86) · ×1
  • TableWidget.transformData (cognitive 86) app/client/src/widgets/TableWidget/widget/index.tsx:721 — TableWidget.transformData has cognitive complexity 86 (threshold 15). Drivers by points: if/else 10 (36 pts), ternaries 4 (25 pts), error handling 2 (13 pts), match/switch 1 (5 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 64). 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 · AutoLayoutResizable.AutoLayoutResizableComponent (cognitive 85) · ×1
  • AutoLayoutResizable.AutoLayoutResizableComponent (cognitive 85) app/client/src/layoutSystems/autolayout/common/resizer/AutoLayoutResizable.tsx:74 — AutoLayoutResizable.AutoLayoutResizableComponent has cognitive complexity 85 (threshold 15). Drivers by points: if/else 33 (47 pts), boolean chains 26, ternaries 10, loops 1 (2 pts) (nesting depth added 15). Of this number, 19 points are the body's own statements and 66 belong to 14 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 · GeneralSettings.GeneralSettings (cognitive 85) · ×1
  • GeneralSettings.GeneralSettings (cognitive 85) app/client/src/pages/AppIDE/components/AppSettings/components/GeneralSettings.tsx:139 — GeneralSettings.GeneralSettings has cognitive complexity 85 (threshold 15). Drivers by points: boolean chains 40, if/else 35 (40 pts), ternaries 5 (nesting depth added 5). Of this number, 18 points are the body's own statements and 67 belong to 21 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 · index.DraggableList (cognitive 84) · ×1
  • index.DraggableList (cognitive 84) app/client/packages/design-system/ads-old/src/DraggableList/index.tsx:62 — index.DraggableList has cognitive complexity 84 (threshold 15). Drivers by points: if/else 21 (62 pts), boolean chains 11, ternaries 3 (11 pts) (nesting depth added 49). Most of this is not in the body itself: 2 of the 84 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 132, a function literal at line 104, a function literal at line 96, …). 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 · ReconnectDatasourceModal.ReconnectDatasourceModal (cognitive 83) · ×1
  • ReconnectDatasourceModal.ReconnectDatasourceModal (cognitive 83) app/client/src/pages/Editor/gitSync/ReconnectDatasourceModal.tsx:257 — ReconnectDatasourceModal.ReconnectDatasourceModal has cognitive complexity 83 (threshold 15). Drivers by points: if/else 29 (53 pts), boolean chains 22, ternaries 5 (8 pts) (nesting depth added 27). Of this number, 20 points are the body's own statements and 63 belong to 12 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 · TableWidgetV2.renderCell (cognitive 78) · ×1
  • TableWidgetV2.renderCell (cognitive 78) app/client/src/widgets/TableWidgetV2/widget/index.tsx:2011 — TableWidgetV2.renderCell has cognitive complexity 78 (threshold 15). Drivers by points: boolean chains 51, if/else 14 (20 pts), ternaries 3 (6 pts), match/switch 1 (nesting depth added 9). Of this number, 62 points are the body's own statements and 16 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 · GoogleSheetSchema.GoogleSheetSchema (cognitive 77) · ×1
  • GoogleSheetSchema.GoogleSheetSchema (cognitive 77) app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx:65 — GoogleSheetSchema.GoogleSheetSchema has cognitive complexity 77 (threshold 15). Drivers by points: boolean chains 36, ternaries 11 (32 pts), if/else 8, error handling 1 (nesting depth added 21). Most of this is not in the body itself: 14 of the 77 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 451, onGsheetGeneratePage, selectSheetAndToggle, …). 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 · index.RichtextEditorComponent (cognitive 72) · ×1
  • index.RichtextEditorComponent (cognitive 72) app/client/src/widgets/RichTextEditorWidget/component/index.tsx:422 — index.RichtextEditorComponent has cognitive complexity 72 (threshold 15). Drivers by points: if/else 35 (38 pts), boolean chains 20, ternaries 10, loops 3, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 72 points are its own statements and the rest belongs to 25 function literals inside it that branch (lines 763, 894, 804, …). 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 · useCanvasDragging.useCanvasDragging (cognitive 71) · ×1
  • useCanvasDragging.useCanvasDragging (cognitive 71) app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useCanvasDragging.ts:35 — useCanvasDragging.useCanvasDragging has cognitive complexity 71 (threshold 15). Drivers by points: if/else 21 (58 pts), boolean chains 13 (nesting depth added 37). Most of this is not in the body itself: 3 of the 71 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 199, 226, 349, …). 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 · MigrationHelperMethods.mapGoogleSheetsToNewFormData (cognitive 71) · ×1
  • MigrationHelperMethods.mapGoogleSheetsToNewFormData (cognitive 71) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:773 — MigrationHelperMethods.mapGoogleSheetsToNewFormData has cognitive complexity 71 (threshold 15). Drivers by points: if/else 26 (54 pts), boolean chains 15, match/switch 2 (nesting depth added 28). 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 · PageSettings.PageSettings (cognitive 69) · ×1
  • PageSettings.PageSettings (cognitive 69) app/client/src/pages/AppIDE/components/AppSettings/components/PageSettings.tsx:63 — PageSettings.PageSettings has cognitive complexity 69 (threshold 15). Drivers by points: boolean chains 39, if/else 25 (27 pts), ternaries 3 (nesting depth added 2). Of this number, 19 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 · CanvasSelectionArena.CanvasSelectionArena (cognitive 68) · ×1
  • CanvasSelectionArena.CanvasSelectionArena (cognitive 68) app/client/src/layoutSystems/fixedlayout/editor/FixedLayoutCanvasArenas/CanvasSelectionArena.tsx:41 — CanvasSelectionArena.CanvasSelectionArena has cognitive complexity 68 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 25, ternaries 4 (6 pts) (nesting depth added 20). Most of this is not in the body itself: 9 of the 68 points are its own statements and the rest belongs to 15 function literals inside it that branch (lines 342, 172, 303, …). 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 · index.DatasourceAuth (cognitive 63) · ×1
  • index.DatasourceAuth (cognitive 63) app/client/src/pages/common/datasourceAuth/index.tsx:140 — index.DatasourceAuth has cognitive complexity 63 (threshold 15). Drivers by points: boolean chains 24, if/else 16 (24 pts), ternaries 9 (15 pts) (nesting depth added 14). Most of this is not in the body itself: 10 of the 63 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 205, datasourceButtonsComponentMap, handleOauthDatasourceSave, …). 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 · TableWidget.getTableColumns (cognitive 62) · ×1
  • TableWidget.getTableColumns (cognitive 62) app/client/src/widgets/TableWidget/widget/index.tsx:473 — TableWidget.getTableColumns has cognitive complexity 62 (threshold 15). Drivers by points: boolean chains 31, if/else 13 (17 pts), ternaries 3 (8 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 12). Of this number, 21 points are the body's own statements and 41 belong to one function literal 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 · EvalErrorHandler.logLatestEvalPropertyErrors (cognitive 61) · ×1
  • EvalErrorHandler.logLatestEvalPropertyErrors (cognitive 61) app/client/src/sagas/EvalErrorHandler.ts:37 — EvalErrorHandler.logLatestEvalPropertyErrors has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 6 (25 pts), if/else 10 (23 pts), loops 4 (7 pts), boolean chains 6 (nesting depth added 35). 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 · BuildingBlockAdditionSagas.pasteBuildingBlockWidgetsSaga (cognitive 61) · ×1
  • BuildingBlockAdditionSagas.pasteBuildingBlockWidgetsSaga (cognitive 61) app/client/src/sagas/BuildingBlockSagas/BuildingBlockAdditionSagas.ts:409 — BuildingBlockAdditionSagas.pasteBuildingBlockWidgetsSaga has cognitive complexity 61 (threshold 15). Drivers by points: if/else 19 (40 pts), boolean chains 10, ternaries 3 (7 pts), loops 3, error handling 1 (nesting depth added 25). Most of this is not in the body itself: 13 of the 61 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 502, 561, 653). 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 · CurlImporterServiceCEImpl.parse (cognitive 61) · ×1
  • CurlImporterServiceCEImpl.parse (cognitive 61) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CurlImporterServiceCEImpl.java:299 — CurlImporterServiceCEImpl.parse has cognitive complexity 61 (threshold 15). Drivers by points: if/else 26 (39 pts), ternaries 3 (10 pts), loops 3 (7 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 26). 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 · DynamoPlugin.plainToSdk (cognitive 61) · ×1
  • DynamoPlugin.plainToSdk (cognitive 61) app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java:507 — DynamoPlugin.plainToSdk has cognitive complexity 61 (threshold 15). Drivers by points: if/else 17 (44 pts), loops 3 (11 pts), boolean chains 6 (nesting depth added 35). 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 · PostgresPluginExecutor.executeCommon (cognitive 60) · ×1
  • PostgresPluginExecutor.executeCommon (cognitive 60) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:355 — PostgresPluginExecutor.executeCommon has cognitive complexity 60 (threshold 15). Drivers by points: if/else 23 (35 pts), error handling 7 (11 pts), ternaries 5 (7 pts), loops 2 (5 pts), boolean chains 2 (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.
D2 · Cognitive Complexity · MongoPluginExecutor.validateDatasource (cognitive 60) · ×1
  • MongoPluginExecutor.validateDatasource (cognitive 60) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java:838 — MongoPluginExecutor.validateDatasource has cognitive complexity 60 (threshold 15). Drivers by points: if/else 20 (51 pts), ternaries 1 (6 pts), boolean chains 3 (nesting depth added 36). 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 · JSPaneUtils.getDifferenceInJSCollection (cognitive 59) · ×1
  • JSPaneUtils.getDifferenceInJSCollection (cognitive 59) app/client/src/utils/JSPaneUtils.tsx:40 — JSPaneUtils.getDifferenceInJSCollection has cognitive complexity 59 (threshold 15). Drivers by points: if/else 17 (36 pts), loops 6 (12 pts), boolean chains 11 (nesting depth added 25). 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.renderDropdown (cognitive 59) · ×1
  • index.renderDropdown (cognitive 59) app/client/src/components/formControls/DropDownControl/index.tsx:253 — index.renderDropdown has cognitive complexity 59 (threshold 15). Drivers by points: if/else 27 (36 pts), boolean chains 17, ternaries 6 (nesting depth added 9). Of this number, 35 points are the body's own statements and 24 belong to 7 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 · ApplicationCard.ApplicationCard (cognitive 57) · ×1
  • ApplicationCard.ApplicationCard (cognitive 57) app/client/src/pages/Applications/ApplicationCard.tsx:146 — ApplicationCard.ApplicationCard has cognitive complexity 57 (threshold 15). Drivers by points: boolean chains 28, if/else 25 (27 pts), ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 12 of the 57 points are its own statements and the rest belongs to 22 function items inside it that branch (handleMenuOnClose, saveDescription, a function literal at line 239, …). 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 · index.FilePickerComponent (cognitive 56) · ×1
  • index.FilePickerComponent (cognitive 56) app/client/packages/design-system/ads-old/src/FilePickerV2/index.tsx:213 — index.FilePickerComponent has cognitive complexity 56 (threshold 15). Drivers by points: if/else 29 (40 pts), boolean chains 15, ternaries 1 (nesting depth added 11). Most of this is not in the body itself: 7 of the 56 points are its own statements and the rest belongs to 11 function items inside it that branch (handleImageFileUpload, a function literal at line 396, handleOtherFileUpload, …). 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 · LintService.lintUpdatedTree (cognitive 56) · ×1
  • LintService.lintUpdatedTree (cognitive 56) app/client/src/plugins/Linting/handlers/lintService.ts:159 — LintService.lintUpdatedTree has cognitive complexity 56 (threshold 15). Drivers by points: if/else 18 (39 pts), loops 7 (10 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 25). Of this number, 55 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 · containers.dynamicallyUpdateContainersSaga (cognitive 56) · ×1
  • containers.dynamicallyUpdateContainersSaga (cognitive 56) app/client/src/sagas/autoHeightSagas/containers.ts:23 — containers.dynamicallyUpdateContainersSaga has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (46 pts), boolean chains 5, loops 2 (3 pts), error handling 1, ternaries 1 (nesting depth added 32). Of this number, 53 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 · UpdateLayoutServiceCEImpl.extractAllWidgetNamesAndDynamicBindingsFromDSL (cognitive 56) · ×1
  • UpdateLayoutServiceCEImpl.extractAllWidgetNamesAndDynamicBindingsFromDSL (cognitive 56) app/server/appsmith-server/src/main/java/com/appsmith/server/layouts/UpdateLayoutServiceCEImpl.java:516 — UpdateLayoutServiceCEImpl.extractAllWidgetNamesAndDynamicBindingsFromDSL has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (37 pts), error handling 2 (12 pts), loops 3 (7 pts) (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.
D2 · Cognitive Complexity · (anonymous) (cognitive 56) · ×1
  • (anonymous) (cognitive 56) app/client/public/libraries/jsonwebtoken@8.5.1.js:10961 — (anonymous) has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 26, if/else 13 (17 pts), ternaries 12, loops 1 (nesting depth added 4). None of this is in the body itself: all 56 points belong to 28 function items inside it that branch (c, pointFromY, eqXToP, …). 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 · positionUtils.extractAlignmentInfo (cognitive 55) · ×1
  • positionUtils.extractAlignmentInfo (cognitive 55) app/client/src/layoutSystems/autolayout/utils/positionUtils.ts:329 — positionUtils.extractAlignmentInfo has cognitive complexity 55 (threshold 15). Drivers by points: if/else 24 (44 pts), boolean chains 7, ternaries 2 (3 pts), loops 1 (nesting depth added 21). Of this number, 43 points are the body's own statements and 12 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 · DataUtils.parseMultipartFileData (cognitive 55) · ×1
  • DataUtils.parseMultipartFileData (cognitive 55) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/DataUtils.java:191 — DataUtils.parseMultipartFileData has cognitive complexity 55 (threshold 15). Drivers by points: if/else 15 (36 pts), error handling 3 (10 pts), loops 2 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 33). 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.RenderDropdownOptions (cognitive 54) · ×1
  • index.RenderDropdownOptions (cognitive 54) app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:832 — index.RenderDropdownOptions has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 14 (32 pts), boolean chains 19, if/else 3 (nesting depth added 18). Most of this is not in the body itself: 6 of the 54 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 889, a function literal at line 839, onOptionSearch, …). 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 · index.updateDependencyMap (cognitive 54) · ×1
  • index.updateDependencyMap (cognitive 54) app/client/src/workers/common/DependencyMap/index.ts:169 — index.updateDependencyMap has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (39 pts), loops 2 (7 pts), boolean chains 4, match/switch 1 (2 pts), ternaries 2 (nesting depth added 31). Most of this is not in the body itself: 2 of the 54 points are its own statements and the rest belongs to one function literal inside it that branches (line 197). 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 · jsExpr.compileSteps (cognitive 52) · ×1
  • jsExpr.compileSteps (cognitive 52) app/client/packages/mcp/src/builder/jsExpr.ts:1106 — jsExpr.compileSteps has cognitive complexity 52 (threshold 15). Drivers by points: ternaries 9 (32 pts), if/else 16 (19 pts), loops 1 (nesting depth added 26). 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 · propertyPaneSearch.search (cognitive 51) · ×1
  • propertyPaneSearch.search (cognitive 51) REDACTED:87 — propertyPaneSearch.search has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (47 pts), loops 2 (4 pts) (nesting depth added 34). 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 · transformDataPureFn.transformDataPureFn (cognitive 50) · ×1
  • transformDataPureFn.transformDataPureFn (cognitive 50) app/client/src/widgets/wds/WDSTableWidget/widget/reactTableUtils/transformDataPureFn.tsx:14 — transformDataPureFn.transformDataPureFn has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (27 pts), error handling 2 (9 pts), ternaries 2 (8 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 29). Most of this is not in the body itself: 2 of the 50 points are its own statements and the rest belongs to one function literal inside it that branches (line 24). 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 · OnLoadExecutablesUtilCEImpl.getExecutableBindingsMap (cognitive 50) · ×1
  • OnLoadExecutablesUtilCEImpl.getExecutableBindingsMap (cognitive 50) app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java:1383 — OnLoadExecutablesUtilCEImpl.getExecutableBindingsMap has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (38 pts), error handling 1 (6 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 33). 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 · utils.actionToCode (cognitive 49) · ×1
  • utils.actionToCode (cognitive 49) app/client/src/components/editorComponents/ActionCreator/utils.ts:469 — utils.actionToCode has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 9 (21 pts), if/else 6 (15 pts), boolean chains 13 (nesting depth added 21). Of this number, 37 points are the body's own statements and 12 belong to 6 function literals inside it that branch. 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 · transformDataPureFn.transformDataPureFn (cognitive 49) · ×1
  • transformDataPureFn.transformDataPureFn (cognitive 49) app/client/src/widgets/TableWidgetV2/widget/reactTableUtils/transformDataPureFn.tsx:13 — transformDataPureFn.transformDataPureFn has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (26 pts), error handling 2 (9 pts), ternaries 2 (8 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 29). Most of this is not in the body itself: 2 of the 49 points are its own statements and the rest belongs to one function literal inside it that branches (line 23). 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 · S3PluginExecutor.executeCommon (cognitive 49) · ×1
  • S3PluginExecutor.executeCommon (cognitive 49) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:533 — S3PluginExecutor.executeCommon has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (28 pts), error handling 3 (7 pts), loops 2 (6 pts), boolean chains 4, ternaries 3, match/switch 1 (nesting depth added 16). 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 · useSpaceDistributionEvents.useSpaceDistributionEvents (cognitive 48) · ×1
  • useSpaceDistributionEvents.useSpaceDistributionEvents (cognitive 48) app/client/src/layoutSystems/anvil/sectionSpaceDistributor/useSpaceDistributionEvents.ts:42 — useSpaceDistributionEvents.useSpaceDistributionEvents has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (41 pts), boolean chains 7 (nesting depth added 21). None of this is in the body itself: all 48 points belong to 10 function literals inside it that branch (lines 254, 181, 109, …). 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 · index.saveResolvedFunctionsAndJSUpdates (cognitive 48) · ×1
  • index.saveResolvedFunctionsAndJSUpdates (cognitive 48) app/client/src/workers/Evaluation/JSObject/index.ts:82 — index.saveResolvedFunctionsAndJSUpdates has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (30 pts), error handling 2 (7 pts), boolean chains 6, ternaries 1 (5 pts) (nesting depth added 28). Of this number, 16 points are the body's own statements and 32 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 · AIConfigServiceCEImpl.testLlmConnectionInternal (cognitive 48) · ×1
  • AIConfigServiceCEImpl.testLlmConnectionInternal (cognitive 48) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:369 — AIConfigServiceCEImpl.testLlmConnectionInternal has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 13, ternaries 6 (9 pts), error handling 1 (nesting depth added 6). 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 · FocusEntity.identifyEntityFromPath (cognitive 47) · ×1
  • FocusEntity.identifyEntityFromPath (cognitive 47) app/client/src/navigation/FocusEntity.ts:116 — FocusEntity.identifyEntityFromPath has cognitive complexity 47 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 4 (nesting depth added 16). 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 · GoogleSheetForm.GoogleSheetForm (cognitive 47) · ×1
  • GoogleSheetForm.GoogleSheetForm (cognitive 47) app/client/src/pages/Editor/GeneratePage/components/GeneratePageForm/GoogleSheetForm.tsx:111 — GoogleSheetForm.GoogleSheetForm has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (23 pts), ternaries 6 (11 pts), boolean chains 10, loops 1 (3 pts) (nesting depth added 17). Most of this is not in the body itself: 9 of the 47 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 160, onSelectSheetOption, a function literal at line 185, …). 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 · PanelPropertiesEditor.PanelPropertiesEditor (cognitive 47) · ×1
  • PanelPropertiesEditor.PanelPropertiesEditor (cognitive 47) app/client/src/pages/Editor/PropertyPane/PanelPropertiesEditor.tsx:54 — PanelPropertiesEditor.PanelPropertiesEditor has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (23 pts), ternaries 9 (18 pts), boolean chains 6 (nesting depth added 16). Most of this is not in the body itself: 13 of the 47 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 115, updatePropertyTitle, a function literal at line 99, …). 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 · PluginActionSaga.evaluateActionParams (cognitive 47) · ×1
  • PluginActionSaga.evaluateActionParams (cognitive 47) app/client/src/sagas/ActionExecution/PluginActionSaga.ts:376 — PluginActionSaga.evaluateActionParams has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (37 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 23). 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 · JSPaneSagas.handleEachUpdateJSCollection (cognitive 47) · ×1
  • JSPaneSagas.handleEachUpdateJSCollection (cognitive 47) app/client/src/sagas/JSPaneSagas.ts:203 — JSPaneSagas.handleEachUpdateJSCollection has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 3 (14 pts), boolean chains 3 (nesting depth added 31). 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 · propertyUtils.defaultSelectedRowValidation (cognitive 47) · ×1
  • propertyUtils.defaultSelectedRowValidation (cognitive 47) app/client/src/widgets/TableWidget/widget/propertyUtils.ts:24 — propertyUtils.defaultSelectedRowValidation has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (35 pts), error handling 2 (7 pts), boolean chains 5 (nesting depth added 28). Of this number, 33 points are the body's own statements and 14 belong to 3 function literals inside it that branch. 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 · utils.updateJSCollectionInUnEvalTree (cognitive 47) · ×1
  • utils.updateJSCollectionInUnEvalTree (cognitive 47) app/client/src/workers/Evaluation/JSObject/utils.ts:39 — utils.updateJSCollectionInUnEvalTree has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 8, loops 4 (8 pts) (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.
D2 · Cognitive Complexity · codeComment.performLineUncommenting (cognitive 46) · ×1
  • codeComment.performLineUncommenting (cognitive 46) app/client/src/components/editorComponents/CodeEditor/utils/codeComment.ts:176 — codeComment.performLineUncommenting has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 16, loops 3 (4 pts), ternaries 3 (nesting depth added 9). Of this number, 27 points are the body's own statements and 19 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 · IconSelectControl.handleKeydown (cognitive 46) · ×1
  • IconSelectControl.handleKeydown (cognitive 46) app/client/src/components/propertyControls/IconSelectControl.tsx:262 — IconSelectControl.handleKeydown has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (35 pts), boolean chains 4, match/switch 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 25). 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 · IconSelectControlV2.handleKeydown (cognitive 46) · ×1
  • IconSelectControlV2.handleKeydown (cognitive 46) app/client/src/components/propertyControls/IconSelectControlV2.tsx:281 — IconSelectControlV2.handleKeydown has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (35 pts), boolean chains 4, match/switch 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 25). 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 · FilterDataServiceCE.generateLogicalExpression (cognitive 46) · ×1
  • FilterDataServiceCE.generateLogicalExpression (cognitive 46) REDACTED:895 — FilterDataServiceCE.generateLogicalExpression has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (36 pts), error handling 1 (6 pts), boolean chains 3, loops 1 (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 · ColorPickerComponentV2.ColorPickerComponent · ×1
  • ColorPickerComponentV2.ColorPickerComponent::handleKeydown (cognitive 45) app/client/src/components/propertyControls/ColorPickerComponentV2.tsx:396 — ColorPickerComponentV2.ColorPickerComponent::handleKeydown has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (33 pts), ternaries 2 (6 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 26). 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 · withWidgetProps.withWidgetProps · ×1
  • withWidgetProps.withWidgetProps::WrappedPropsComponent (cognitive 45) app/client/src/widgets/withWidgetProps.tsx:58 — withWidgetProps.withWidgetProps::WrappedPropsComponent has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 15 (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 · PostgresPluginExecutor.getStructure (cognitive 45) · ×1
  • PostgresPluginExecutor.getStructure (cognitive 45) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:794 — PostgresPluginExecutor.getStructure has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (24 pts), ternaries 3 (8 pts), loops 5 (6 pts), error handling 3 (4 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 · exports (cognitive 45) · ×1
  • exports (cognitive 45) app/client/config/webpack.config.js:82 — exports has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 32, ternaries 9, if/else 4. Of this number, 30 points are the body's own statements and 15 belong to 12 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 · DatasourceFormRenderer.DatasourceFormRenderer (cognitive 44) · ×1
  • DatasourceFormRenderer.DatasourceFormRenderer (cognitive 44) app/client/src/pages/Editor/DataSourceEditor/DatasourceFormRenderer.tsx:117 — DatasourceFormRenderer.DatasourceFormRenderer has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 8, ternaries 1 (4 pts), error handling 1 (2 pts) (nesting depth added 19). None of this is in the body itself: all 44 points belong to one function literal inside it that branches (line 126). 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 · EncryptionHandler.convertEncryption (cognitive 44) · ×1
  • EncryptionHandler.convertEncryption (cognitive 44) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/annotations/encryption/EncryptionHandler.java:236 — EncryptionHandler.convertEncryption has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 3 (11 pts), boolean chains 5 (nesting depth added 25). 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 · app.createMcpHttpServer · ×1
  • app.createMcpHttpServer::serveRequest (cognitive 43) app/client/packages/mcp/src/app.ts:8600 — app.createMcpHttpServer::serveRequest has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (31 pts), ternaries 4 (6 pts), boolean chains 5, error handling 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.
D2 · Cognitive Complexity · index.ApplicationsSection (cognitive 43) · ×1
  • index.ApplicationsSection (cognitive 43) app/client/src/ce/pages/Applications/index.tsx:698 — index.ApplicationsSection has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 26, if/else 11 (15 pts), ternaries 2 (nesting depth added 4). Of this number, 25 points are the body's own statements and 18 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 · ListWidget.updateTemplateWidgetProperties (cognitive 43) · ×1
  • ListWidget.updateTemplateWidgetProperties (cognitive 43) app/client/src/widgets/ListWidget/widget/index.tsx:963 — ListWidget.updateTemplateWidgetProperties has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 14, ternaries 2 (6 pts) (nesting depth added 15). Most of this is not in the body itself: 4 of the 43 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 984, 1082, 1054, …). 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 · NumberInput.NumberInput (cognitive 42) · ×1
  • NumberInput.NumberInput (cognitive 42) app/client/packages/design-system/ads/src/NumberInput/NumberInput.tsx:17 — NumberInput.NumberInput has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 11, ternaries 3 (5 pts) (nesting depth added 7). Most of this is not in the body itself: 4 of the 42 points are its own statements and the rest belongs to 12 function items inside it that branch (handleChange, handleKeyDown, handlePrefixAndSuffix, …). 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 · ResizableComponent.ResizableComponent (cognitive 42) · ×1
  • ResizableComponent.ResizableComponent (cognitive 42) app/client/src/layoutSystems/common/resizer/ResizableComponent.tsx:75 — ResizableComponent.ResizableComponent has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 28, if/else 11, ternaries 3. Most of this is not in the body itself: 15 of the 42 points are its own statements and the rest belongs to 6 function items inside it that branch (updateSize, getResizedPositions, handleResizeStart, …). 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 · SettingsForm.SettingsForm (cognitive 42) · ×1
  • SettingsForm.SettingsForm (cognitive 42) app/client/src/pages/AdminSettings/SettingsForm.tsx:107 — SettingsForm.SettingsForm has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 21, if/else 17 (21 pts) (nesting depth added 4). Most of this is not in the body itself: 6 of the 42 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 236, saveChangedSettings, a function literal at line 205, …). 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 · OneClickBindingSaga.BindWidgetToDatasource (cognitive 42) · ×1
  • OneClickBindingSaga.BindWidgetToDatasource (cognitive 42) app/client/src/sagas/OneClickBindingSaga.ts:100 — OneClickBindingSaga.BindWidgetToDatasource has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 7 (16 pts), if/else 7 (15 pts), boolean chains 5, loops 3 (5 pts), error handling 1 (nesting depth added 19). Of this number, 40 points are the body's own statements and 2 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 · WidgetSizeUtils.getCanvasWidgetHeightsToUpdate (cognitive 42) · ×1
  • WidgetSizeUtils.getCanvasWidgetHeightsToUpdate (cognitive 42) app/client/src/utils/WidgetSizeUtils.ts:40 — WidgetSizeUtils.getCanvasWidgetHeightsToUpdate has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (36 pts), loops 2 (5 pts), boolean chains 1 (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 · (anonymous) (cognitive 42) · ×1
  • (anonymous) (cognitive 42) app/client/public/libraries/jsonwebtoken@8.5.1.js:1142 — (anonymous) has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 7 (11 pts), boolean chains 9 (nesting depth added 15). None of this is in the body itself: all 42 points belong to 9 function items inside it that branch (a function literal at line 1162, a function literal at line 1159, a function literal at line 1158, …). 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 · codeComment.performLineCommenting (cognitive 41) · ×1
  • codeComment.performLineCommenting (cognitive 41) app/client/src/components/editorComponents/CodeEditor/utils/codeComment.ts:80 — codeComment.performLineCommenting has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 10, ternaries 3 (8 pts), loops 2 (4 pts) (nesting depth added 17). Most of this is not in the body itself: 12 of the 41 points are its own statements and the rest belongs to one function literal inside it that branches (line 115). 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 · TabDeployView.TabDeployView (cognitive 41) · ×1
  • TabDeployView.TabDeployView (cognitive 41) app/client/src/git/components/OpsModal/TabDeploy/TabDeployView.tsx:99 — TabDeployView.TabDeployView has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 31, if/else 8, ternaries 2. Of this number, 30 points are the body's own statements and 11 belong to 9 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 · CommonUtilities.sortTableFunction (cognitive 41) · ×1
  • CommonUtilities.sortTableFunction (cognitive 41) app/client/src/widgets/TableWidget/component/CommonUtilities.ts:6 — CommonUtilities.sortTableFunction has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 11 (36 pts), if/else 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 26). Most of this is not in the body itself: 1 of the 41 points is its own statement and the rest belongs to one function literal inside it that branches (line 17). 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 · AiDatasourceSchemaSerializerCE.serializeTable (cognitive 41) · ×1
  • AiDatasourceSchemaSerializerCE.serializeTable (cognitive 41) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/AiDatasourceSchemaSerializerCE.java:126 — AiDatasourceSchemaSerializerCE.serializeTable has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (21 pts), ternaries 4 (13 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 25). 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 · jsExpr.stepProblem (cognitive 40) · ×1
  • jsExpr.stepProblem (cognitive 40) app/client/packages/mcp/src/builder/jsExpr.ts:771 — jsExpr.stepProblem has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (29 pts), ternaries 3 (5 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 14). Of this number, 39 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 · design.planLayout (cognitive 40) · ×1
  • design.planLayout (cognitive 40) app/client/packages/mcp/src/builder/design.ts:142 — design.planLayout has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 3 (9 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 19). Of this number, 35 points are the body's own statements and 5 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 · DynamicBindingUtils.getDynamicBindingsChangesSaga (cognitive 40) · ×1
  • DynamicBindingUtils.getDynamicBindingsChangesSaga (cognitive 40) app/client/src/utils/DynamicBindingUtils.ts:548 — DynamicBindingUtils.getDynamicBindingsChangesSaga has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 13, ternaries 1 (nesting depth added 11). 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 · CodeEditor.componentDidUpdate (cognitive 40) · ×1
  • CodeEditor.componentDidUpdate (cognitive 40) app/client/src/components/editorComponents/CodeEditor/index.tsx:588 — CodeEditor.componentDidUpdate has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 6 (nesting depth added 13). Most of this is not in the body itself: 12 of the 40 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 632, 602, 619). 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 · TabMergeView.TabMergeView (cognitive 40) · ×1
  • TabMergeView.TabMergeView (cognitive 40) app/client/src/git/components/OpsModal/TabMerge/TabMergeView.tsx:86 — TabMergeView.TabMergeView has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 13, ternaries 6, loops 1 (nesting depth added 5). Of this number, 20 points are the body's own statements and 20 belong to 6 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 · FormControl.FormControl (cognitive 40) · ×1
  • FormControl.FormControl (cognitive 40) app/client/src/pages/Editor/FormControl.tsx:45 — FormControl.FormControl has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 17, if/else 11 (14 pts), ternaries 5 (9 pts) (nesting depth added 7). Of this number, 28 points are the body's own statements and 12 belong to 7 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 · index.Actions (cognitive 40) · ×1
  • index.Actions (cognitive 40) app/client/src/widgets/TableWidgetV2/component/header/actions/index.tsx:93 — index.Actions has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 8 (25 pts), boolean chains 11, if/else 1 (4 pts) (nesting depth added 20). Of this number, 25 points are the body's own statements and 15 belong to 3 function literals inside it that branch. 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 · CreateDBTablePageSolutionCEImpl.createPageFromDBTable (cognitive 40) · ×1
  • CreateDBTablePageSolutionCEImpl.createPageFromDBTable (cognitive 40) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:200 — CreateDBTablePageSolutionCEImpl.createPageFromDBTable has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 7, loops 2 (7 pts), ternaries 4 (6 pts), error handling 1 (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 · FirestorePluginExecutor.methodGetCollection (cognitive 40) · ×1
  • FirestorePluginExecutor.methodGetCollection (cognitive 40) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:620 — FirestorePluginExecutor.methodGetCollection has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (15 pts), error handling 6 (9 pts), ternaries 6 (9 pts), boolean chains 5, loops 2 (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 · (anonymous) (cognitive 40) · ×1
  • (anonymous) (cognitive 40) app/client/public/libraries/jsonwebtoken@8.5.1.js:1000 — (anonymous) has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 6 (10 pts), boolean chains 8 (nesting depth added 15). None of this is in the body itself: all 40 points belong to 7 function items inside it that branch (a function literal at line 1023, a function literal at line 1020, l, …). 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 · 012-migrate-incorrect-dynamic-binding-path-lists.childHasPanelConfig (cognitive 39) · ×1
  • 012-migrate-incorrect-dynamic-binding-path-lists.childHasPanelConfig (cognitive 39) app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:671 — 012-migrate-incorrect-dynamic-binding-path-lists.childHasPanelConfig has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (37 pts), boolean chains 2 (nesting depth added 25). Most of this is not in the body itself: 1 of the 39 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 711, 716, 687, …). 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 · Members.MemberSettings (cognitive 39) · ×1
  • Members.MemberSettings (cognitive 39) app/client/src/ce/pages/workspace/Members.tsx:192 — Members.MemberSettings has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 27, if/else 8 (9 pts), ternaries 3 (nesting depth added 1). Most of this is not in the body itself: 13 of the 39 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 270, onDeleteMember, a function literal at line 378, …). 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 · AIAssistantSagas.fetchAIResponseSaga (cognitive 39) · ×1
  • AIAssistantSagas.fetchAIResponseSaga (cognitive 39) app/client/src/ce/sagas/AIAssistantSagas.ts:104 — AIAssistantSagas.fetchAIResponseSaga has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 6 (16 pts), if/else 7 (12 pts), boolean chains 7, error handling 2 (3 pts), loops 1 (nesting depth added 16). 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 · utils.childHasPanelConfig (cognitive 39) · ×1
  • utils.childHasPanelConfig (cognitive 39) app/client/src/entities/Widget/utils.ts:74 — utils.childHasPanelConfig has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (37 pts), boolean chains 2 (nesting depth added 25). Most of this is not in the body itself: 1 of the 39 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 123, 130, 95, …). 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 · useCanvasDragToScroll.useCanvasDragToScroll (cognitive 39) · ×1
  • useCanvasDragToScroll.useCanvasDragToScroll (cognitive 39) app/client/src/layoutSystems/common/canvasArenas/useCanvasDragToScroll.ts:6 — useCanvasDragToScroll.useCanvasDragToScroll has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (24 pts), ternaries 2 (9 pts), boolean chains 6 (nesting depth added 22). None of this is in the body itself: all 39 points belong to 4 function literals inside it that branch (lines 62, 30, 16, …). 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 · Deploy.Deploy (cognitive 39) · ×1
  • Deploy.Deploy (cognitive 39) app/client/src/pages/Editor/gitSync/Tabs/Deploy.tsx:100 — Deploy.Deploy has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 31, if/else 6, ternaries 2. Of this number, 31 points are the body's own statements and 8 belong to 8 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 · Merge.Merge (cognitive 39) · ×1
  • Merge.Merge (cognitive 39) app/client/src/pages/Editor/gitSync/Tabs/Merge.tsx:80 — Merge.Merge has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 13, ternaries 6, loops 1 (nesting depth added 5). Of this number, 22 points are the body's own statements and 17 belong to 5 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 · MySqlDatasourceUtils.validateDatasource (cognitive 39) · ×1
  • MySqlDatasourceUtils.validateDatasource (cognitive 39) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:175 — MySqlDatasourceUtils.validateDatasource has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 9, loops 1 (2 pts) (nesting depth added 11). 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 · getEditableCellValidity (cognitive 39) · ×1
  • getEditableCellValidity (cognitive 39) app/client/src/widgets/TableWidgetV2/widget/derived.js:1185 — getEditableCellValidity has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 11, match/switch 1 (3 pts) (nesting depth added 11). Most of this is not in the body itself: 7 of the 39 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 1251, createRegex, a function literal at line 1233, …). 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 · editPatch.applyMove (cognitive 38) · ×1
  • editPatch.applyMove (cognitive 38) app/client/packages/mcp/src/builder/editPatch.ts:1853 — editPatch.applyMove has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 7, ternaries 4 (6 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 · reflowUtils.getCollidingSpaceMap (cognitive 38) · ×1
  • reflowUtils.getCollidingSpaceMap (cognitive 38) app/client/src/reflow/reflowUtils.ts:297 — reflowUtils.getCollidingSpaceMap has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (24 pts), boolean chains 7, ternaries 1 (4 pts), loops 2 (3 pts) (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.
D2 · Cognitive Complexity · getEditableCellValidity (cognitive 38) · ×1
  • getEditableCellValidity (cognitive 38) app/client/src/widgets/wds/WDSTableWidget/widget/derived.js:716 — getEditableCellValidity has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 15, match/switch 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 7 of the 38 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 782, createRegex, 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 · CodeMirrorTernService.requestCallback (cognitive 37) · ×1
  • CodeMirrorTernService.requestCallback (cognitive 37) app/client/src/utils/autocomplete/CodemirrorTernService.ts:505 — CodeMirrorTernService.requestCallback has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 12, loops 1, ternaries 1 (nesting depth added 9). Of this number, 33 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 · CurlImporterServiceCEImpl.lex (cognitive 37) · ×1
  • CurlImporterServiceCEImpl.lex (cognitive 37) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CurlImporterServiceCEImpl.java:143 — CurlImporterServiceCEImpl.lex has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 6, 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 · MigrationHelperMethods.getInvalidDynamicBindingPathsInAction (cognitive 37) · ×1
  • MigrationHelperMethods.getInvalidDynamicBindingPathsInAction (cognitive 37) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1127 — MigrationHelperMethods.getInvalidDynamicBindingPathsInAction has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (26 pts), error handling 1 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 23). 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.getThenCatchBlocksFromQuery (cognitive 36) · ×1
  • index.getThenCatchBlocksFromQuery (cognitive 36) app/client/packages/ast/src/actionCreator/index.ts:958 — index.getThenCatchBlocksFromQuery has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 17). Most of this is not in the body itself: 11 of the 36 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 987, 1018). 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 · index.EditableTextSubComponent (cognitive 36) · ×1
  • index.EditableTextSubComponent (cognitive 36) app/client/packages/design-system/ads-old/src/EditableTextSubComponent/index.tsx:132 — index.EditableTextSubComponent has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 17, ternaries 8 (12 pts), if/else 7 (nesting depth added 4). Of this number, 17 points are the body's own statements and 19 belong to 4 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 · jsObject.callEdges (cognitive 36) · ×1
  • jsObject.callEdges (cognitive 36) app/client/packages/mcp/src/builder/jsObject.ts:497 — jsObject.callEdges has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 6, loops 3 (6 pts) (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 · Table.Table (cognitive 36) · ×1
  • Table.Table (cognitive 36) app/client/src/widgets/TableWidgetV2/component/Table.tsx:90 — Table.Table has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 12, ternaries 7 (8 pts), loops 1 (nesting depth added 4). Most of this is not in the body itself: 10 of the 36 points are its own statements and the rest belongs to 11 function items inside it that branch (handleResizeColumn, a function literal at line 198, a function literal at line 275, …). 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 · evalTree.evalTree (cognitive 36) · ×1
  • evalTree.evalTree (cognitive 36) app/client/src/workers/Evaluation/handlers/evalTree.ts:48 — evalTree.evalTree has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 12, error handling 2 (3 pts), ternaries 1 (nesting depth added 8). Of this number, 32 points are the body's own statements and 4 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 · FormRender.FormRender (cognitive 35) · ×1
  • FormRender.FormRender (cognitive 35) app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/FormRender.tsx:76 — FormRender.FormRender has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 6, error handling 3 (5 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 8). Most of this is not in the body itself: 2 of the 35 points are its own statements and the rest belongs to 5 function items inside it that branch (renderEachConfigV2, renderConfig, renderNodeWithChildren, …). 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 · DatasourcesSagas.updateDatasourceSaga (cognitive 35) · ×1
  • DatasourcesSagas.updateDatasourceSaga (cognitive 35) app/client/src/ce/sagas/DatasourcesSagas.ts:527 — DatasourcesSagas.updateDatasourceSaga has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 12). Of this number, 32 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 · index.GlobalSearch (cognitive 35) · ×1
  • index.GlobalSearch (cognitive 35) app/client/src/components/editorComponents/GlobalSearch/index.tsx:167 — index.GlobalSearch has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18, boolean chains 15, ternaries 2. Most of this is not in the body itself: 2 of the 35 points are its own statements and the rest belongs to 17 function items inside it that branch (a function literal at line 300, a function literal at line 212, a function literal at line 271, …). 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 · highlightUtils.generateVerticalHighlights (cognitive 35) · ×1
  • highlightUtils.generateVerticalHighlights (cognitive 35) app/client/src/layoutSystems/autolayout/utils/highlightUtils.ts:153 — highlightUtils.generateVerticalHighlights has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (8 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 16). 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 · HelpButton.HelpButtonMenu (cognitive 35) · ×1
  • HelpButton.HelpButtonMenu (cognitive 35) app/client/src/pages/Editor/HelpButton.tsx:179 — HelpButton.HelpButtonMenu has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 5, ternaries 4 (5 pts) (nesting depth added 16). Most of this is not in the body itself: 12 of the 35 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 296, 232). 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 · Popper.default (cognitive 35) · ×1
  • Popper.default (cognitive 35) app/client/src/pages/Editor/Popper.tsx:88 — Popper.default has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 15, ternaries 2 (3 pts) (nesting depth added 8). Most of this is not in the body itself: 6 of the 35 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 183, onPositionChangeFn, 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.
D2 · Cognitive Complexity · getLintingErrors.generateLintingGlobalData (cognitive 35) · ×1
  • getLintingErrors.generateLintingGlobalData (cognitive 35) app/client/src/plugins/Linting/utils/getLintingErrors.ts:79 — getLintingErrors.generateLintingGlobalData has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 3 (9 pts), boolean chains 2 (nesting depth added 22). 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 · reflowHelpers.getMovementMapHelper (cognitive 35) · ×1
  • reflowHelpers.getMovementMapHelper (cognitive 35) app/client/src/reflow/reflowHelpers.ts:617 — reflowHelpers.getMovementMapHelper has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 11, ternaries 2 (3 pts), loops 1 (2 pts) (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 · MigrationHelperMethods.migrateFirestoreActionsFormData (cognitive 35) · ×1
  • MigrationHelperMethods.migrateFirestoreActionsFormData (cognitive 35) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:507 — MigrationHelperMethods.migrateFirestoreActionsFormData has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 2 (6 pts), loops 2 (4 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 · OnLoadExecutablesUtilCEImpl.updateExecutablesRunBehaviour (cognitive 35) · ×1
  • OnLoadExecutablesUtilCEImpl.updateExecutablesRunBehaviour (cognitive 35) app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java:314 — OnLoadExecutablesUtilCEImpl.updateExecutablesRunBehaviour has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 3, loops 2 (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 · PostgresPluginExecutor.validateDatasource (cognitive 35) · ×1
  • PostgresPluginExecutor.validateDatasource (cognitive 35) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:713 — PostgresPluginExecutor.validateDatasource has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 11). 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 · (anonymous) (cognitive 35) · ×1
  • (anonymous) (cognitive 35) REDACTED:316 — (anonymous) has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 12, if/else 9 (11 pts), ternaries 11, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 2 of the 35 points are its own statements and the rest belongs to 21 function items inside it that branch (a function literal at line 377, finish, gatherColumns, …). 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 · index.GlobalAISidePanel (cognitive 34) · ×1
  • index.GlobalAISidePanel (cognitive 34) app/client/src/ce/components/editorComponents/GlobalAISidePanel/index.tsx:142 — index.GlobalAISidePanel has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 19, if/else 12, ternaries 3. Most of this is not in the body itself: 11 of the 34 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 166, 209, 313, …). 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 · ApplicationSagas.updateApplicationSaga (cognitive 34) · ×1
  • ApplicationSagas.updateApplicationSaga (cognitive 34) app/client/src/ce/sagas/ApplicationSagas.tsx:501 — ApplicationSagas.updateApplicationSaga has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 2, error handling 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 · BaseInputField.BaseInputField (cognitive 34) · ×1
  • BaseInputField.BaseInputField (cognitive 34) app/client/src/widgets/JSONFormWidget/fields/BaseInputField.tsx:150 — BaseInputField.BaseInputField has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 11, ternaries 2 (nesting depth added 6). None of this is in the body itself: all 34 points belong to 7 function literals inside it that branch (lines 317, 211, 284, …). 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 · AddDeployKey.AddDeployKey (cognitive 34) · ×1
  • AddDeployKey.AddDeployKey (cognitive 34) app/client/src/git/components/common/AddDeployKey.tsx:127 — AddDeployKey.AddDeployKey has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 22, if/else 9 (10 pts), ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 13 of the 34 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 170, a function literal at line 190, a function literal at line 204, …). 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 · index.GitConnectionV2 (cognitive 34) · ×1
  • index.GitConnectionV2 (cognitive 34) app/client/src/pages/Editor/gitSync/Tabs/GitConnectionV2/index.tsx:99 — index.GitConnectionV2 has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 15, if/else 6 (15 pts), match/switch 1 (2 pts), ternaries 2 (nesting depth added 10). Most of this is not in the body itself: 15 of the 34 points are its own statements and the rest belongs to 3 function items inside it that branch (handleNextStep, a function literal at line 185, handlePreviousStep). 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 · PluginSagas.fetchPluginFormConfigsSaga (cognitive 34) · ×1
  • PluginSagas.fetchPluginFormConfigsSaga (cognitive 34) app/client/src/sagas/PluginSagas.ts:90 — PluginSagas.fetchPluginFormConfigsSaga has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 5, loops 2, error handling 1, ternaries 1 (nesting depth added 9). Most of this is not in the body itself: 8 of the 34 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 176, 132). 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 · getColumnsPureFn.getColumnsPureFn (cognitive 34) · ×1
  • getColumnsPureFn.getColumnsPureFn (cognitive 34) app/client/src/widgets/TableWidgetV2/widget/reactTableUtils/getColumnsPureFn.tsx:30 — getColumnsPureFn.getColumnsPureFn has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 13, ternaries 1 (2 pts) (nesting depth added 8). Of this number, 18 points are the body's own statements and 16 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 · (anonymous) (cognitive 34) · ×1
  • (anonymous) (cognitive 34) app/client/public/libraries/jsonwebtoken@8.5.1.js:335 — (anonymous) has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 11). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 28 function items inside it that branch (d, a function literal at line 381, l, …). 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 · index.TreeDropdown · ×1
  • index.TreeDropdown::handleKeydown (cognitive 33) app/client/packages/design-system/ads-old/src/TreeDropdown/index.tsx:509 — index.TreeDropdown::handleKeydown has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (29 pts), ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 15). 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 · PostEvaluationSagas.logSuccessfulBindings (cognitive 33) · ×1
  • PostEvaluationSagas.logSuccessfulBindings (cognitive 33) app/client/src/sagas/PostEvaluationSagas.ts:116 — PostEvaluationSagas.logSuccessfulBindings has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 13). Most of this is not in the body itself: 5 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 138). 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 · signupHelpers.redirectUserAfterSignup (cognitive 33) · ×1
  • signupHelpers.redirectUserAfterSignup (cognitive 33) app/client/src/ce/utils/signupHelpers.ts:31 — signupHelpers.redirectUserAfterSignup has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 3 (10 pts), boolean chains 4 (nesting depth added 17). 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 · CodeEditor.handleClick (cognitive 33) · ×1
  • CodeEditor.handleClick (cognitive 33) app/client/src/components/editorComponents/CodeEditor/index.tsx:1047 — CodeEditor.handleClick has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 1 (4 pts), boolean chains 3 (nesting depth added 21). 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 · utils.getPropertiesToUpdateForReset (cognitive 33) · ×1
  • utils.getPropertiesToUpdateForReset (cognitive 33) app/client/src/entities/AppTheming/utils.ts:18 — utils.getPropertiesToUpdateForReset has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 5 (nesting depth added 17). None of this is in the body itself: all 33 points belong to 9 function literals inside it that branch (lines 36, 48, 120, …). 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 · FixedLayoutResizable.FixedLayoutResizable (cognitive 33) · ×1
  • FixedLayoutResizable.FixedLayoutResizable (cognitive 33) app/client/src/layoutSystems/fixedlayout/common/resizer/FixedLayoutResizable.tsx:26 — FixedLayoutResizable.FixedLayoutResizable has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 8, ternaries 5 (nesting depth added 5). Most of this is not in the body itself: 13 of the 33 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 109, equal, setNewDimensions, …). 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 · DatasourceViewModeSchema.DatasourceViewModeSchema (cognitive 33) · ×1
  • DatasourceViewModeSchema.DatasourceViewModeSchema (cognitive 33) app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx:61 — DatasourceViewModeSchema.DatasourceViewModeSchema has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 20, if/else 7 (10 pts), ternaries 2 (3 pts) (nesting depth added 4). Most of this is not in the body itself: 12 of the 33 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 150, generatePageAction, a function literal at line 122, …). 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 · HeaderCell.HeaderCellComponent (cognitive 33) · ×1
  • HeaderCell.HeaderCellComponent (cognitive 33) app/client/src/widgets/TableWidgetV2/component/cellComponents/HeaderCell.tsx:201 — HeaderCell.HeaderCellComponent has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 15, ternaries 12 (13 pts), if/else 5 (nesting depth added 1). Of this number, 23 points are the body's own statements and 10 belong to 5 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 · actionProperties.getBindingAndReactivePathsOfAction · ×1
  • actionProperties.getBindingAndReactivePathsOfAction::recursiveFindBindingPaths (cognitive 32) app/client/src/entities/Action/actionProperties.ts:77 — actionProperties.getBindingAndReactivePathsOfAction::recursiveFindBindingPaths has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 1 (4 pts), boolean chains 2 (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.
D2 · Cognitive Complexity · MainContainerResizer.MainContainerResizer (cognitive 32) · ×1
  • MainContainerResizer.MainContainerResizer (cognitive 32) app/client/src/layoutSystems/common/mainContainerResizer/MainContainerResizer.tsx:58 — MainContainerResizer.MainContainerResizer has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 14). Most of this is not in the body itself: 5 of the 32 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 75, 132, 106, …). 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 · formEval.generateInitialEvalState (cognitive 32) · ×1
  • formEval.generateInitialEvalState (cognitive 32) app/client/src/workers/Evaluation/formEval.ts:55 — formEval.generateInitialEvalState has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 11 (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 · DatasourceUtils.buildClientURI (cognitive 32) · ×1
  • DatasourceUtils.buildClientURI (cognitive 32) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/utils/DatasourceUtils.java:163 — DatasourceUtils.buildClientURI has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 4, loops 2 (3 pts), match/switch 1, ternaries 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 · RowsBulkAppendMethod.executePrerequisites (cognitive 32) · ×1
  • RowsBulkAppendMethod.executePrerequisites (cognitive 32) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:105 — RowsBulkAppendMethod.executePrerequisites has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (7 pts), boolean chains 4, error handling 2 (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.
D2 · Cognitive Complexity · semantic.safeBindings (cognitive 31) · ×1
  • semantic.safeBindings (cognitive 31) app/client/packages/mcp/src/builder/semantic.ts:391 — semantic.safeBindings has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (27 pts), ternaries 2 (3 pts), loops 1 (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 · RestAPIDatasourceFormTransformer.datasourceToFormAuthentication (cognitive 31) · ×1
  • RestAPIDatasourceFormTransformer.datasourceToFormAuthentication (cognitive 31) app/client/src/PluginActionEditor/transformers/RestAPIDatasourceFormTransformer.ts:244 — RestAPIDatasourceFormTransformer.datasourceToFormAuthentication has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (9 pts), ternaries 1 (3 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 · ActionTree.ActionTree (cognitive 31) · ×1
  • ActionTree.ActionTree (cognitive 31) app/client/src/components/editorComponents/ActionCreator/viewComponents/Action/ActionTree.tsx:46 — ActionTree.ActionTree has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 5 (8 pts), boolean chains 6 (nesting depth added 7). Most of this is not in the body itself: 11 of the 31 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 288, 102, 129, …). 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 · common.useSyncParamsToPath (cognitive 31) · ×1
  • common.useSyncParamsToPath (cognitive 31) app/client/src/components/formControls/CustomActionControls/common.tsx:71 — common.useSyncParamsToPath has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 7, ternaries 2 (6 pts) (nesting depth added 10). None of this is in the body itself: all 31 points belong to 2 function literals inside it that branch (lines 80, 146). 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 · DraggableListCard.DraggableListCard (cognitive 31) · ×1
  • DraggableListCard.DraggableListCard (cognitive 31) app/client/src/components/propertyControls/DraggableListCard.tsx:69 — DraggableListCard.DraggableListCard has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (11 pts), ternaries 5 (nesting depth added 3). Most of this is not in the body itself: 12 of the 31 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 101, onBlur, a function literal at line 97, …). 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 · GlobalHotKeys.GlobalHotKeys (cognitive 31) · ×1
  • GlobalHotKeys.GlobalHotKeys (cognitive 31) app/client/src/pages/Editor/GlobalHotKeys/GlobalHotKeys.tsx:61 — GlobalHotKeys.GlobalHotKeys has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 10). None of this is in the body itself: all 31 points belong to 12 function literals inside it that branch (lines 150, 191, 259, …). 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 · reflowUtils.getCalculatedDirection (cognitive 31) · ×1
  • reflowUtils.getCalculatedDirection (cognitive 31) app/client/src/reflow/reflowUtils.ts:1871 — reflowUtils.getCalculatedDirection has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 4 (16 pts), if/else 5 (12 pts), boolean chains 2, 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 · EmptyCell.renderEmptyRows (cognitive 31) · ×1
  • EmptyCell.renderEmptyRows (cognitive 31) app/client/src/widgets/wds/WDSTableWidget/component/cellComponents/EmptyCell.tsx:26 — EmptyCell.renderEmptyRows has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 5 (10 pts), boolean chains 4 (nesting depth added 13). Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 129, 64, 43, …). 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 · getColumnsPureFn.getColumnsPureFn (cognitive 31) · ×1
  • getColumnsPureFn.getColumnsPureFn (cognitive 31) app/client/src/widgets/wds/WDSTableWidget/widget/reactTableUtils/getColumnsPureFn.tsx:29 — getColumnsPureFn.getColumnsPureFn has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 12, ternaries 1 (2 pts) (nesting depth added 7). Of this number, 18 points are the body's own statements and 13 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 · GraphQLPaginationUtils.updateVariablesWithPaginationValues (cognitive 31) · ×1
  • GraphQLPaginationUtils.updateVariablesWithPaginationValues (cognitive 31) app/server/appsmith-plugins/graphqlPlugin/src/main/java/com/external/utils/GraphQLPaginationUtils.java:104 — GraphQLPaginationUtils.updateVariablesWithPaginationValues has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 5 (11 pts), boolean chains 1 (nesting depth added 15). 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 · (anonymous) (cognitive 31) · ×1
  • (anonymous) (cognitive 31) app/client/public/libraries/jsonwebtoken@8.5.1.js:16326 — (anonymous) has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (7 pts), boolean chains 6, ternaries 3 (nesting depth added 10). None of this is in the body itself: all 31 points belong to 4 function items inside it that branch (exports, a function literal at line 16374, a function literal at line 16346, …). 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 · customWidgetscript.main (cognitive 30) · ×1
  • customWidgetscript.main (cognitive 30) REDACTED:115 — customWidgetscript.main has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 4 (nesting depth added 10). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 13 function literals inside it that branch (lines 270, 285, 140, …). 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 · evaluationUtils.translateDiffEventToDataTreeDiffEvent (cognitive 30) · ×1
  • evaluationUtils.translateDiffEventToDataTreeDiffEvent (cognitive 30) app/client/src/ce/workers/Evaluation/evaluationUtils.ts:147 — evaluationUtils.translateDiffEventToDataTreeDiffEvent has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 10, match/switch 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 · index.Walkthrough (cognitive 30) · ×1
  • index.Walkthrough (cognitive 30) app/client/src/components/featureWalkthrough/index.tsx:29 — index.Walkthrough has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 11). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 5 function items inside it that branch (pushFeature, updateActiveWalkthrough, popFeature, …). 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 · DependencyMapUtils.detectReactiveDependencyMisuse (cognitive 30) · ×1
  • DependencyMapUtils.detectReactiveDependencyMisuse (cognitive 30) REDACTED:172 — DependencyMapUtils.detectReactiveDependencyMisuse has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 17). 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 · DropTargetComponent.DropTargetComponent (cognitive 30) · ×1
  • DropTargetComponent.DropTargetComponent (cognitive 30) app/client/src/layoutSystems/common/dropTarget/DropTargetComponent.tsx:196 — DropTargetComponent.DropTargetComponent has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 17, if/else 6 (9 pts), ternaries 3 (4 pts) (nesting depth added 4). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to 3 function items inside it that branch (handleFocus, a function literal at line 256, a function literal at line 225). 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 · group.Group (cognitive 30) · ×1
  • group.Group (cognitive 30) app/client/src/pages/AdminSettings/FormGroup/group.tsx:101 — group.Group has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 30. 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 · McpKeysPage.McpKeysPage (cognitive 30) · ×1
  • McpKeysPage.McpKeysPage (cognitive 30) app/client/src/pages/AdminSettings/Profile/McpKeysPage.tsx:696 — McpKeysPage.McpKeysPage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12, error handling 8, ternaries 5 (8 pts), boolean chains 2 (nesting depth added 3). Most of this is not in the body itself: 10 of the 30 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 747, copyCreatedToken, copyClientConfig, …). 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 · index.AIAssistant (cognitive 30) · ×1
  • index.AIAssistant (cognitive 30) app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx:331 — index.AIAssistant has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 12, ternaries 4. Most of this is not in the body itself: 9 of the 30 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 373, 568, 438, …). 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 · PropertyPaneTitle.PropertyPaneTitle (cognitive 30) · ×1
  • PropertyPaneTitle.PropertyPaneTitle (cognitive 30) app/client/src/pages/Editor/PropertyPane/PropertyPaneTitle.tsx:61 — PropertyPaneTitle.PropertyPaneTitle has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 7 (16 pts), if/else 7 (8 pts), boolean chains 6 (nesting depth added 10). Of this number, 18 points are the body's own statements and 12 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 · AddDeployKey.AddDeployKey (cognitive 30) · ×1
  • AddDeployKey.AddDeployKey (cognitive 30) app/client/src/pages/Editor/gitSync/Tabs/GitConnectionV2/AddDeployKey.tsx:150 — AddDeployKey.AddDeployKey has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 16, if/else 9 (12 pts), ternaries 2 (nesting depth added 3). Most of this is not in the body itself: 10 of the 30 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 188, 169, 204). 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 · index.getDocViewerConfigs (cognitive 30) · ×1
  • index.getDocViewerConfigs (cognitive 30) app/client/src/widgets/DocumentViewerWidget/component/index.tsx:113 — index.getDocViewerConfigs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 4, ternaries 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 · Table.Table (cognitive 30) · ×1
  • Table.Table (cognitive 30) app/client/src/widgets/TableWidget/component/Table.tsx:104 — Table.Table has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 10, ternaries 9 (10 pts), if/else 7 (9 pts), loops 1 (nesting depth added 3). Of this number, 18 points are the body's own statements and 12 belong to 5 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 · TableWidgetV2.componentDidUpdate (cognitive 30) · ×1
  • TableWidgetV2.componentDidUpdate (cognitive 30) app/client/src/widgets/TableWidgetV2/widget/index.tsx:950 — TableWidgetV2.componentDidUpdate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 7 (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 · formEval.evaluate (cognitive 30) · ×1
  • formEval.evaluate (cognitive 30) app/client/src/workers/Evaluation/formEval.ts:340 — formEval.evaluate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 5, error handling 1 (nesting depth added 12). None of this is in the body itself: all 30 points belong to 2 function literals inside it that branch (lines 354, 348). 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 · resetWidget.resetWidgetMetaProperty (cognitive 30) · ×1
  • resetWidget.resetWidgetMetaProperty (cognitive 30) app/client/src/workers/Evaluation/fns/resetWidget.ts:64 — resetWidget.resetWidgetMetaProperty has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 2 (8 pts), boolean chains 5, loops 1 (2 pts) (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 · AIConfigServiceCEImpl.testApiKeyInternal (cognitive 30) · ×1
  • AIConfigServiceCEImpl.testApiKeyInternal (cognitive 30) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:805 — AIConfigServiceCEImpl.testApiKeyInternal has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 6). 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 · MustacheHelper.tokenize (cognitive 30) · ×1
  • MustacheHelper.tokenize (cognitive 30) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/MustacheHelper.java:81 — MustacheHelper.tokenize has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 2 (5 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 · 040-revert-button-style-to-button-color.revertButtonStyleToButtonColor (cognitive 29) · ×1
  • 040-revert-button-style-to-button-color.revertButtonStyleToButtonColor (cognitive 29) app/client/packages/dsl/src/migrate/migrations/040-revert-button-style-to-button-color.ts:20 — 040-revert-button-style-to-button-color.revertButtonStyleToButtonColor has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 2 (6 pts), boolean chains 2 (nesting depth added 15). Of this number, 26 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 · dataTreeWidget.getSetterConfig (cognitive 29) · ×1
  • dataTreeWidget.getSetterConfig (cognitive 29) app/client/src/entities/DataTree/dataTreeWidget.ts:69 — dataTreeWidget.getSetterConfig has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (8 pts), boolean chains 1, error handling 1 (nesting depth added 15). 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.Profile (cognitive 29) · ×1
  • index.Profile (cognitive 29) app/client/src/pages/AdminSettings/Profile/index.tsx:80 — index.Profile has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 14, if/else 12 (13 pts), error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 9 of the 29 points are its own statements and the rest belongs to 9 function items inside it that branch (updateConfig, a function literal at line 119, onSave, …). 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 · index.CardComponent (cognitive 29) · ×1
  • index.CardComponent (cognitive 29) app/client/src/widgets/CardWidget/component/index.tsx:567 — index.CardComponent has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 16, if/else 9, ternaries 4. Of this number, 19 points are the body's own statements and 10 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 · DatePickerComponent.render · ×1
  • DatePickerComponent.render::getInitialMonth (cognitive 29) app/client/src/widgets/DatePickerWidget2/component/index.tsx:241 — DatePickerComponent.render::getInitialMonth has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 9, boolean chains 5, 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 · index.MultiSelectComponent (cognitive 29) · ×1
  • index.MultiSelectComponent (cognitive 29) app/client/src/widgets/MultiSelectWidgetV2/component/index.tsx:83 — index.MultiSelectComponent has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 11 (13 pts), boolean chains 9, if/else 7 (nesting depth added 2). Most of this is not in the body itself: 5 of the 29 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 261, a function literal at line 224, a function literal at line 137, …). 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 · propertyUtils.defaultOptionValueValidation (cognitive 29) · ×1
  • propertyUtils.defaultOptionValueValidation (cognitive 29) app/client/src/widgets/MultiSelectWidgetV2/widget/propertyUtils.ts:8 — propertyUtils.defaultOptionValueValidation has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 8, error handling 1 (2 pts) (nesting depth added 7). Of this number, 27 points are the body's own statements and 2 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 · EmptyCell.EmptyRows (cognitive 29) · ×1
  • EmptyCell.EmptyRows (cognitive 29) app/client/src/widgets/TableWidgetV2/component/cellComponents/EmptyCell.tsx:28 — EmptyCell.EmptyRows has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 4 (8 pts), boolean chains 4 (nesting depth added 12). Most of this is not in the body itself: 4 of the 29 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 124, 64, 49, …). 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 · customWidgetscript.main (cognitive 29) · ×1
  • customWidgetscript.main (cognitive 29) REDACTED:114 — customWidgetscript.main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 4 (nesting depth added 9). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 169, 250, 264, …). 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 · helper.validateInput (cognitive 29) · ×1
  • helper.validateInput (cognitive 29) app/client/src/widgets/wds/WDSInputWidget/widget/helper.ts:62 — helper.validateInput has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 9, ternaries 1 (2 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 · defaultOptionValueValidation.defaultOptionValueValidation (cognitive 29) · ×1
  • defaultOptionValueValidation.defaultOptionValueValidation (cognitive 29) app/client/src/widgets/wds/WDSMultiSelectWidget/config/propertyPaneConfig/validations/defaultOptionValueValidation.ts:10 — defaultOptionValueValidation.defaultOptionValueValidation has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 8, error handling 1 (2 pts) (nesting depth added 7). Of this number, 27 points are the body's own statements and 2 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 · DatasourceStorageServiceCEImpl.containsEncryptedValue (cognitive 29) · ×1
  • DatasourceStorageServiceCEImpl.containsEncryptedValue (cognitive 29) app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:460 — DatasourceStorageServiceCEImpl.containsEncryptedValue has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, error handling 1 (3 pts), loops 2 (3 pts) (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 · CreateDBTablePageSolutionCEImpl.updateTemplateWidgets (cognitive 29) · ×1
  • CreateDBTablePageSolutionCEImpl.updateTemplateWidgets (cognitive 29) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:933 — CreateDBTablePageSolutionCEImpl.updateTemplateWidgets has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 4, loops 2 (4 pts), ternaries 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 · env-file.parse_value (cognitive 29) · ×1
  • env-file.parse_value (cognitive 29) deploy/docker/fs/opt/appsmith/env-file.py:46 — env-file.parse_value has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 10, loops 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 · jsExpr.compileExpr (cognitive 28) · ×1
  • jsExpr.compileExpr (cognitive 28) app/client/packages/mcp/src/builder/jsExpr.ts:926 — jsExpr.compileExpr has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, ternaries 4 (9 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 7). Of this number, 25 points are the body's own statements and 3 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.
D2 · Cognitive Complexity · InviteUsersForm.InviteUsersForm (cognitive 28) · ×1
  • InviteUsersForm.InviteUsersForm (cognitive 28) app/client/src/ce/pages/workspace/InviteUsersForm.tsx:283 — InviteUsersForm.InviteUsersForm has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, if/else 7, ternaries 5 (6 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 10 of the 28 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 434, a function literal at line 344, inviteUsersSubmitHandler, …). 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 · lintHelpers.getLintAnnotations (cognitive 28) · ×1
  • lintHelpers.getLintAnnotations (cognitive 28) REDACTED:145 — lintHelpers.getLintAnnotations has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 7, loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 8). None of this is in the body itself: all 28 points belong to one function literal inside it that branches (line 155). 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 · DropDownControl.render (cognitive 28) · ×1
  • DropDownControl.render (cognitive 28) app/client/src/components/propertyControls/DropDownControl.tsx:61 — DropDownControl.render has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 9, ternaries 6 (8 pts) (nesting depth added 5). Of this number, 23 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 · QueryPaneSagas.formValueChangeSaga (cognitive 28) · ×1
  • QueryPaneSagas.formValueChangeSaga (cognitive 28) app/client/src/sagas/QueryPaneSagas.ts:208 — QueryPaneSagas.formValueChangeSaga has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 9, error handling 2 (4 pts), ternaries 1 (nesting depth added 5). 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 · TableWidgetV2.updateColumnProperties (cognitive 28) · ×1
  • TableWidgetV2.updateColumnProperties (cognitive 28) app/client/src/widgets/TableWidgetV2/widget/index.tsx:736 — TableWidgetV2.updateColumnProperties has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 4 (nesting depth added 16). Of this number, 15 points are the body's own statements and 13 belong to 3 function items inside it that branch. 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 · Table.Table (cognitive 28) · ×1
  • Table.Table (cognitive 28) app/client/src/widgets/wds/WDSTableWidget/component/Table.tsx:139 — Table.Table has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 8 (9 pts), boolean chains 6, loops 1 (nesting depth added 3). 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, 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 · WDSTableWidget.updateColumnProperties (cognitive 28) · ×1
  • WDSTableWidget.updateColumnProperties (cognitive 28) REDACTED:396 — WDSTableWidget.updateColumnProperties has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 4 (nesting depth added 16). Of this number, 15 points are the body's own statements and 13 belong to 3 function items inside it that branch. 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 · GraphQLHintMessageUtils.getHintMessagesForDuplicatesInQueryVariables (cognitive 28) · ×1
  • GraphQLHintMessageUtils.getHintMessagesForDuplicatesInQueryVariables (cognitive 28) app/server/appsmith-plugins/graphqlPlugin/src/main/java/com/external/utils/GraphQLHintMessageUtils.java:41 — GraphQLHintMessageUtils.getHintMessagesForDuplicatesInQueryVariables has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 1, error handling 1 (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.
D2 · Cognitive Complexity · FirestorePluginExecutor.executeParameterized (cognitive 28) · ×1
  • FirestorePluginExecutor.executeParameterized (cognitive 28) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:135 — FirestorePluginExecutor.executeParameterized has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (18 pts), error handling 3 (5 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 6). 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 · getTableColumns (cognitive 28) · ×1
  • getTableColumns (cognitive 28) app/client/src/widgets/TableWidget/widget/derived.js:155 — getTableColumns has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (6 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 11). Of this number, 21 points are the body's own statements and 7 belong to 7 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 · index.TagInputComponent (cognitive 27) · ×1
  • index.TagInputComponent (cognitive 27) app/client/packages/design-system/ads-old/src/TagInput/index.tsx:116 — index.TagInputComponent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 12, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 27 points are its own statements and the rest belongs to 8 function items inside it that branch (onKeyDown, a function literal at line 127, validateEmail, …). 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 · editPatch.applyResize (cognitive 27) · ×1
  • editPatch.applyResize (cognitive 27) app/client/packages/mcp/src/builder/editPatch.ts:2050 — editPatch.applyResize has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 3 (5 pts), ternaries 2 (4 pts), boolean chains 3 (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 · index.ActionCreator (cognitive 27) · ×1
  • index.ActionCreator (cognitive 27) app/client/src/components/editorComponents/ActionCreator/index.tsx:34 — index.ActionCreator has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 7, ternaries 1 (nesting depth added 6). None of this is in the body itself: all 27 points belong to 6 function literals inside it that branch (lines 143, 70, 227, …). 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 · KeyValueArrayControl.KeyValueRow (cognitive 27) · ×1
  • KeyValueArrayControl.KeyValueRow (cognitive 27) app/client/src/components/formControls/KeyValueArrayControl.tsx:86 — KeyValueArrayControl.KeyValueRow has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (9 pts), ternaries 3 (5 pts), loops 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 4 of the 27 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 189, 129, 95, …). 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 · alignedRowHighlights.getHighlightsForWidgets (cognitive 27) · ×1
  • alignedRowHighlights.getHighlightsForWidgets (cognitive 27) app/client/src/layoutSystems/anvil/utils/layouts/highlights/alignedRowHighlights.ts:176 — alignedRowHighlights.getHighlightsForWidgets has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 12). Most of this is not in the body itself: 3 of the 27 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 232, 284). 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 · helpers.getMinHeightBasedOnChildren (cognitive 27) · ×1
  • helpers.getMinHeightBasedOnChildren (cognitive 27) app/client/src/sagas/autoHeightSagas/helpers.ts:89 — helpers.getMinHeightBasedOnChildren has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 5, 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 · WidgetDeletionSagas.deleteSaga (cognitive 27) · ×1
  • WidgetDeletionSagas.deleteSaga (cognitive 27) app/client/src/sagas/WidgetDeletionSagas.ts:239 — WidgetDeletionSagas.deleteSaga has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 13). 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 · index.CameraComponent (cognitive 27) · ×1
  • index.CameraComponent (cognitive 27) app/client/src/widgets/CameraWidget/component/index.tsx:845 — index.CameraComponent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 7, ternaries 2, error handling 1, match/switch 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 27 points are its own statements and the rest belongs to 15 function items inside it that branch (renderComponent, renderTimer, a function literal at line 900, …). 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 · DatePickerWidget.componentDidUpdate (cognitive 27) · ×1
  • DatePickerWidget.componentDidUpdate (cognitive 27) app/client/src/widgets/DatePickerWidget/widget/index.tsx:448 — DatePickerWidget.componentDidUpdate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (25 pts), boolean chains 2 (nesting depth added 17). 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 · TableUtilities.renderCell (cognitive 27) · ×1
  • TableUtilities.renderCell (cognitive 27) app/client/src/widgets/TableWidget/component/TableUtilities.tsx:57 — TableUtilities.renderCell has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 4 (9 pts), boolean chains 4, match/switch 1 (nesting depth added 10). Of this number, 18 points are the body's own statements and 9 belong to 3 function literals inside it that branch. 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 · (anonymous) (cognitive 27) · ×1
  • (anonymous) (cognitive 27) app/client/public/libraries/jsonwebtoken@8.5.1.js:7011 — (anonymous) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 4, loops 2 (3 pts), ternaries 2 (nesting depth added 6). None of this is in the body itself: all 27 points belong to 11 function items inside it that branch (d, a function literal at line 7060, get, …). 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 · index.entityRefactorFromCode (cognitive 26) · ×1
  • index.entityRefactorFromCode (cognitive 26) app/client/packages/ast/src/index.ts:473 — index.entityRefactorFromCode has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 11). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 532, 519). 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 · useToolbarButtons.useToolbarButtons (cognitive 26) · ×1
  • useToolbarButtons.useToolbarButtons (cognitive 26) app/client/packages/design-system/widgets/src/components/ToolbarButtons/src/useToolbarButtons.ts:19 — useToolbarButtons.useToolbarButtons has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 12). None of this is in the body itself: all 26 points belong to 3 function items inside it that branch (a function literal at line 56, onKeyDown, a function literal at line 111). 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 · 012-migrate-incorrect-dynamic-binding-path-lists.updateMinMaxDynamicHeight (cognitive 26) · ×1
  • 012-migrate-incorrect-dynamic-binding-path-lists.updateMinMaxDynamicHeight (cognitive 26) app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:17 — 012-migrate-incorrect-dynamic-binding-path-lists.updateMinMaxDynamicHeight has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, ternaries 1 (2 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 · mongoQuery.compileMongoQuery (cognitive 26) · ×1
  • mongoQuery.compileMongoQuery (cognitive 26) app/client/packages/mcp/src/builder/mongoQuery.ts:485 — mongoQuery.compileMongoQuery has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, ternaries 3 (6 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 · WidgetFeatures.updateMinMaxDynamicHeight (cognitive 26) · ×1
  • WidgetFeatures.updateMinMaxDynamicHeight (cognitive 26) app/client/src/utils/WidgetFeatures.ts:189 — WidgetFeatures.updateMinMaxDynamicHeight has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, ternaries 1 (2 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 · PostEvaluationSagas.executeReactiveQueries (cognitive 26) · ×1
  • PostEvaluationSagas.executeReactiveQueries (cognitive 26) app/client/src/sagas/PostEvaluationSagas.ts:348 — PostEvaluationSagas.executeReactiveQueries has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 4, loops 1 (nesting depth added 13). Of this number, 25 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 · helpers.getJSOptions (cognitive 26) · ×1
  • helpers.getJSOptions (cognitive 26) app/client/src/components/editorComponents/ActionCreator/helpers.tsx:549 — helpers.getJSOptions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 4 (nesting depth added 13). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 631, 586, 601, …). 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 · InputField.isValid (cognitive 26) · ×1
  • InputField.isValid (cognitive 26) app/client/src/widgets/JSONFormWidget/fields/InputField.tsx:45 — InputField.isValid has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 5, error handling 1 (2 pts), match/switch 2 (nesting depth added 5). 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 · index.ConnectInitialize (cognitive 26) · ×1
  • index.ConnectInitialize (cognitive 26) app/client/src/git/components/ConnectModal/ConnectInitialize/index.tsx:100 — index.ConnectInitialize has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (10 pts), ternaries 3, match/switch 1 (2 pts) (nesting depth added 6). Of this number, 13 points are the body's own statements and 13 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 · Form.JSEditorForm (cognitive 26) · ×1
  • Form.JSEditorForm (cognitive 26) app/client/src/pages/Editor/JSEditor/Form.tsx:103 — Form.JSEditorForm has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 9, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 4 of the 26 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 157, executeJSAction, handleJSActionOptionSelection, …). 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 · PropertySection.PropertySection (cognitive 26) · ×1
  • PropertySection.PropertySection (cognitive 26) app/client/src/pages/Editor/PropertyPane/PropertySection.tsx:95 — PropertySection.PropertySection has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8, ternaries 4 (nesting depth added 3). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 4 function items inside it that branch (enableDataSectionOnly, a function literal at line 138, 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 · PropertyPaneView.PropertyPaneView (cognitive 26) · ×1
  • PropertyPaneView.PropertyPaneView (cognitive 26) app/client/src/pages/Editor/PropertyPane/PropertyPaneView.tsx:79 — PropertyPaneView.PropertyPaneView has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6 (7 pts), boolean chains 6, error handling 1 (3 pts) (nesting depth added 8). Of this number, 13 points are the body's own statements and 13 belong to 4 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 · SignUp.SignUp (cognitive 26) · ×1
  • SignUp.SignUp (cognitive 26) app/client/src/pages/UserAuth/SignUp.tsx:103 — SignUp.SignUp has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (10 pts), error handling 1 (2 pts) (nesting depth added 3). Of this number, 16 points are the body's own statements and 10 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 · WidgetOperationUtils.getWidgetDescendantToReset (cognitive 26) · ×1
  • WidgetOperationUtils.getWidgetDescendantToReset (cognitive 26) app/client/src/sagas/WidgetOperationUtils.ts:385 — WidgetOperationUtils.getWidgetDescendantToReset has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 16). Of this number, 25 points are the body's own statements and 1 belongs 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 · WidgetOperationUtils.getParentWidgetIdForPasting (cognitive 26) · ×1
  • WidgetOperationUtils.getParentWidgetIdForPasting (cognitive 26) app/client/src/sagas/WidgetOperationUtils.ts:455 — WidgetOperationUtils.getParentWidgetIdForPasting has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 8 (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 · InputWidget.getWidgetView (cognitive 26) · ×1
  • InputWidget.getWidgetView (cognitive 26) app/client/src/widgets/InputWidgetV2/widget/index.tsx:792 — InputWidget.getWidgetView has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 10, ternaries 1 (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, 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 · RangeSlider.RangeSliderComponent (cognitive 26) · ×1
  • RangeSlider.RangeSliderComponent (cognitive 26) app/client/src/widgets/RangeSliderWidget/component/RangeSlider.tsx:104 — RangeSlider.RangeSliderComponent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 6, match/switch 1 (2 pts), ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 7 function items inside it that branch (setRangedValue, handleTrackMouseDownCapture, handleTrackKeydownCapture, …). 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 · resetWidget.getWidgetDescendantToReset (cognitive 26) · ×1
  • resetWidget.getWidgetDescendantToReset (cognitive 26) app/client/src/workers/Evaluation/fns/resetWidget.ts:213 — resetWidget.getWidgetDescendantToReset has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 16). Of this number, 25 points are the body's own statements and 1 belongs 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 · MongoConfig.checkForbiddenIds (cognitive 26) · ×1
  • MongoConfig.checkForbiddenIds (cognitive 26) app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/MongoConfig.java:204 — MongoConfig.checkForbiddenIds has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 3 (7 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.
D2 · Cognitive Complexity · DynamoPluginExecutor.extractValue (cognitive 26) · ×1
  • DynamoPluginExecutor.extractValue (cognitive 26) app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/DynamoPlugin.java:148 — DynamoPluginExecutor.extractValue has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 15). 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.DefaultDropDownValueNode (cognitive 25) · ×1
  • index.DefaultDropDownValueNode (cognitive 25) app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:694 — index.DefaultDropDownValueNode has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (13 pts), boolean chains 7, if/else 3 (5 pts) (nesting depth added 7). Of this number, 15 points are the body's own statements and 10 belong to 2 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 · mongoQuery.mongoQuerySpecSchema (cognitive 25) · ×1
  • mongoQuery.mongoQuerySpecSchema (cognitive 25) app/client/packages/mcp/src/builder/mongoQuery.ts:281 — mongoQuery.mongoQuerySpecSchema has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 3 (6 pts) (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 · QuotedColumnParser.gatherDataBetweenQuotes (cognitive 25) · ×1
  • QuotedColumnParser.gatherDataBetweenQuotes (cognitive 25) REDACTED:1312 — QuotedColumnParser.gatherDataBetweenQuotes has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 3 (13 pts), if/else 4 (7 pts), boolean chains 4, loops 1 (nesting depth added 13). 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 · ApplicationSagas.uploadNavigationLogoSaga (cognitive 25) · ×1
  • ApplicationSagas.uploadNavigationLogoSaga (cognitive 25) app/client/src/ce/sagas/ApplicationSagas.tsx:1136 — ApplicationSagas.uploadNavigationLogoSaga has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (21 pts), boolean chains 3, error handling 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 · PageSagas.savePageSaga (cognitive 25) · ×1
  • PageSagas.savePageSaga (cognitive 25) app/client/src/ce/sagas/PageSagas.tsx:507 — PageSagas.savePageSaga has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 4, error handling 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 · evaluationUtils.overrideWidgetProperties (cognitive 25) · ×1
  • evaluationUtils.overrideWidgetProperties (cognitive 25) app/client/src/ce/workers/Evaluation/evaluationUtils.ts:887 — evaluationUtils.overrideWidgetProperties has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 2 (nesting depth added 13). Of this number, 16 points are the body's own statements and 9 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 · multiSelect.defaultOptionValueValidation (cognitive 25) · ×1
  • multiSelect.defaultOptionValueValidation (cognitive 25) app/client/src/widgets/JSONFormWidget/widget/propertyConfig/properties/multiSelect.ts:11 — multiSelect.defaultOptionValueValidation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 8, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). Of this number, 16 points are the body's own statements and 9 belong to 2 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 · spaceRedistributionSagaUtils.redistributeSectionSpace (cognitive 25) · ×1
  • spaceRedistributionSagaUtils.redistributeSectionSpace (cognitive 25) app/client/src/layoutSystems/anvil/sectionSpaceDistributor/utils/spaceRedistributionSagaUtils.ts:19 — spaceRedistributionSagaUtils.redistributeSectionSpace has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, ternaries 3, 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 · index.AppViewer (cognitive 25) · ×1
  • index.AppViewer (cognitive 25) app/client/src/pages/AppViewer/index.tsx:102 — index.AppViewer has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (10 pts), ternaries 5 (nesting depth added 3). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 157, renderChildren, 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 · reflowHelpers.getCollisionTreeHelper (cognitive 25) · ×1
  • reflowHelpers.getCollisionTreeHelper (cognitive 25) app/client/src/reflow/reflowHelpers.ts:329 — reflowHelpers.getCollisionTreeHelper has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 3, loops 1 (nesting depth added 11). 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 · AutoLayoutUpdateSagas.processAutoLayoutDimensionUpdatesSaga (cognitive 25) · ×1
  • AutoLayoutUpdateSagas.processAutoLayoutDimensionUpdatesSaga (cognitive 25) app/client/src/sagas/AutoLayoutUpdateSagas.tsx:324 — AutoLayoutUpdateSagas.processAutoLayoutDimensionUpdatesSaga has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 5 (6 pts), ternaries 1 (2 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 · generateTree.generateTree (cognitive 25) · ×1
  • generateTree.generateTree (cognitive 25) app/client/src/utils/autoHeight/generateTree.ts:9 — generateTree.generateTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 11). Of this number, 23 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 · common.getExpectedValue (cognitive 25) · ×1
  • common.getExpectedValue (cognitive 25) app/client/src/utils/validation/common.ts:26 — common.getExpectedValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5, match/switch 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 · CustomEChartIFrameComponent.CustomEChartIFrameComponent (cognitive 25) · ×1
  • CustomEChartIFrameComponent.CustomEChartIFrameComponent (cognitive 25) REDACTED:35 — CustomEChartIFrameComponent.CustomEChartIFrameComponent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 9, loops 2, error handling 1, match/switch 1 (nesting depth added 2). 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 (onMessageCallback, a function literal at line 260, onMessage, …). 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 · TableWidget.componentDidUpdate (cognitive 25) · ×1
  • TableWidget.componentDidUpdate (cognitive 25) app/client/src/widgets/TableWidget/widget/index.tsx:1018 — TableWidget.componentDidUpdate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (22 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 · index.InputComponent (cognitive 25) · ×1
  • index.InputComponent (cognitive 25) app/client/src/widgets/wds/WDSInputWidget/component/index.tsx:12 — index.InputComponent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 5 (9 pts), boolean chains 5, match/switch 1 (nesting depth added 5). 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 literals inside it that branch (lines 64, 27, 51, …). 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 · formEval.getFormEvaluation (cognitive 25) · ×1
  • formEval.getFormEvaluation (cognitive 25) app/client/src/workers/Evaluation/formEval.ts:457 — formEval.getFormEvaluation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 11). Of this number, 21 points are the body's own statements and 4 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 · DataTreeEvaluator.getDynamicValue (cognitive 25) · ×1
  • DataTreeEvaluator.getDynamicValue (cognitive 25) app/client/src/workers/common/DataTreeEvaluator/index.ts:1650 — DataTreeEvaluator.getDynamicValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 8, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 1683). 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 · AIAssistantServiceCEImpl.callLocalLLMAPI (cognitive 25) · ×1
  • AIAssistantServiceCEImpl.callLocalLLMAPI (cognitive 25) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:609 — AIAssistantServiceCEImpl.callLocalLLMAPI has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, boolean chains 7, loops 1 (2 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 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 · NewActionServiceCEImpl.validateAction (cognitive 25) · ×1
  • NewActionServiceCEImpl.validateAction (cognitive 25) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:552 — NewActionServiceCEImpl.validateAction has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (23 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.
D2 · Cognitive Complexity · PostgresPlugin.createConnectionPool (cognitive 25) · ×1
  • PostgresPlugin.createConnectionPool (cognitive 25) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1193 — PostgresPlugin.createConnectionPool has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, error handling 2, loops 1 (2 pts), match/switch 2, 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 · RowsAppendMethod.executePrerequisites (cognitive 25) · ×1
  • RowsAppendMethod.executePrerequisites (cognitive 25) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:102 — RowsAppendMethod.executePrerequisites has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 1 (3 pts), error handling 2 (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 · (anonymous) (cognitive 25) · ×1
  • (anonymous) (cognitive 25) app/client/public/libraries/jsonwebtoken@8.5.1.js:8055 — (anonymous) has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 6 (8 pts), boolean chains 6 (nesting depth added 5). None of this is in the body itself: all 25 points belong to 10 function items inside it that branch ((anonymous)::exports, (anonymous)::h, a function literal at line 8138, …). 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 · getItems (cognitive 25) · ×1
  • getItems (cognitive 25) app/client/src/widgets/ListWidget/widget/derived.js:26 — getItems has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 2 (3 pts) (nesting depth added 16). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 62, 48, 94, …). 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 · CodeEditor.componentDidMount (cognitive 24) · ×1
  • CodeEditor.componentDidMount (cognitive 24) app/client/src/components/editorComponents/CodeEditor/index.tsx:354 — CodeEditor.componentDidMount has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 6, ternaries 1 (2 pts) (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 · utils.getConfigInitialValues · ×1
  • utils.getConfigInitialValues::parseConfig (cognitive 24) app/client/src/components/formControls/utils.ts:424 — utils.getConfigInitialValues::parseConfig has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 6 (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 · usePositionObserver.usePositionObserver (cognitive 24) · ×1
  • usePositionObserver.usePositionObserver (cognitive 24) app/client/src/layoutSystems/common/utils/LayoutElementPositionsObserver/usePositionObserver.ts:45 — usePositionObserver.usePositionObserver has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 10). None of this is in the body itself: all 24 points belong to 2 function literals inside it that branch (lines 60, 102). 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 · index.AISettings (cognitive 24) · ×1
  • index.AISettings (cognitive 24) app/client/src/pages/AdminSettings/AI/index.tsx:471 — index.AISettings has cognitive complexity 24 (threshold 15). Drivers by points: if/else 45 (71 pts), boolean chains 49, ternaries 10 (15 pts), error handling 5 (nesting depth added 31). 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: 2 other methods here (index.AISettings::handleSave, index.AISettings::handleTestApiKey) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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 · index.Entity (cognitive 24) · ×1
  • index.Entity (cognitive 24) app/client/src/pages/Editor/Explorer/Entity/index.tsx:259 — index.Entity has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 17, if/else 7. Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (toggleChildren, open, handleClick, …). 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 · DatasourceCard.DatasourceCard (cognitive 24) · ×1
  • DatasourceCard.DatasourceCard (cognitive 24) app/client/src/pages/Editor/IntegrationEditor/DatasourceCard.tsx:150 — DatasourceCard.DatasourceCard has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 17, if/else 5, ternaries 2. 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, 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 · PluginActionSaga.runActionSaga (cognitive 24) · ×1
  • PluginActionSaga.runActionSaga (cognitive 24) app/client/src/sagas/ActionExecution/PluginActionSaga.ts:739 — PluginActionSaga.runActionSaga has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 4, error handling 1 (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.
D2 · Cognitive Complexity · PluginActionSaga.executePageLoadAction (cognitive 24) · ×1
  • PluginActionSaga.executePageLoadAction (cognitive 24) app/client/src/sagas/ActionExecution/PluginActionSaga.ts:1108 — PluginActionSaga.executePageLoadAction has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (6 pts), boolean chains 4, 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 · CodeMirrorTernService.getFocusedDocValueAndPos (cognitive 24) · ×1
  • CodeMirrorTernService.getFocusedDocValueAndPos (cognitive 24) app/client/src/utils/autocomplete/CodemirrorTernService.ts:1018 — CodeMirrorTernService.getFocusedDocValueAndPos has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 9, loops 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 · MetaHOC.withMeta (cognitive 24) · ×1
  • MetaHOC.withMeta (cognitive 24) app/client/src/widgets/MetaHOC.tsx:48 — MetaHOC.withMeta has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 7 (nesting depth added 3). None of this is in the body itself: all 24 points belong to 10 function literals inside it that branch (lines 277, 232, 96, …). 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 · HeaderCell.HeaderCellComponent (cognitive 24) · ×1
  • HeaderCell.HeaderCellComponent (cognitive 24) app/client/src/widgets/wds/WDSTableWidget/component/cellComponents/HeaderCell.tsx:52 — HeaderCell.HeaderCellComponent has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, ternaries 7 (8 pts), if/else 5, match/switch 1 (nesting depth added 1). Of this number, 14 points are the body's own statements and 10 belong to 5 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 · WDSTableWidget.componentDidUpdate (cognitive 24) · ×1
  • WDSTableWidget.componentDidUpdate (cognitive 24) REDACTED:602 — WDSTableWidget.componentDidUpdate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 4 (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 · ElasticSearchPluginExecutor.bindPath (cognitive 24) · ×1
  • ElasticSearchPluginExecutor.bindPath (cognitive 24) app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:152 — ElasticSearchPluginExecutor.bindPath has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (5 pts), boolean chains 4, ternaries 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 · schema.formulaProblem (cognitive 23) · ×1
  • schema.formulaProblem (cognitive 23) app/client/packages/mcp/src/builder/schema.ts:696 — schema.formulaProblem has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 9, loops 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 · app.classifyToolResponse (cognitive 23) · ×1
  • app.classifyToolResponse (cognitive 23) app/client/packages/mcp/src/app.ts:7775 — app.classifyToolResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 4 (8 pts), boolean chains 4, error handling 1 (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 · Response.Response (cognitive 23) · ×1
  • Response.Response (cognitive 23) app/client/src/PluginActionEditor/components/PluginActionResponse/components/Response/Response.tsx:48 — Response.Response has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (10 pts) (nesting depth added 3). Of this number, 12 points are the body's own statements and 11 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 · DatasourcesSagas.fetchGsheetSpreadhsheets (cognitive 23) · ×1
  • DatasourcesSagas.fetchGsheetSpreadhsheets (cognitive 23) app/client/src/ce/sagas/DatasourcesSagas.ts:1961 — DatasourcesSagas.fetchGsheetSpreadhsheets has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, loops 1 (3 pts), error handling 1 (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 · organizationSagas.updateOrganizationConfigSaga (cognitive 23) · ×1
  • organizationSagas.updateOrganizationConfigSaga (cognitive 23) app/client/src/ce/sagas/organizationSagas.tsx:63 — organizationSagas.updateOrganizationConfigSaga has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (6 pts), boolean chains 1, error handling 1 (nesting depth added 11). 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 · helpers.howMuchTimeBeforeText (cognitive 23) · ×1
  • helpers.howMuchTimeBeforeText (cognitive 23) app/client/src/utils/helpers.tsx:721 — helpers.howMuchTimeBeforeText has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (15 pts), if/else 7, boolean chains 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 · CodeEditor.handleAutocompleteKeydown (cognitive 23) · ×1
  • CodeEditor.handleAutocompleteKeydown (cognitive 23) app/client/src/components/editorComponents/CodeEditor/index.tsx:1446 — CodeEditor.handleAutocompleteKeydown has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 9, ternaries 1 (nesting depth added 1). Of this number, 22 points are the body's own statements and 1 belongs to one function literal 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 · JSResponseView.JSResponseView (cognitive 23) · ×1
  • JSResponseView.JSResponseView (cognitive 23) app/client/src/components/editorComponents/JSResponseView.tsx:77 — JSResponseView.JSResponseView has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 18, if/else 3 (4 pts), ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 138, 92, 218, …). 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 · ModalResizable.ModalResizable (cognitive 23) · ×1
  • ModalResizable.ModalResizable (cognitive 23) app/client/src/layoutSystems/common/resizer/ModalResizable.tsx:107 — ModalResizable.ModalResizable has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, ternaries 6 (8 pts), boolean chains 4 (nesting depth added 2). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 6 function items inside it that branch (setNewDimensions, a function literal at line 325, a function literal at line 158, …). 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 · index.NavigationSettings (cognitive 23) · ×1
  • index.NavigationSettings (cognitive 23) app/client/src/pages/AppIDE/components/AppSettings/components/NavigationSettings/index.tsx:21 — index.NavigationSettings has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (11 pts), match/switch 1 (nesting depth added 3). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 69, 107, 35). 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 · DeployButton.DeployButton (cognitive 23) · ×1
  • DeployButton.DeployButton (cognitive 23) app/client/src/pages/AppIDE/layouts/components/Header/DeployButton.tsx:41 — DeployButton.DeployButton has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 6 (nesting depth added 5). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 53, 103, 78). 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 · NewActionButton.NewActionButton (cognitive 23) · ×1
  • NewActionButton.NewActionButton (cognitive 23) app/client/src/pages/Editor/DataSourceEditor/NewActionButton.tsx:58 — NewActionButton.NewActionButton has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 7 (8 pts), boolean chains 5, match/switch 1 (nesting depth added 4). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 172, a function literal at line 85, 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 · utils.getPropertyPanePanelNavigationConfig · ×1
  • utils.getPropertyPanePanelNavigationConfig::_getNavigationConfig (cognitive 23) app/client/src/pages/Editor/EntityNavigation/PropertyPane/utils.ts:160 — utils.getPropertyPanePanelNavigationConfig::_getNavigationConfig has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (15 pts), boolean chains 4, loops 2 (4 pts) (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 · WorkspaceInviteUsersForm.WorkspaceInviteUsers (cognitive 23) · ×1
  • WorkspaceInviteUsersForm.WorkspaceInviteUsers (cognitive 23) app/client/src/pages/workspace/WorkspaceInviteUsersForm.tsx:99 — WorkspaceInviteUsersForm.WorkspaceInviteUsers has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (14 pts), boolean chains 9 (nesting depth added 8). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 157, 124, 109). 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 · SyntaxErrorsEvaluation.syntaxErrorsFromProps (cognitive 23) · ×1
  • SyntaxErrorsEvaluation.syntaxErrorsFromProps (cognitive 23) app/client/src/widgets/ChartWidget/widget/SyntaxErrorsEvaluation.ts:6 — SyntaxErrorsEvaluation.syntaxErrorsFromProps has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3, loops 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 · TableWidget.createTablePrimaryColumns (cognitive 23) · ×1
  • TableWidget.createTablePrimaryColumns (cognitive 23) app/client/src/widgets/TableWidget/widget/index.tsx:854 — TableWidget.createTablePrimaryColumns has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 1, loops 1 (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 · index.parseJSActions (cognitive 23) · ×1
  • index.parseJSActions (cognitive 23) app/client/src/workers/Evaluation/JSObject/index.ts:252 — index.parseJSActions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 6 (nesting depth added 8). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 263, 296, 313). 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 · CurlImporterServiceCEImpl.normalize (cognitive 23) · ×1
  • CurlImporterServiceCEImpl.normalize (cognitive 23) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/CurlImporterServiceCEImpl.java:243 — CurlImporterServiceCEImpl.normalize has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 1, loops 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 · DatasourceStorageServiceCEImpl.requestOmitsEncryptedValueFromRetainedStructure (cognitive 23) · ×1
  • DatasourceStorageServiceCEImpl.requestOmitsEncryptedValueFromRetainedStructure (cognitive 23) app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCEImpl.java:290 — DatasourceStorageServiceCEImpl.requestOmitsEncryptedValueFromRetainedStructure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, error handling 1 (3 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 · DatePicker.createDefaultShortcuts (cognitive 22) · ×1
  • DatePicker.createDefaultShortcuts (cognitive 22) app/client/packages/design-system/ads/src/DatePicker/DatePicker.tsx:175 — DatePicker.createDefaultShortcuts has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 12 (16 pts), boolean chains 6 (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.
D2 · Cognitive Complexity · editPatch.checkLiteralShapes (cognitive 22) · ×1
  • editPatch.checkLiteralShapes (cognitive 22) app/client/packages/mcp/src/builder/editPatch.ts:1251 — editPatch.checkLiteralShapes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (5 pts), boolean chains 4 (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 · ErrorSagas.errorSaga (cognitive 22) · ×1
  • ErrorSagas.errorSaga (cognitive 22) app/client/src/sagas/ErrorSagas.tsx:232 — ErrorSagas.errorSaga has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 5, match/switch 1 (2 pts), loops 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 · index.getConfigsFromEnvVars (cognitive 22) · ×1
  • index.getConfigsFromEnvVars (cognitive 22) app/client/src/ce/configs/index.ts:75 — index.getConfigsFromEnvVars has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 17, ternaries 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 · generateQuickCommands.generateQuickCommands (cognitive 22) · ×1
  • generateQuickCommands.generateQuickCommands (cognitive 22) app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx:267 — generateQuickCommands.generateQuickCommands has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 3 (4 pts), boolean chains 3 (nesting depth added 7). Of this number, 13 points are the body's own statements and 9 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 · horizontalHighlights.getHighlightsForLayouts (cognitive 22) · ×1
  • horizontalHighlights.getHighlightsForLayouts (cognitive 22) app/client/src/layoutSystems/anvil/utils/layouts/highlights/horizontalHighlights.ts:157 — horizontalHighlights.getHighlightsForLayouts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 3 (7 pts), boolean chains 3, 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 · useGridLayoutTemplate.useGridLayoutTemplate (cognitive 22) · ×1
  • useGridLayoutTemplate.useGridLayoutTemplate (cognitive 22) app/client/src/pages/AppIDE/layouts/hooks/useGridLayoutTemplate.ts:27 — useGridLayoutTemplate.useGridLayoutTemplate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, match/switch 1 (nesting depth added 6). None of this is in the body itself: all 22 points belong to one function literal inside it that branches (line 46). 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 · PrimaryCTA.PrimaryCTA (cognitive 22) · ×1
  • PrimaryCTA.PrimaryCTA (cognitive 22) app/client/src/pages/AppViewer/PrimaryCTA.tsx:51 — PrimaryCTA.PrimaryCTA has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 9 (nesting depth added 1). None of this is in the body itself: all 22 points belong to 5 function items inside it that branch (a function literal at line 143, appendOrDeleteForkParam, a function literal at line 75, …). 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 · utils.draggableElement (cognitive 22) · ×1
  • utils.draggableElement (cognitive 22) app/client/src/pages/Editor/utils.tsx:35 — utils.draggableElement has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 8. Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 9 function items inside it that branch (calculateBoundaryConfinedPosition, elementDrag, teardown, …). 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 · MainContainerWrapper.MainContainerWrapper (cognitive 22) · ×1
  • MainContainerWrapper.MainContainerWrapper (cognitive 22) app/client/src/pages/Editor/WidgetsEditor/components/MainContainerWrapper.tsx:110 — MainContainerWrapper.MainContainerWrapper has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 15, ternaries 4 (5 pts), if/else 2 (nesting depth added 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 · ResetPassword.ResetPassword (cognitive 22) · ×1
  • ResetPassword.ResetPassword (cognitive 22) app/client/src/pages/UserAuth/ResetPassword.tsx:62 — ResetPassword.ResetPassword has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 9 (10 pts), ternaries 2 (nesting depth added 1). Of this number, 21 points are the body's own statements and 1 belongs to one function literal 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 · PluginActionSaga.executePluginActionSaga (cognitive 22) · ×1
  • PluginActionSaga.executePluginActionSaga (cognitive 22) app/client/src/sagas/ActionExecution/PluginActionSaga.ts:1338 — PluginActionSaga.executePluginActionSaga has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), error handling 2, ternaries 1 (2 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 · useReflow.useReflow.reflowSpaces (cognitive 22) · ×1
  • useReflow.useReflow.reflowSpaces (cognitive 22) app/client/src/utils/hooks/useReflow.ts:132 — useReflow.useReflow.reflowSpaces has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (11 pts) (nesting depth added 2). 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.CustomComponent (cognitive 22) · ×1
  • index.CustomComponent (cognitive 22) REDACTED:56 — index.CustomComponent has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (8 pts), ternaries 3, match/switch 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 75, 150, 162, …). 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 · validations.validateArray (cognitive 22) · ×1
  • validations.validateArray (cognitive 22) REDACTED:125 — validations.validateArray has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9, ternaries 1 (nesting depth added 3). Of this number, 14 points are the body's own statements and 8 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 · AIConfigServiceCEImpl.parseOllamaModels (cognitive 22) · ×1
  • AIConfigServiceCEImpl.parseOllamaModels (cognitive 22) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:757 — AIConfigServiceCEImpl.parseOllamaModels has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2, error handling 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 · AIConfigServiceCEImpl.testClaudeKey (cognitive 22) · ×1
  • AIConfigServiceCEImpl.testClaudeKey (cognitive 22) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1055 — AIConfigServiceCEImpl.testClaudeKey has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, error handling 1 (2 pts) (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 · RedirectHelper.isSafeRedirectUrl (cognitive 22) · ×1
  • RedirectHelper.isSafeRedirectUrl (cognitive 22) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/RedirectHelper.java:167 — RedirectHelper.isSafeRedirectUrl has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 5, error handling 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 · OracleExecuteUtils.populateRowsAndColumns (cognitive 22) · ×1
  • OracleExecuteUtils.populateRowsAndColumns (cognitive 22) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleExecuteUtils.java:118 — OracleExecuteUtils.populateRowsAndColumns has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (5 pts), boolean chains 2, ternaries 1 (2 pts) (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 · VisionCommand.createMessages (cognitive 22) · ×1
  • VisionCommand.createMessages (cognitive 22) app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/commands/VisionCommand.java:97 — VisionCommand.createMessages has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2, boolean chains 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 · index.getFunctionalParamsFromNode (cognitive 21) · ×1
  • index.getFunctionalParamsFromNode (cognitive 21) app/client/packages/ast/src/index.ts:600 — index.getFunctionalParamsFromNode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 7). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 610). 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 · index.extractExpressionsFromCode (cognitive 21) · ×1
  • index.extractExpressionsFromCode (cognitive 21) app/client/packages/ast/src/index.ts:759 — index.extractExpressionsFromCode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4, 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 · jsObject.findCallCycle (cognitive 21) · ×1
  • jsObject.findCallCycle (cognitive 21) app/client/packages/mcp/src/builder/jsObject.ts:559 — jsObject.findCallCycle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (4 pts) (nesting depth added 11). 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 · DatasourceTab.DatasourceTab (cognitive 21) · ×1
  • DatasourceTab.DatasourceTab (cognitive 21) app/client/src/PluginActionEditor/components/PluginActionResponse/components/DatasourceTab/DatasourceTab.tsx:44 — DatasourceTab.DatasourceTab has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 9, ternaries 1. Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (getStatusState, renderStatus, a function literal at line 102, …). 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 · AISidePanel.AISidePanel (cognitive 21) · ×1
  • AISidePanel.AISidePanel (cognitive 21) app/client/src/ce/components/editorComponents/GPT/AISidePanel.tsx:152 — AISidePanel.AISidePanel has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 9. Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 310, 269, 178, …). 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 · CodeEditor.render (cognitive 21) · ×1
  • CodeEditor.render (cognitive 21) app/client/src/components/editorComponents/CodeEditor/index.tsx:1655 — CodeEditor.render has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 15, if/else 3, ternaries 3. Of this number, 20 points are the body's own statements and 1 belongs 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.
D2 · Cognitive Complexity · walkthroughRenderer.WalkthroughRenderer (cognitive 21) · ×1
  • walkthroughRenderer.WalkthroughRenderer (cognitive 21) app/client/src/components/featureWalkthrough/walkthroughRenderer.tsx:143 — walkthroughRenderer.WalkthroughRenderer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, ternaries 3 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 6 function items inside it that branch (updateBoundingRect, a function literal at line 169, a function literal at line 202, …). 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 · sectionSagas.updateZonesCountOfSectionSaga (cognitive 21) · ×1
  • sectionSagas.updateZonesCountOfSectionSaga (cognitive 21) app/client/src/layoutSystems/anvil/integrations/sagas/sectionSagas.ts:25 — sectionSagas.updateZonesCountOfSectionSaga has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 4 (7 pts), boolean chains 4, 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 · index.WidgetNameComponent (cognitive 21) · ×1
  • index.WidgetNameComponent (cognitive 21) app/client/src/layoutSystems/common/widgetName/index.tsx:78 — index.WidgetNameComponent has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 5 (7 pts) (nesting depth added 2). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 106, getCurrentActivity, shouldShowWidgetName, …). 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 · index.navigateActionSaga (cognitive 21) · ×1
  • index.navigateActionSaga (cognitive 21) app/client/src/sagas/ActionExecution/NavigateActionSaga/index.ts:29 — index.navigateActionSaga has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 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 · WidgetAdditionSagas.getChildWidgetProps (cognitive 21) · ×1
  • WidgetAdditionSagas.getChildWidgetProps (cognitive 21) app/client/src/sagas/WidgetAdditionSagas.ts:76 — WidgetAdditionSagas.getChildWidgetProps has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5 (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.
D2 · Cognitive Complexity · GitSyncSagas.importAppFromGitSaga (cognitive 21) · ×1
  • GitSyncSagas.importAppFromGitSaga (cognitive 21) app/client/src/sagas/GitSyncSagas.ts:860 — GitSyncSagas.importAppFromGitSaga has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, 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 · CodeMirrorTernService.updateArgHints (cognitive 21) · ×1
  • CodeMirrorTernService.updateArgHints (cognitive 21) app/client/src/utils/autocomplete/CodemirrorTernService.ts:273 — CodeMirrorTernService.updateArgHints has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 4). Of this number, 17 points are the body's own statements and 4 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.
D2 · Cognitive Complexity · CodeMirrorTernService.buildRequest (cognitive 21) · ×1
  • CodeMirrorTernService.buildRequest (cognitive 21) app/client/src/utils/autocomplete/CodemirrorTernService.ts:863 — CodeMirrorTernService.buildRequest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, loops 1 (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 · InlineCellEditor.InlineCellEditor (cognitive 21) · ×1
  • InlineCellEditor.InlineCellEditor (cognitive 21) app/client/src/widgets/TableWidgetV2/component/cellComponents/InlineCellEditor.tsx:168 — InlineCellEditor.InlineCellEditor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, error handling 1 (2 pts), match/switch 1, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 220, 200, 251, …). 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 · DateCell.DateCell (cognitive 21) · ×1
  • DateCell.DateCell (cognitive 21) app/client/src/widgets/TableWidgetV2/component/cellComponents/DateCell.tsx:156 — DateCell.DateCell has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 10, ternaries 1. Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 6 function items inside it that branch (onDateSelected, a function literal at line 221, convertInputFormatToMomentFormat, …). 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 · validations.getExpectedType (cognitive 21) · ×1
  • validations.getExpectedType (cognitive 21) REDACTED:355 — validations.getExpectedType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 1, match/switch 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 · AIConfigServiceCEImpl.testAzureOpenaiKey (cognitive 21) · ×1
  • AIConfigServiceCEImpl.testAzureOpenaiKey (cognitive 21) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1185 — AIConfigServiceCEImpl.testAzureOpenaiKey has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (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 · AiDatasourceSchemaSerializerCE.getFkReferencedTableNames (cognitive 21) · ×1
  • AiDatasourceSchemaSerializerCE.getFkReferencedTableNames (cognitive 21) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/AiDatasourceSchemaSerializerCE.java:176 — AiDatasourceSchemaSerializerCE.getFkReferencedTableNames has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 11). 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 · SnowflakePluginExecutor.validateDatasource (cognitive 21) · ×1
  • SnowflakePluginExecutor.validateDatasource (cognitive 21) app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:241 — SnowflakePluginExecutor.validateDatasource has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 6 (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.
D2 · Cognitive Complexity · MongoPlugin.cleanUp (cognitive 21) · ×1
  • MongoPlugin.cleanUp (cognitive 21) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java:1157 — MongoPlugin.cleanUp has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, loops 2 (5 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 · RowsBulkUpdateMethod.executePrerequisites (cognitive 21) · ×1
  • RowsBulkUpdateMethod.executePrerequisites (cognitive 21) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:101 — RowsBulkUpdateMethod.executePrerequisites has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 3, error handling 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.
D2 · Cognitive Complexity · ColorGrid.ColorGrid (cognitive 20) · ×1
  • ColorGrid.ColorGrid (cognitive 20) app/client/packages/design-system/widgets/src/testing/ColorGrid.tsx:57 — ColorGrid.ColorGrid has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11, match/switch 4 (6 pts), if/else 2, boolean chains 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 120, secondColorName, a function literal at line 139, …). 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 · jsObject.buildUpdateJsObjectRequest (cognitive 20) · ×1
  • jsObject.buildUpdateJsObjectRequest (cognitive 20) app/client/packages/mcp/src/builder/jsObject.ts:826 — jsObject.buildUpdateJsObjectRequest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts), boolean chains 1, ternaries 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 · events.eventActionKinds (cognitive 20) · ×1
  • events.eventActionKinds (cognitive 20) app/client/packages/mcp/src/builder/events.ts:420 — events.eventActionKinds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), loops 3 (7 pts), ternaries 1 (2 pts) (nesting depth added 6). Of this number, 11 points are the body's own statements and 9 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.
D2 · Cognitive Complexity · a.transformRow (cognitive 20) · ×1
  • a.transformRow (cognitive 20) REDACTED:738 — a.transformRow has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (19 pts), error handling 1 (nesting depth added 13). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 740). 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 · index.WorkspaceMenuItem (cognitive 20) · ×1
  • index.WorkspaceMenuItem (cognitive 20) app/client/src/ce/pages/Applications/index.tsx:460 — index.WorkspaceMenuItem has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 4, if/else 4 (nesting depth added 4). Of this number, 19 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 · rampSelectors.showProductRamps (cognitive 20) · ×1
  • rampSelectors.showProductRamps (cognitive 20) app/client/src/ce/selectors/rampSelectors.tsx:58 — rampSelectors.showProductRamps has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 8). None of this is in the body itself: all 20 points belong to 2 function literals inside it that branch (lines 66, 65). 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 · PositionedContainer.PositionedContainer (cognitive 20) · ×1
  • PositionedContainer.PositionedContainer (cognitive 20) app/client/src/components/designSystems/appsmith/PositionedContainer.tsx:57 — PositionedContainer.PositionedContainer has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 17, ternaries 3. Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 120, 65). 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 · index.Resizer (cognitive 20) · ×1
  • index.Resizer (cognitive 20) app/client/src/components/editorComponents/Debugger/Resizer/index.tsx:30 — index.Resizer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 8 (nesting depth added 2). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 81, handleResize, a function literal at line 39, …). 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 · TableCustomSortControl.getInputComputedValue (cognitive 20) · ×1
  • TableCustomSortControl.getInputComputedValue (cognitive 20) app/client/src/components/propertyControls/TableCustomSortControl.tsx:246 — TableCustomSortControl.getInputComputedValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (2 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 · ArrayField.ArrayField (cognitive 20) · ×1
  • ArrayField.ArrayField (cognitive 20) app/client/src/widgets/JSONFormWidget/fields/ArrayField.tsx:160 — ArrayField.ArrayField has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, ternaries 2, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 256, add, a function literal at line 307, …). 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 · applicationRedirectToClosestEntitySaga.applicationRedirectToClosestEntitySaga (cognitive 20) · ×1
  • applicationRedirectToClosestEntitySaga.applicationRedirectToClosestEntitySaga (cognitive 20) app/client/src/git-artifact-helpers/application/sagas/applicationRedirectToClosestEntitySaga.ts:19 — applicationRedirectToClosestEntitySaga.applicationRedirectToClosestEntitySaga has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, ternaries 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 · FlexBoxComponent.FlexBoxComponent (cognitive 20) · ×1
  • FlexBoxComponent.FlexBoxComponent (cognitive 20) app/client/src/layoutSystems/autolayout/common/flexCanvas/FlexBoxComponent.tsx:36 — FlexBoxComponent.FlexBoxComponent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 5, loops 3 (4 pts), boolean chains 2 (nesting depth added 2). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 4 function items inside it that branch (renderChildren, processIndividualLayer, a function literal at line 146, …). 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 · WidgetsMultiSelectBox.WidgetsMultiSelectBox (cognitive 20) · ×1
  • WidgetsMultiSelectBox.WidgetsMultiSelectBox (cognitive 20) app/client/src/layoutSystems/fixedlayout/common/widgetGrouping/WidgetsMultiSelectBox.tsx:177 — WidgetsMultiSelectBox.WidgetsMultiSelectBox has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6 (nesting depth added 4). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 262, a function literal at line 274, observeSelectionBox, …). 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 · EntitySearchBar.EntitySearchBar (cognitive 20) · ×1
  • EntitySearchBar.EntitySearchBar (cognitive 20) app/client/src/pages/common/SearchBar/EntitySearchBar.tsx:55 — EntitySearchBar.EntitySearchBar has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 8, ternaries 1. Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch (navigateToApplication, a function literal at line 94, a function literal at line 86, …). 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 · reflowUtils.checkReCollisionWithOtherNewSpacePositions (cognitive 20) · ×1
  • reflowUtils.checkReCollisionWithOtherNewSpacePositions (cognitive 20) app/client/src/reflow/reflowUtils.ts:1554 — reflowUtils.checkReCollisionWithOtherNewSpacePositions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 5, loops 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 · JSPaneSagas.updateJSCollection (cognitive 20) · ×1
  • JSPaneSagas.updateJSCollection (cognitive 20) app/client/src/sagas/JSPaneSagas.ts:325 — JSPaneSagas.updateJSCollection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 6, error handling 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 · ReplaySaga.getEditorFieldConfig (cognitive 20) · ×1
  • ReplaySaga.getEditorFieldConfig (cognitive 20) app/client/src/sagas/ReplaySaga.ts:452 — ReplaySaga.getEditorFieldConfig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 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 · debuggerSelectors.getFilteredErrors (cognitive 20) · ×1
  • debuggerSelectors.getFilteredErrors (cognitive 20) app/client/src/selectors/debuggerSelectors.tsx:32 — debuggerSelectors.getFilteredErrors has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (6 pts), boolean chains 5 (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 2 function literals inside it that branch (lines 51, 39). 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 · tabbable.getTabbableDescendants (cognitive 20) · ×1
  • tabbable.getTabbableDescendants (cognitive 20) app/client/src/utils/hooks/useWidgetFocus/tabbable.ts:43 — tabbable.getTabbableDescendants has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 5 (7 pts), boolean chains 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 · ImageComponent.render (cognitive 20) · ×1
  • ImageComponent.render (cognitive 20) app/client/src/widgets/ImageWidget/component/index.tsx:169 — ImageComponent.render has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7, ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 238, onClick, a function literal at line 274). 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 · propertyConfig.primaryColumnValidation (cognitive 20) · ×1
  • propertyConfig.primaryColumnValidation (cognitive 20) app/client/src/widgets/ListWidgetV2/widget/propertyConfig.ts:28 — propertyConfig.primaryColumnValidation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 11). 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 · TableWidgetV2.hydrateStickyColumns (cognitive 20) · ×1
  • TableWidgetV2.hydrateStickyColumns (cognitive 20) app/client/src/widgets/TableWidgetV2/widget/index.tsx:840 — TableWidgetV2.hydrateStickyColumns has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2 (nesting depth added 10). Of this number, 16 points are the body's own statements and 4 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 · TableWidgetV2.toggleCellEditMode (cognitive 20) · ×1
  • TableWidgetV2.toggleCellEditMode (cognitive 20) app/client/src/widgets/TableWidgetV2/widget/index.tsx:2710 — TableWidgetV2.toggleCellEditMode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 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 · WDSTableWidget.hydrateStickyColumns (cognitive 20) · ×1
  • WDSTableWidget.hydrateStickyColumns (cognitive 20) REDACTED:500 — WDSTableWidget.hydrateStickyColumns has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2 (nesting depth added 10). Of this number, 16 points are the body's own statements and 4 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 · CacheAspect.cacheEvict (cognitive 20) · ×1
  • CacheAspect.cacheEvict (cognitive 20) REDACTED:200 — CacheAspect.cacheEvict has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (8 pts) (nesting depth added 11). 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 · CentralGitServiceCEImpl.connectArtifactToGit (cognitive 20) · ×1
  • CentralGitServiceCEImpl.connectArtifactToGit (cognitive 20) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1144 — CentralGitServiceCEImpl.connectArtifactToGit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 1 (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, 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 · CentralGitServiceCEImpl.getStatus (cognitive 20) · ×1
  • CentralGitServiceCEImpl.getStatus (cognitive 20) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1816 — CentralGitServiceCEImpl.getStatus has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 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, 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 · NewActionRefactoringServiceCEImpl.refactorNameInAction (cognitive 20) · ×1
  • NewActionRefactoringServiceCEImpl.refactorNameInAction (cognitive 20) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/refactors/NewActionRefactoringServiceCEImpl.java:237 — NewActionRefactoringServiceCEImpl.refactorNameInAction has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 1 (3 pts), ternaries 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 · AuthenticationServiceCEImpl.getAccessTokenForGenericOAuth2 (cognitive 20) · ×1
  • AuthenticationServiceCEImpl.getAccessTokenForGenericOAuth2 (cognitive 20) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java:225 — AuthenticationServiceCEImpl.getAccessTokenForGenericOAuth2 has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 3 (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, 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 · CreateDBTablePageSolutionCEImpl.cloneActionsFromTemplateApplication (cognitive 20) · ×1
  • CreateDBTablePageSolutionCEImpl.cloneActionsFromTemplateApplication (cognitive 20) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:615 — CreateDBTablePageSolutionCEImpl.cloneActionsFromTemplateApplication has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, ternaries 2 (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 · EnvManagerCEImpl.applyChanges (cognitive 20) · ×1
  • EnvManagerCEImpl.applyChanges (cognitive 20) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:414 — EnvManagerCEImpl.applyChanges has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 1 (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 · MssqlExecuteUtils.populateRowsAndColumns (cognitive 20) · ×1
  • MssqlExecuteUtils.populateRowsAndColumns (cognitive 20) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:68 — MssqlExecuteUtils.populateRowsAndColumns has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2 (5 pts), ternaries 1 (2 pts), boolean chains 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 · GoogleAiPluginExecutor.extractGenerateContentModels (cognitive 20) · ×1
  • GoogleAiPluginExecutor.extractGenerateContentModels (cognitive 20) app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:245 — GoogleAiPluginExecutor.extractGenerateContentModels has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 2 (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 · S3PluginExecutor.validateDatasource (cognitive 20) · ×1
  • S3PluginExecutor.validateDatasource (cognitive 20) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:1017 — S3PluginExecutor.validateDatasource has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5 (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 · FSGitHandlerCEImpl.summarisePushResult (cognitive 20) · ×1
  • FSGitHandlerCEImpl.summarisePushResult (cognitive 20) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:399 — FSGitHandlerCEImpl.summarisePushResult has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 4 (6 pts), loops 2 (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 · env-file.parse_env (cognitive 20) · ×1
  • env-file.parse_env (cognitive 20) deploy/docker/fs/opt/appsmith/env-file.py:96 — env-file.parse_env has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, ternaries 1 (3 pts), error handling 1 (2 pts), loops 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 · (anonymous) (cognitive 20) · ×1
  • (anonymous) (cognitive 20) REDACTED:1707 — (anonymous) has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 8, if/else 2 (nesting depth added 1). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch ((anonymous)::d, a function literal at line 1708, (anonymous)::exports, …). 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 · 031-migrate-is-disabled-to-button-column.addIsDisabledToButtonColumn (cognitive 19) · ×1
  • 031-migrate-is-disabled-to-button-column.addIsDisabledToButtonColumn (cognitive 19) app/client/packages/dsl/src/migrate/migrations/031-migrate-is-disabled-to-button-column.ts:4 — 031-migrate-is-disabled-to-button-column.addIsDisabledToButtonColumn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 1 (3 pts) (nesting depth added 13). 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 · 041-migrate-button-variant.migrateButtonVariant (cognitive 19) · ×1
  • 041-migrate-button-variant.migrateButtonVariant (cognitive 19) app/client/packages/dsl/src/migrate/migrations/041-migrate-button-variant.ts:9 — 041-migrate-button-variant.migrateButtonVariant has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (8 pts), boolean chains 2 (nesting depth added 8). Of this number, 12 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 · 057-migrate-styling-properties-for-theming.migrateStylingPropertiesForTheming (cognitive 19) · ×1
  • 057-migrate-styling-properties-for-theming.migrateStylingPropertiesForTheming (cognitive 19) app/client/packages/dsl/src/migrate/migrations/057-migrate-styling-properties-for-theming.ts:202 — 057-migrate-styling-properties-for-theming.migrateStylingPropertiesForTheming has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 19. 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 · modalGraph.evaluateModalWiring (cognitive 19) · ×1
  • modalGraph.evaluateModalWiring (cognitive 19) app/client/packages/mcp/src/builder/modalGraph.ts:327 — modalGraph.evaluateModalWiring has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (5 pts), boolean chains 4, loops 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 · EmbeddedDatasourcePathComponent.handleEvaluatedValue (cognitive 19) · ×1
  • EmbeddedDatasourcePathComponent.handleEvaluatedValue (cognitive 19) REDACTED:440 — EmbeddedDatasourcePathComponent.handleEvaluatedValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 9). Of this number, 17 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 · FocusRetention.setStateOfPath (cognitive 19) · ×1
  • FocusRetention.setStateOfPath (cognitive 19) app/client/src/sagas/FocusRetentionSaga.ts:160 — FocusRetention.setStateOfPath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (4 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.
D2 · Cognitive Complexity · index.OrganizationDropdown (cognitive 19) · ×1
  • index.OrganizationDropdown (cognitive 19) app/client/src/components/OrganizationDropdown/index.tsx:29 — index.OrganizationDropdown has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 124, a function literal at line 137, a function literal at line 73, …). 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 · utils.getActionHeading (cognitive 19) · ×1
  • utils.getActionHeading (cognitive 19) app/client/src/components/editorComponents/ActionCreator/viewComponents/ActionBlockTree/utils.tsx:100 — utils.getActionHeading has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 13, if/else 2 (3 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 2). 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 · index.PartialExportModal (cognitive 19) · ×1
  • index.PartialExportModal (cognitive 19) app/client/src/components/editorComponents/PartialImportExport/PartialExportModal/index.tsx:47 — index.PartialExportModal has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 6, boolean chains 4, loops 1 (nesting depth added 1). 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 items inside it that branch (a function literal at line 77, selectOnlyParentIds, onEntitySelected, …). 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 · MultiSelectField.MultiSelectField (cognitive 19) · ×1
  • MultiSelectField.MultiSelectField (cognitive 19) app/client/src/widgets/JSONFormWidget/fields/MultiSelectField.tsx:92 — MultiSelectField.MultiSelectField has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 7, ternaries 2. Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 200, 140, 139, …). 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 · triggerAutocommitSaga.pollAutocommitProgressSaga (cognitive 19) · ×1
  • triggerAutocommitSaga.pollAutocommitProgressSaga (cognitive 19) app/client/src/git/sagas/triggerAutocommitSaga.ts:58 — triggerAutocommitSaga.pollAutocommitProgressSaga has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, error handling 2, loops 1 (2 pts) (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 · useRenderBlocksOnCanvas.useRenderBlocksOnCanvas · ×1
  • useRenderBlocksOnCanvas.useRenderBlocksOnCanvas::renderBlocks (cognitive 19) app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useRenderBlocksOnCanvas.ts:77 — useRenderBlocksOnCanvas.useRenderBlocksOnCanvas::renderBlocks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, 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 · FlexLayout.FlexLayout (cognitive 19) · ×1
  • FlexLayout.FlexLayout (cognitive 19) app/client/src/layoutSystems/anvil/layoutComponents/components/FlexLayout.tsx:28 — FlexLayout.FlexLayout has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 17, ternaries 2. None of this is in the body itself: all 19 points belong to 3 function literals inside it that branch (lines 75, 119, 128). 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 · DraggableComponent.DraggableComponent (cognitive 19) · ×1
  • DraggableComponent.DraggableComponent (cognitive 19) app/client/src/layoutSystems/common/draggable/DraggableComponent.tsx:54 — DraggableComponent.DraggableComponent has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 3 (5 pts), ternaries 3 (nesting depth added 2). Of this number, 10 points are the body's own statements and 9 belong to 2 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.TestResultDisplay (cognitive 19) · ×1
  • index.TestResultDisplay (cognitive 19) app/client/src/pages/AdminSettings/AI/index.tsx:347 — index.TestResultDisplay has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 17, ternaries 2. 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 · Editor.componentDidUpdate (cognitive 19) · ×1
  • Editor.componentDidUpdate (cognitive 19) app/client/src/pages/AppIDE/AppIDE.tsx:120 — Editor.componentDidUpdate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8 (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 · DatasourceRestAPIEditor.ensureOAuthDefaultsAreCorrect (cognitive 19) · ×1
  • DatasourceRestAPIEditor.ensureOAuthDefaultsAreCorrect (cognitive 19) app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx:150 — DatasourceRestAPIEditor.ensureOAuthDefaultsAreCorrect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 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.
D2 · Cognitive Complexity · DatasourceSaaSEditor.renderDataSourceConfigForm (cognitive 19) · ×1
  • DatasourceSaaSEditor.renderDataSourceConfigForm (cognitive 19) app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx:577 — DatasourceSaaSEditor.renderDataSourceConfigForm has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 18, 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 · utils.getSectionId · ×1
  • utils.getSectionId::_getSectionId (cognitive 19) app/client/src/pages/Editor/EntityNavigation/PropertyPane/utils.ts:17 — utils.getSectionId::_getSectionId has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 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 · helpers.evaluateHiddenProperty (cognitive 19) · ×1
  • helpers.evaluateHiddenProperty (cognitive 19) app/client/src/pages/Editor/PropertyPane/helpers.tsx:34 — helpers.evaluateHiddenProperty has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 5, 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 · GitUserSettings.GitUserSettings (cognitive 19) · ×1
  • GitUserSettings.GitUserSettings (cognitive 19) app/client/src/pages/Editor/gitSync/GitSettingsModal/TabGeneral/GitUserSettings.tsx:140 — GitUserSettings.GitUserSettings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 192, a function literal at line 171, a function literal at line 165, …). 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 · Login.Login (cognitive 19) · ×1
  • Login.Login (cognitive 19) REDACTED:99 — Login.Login has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 6, ternaries 1. Of this number, 15 points are the body's own statements and 4 belong to 2 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 · SetupForm.SetupForm · ×1
  • SetupForm.SetupForm::onKeyDown (cognitive 19) app/client/src/pages/setup/SetupForm.tsx:181 — SetupForm.SetupForm::onKeyDown has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 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 · WidgetSelectionSagas.selectWidgetSaga (cognitive 19) · ×1
  • WidgetSelectionSagas.selectWidgetSaga (cognitive 19) app/client/src/sagas/WidgetSelectionSagas.ts:71 — WidgetSelectionSagas.selectWidgetSaga has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1, match/switch 1 (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 · WidgetSizeUtils.getCanvasBottomRow (cognitive 19) · ×1
  • WidgetSizeUtils.getCanvasBottomRow (cognitive 19) app/client/src/utils/WidgetSizeUtils.ts:99 — WidgetSizeUtils.getCanvasBottomRow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). Of this number, 13 points are the body's own statements and 6 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 · FilePickerWidget.initializeUppyEventListeners (cognitive 19) · ×1
  • FilePickerWidget.initializeUppyEventListeners (cognitive 19) app/client/src/widgets/FilePickerWidgetV2/widget/index.tsx:512 — FilePickerWidget.initializeUppyEventListeners has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, ternaries 3 (4 pts) (nesting depth added 2). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 571, 631, 661, …). 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 · errorModifier.TypeErrorModifier (cognitive 19) · ×1
  • errorModifier.TypeErrorModifier (cognitive 19) REDACTED:276 — errorModifier.TypeErrorModifier has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 1 (2 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 · MigrationHelperMethods.mapMongoToNewFormData (cognitive 19) · ×1
  • MigrationHelperMethods.mapMongoToNewFormData (cognitive 19) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:407 — MigrationHelperMethods.mapMongoToNewFormData has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 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 · NewActionServiceCEImpl.validateActionBeforeImport (cognitive 19) · ×1
  • NewActionServiceCEImpl.validateActionBeforeImport (cognitive 19) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:294 — NewActionServiceCEImpl.validateActionBeforeImport has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 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, 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 · NewPageImportableServiceCEImpl.savePagesToApplicationMono (cognitive 19) · ×1
  • NewPageImportableServiceCEImpl.savePagesToApplicationMono (cognitive 19) app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/importable/NewPageImportableServiceCEImpl.java:228 — NewPageImportableServiceCEImpl.savePagesToApplicationMono has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2, ternaries 1 (2 pts), boolean chains 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 · EnvManagerCEImpl.extractHosts (cognitive 19) · ×1
  • EnvManagerCEImpl.extractHosts (cognitive 19) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:803 — EnvManagerCEImpl.extractHosts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (3 pts), loops 2, boolean chains 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 · RedirectHelper.getRedirectDomain (cognitive 19) · ×1
  • RedirectHelper.getRedirectDomain (cognitive 19) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/RedirectHelper.java:490 — RedirectHelper.getRedirectDomain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, error handling 1 (2 pts) (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 · RedshiftPluginExecutor.execute (cognitive 19) · ×1
  • RedshiftPluginExecutor.execute (cognitive 19) app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:200 — RedshiftPluginExecutor.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 5 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 4). 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 · RedshiftPluginExecutor.validateDatasource (cognitive 19) · ×1
  • RedshiftPluginExecutor.validateDatasource (cognitive 19) app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:406 — RedshiftPluginExecutor.validateDatasource has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, loops 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 · OracleDatasourceUtils.validateDatasource (cognitive 19) · ×1
  • OracleDatasourceUtils.validateDatasource (cognitive 19) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:107 — OracleDatasourceUtils.validateDatasource has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, loops 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 · RequestCaptureFilter.populateRequestFields (cognitive 19) · ×1
  • RequestCaptureFilter.populateRequestFields (cognitive 19) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:83 — RequestCaptureFilter.populateRequestFields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2 (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 · (anonymous) (cognitive 19) · ×1
  • (anonymous) (cognitive 19) app/client/public/libraries/jsonwebtoken@8.5.1.js:19841 — (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), loops 3, error handling 1 (nesting depth added 1). None of this is in the body itself: all 19 points belong to 22 function items inside it that branch (indexOf, runInContext, Object_keys, …). 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 · jsObject.crossObjectCalls (cognitive 18) · ×1
  • jsObject.crossObjectCalls (cognitive 18) app/client/packages/mcp/src/builder/jsObject.ts:454 — jsObject.crossObjectCalls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, ternaries 1 (2 pts), 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 · events.compileStatement (cognitive 18) · ×1
  • events.compileStatement (cognitive 18) app/client/packages/mcp/src/builder/events.ts:266 — events.compileStatement has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 8, boolean chains 1 (nesting depth added 5). Of this number, 15 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 · index.ApplictionsMainPage (cognitive 18) · ×1
  • index.ApplictionsMainPage (cognitive 18) app/client/src/ce/pages/Applications/index.tsx:1151 — index.ApplictionsMainPage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, 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 3 function literals inside it that branch (lines 1205, 1199, 1261). 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 · DatasourcesSagas.testDatasourceSaga (cognitive 18) · ×1
  • DatasourcesSagas.testDatasourceSaga (cognitive 18) app/client/src/ce/sagas/DatasourcesSagas.ts:905 — DatasourcesSagas.testDatasourceSaga has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, ternaries 1 (3 pts), error handling 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 · InitSagas.eagerPageInitSaga (cognitive 18) · ×1
  • InitSagas.eagerPageInitSaga (cognitive 18) app/client/src/sagas/InitSagas.ts:499 — InitSagas.eagerPageInitSaga has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, error handling 2 (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 · Actions.getDataTreeContext (cognitive 18) · ×1
  • Actions.getDataTreeContext (cognitive 18) app/client/src/ce/workers/Evaluation/Actions.ts:43 — Actions.getDataTreeContext has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (3 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 · EvaluatedValuePopup.ControlledCurrentValueViewer (cognitive 18) · ×1
  • EvaluatedValuePopup.ControlledCurrentValueViewer (cognitive 18) app/client/src/components/editorComponents/CodeEditor/EvaluatedValuePopup.tsx:379 — EvaluatedValuePopup.ControlledCurrentValueViewer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, ternaries 1 (4 pts) (nesting depth added 6). Of this number, 17 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 · index.getSortedResults (cognitive 18) · ×1
  • index.getSortedResults (cognitive 18) app/client/src/components/editorComponents/GlobalSearch/index.tsx:121 — index.getSortedResults has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3 (nesting depth added 5). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 133). 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 · DropdownWrapper.DropdownWrapper (cognitive 18) · ×1
  • DropdownWrapper.DropdownWrapper (cognitive 18) app/client/src/components/editorComponents/form/fields/DropdownWrapper.tsx:30 — DropdownWrapper.DropdownWrapper has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), ternaries 3 (nesting depth added 1). 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 (onSelectHandler, a function literal at line 69, onRemoveOptions, …). 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 · utils.validate (cognitive 18) · ×1
  • utils.validate (cognitive 18) app/client/src/components/formControls/utils.ts:113 — utils.validate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7 (nesting depth added 4). None of this is in the body itself: all 18 points belong to 2 function literals inside it that branch (lines 124, 145). 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 · DependencyMap.addNodes (cognitive 18) · ×1
  • DependencyMap.addNodes (cognitive 18) app/client/src/entities/DependencyMap/index.ts:194 — DependencyMap.addNodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 2, ternaries 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 · LocalProfileView.LocalProfileView (cognitive 18) · ×1
  • LocalProfileView.LocalProfileView (cognitive 18) app/client/src/git/components/LocalProfile/LocalProfileView.tsx:139 — LocalProfileView.LocalProfileView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 3 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 201, a function literal at line 178, onSubmit, …). 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 · QuickActionsView.QuickActionsView (cognitive 18) · ×1
  • QuickActionsView.QuickActionsView (cognitive 18) app/client/src/git/components/QuickActions/QuickActionsView.tsx:57 — QuickActionsView.QuickActionsView has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), ternaries 3 (6 pts) (nesting depth added 4). Of this number, 11 points are the body's own statements and 7 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 · highlightSelectionUtils.getViableDropPositions (cognitive 18) · ×1
  • highlightSelectionUtils.getViableDropPositions (cognitive 18) app/client/src/layoutSystems/autolayout/utils/highlightSelectionUtils.ts:53 — highlightSelectionUtils.getViableDropPositions has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (7 pts) (nesting depth added 2). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 68, 83). 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 · autoToFixedLayout.getFixedCanvasWidget (cognitive 18) · ×1
  • autoToFixedLayout.getFixedCanvasWidget (cognitive 18) app/client/src/layoutSystems/common/DSLConversions/autoToFixedLayout.ts:137 — autoToFixedLayout.getFixedCanvasWidget has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (7 pts), boolean chains 2 (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 · TooltipContent.TooltipContent (cognitive 18) · ×1
  • TooltipContent.TooltipContent (cognitive 18) app/client/src/pages/Editor/FirstTimeUserOnboarding/TooltipContent.tsx:31 — TooltipContent.TooltipContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 4. Of this number, 17 points are the body's own statements and 1 belongs to one function literal 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 · General.GeneralSettings (cognitive 18) · ×1
  • General.GeneralSettings (cognitive 18) app/client/src/pages/workspace/General.tsx:112 — General.GeneralSettings has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 15, if/else 2 (3 pts) (nesting depth added 1). Of this number, 14 points are the body's own statements and 4 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 · index.getNewPositionsBasedOnMousePositions (cognitive 18) · ×1
  • index.getNewPositionsBasedOnMousePositions (cognitive 18) app/client/src/sagas/PasteWidgetUtils/index.ts:137 — index.getNewPositionsBasedOnMousePositions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, loops 1, ternaries 1 (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 · WidgetDeletionSagas.deleteAllSelectedWidgetsSaga (cognitive 18) · ×1
  • WidgetDeletionSagas.deleteAllSelectedWidgetsSaga (cognitive 18) app/client/src/sagas/WidgetDeletionSagas.ts:380 — WidgetDeletionSagas.deleteAllSelectedWidgetsSaga has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (7 pts), boolean chains 1, error handling 1 (nesting depth added 6). Of this number, 17 points are the body's own statements and 1 belongs 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.
D2 · Cognitive Complexity · reflow.computeChangeInPositionBasedOnDelta (cognitive 18) · ×1
  • reflow.computeChangeInPositionBasedOnDelta (cognitive 18) app/client/src/utils/autoHeight/reflow.ts:26 — reflow.computeChangeInPositionBasedOnDelta has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 7). Of this number, 17 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 · index.ControlPanel (cognitive 18) · ×1
  • index.ControlPanel (cognitive 18) app/client/src/widgets/CameraWidget/component/index.tsx:262 — index.ControlPanel has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (5 pts), match/switch 2, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 18 points belong to 10 function items inside it that branch (renderMediaDeviceSelectors, a function literal at line 301, renderFullscreenControl, …). 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 · validations.optionsCustomValidation · ×1
  • validations.optionsCustomValidation::validationUtil (cognitive 18) app/client/src/widgets/CategorySliderWidget/validations.ts:11 — validations.optionsCustomValidation::validationUtil has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1, ternaries 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 · index.ContainerComponentWrapper (cognitive 18) · ×1
  • index.ContainerComponentWrapper (cognitive 18) app/client/src/widgets/ContainerWidget/component/index.tsx:67 — index.ContainerComponentWrapper has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, ternaries 3, loops 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 78, 102, 118, …). 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 · index.MultiSelectComponent (cognitive 18) · ×1
  • index.MultiSelectComponent (cognitive 18) app/client/src/widgets/MultiSelectWidget/component/index.tsx:71 — index.MultiSelectComponent has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, ternaries 6 (7 pts), if/else 4 (nesting depth added 1). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 142, a function literal at line 102, 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 · propertyUtils.valueKeyValidation (cognitive 18) · ×1
  • propertyUtils.valueKeyValidation (cognitive 18) app/client/src/widgets/SelectWidget/widget/propertyUtils.ts:191 — propertyUtils.valueKeyValidation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 4). Of this number, 16 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 · useRowHeightMeasurement.useRowHeightMeasurement (cognitive 18) · ×1
  • useRowHeightMeasurement.useRowHeightMeasurement (cognitive 18) app/client/src/widgets/TableWidgetV2/component/VirtualTable/useRowHeightMeasurement.tsx:44 — useRowHeightMeasurement.useRowHeightMeasurement has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8 (nesting depth added 2). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 67, 84, 54, …). 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 · helpers.parseFunctionsInObject (cognitive 18) · ×1
  • helpers.parseFunctionsInObject (cognitive 18) app/client/src/workers/Evaluation/helpers.ts:133 — helpers.parseFunctionsInObject has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 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 · helpers.getReducedDataTrees (cognitive 18) · ×1
  • helpers.getReducedDataTrees (cognitive 18) app/client/src/workers/Evaluation/helpers.ts:193 — helpers.getReducedDataTrees has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 8). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 230). 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 · DslUtils.rewriteWidgetIdReferences (cognitive 18) · ×1
  • DslUtils.rewriteWidgetIdReferences (cognitive 18) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/DslUtils.java:117 — DslUtils.rewriteWidgetIdReferences has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), boolean chains 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 · Migration065_CopyTenantIdToOrganizationId.migrateRedisData (cognitive 18) · ×1
  • Migration065_CopyTenantIdToOrganizationId.migrateRedisData (cognitive 18) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration065_CopyTenantIdToOrganizationId.java:189 — Migration065_CopyTenantIdToOrganizationId.migrateRedisData has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 2 (4 pts), boolean chains 3, 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 · WidgetRefactorUtil.refactorNameInWidget (cognitive 18) · ×1
  • WidgetRefactorUtil.refactorNameInWidget (cognitive 18) app/server/appsmith-server/src/main/java/com/appsmith/server/widgets/refactors/WidgetRefactorUtil.java:70 — WidgetRefactorUtil.refactorNameInWidget has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, loops 1 (2 pts) (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 · QueryUtils.removeQueryComments (cognitive 18) · ×1
  • QueryUtils.removeQueryComments (cognitive 18) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/QueryUtils.java:12 — QueryUtils.removeQueryComments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, 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 · MongoPluginUtils.generateTemplatesAndStructureForACollection (cognitive 18) · ×1
  • MongoPluginUtils.generateTemplatesAndStructureForACollection (cognitive 18) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/utils/MongoPluginUtils.java:166 — MongoPluginUtils.generateTemplatesAndStructureForACollection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1, loops 1 (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 · MongoPluginExecutor.executeCommon (cognitive 18) · ×1
  • MongoPluginExecutor.executeCommon (cognitive 18) app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java:323 — MongoPluginExecutor.executeCommon has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 2 (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 · DatabricksPluginExecutor.datasourceCreate (cognitive 18) · ×1
  • DatabricksPluginExecutor.datasourceCreate (cognitive 18) app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:193 — DatabricksPluginExecutor.datasourceCreate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 2 (4 pts), boolean chains 1, ternaries 1 (nesting depth added 5). 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 · DatasourceUtils.validateDatasource (cognitive 18) · ×1
  • DatasourceUtils.validateDatasource (cognitive 18) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/DatasourceUtils.java:18 — DatasourceUtils.validateDatasource has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (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 · FilterDataServiceCE.generateSchema (cognitive 18) · ×1
  • FilterDataServiceCE.generateSchema (cognitive 18) REDACTED:656 — FilterDataServiceCE.generateSchema has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 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.
D2 · Cognitive Complexity · MultiSelectValue.MultiSelectValue (cognitive 17) · ×1
  • MultiSelectValue.MultiSelectValue (cognitive 17) app/client/packages/design-system/widgets/src/components/MultiSelect/src/MultiSelectValue.tsx:29 — MultiSelectValue.MultiSelectValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 5, boolean chains 4, loops 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 54, 87, 42, …). 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 · occupancy.computeCanvasOverlapFixes (cognitive 17) · ×1
  • occupancy.computeCanvasOverlapFixes (cognitive 17) app/client/packages/mcp/src/builder/occupancy.ts:327 — occupancy.computeCanvasOverlapFixes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 4 (6 pts), boolean chains 4 (nesting depth added 6). 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, 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 · restore.prepareDockerEnvFile (cognitive 17) · ×1
  • restore.prepareDockerEnvFile (cognitive 17) app/client/packages/rts/src/ctl/restore.ts:234 — restore.prepareDockerEnvFile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (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.
D2 · Cognitive Complexity · RestAPIDatasourceFormTransformer.formToDatasourceAuthentication (cognitive 17) · ×1
  • RestAPIDatasourceFormTransformer.formToDatasourceAuthentication (cognitive 17) app/client/src/PluginActionEditor/transformers/RestAPIDatasourceFormTransformer.ts:152 — RestAPIDatasourceFormTransformer.formToDatasourceAuthentication has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (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 · index.getAppsmithConfigs (cognitive 17) · ×1
  • index.getAppsmithConfigs (cognitive 17) app/client/src/ce/configs/index.ts:154 — index.getAppsmithConfigs has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 16, 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 · aiSchemaSerializer.serializeTable (cognitive 17) · ×1
  • aiSchemaSerializer.serializeTable (cognitive 17) app/client/src/ce/utils/aiSchemaSerializer.ts:60 — aiSchemaSerializer.serializeTable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 3 (7 pts), boolean chains 2, ternaries 1 (nesting depth added 6). Of this number, 14 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 · PeekOverlayPopup.PeekOverlayPopUpContent (cognitive 17) · ×1
  • PeekOverlayPopup.PeekOverlayPopUpContent (cognitive 17) app/client/src/components/editorComponents/CodeEditor/PeekOverlayPopup/PeekOverlayPopup.tsx:40 — PeekOverlayPopup.PeekOverlayPopUpContent has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (5 pts), ternaries 1 (nesting depth added 1). Of this number, 15 points are the body's own statements and 2 belong to one function literal 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 · EditableText.EditableText (cognitive 17) · ×1
  • EditableText.EditableText (cognitive 17) app/client/src/components/editorComponents/EditableText.tsx:133 — EditableText.EditableText has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 3. Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 207, 224, 180, …). 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 · KeyValueFieldArray.KeyValueRow (cognitive 17) · ×1
  • KeyValueFieldArray.KeyValueRow (cognitive 17) app/client/src/components/editorComponents/form/fields/KeyValueFieldArray.tsx:101 — KeyValueFieldArray.KeyValueRow has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 2 (3 pts), loops 1 (3 pts) (nesting depth added 3). Of this number, 10 points are the body's own statements and 7 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.
D2 · Cognitive Complexity · schemaParser.getSourceDataPathFromSchemaItemPath (cognitive 17) · ×1
  • schemaParser.getSourceDataPathFromSchemaItemPath (cognitive 17) app/client/src/widgets/JSONFormWidget/schemaParser.ts:137 — schemaParser.getSourceDataPathFromSchemaItemPath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 8). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 152). 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 · sectionPasteUtils.pasteWidgetsInSection (cognitive 17) · ×1
  • sectionPasteUtils.pasteWidgetsInSection (cognitive 17) app/client/src/layoutSystems/anvil/utils/paste/sectionPasteUtils.ts:18 — sectionPasteUtils.pasteWidgetsInSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (3 pts), boolean chains 1, loops 1 (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 · autoLayoutDraggingUtils.updateRelationships (cognitive 17) · ×1
  • autoLayoutDraggingUtils.updateRelationships (cognitive 17) app/client/src/layoutSystems/autolayout/utils/autoLayoutDraggingUtils.ts:74 — autoLayoutDraggingUtils.updateRelationships has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 94). 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 · ConversionForm.ConversionForm (cognitive 17) · ×1
  • ConversionForm.ConversionForm (cognitive 17) app/client/src/pages/Editor/CanvasLayoutConversion/ConversionForm.tsx:66 — ConversionForm.ConversionForm has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (6 pts) (nesting depth added 2). Of this number, 16 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 · utils.getSelectedTabIndex · ×1
  • utils.getSelectedTabIndex::_getSelectedTabIndex (cognitive 17) app/client/src/pages/Editor/EntityNavigation/PropertyPane/utils.ts:102 — utils.getSelectedTabIndex::_getSelectedTabIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 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 · EntityProperties.EntityProperties (cognitive 17) · ×1
  • EntityProperties.EntityProperties (cognitive 17) app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:36 — EntityProperties.EntityProperties has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 107, a function literal at line 66, a function literal at line 42, …). 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 · APIOrSaasPlugins.APIOrSaasPlugins (cognitive 17) · ×1
  • APIOrSaasPlugins.APIOrSaasPlugins (cognitive 17) app/client/src/pages/Editor/IntegrationEditor/APIOrSaasPlugins.tsx:91 — APIOrSaasPlugins.APIOrSaasPlugins has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (5 pts), match/switch 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (handleOnClick, handleCreateNew, 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.
D2 · Cognitive Complexity · ImportModal.ImportModal (cognitive 17) · ×1
  • ImportModal.ImportModal (cognitive 17) app/client/src/pages/common/ImportModal.tsx:192 — ImportModal.ImportModal has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 4, ternaries 3 (4 pts) (nesting depth added 1). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 210, a function literal at line 235, handleModalClose). 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 · JSLintEntityParser.parse (cognitive 17) · ×1
  • JSLintEntityParser.parse (cognitive 17) app/client/src/plugins/Linting/utils/entityParser.ts:57 — JSLintEntityParser.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (4 pts), boolean chains 3 (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 · reflowUtils.getShouldReflow (cognitive 17) · ×1
  • reflowUtils.getShouldReflow (cognitive 17) app/client/src/reflow/reflowUtils.ts:157 — reflowUtils.getShouldReflow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, loops 2 (3 pts) (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 · reflowUtils.ShouldAddToCollisionSpacesArray (cognitive 17) · ×1
  • reflowUtils.ShouldAddToCollisionSpacesArray (cognitive 17) app/client/src/reflow/reflowUtils.ts:566 — reflowUtils.ShouldAddToCollisionSpacesArray has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 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 · GitSyncSagas.switchBranch (cognitive 17) · ×1
  • GitSyncSagas.switchBranch (cognitive 17) app/client/src/sagas/GitSyncSagas.ts:374 — GitSyncSagas.switchBranch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, error handling 1 (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 · GitSyncSagas.pollAutocommitProgressSaga (cognitive 17) · ×1
  • GitSyncSagas.pollAutocommitProgressSaga (cognitive 17) app/client/src/sagas/GitSyncSagas.ts:1281 — GitSyncSagas.pollAutocommitProgressSaga has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2, loops 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 · CodeMirrorTernService.parseFnType (cognitive 17) · ×1
  • CodeMirrorTernService.parseFnType (cognitive 17) app/client/src/utils/autocomplete/CodemirrorTernService.ts:355 — CodeMirrorTernService.parseFnType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). Of this number, 10 points are the body's own statements and 7 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 · index.IframeComponent (cognitive 17) · ×1
  • index.IframeComponent (cognitive 17) app/client/src/widgets/IframeWidget/component/index.tsx:74 — index.IframeComponent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, ternaries 3 (6 pts), boolean chains 4 (nesting depth added 3). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 115, 131, 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 · index.optionsCustomValidation · ×1
  • index.optionsCustomValidation::validationUtil (cognitive 17) app/client/src/widgets/RadioGroupWidget/widget/index.tsx:51 — index.optionsCustomValidation::validationUtil has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1, ternaries 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 · SelectComponent.render (cognitive 17) · ×1
  • SelectComponent.render (cognitive 17) app/client/src/widgets/SelectWidget/component/index.tsx:312 — SelectComponent.render has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, ternaries 6, if/else 3. Of this number, 13 points are the body's own statements and 4 belong to 2 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 · headerFontWeight.headerFontWeightValidation (cognitive 17) · ×1
  • headerFontWeight.headerFontWeightValidation (cognitive 17) app/client/src/widgets/TableWidgetV2/component/headerFontWeight.ts:13 — headerFontWeight.headerFontWeightValidation 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 · Utilities.transformTableDataIntoCsv (cognitive 17) · ×1
  • Utilities.transformTableDataIntoCsv (cognitive 17) app/client/src/widgets/TableWidgetV2/component/header/actions/Utilities.ts:5 — Utilities.transformTableDataIntoCsv has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 6). Of this number, 15 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 · PlainTextCell.PlainTextCell (cognitive 17) · ×1
  • PlainTextCell.PlainTextCell (cognitive 17) app/client/src/widgets/TableWidgetV2/component/cellComponents/PlainTextCell.tsx:109 — PlainTextCell.PlainTextCell has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 1 (2 pts), match/switch 1 (2 pts), ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 205, 192, 242). 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 · index.ReactTableComponent (cognitive 17) · ×1
  • index.ReactTableComponent (cognitive 17) app/client/src/widgets/TableWidgetV2/component/index.tsx:115 — index.ReactTableComponent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (nesting depth added 4). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 193, 223, 214). 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 · optionsCustomValidation.optionsCustomValidation · ×1
  • optionsCustomValidation.optionsCustomValidation::validationUtil (cognitive 17) app/client/src/widgets/wds/WDSRadioGroupWidget/config/propertyPaneConfig/validations/optionsCustomValidation.ts:18 — optionsCustomValidation.optionsCustomValidation::validationUtil has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1, ternaries 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 · jsLibrary.installLibrary (cognitive 17) · ×1
  • jsLibrary.installLibrary (cognitive 17) app/client/src/workers/Evaluation/handlers/jsLibrary.ts:78 — jsLibrary.installLibrary has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (5 pts), if/else 3 (5 pts), loops 4 (5 pts), boolean chains 2 (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.
D2 · Cognitive Complexity · AnalyticsServiceCEImpl.sendEventInternal (cognitive 17) · ×1
  • AnalyticsServiceCEImpl.sendEventInternal (cognitive 17) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AnalyticsServiceCEImpl.java:240 — AnalyticsServiceCEImpl.sendEventInternal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (3 pts), ternaries 2 (3 pts), boolean chains 1 (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 · CentralGitServiceCEImpl.fetchRemoteChanges (cognitive 17) · ×1
  • CentralGitServiceCEImpl.fetchRemoteChanges (cognitive 17) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:2138 — CentralGitServiceCEImpl.fetchRemoteChanges has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3 (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, 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 · GitProfileUtils.updateOrCreateGitProfileForCurrentUser (cognitive 17) · ×1
  • GitProfileUtils.updateOrCreateGitProfileForCurrentUser (cognitive 17) app/server/appsmith-server/src/main/java/com/appsmith/server/git/utils/GitProfileUtils.java:31 — GitProfileUtils.updateOrCreateGitProfileForCurrentUser has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 2 (4 pts) (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 · OnLoadExecutablesUtilCEImpl.executableCandidatesForPageLoadFromBinding (cognitive 17) · ×1
  • OnLoadExecutablesUtilCEImpl.executableCandidatesForPageLoadFromBinding (cognitive 17) app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java:1530 — OnLoadExecutablesUtilCEImpl.executableCandidatesForPageLoadFromBinding has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), 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 · DatasourceTriggerSolutionCEImpl.entitySelectorTriggerSolution (cognitive 17) · ×1
  • DatasourceTriggerSolutionCEImpl.entitySelectorTriggerSolution (cognitive 17) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/DatasourceTriggerSolutionCEImpl.java:187 — DatasourceTriggerSolutionCEImpl.entitySelectorTriggerSolution has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (7 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.
D2 · Cognitive Complexity · MssqlPluginExecutor.executeCommon (cognitive 17) · ×1
  • MssqlPluginExecutor.executeCommon (cognitive 17) REDACTED:197 — MssqlPluginExecutor.executeCommon has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (5 pts), error handling 3, boolean chains 1 (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, 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 · ElasticSearchPluginExecutor.execute (cognitive 17) · ×1
  • ElasticSearchPluginExecutor.execute (cognitive 17) app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:226 — ElasticSearchPluginExecutor.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (3 pts) (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 · ISOStringToInstantConverter.deserialize (cognitive 17) · ×1
  • ISOStringToInstantConverter.deserialize (cognitive 17) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/converters/ISOStringToInstantConverter.java:22 — ISOStringToInstantConverter.deserialize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (4 pts), error handling 1 (2 pts) (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 · DataTypeStringUtils.stringToKnownDataTypeConverter (cognitive 17) · ×1
  • DataTypeStringUtils.stringToKnownDataTypeConverter (cognitive 17) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:64 — DataTypeStringUtils.stringToKnownDataTypeConverter has cognitive complexity 17 (threshold 15). Drivers by points: error handling 9, if/else 5 (6 pts), boolean chains 2 (nesting depth added 1). 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 · env-file.main (cognitive 17) · ×1
  • env-file.main (cognitive 17) deploy/docker/fs/opt/appsmith/env-file.py:146 — env-file.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 1 (2 pts) (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.
D2 · Cognitive Complexity · index.canTranslateToUI (cognitive 16) · ×1
  • index.canTranslateToUI (cognitive 16) app/client/packages/ast/src/actionCreator/index.ts:778 — index.canTranslateToUI has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, error handling 1, loops 1 (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 · utils.getDynamicStringSegments (cognitive 16) · ×1
  • utils.getDynamicStringSegments (cognitive 16) app/client/packages/dsl/src/migrate/utils.ts:34 — utils.getDynamicStringSegments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 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 · modalGraph.scanWidget (cognitive 16) · ×1
  • modalGraph.scanWidget (cognitive 16) app/client/packages/mcp/src/builder/modalGraph.ts:125 — modalGraph.scanWidget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, loops 2 (3 pts), error handling 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 · mongoQuery.filterClause (cognitive 16) · ×1
  • mongoQuery.filterClause (cognitive 16) app/client/packages/mcp/src/builder/mongoQuery.ts:193 — mongoQuery.filterClause has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7 (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 · app.projectImportedApplication (cognitive 16) · ×1
  • app.projectImportedApplication (cognitive 16) app/client/packages/mcp/src/app.ts:1616 — app.projectImportedApplication has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (7 pts), boolean chains 5, if/else 2 (4 pts) (nesting depth added 4). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 1629). 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 · app.compilerAuthoredObjectsOnPage (cognitive 16) · ×1
  • app.compilerAuthoredObjectsOnPage (cognitive 16) app/client/packages/mcp/src/app.ts:2141 — app.compilerAuthoredObjectsOnPage has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (7 pts), boolean chains 4, if/else 2 (4 pts), loops 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 · ApplicationSagas.importApplicationSaga (cognitive 16) · ×1
  • ApplicationSagas.importApplicationSaga (cognitive 16) app/client/src/ce/sagas/ApplicationSagas.tsx:893 — ApplicationSagas.importApplicationSaga has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, error handling 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 · JSActionSagas.fetchStoredTestPayloadsSaga (cognitive 16) · ×1
  • JSActionSagas.fetchStoredTestPayloadsSaga (cognitive 16) app/client/src/ce/sagas/JSActionSagas.ts:548 — JSActionSagas.fetchStoredTestPayloadsSaga has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 2 (5 pts), boolean chains 2, error handling 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 · FormEvaluationSaga.fetchDynamicValueSaga (cognitive 16) · ×1
  • FormEvaluationSaga.fetchDynamicValueSaga (cognitive 16) app/client/src/sagas/FormEvaluationSaga.ts:221 — FormEvaluationSaga.fetchDynamicValueSaga has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, error handling 1 (nesting depth added 2). Of this number, 12 points are the body's own statements and 4 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 · DebuggerSagas.debuggerLogSaga (cognitive 16) · ×1
  • DebuggerSagas.debuggerLogSaga (cognitive 16) app/client/src/sagas/DebuggerSagas.ts:180 — DebuggerSagas.debuggerLogSaga has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 3, boolean chains 2, match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). Of this number, 10 points are the body's own statements and 6 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 · SuperUserSagas.SaveAdminSettingsSaga (cognitive 16) · ×1
  • SuperUserSagas.SaveAdminSettingsSaga (cognitive 16) app/client/src/ce/sagas/SuperUserSagas.tsx:74 — SuperUserSagas.SaveAdminSettingsSaga has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (6 pts), boolean chains 1, error handling 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 · helpers.getActionEntityFields · ×1
  • helpers.getActionEntityFields::setter (cognitive 16) app/client/src/components/editorComponents/ActionCreator/helpers.tsx:216 — helpers.getActionEntityFields::setter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 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 · ErrorLogItem.ErrorLogItem (cognitive 16) · ×1
  • ErrorLogItem.ErrorLogItem (cognitive 16) app/client/src/components/editorComponents/Debugger/ErrorLogs/ErrorLogItem.tsx:183 — ErrorLogItem.ErrorLogItem has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (4 pts), ternaries 2 (nesting depth added 1). Of this number, 11 points are the body's own statements and 5 belong to 2 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 · DynamicBindingUtils.getDynamicStringSegments (cognitive 16) · ×1
  • DynamicBindingUtils.getDynamicStringSegments (cognitive 16) app/client/src/utils/DynamicBindingUtils.ts:40 — DynamicBindingUtils.getDynamicStringSegments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 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 · LazyCodeEditorStateMachine.transition (cognitive 16) · ×1
  • LazyCodeEditorStateMachine.transition (cognitive 16) app/client/src/components/editorComponents/LazyCodeEditor/index.tsx:59 — LazyCodeEditorStateMachine.transition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (nesting depth added 7). 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 · ProductAlertBanner.ProductAlertBanner (cognitive 16) · ×1
  • ProductAlertBanner.ProductAlertBanner (cognitive 16) app/client/src/components/editorComponents/ProductAlertBanner.tsx:43 — ProductAlertBanner.ProductAlertBanner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3 (nesting depth added 1). Of this number, 14 points are the body's own statements and 2 belong to one function literal 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 · RadioButtonGroup.RadioButtonGroup (cognitive 16) · ×1
  • RadioButtonGroup.RadioButtonGroup (cognitive 16) app/client/src/components/editorComponents/RadioButtonGroup.tsx:81 — RadioButtonGroup.RadioButtonGroup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7 (nesting depth added 4). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 96, onClickHandler). 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 · utils.caculateIsHidden (cognitive 16) · ×1
  • utils.caculateIsHidden (cognitive 16) app/client/src/components/formControls/utils.ts:245 — utils.caculateIsHidden has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, match/switch 1 (2 pts) (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 · index.mapStateToProps (cognitive 16) · ×1
  • index.mapStateToProps (cognitive 16) app/client/src/components/formControls/DropDownControl/index.tsx:562 — index.mapStateToProps has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (7 pts), error handling 1, ternaries 1 (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 · MultiFilePickerControl.FilePicker (cognitive 16) · ×1
  • MultiFilePickerControl.FilePicker (cognitive 16) app/client/src/components/formControls/MultiFilePickerControl.tsx:76 — MultiFilePickerControl.FilePicker has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 1, error handling 1, ternaries 1. Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 7 function items inside it that branch (handleFileChange, uploadFilesToTriggerApi, validateFileSizes, …). 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 · NameEditorComponent.NameEditor (cognitive 16) · ×1
  • NameEditorComponent.NameEditor (cognitive 16) app/client/src/components/utils/NameEditorComponent.tsx:93 — NameEditorComponent.NameEditor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7 (nesting depth added 1). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 143, 122, 135, …). 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 · input.defaultValueValidation (cognitive 16) · ×1
  • input.defaultValueValidation (cognitive 16) app/client/src/widgets/JSONFormWidget/widget/propertyConfig/properties/input.ts:38 — input.defaultValueValidation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, error handling 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 · DateField.DateField (cognitive 16) · ×1
  • DateField.DateField (cognitive 16) app/client/src/widgets/JSONFormWidget/fields/DateField.tsx:104 — DateField.DateField has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6 (nesting depth added 1). None of this is in the body itself: all 16 points belong to 4 function literals inside it that branch (lines 183, 140, 167, …). 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 · ProtectedBranchesView.ProtectedBranchesView (cognitive 16) · ×1
  • ProtectedBranchesView.ProtectedBranchesView (cognitive 16) app/client/src/git/components/ProtectedBranches/ProtectedBranchesView.tsx:61 — ProtectedBranchesView.ProtectedBranchesView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3, boolean chains 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 71, 113, 180). 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 · Sidebar.Sidebar (cognitive 16) · ×1
  • Sidebar.Sidebar (cognitive 16) app/client/src/pages/AppViewer/Navigation/Sidebar.tsx:58 — Sidebar.Sidebar has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (7 pts) (nesting depth added 1). Of this number, 9 points are the body's own statements and 7 belong to 2 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 · FormTitle.FormTitle (cognitive 16) · ×1
  • FormTitle.FormTitle (cognitive 16) app/client/src/pages/Editor/DataSourceEditor/FormTitle.tsx:33 — FormTitle.FormTitle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 100, 87, 132, …). 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 · DatasourceEditorRouter.componentDidMount (cognitive 16) · ×1
  • DatasourceEditorRouter.componentDidMount (cognitive 16) app/client/src/pages/Editor/DataSourceEditor/index.tsx:334 — DatasourceEditorRouter.componentDidMount has cognitive complexity 16 (threshold 15). Drivers by points: if/else 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 · GitProtectedBranches.GitProtectedBranches (cognitive 16) · ×1
  • GitProtectedBranches.GitProtectedBranches (cognitive 16) app/client/src/pages/Editor/gitSync/GitSettingsModal/TabBranch/GitProtectedBranches.tsx:59 — GitProtectedBranches.GitProtectedBranches has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3, boolean chains 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function items inside it that branch (a function literal at line 65, sendAnalyticsEvent, a function literal at line 177). 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 · reflowUtils.getVerifiedDirection (cognitive 16) · ×1
  • reflowUtils.getVerifiedDirection (cognitive 16) app/client/src/reflow/reflowUtils.ts:896 — reflowUtils.getVerifiedDirection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4 (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, 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 · WidgetOperationUtils.getValueFromTree (cognitive 16) · ×1
  • WidgetOperationUtils.getValueFromTree (cognitive 16) app/client/src/sagas/WidgetOperationUtils.ts:1758 — WidgetOperationUtils.getValueFromTree has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, loops 1 (2 pts), ternaries 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 · TemplatesSagas.importTemplateToWorkspaceSaga (cognitive 16) · ×1
  • TemplatesSagas.importTemplateToWorkspaceSaga (cognitive 16) app/client/src/sagas/TemplatesSagas.ts:81 — TemplatesSagas.importTemplateToWorkspaceSaga has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (4 pts), boolean chains 2, error handling 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 · GitSyncSagas.connectToGitSaga (cognitive 16) · ×1
  • GitSyncSagas.connectToGitSaga (cognitive 16) app/client/src/sagas/GitSyncSagas.ts:227 — GitSyncSagas.connectToGitSaga has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 1 (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 · TernSaga.handleSetTernRecentEntities (cognitive 16) · ×1
  • TernSaga.handleSetTernRecentEntities (cognitive 16) app/client/src/sagas/TernSaga.ts:13 — TernSaga.handleSetTernRecentEntities has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 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 · mutateDOM.directlyMutateDOMNodes (cognitive 16) · ×1
  • mutateDOM.directlyMutateDOMNodes (cognitive 16) app/client/src/utils/autoHeight/mutateDOM.ts:60 — mutateDOM.directlyMutateDOMNodes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 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 · CodeMirrorTernService.getFragmentAround (cognitive 16) · ×1
  • CodeMirrorTernService.getFragmentAround (cognitive 16) app/client/src/utils/autocomplete/CodemirrorTernService.ts:1149 — CodeMirrorTernService.getFragmentAround has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (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 · editorContextUtils.getDefaultTemplateActionConfig (cognitive 16) · ×1
  • editorContextUtils.getDefaultTemplateActionConfig (cognitive 16) app/client/src/utils/editorContextUtils.ts:261 — editorContextUtils.getDefaultTemplateActionConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 1 (3 pts), boolean chains 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 · index.RecorderRight (cognitive 16) · ×1
  • index.RecorderRight (cognitive 16) app/client/src/widgets/AudioRecorderWidget/component/index.tsx:321 — index.RecorderRight has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (6 pts), boolean chains 4, ternaries 3 (4 pts), if/else 2 (nesting depth added 3). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 7 function items inside it that branch (renderPlayerControls, renderTimer, a function literal at line 346, …). 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 · index.defaultValueValidation (cognitive 16) · ×1
  • index.defaultValueValidation (cognitive 16) app/client/src/widgets/InputWidget/widget/index.tsx:51 — index.defaultValueValidation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (2 pts), boolean chains 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 · MetaWidgetGenerator.addLevelProperty (cognitive 16) · ×1
  • MetaWidgetGenerator.addLevelProperty (cognitive 16) REDACTED:1180 — MetaWidgetGenerator.addLevelProperty has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). 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 literals inside it that branch (lines 1186, 1240). 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 · PhoneInputWidget.componentDidUpdate (cognitive 16) · ×1
  • PhoneInputWidget.componentDidUpdate (cognitive 16) app/client/src/widgets/PhoneInputWidget/widget/index.tsx:459 — PhoneInputWidget.componentDidUpdate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 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 · CommonUtilities.transformTableDataIntoCsv (cognitive 16) · ×1
  • CommonUtilities.transformTableDataIntoCsv (cognitive 16) app/client/src/widgets/TableWidget/component/CommonUtilities.ts:59 — CommonUtilities.transformTableDataIntoCsv has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 6). Of this number, 14 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 · TableWidget.updateColumnProperties (cognitive 16) · ×1
  • TableWidget.updateColumnProperties (cognitive 16) app/client/src/widgets/TableWidget/widget/index.tsx:946 — TableWidget.updateColumnProperties has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1 (nesting depth added 9). Of this number, 13 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 · Row.Row (cognitive 16) · ×1
  • Row.Row (cognitive 16) app/client/src/widgets/TableWidgetV2/component/TableBodyCoreComponents/Row.tsx:22 — Row.Row has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 4 (5 pts), if/else 2 (nesting depth added 1). Of this number, 9 points are the body's own statements and 7 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.
D2 · Cognitive Complexity · WDSInputWidget.onKeyDown (cognitive 16) · ×1
  • WDSInputWidget.onKeyDown (cognitive 16) app/client/src/widgets/wds/WDSInputWidget/widget/index.tsx:116 — WDSInputWidget.onKeyDown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 5, ternaries 1 (3 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 · DataTreeEvaluator.calculateSubTreeSortOrder (cognitive 16) · ×1
  • DataTreeEvaluator.calculateSubTreeSortOrder (cognitive 16) app/client/src/workers/common/DataTreeEvaluator/index.ts:1952 — DataTreeEvaluator.calculateSubTreeSortOrder has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 1, loops 1 (nesting depth added 9). Of this number, 10 points are the body's own statements and 6 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 · AIAssistantServiceCEImpl.callAzureOpenAIAPI (cognitive 16) · ×1
  • AIAssistantServiceCEImpl.callAzureOpenAIAPI (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:815 — AIAssistantServiceCEImpl.callAzureOpenAIAPI has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 5, if/else 5, ternaries 4, loops 1 (2 pts) (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 · AIAssistantServiceCEImpl.callClaudeAPI (cognitive 16) · ×1
  • AIAssistantServiceCEImpl.callClaudeAPI (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:467 — AIAssistantServiceCEImpl.callClaudeAPI has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, loops 1 (2 pts) (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 · AIAssistantServiceCEImpl.extractOpenAICompatibleResponse (cognitive 16) · ×1
  • AIAssistantServiceCEImpl.extractOpenAICompatibleResponse (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:777 — AIAssistantServiceCEImpl.extractOpenAICompatibleResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5 (nesting depth added 6). 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 · DatasourceContextServiceCEImpl.getCachedDatasourceContextMono (cognitive 16) · ×1
  • DatasourceContextServiceCEImpl.getCachedDatasourceContextMono (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextServiceCEImpl.java:165 — DatasourceContextServiceCEImpl.getCachedDatasourceContextMono has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, error handling 1 (3 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 · DatasourceImportableServiceCEImpl.importDatasources (cognitive 16) · ×1
  • DatasourceImportableServiceCEImpl.importDatasources (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/importable/DatasourceImportableServiceCEImpl.java:148 — DatasourceImportableServiceCEImpl.importDatasources has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, loops 1 (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.
D2 · Cognitive Complexity · DslUtils.getDslWalkResponse (cognitive 16) · ×1
  • DslUtils.getDslWalkResponse (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/DslUtils.java:214 — DslUtils.getDslWalkResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 1 (4 pts), loops 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 · WidgetSuggestionHelper.handleJsonNode (cognitive 16) · ×1
  • WidgetSuggestionHelper.handleJsonNode (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/WidgetSuggestionHelper.java:73 — WidgetSuggestionHelper.handleJsonNode 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 · DatabaseChangelog2.updateBadThemeState (cognitive 16) · ×1
  • DatabaseChangelog2.updateBadThemeState (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:446 — DatabaseChangelog2.updateBadThemeState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (2 pts), boolean chains 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 · CreateDBTablePageSolutionCEImpl.extractAndUpdateAllWidgetFromDSL (cognitive 16) · ×1
  • CreateDBTablePageSolutionCEImpl.extractAndUpdateAllWidgetFromDSL (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java:875 — CreateDBTablePageSolutionCEImpl.extractAndUpdateAllWidgetFromDSL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 1 (2 pts), boolean chains 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 · EnvManagerCEImpl.unescapeFromShell (cognitive 16) · ×1
  • EnvManagerCEImpl.unescapeFromShell (cognitive 16) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:289 — EnvManagerCEImpl.unescapeFromShell has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (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 · SmtpPluginExecutor.sendEmail (cognitive 16) · ×1
  • SmtpPluginExecutor.sendEmail (cognitive 16) app/server/appsmith-plugins/smtpPlugin/src/main/java/com/external/plugins/SmtpPlugin.java:95 — SmtpPluginExecutor.sendEmail has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3, error handling 2, loops 1 (2 pts) (nesting depth added 3). 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 · MySqlPluginExecutor.executeCommon (cognitive 16) · ×1
  • MySqlPluginExecutor.executeCommon (cognitive 16) REDACTED:310 — MySqlPluginExecutor.executeCommon has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, ternaries 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 · MySqlPluginExecutor.getRow (cognitive 16) · ×1
  • MySqlPluginExecutor.getRow (cognitive 16) REDACTED:645 — MySqlPluginExecutor.getRow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 1 (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 · MySqlGetStructureUtils.getTemplates (cognitive 16) · ×1
  • MySqlGetStructureUtils.getTemplates (cognitive 16) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:106 — MySqlGetStructureUtils.getTemplates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (3 pts), boolean chains 2 (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.
D2 · Cognitive Complexity · RowsAppendMethod.validateExecutionMethodRequest (cognitive 16) · ×1
  • RowsAppendMethod.validateExecutionMethodRequest (cognitive 16) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:50 — RowsAppendMethod.validateExecutionMethodRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (4 pts), boolean chains 3 (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 · RowsBulkAppendMethod.validateExecutionMethodRequest (cognitive 16) · ×1
  • RowsBulkAppendMethod.validateExecutionMethodRequest (cognitive 16) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:47 — RowsBulkAppendMethod.validateExecutionMethodRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (4 pts), boolean chains 3 (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 · RowsBulkUpdateMethod.validateExecutionMethodRequest (cognitive 16) · ×1
  • RowsBulkUpdateMethod.validateExecutionMethodRequest (cognitive 16) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:46 — RowsBulkUpdateMethod.validateExecutionMethodRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (4 pts), boolean chains 3 (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 · FirestorePluginExecutor.resultToMap (cognitive 16) · ×1
  • FirestorePluginExecutor.resultToMap (cognitive 16) app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java:840 — FirestorePluginExecutor.resultToMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (7 pts) (nesting depth added 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 · DatabricksPluginExecutor.execute (cognitive 16) · ×1
  • DatabricksPluginExecutor.execute (cognitive 16) app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:88 — DatabricksPluginExecutor.execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (3 pts), error handling 2, boolean chains 1 (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.
D2 · Cognitive Complexity · MustacheHelper.renderFieldValues (cognitive 16) · ×1
  • MustacheHelper.renderFieldValues (cognitive 16) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/MustacheHelper.java:282 — MustacheHelper.renderFieldValues has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 3 (6 pts), error handling 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 · CrudTemplateService.updateCrudTemplateFormData (cognitive 16) · ×1
  • CrudTemplateService.updateCrudTemplateFormData (cognitive 16) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/plugins/CrudTemplateService.java:21 — CrudTemplateService.updateCrudTemplateFormData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 1, loops 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 · FilterDataServiceCE.insertAllData (cognitive 16) · ×1
  • FilterDataServiceCE.insertAllData (cognitive 16) REDACTED:422 — FilterDataServiceCE.insertAllData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 pts) (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.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D32 · Data Compliance (PII/GDPR) · 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
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (3 members, 52 shared lines) · ×1
  • Near-duplicate member family (3 members, 52 shared lines) REDACTED:113 — REDACTED:113-231 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:108-203 | REDACTED:94-179 — These 3 members are variants of one another: a block of 52 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication · Near-duplicate member pair (65 shared lines) · ×1
  • Near-duplicate member pair (65 shared lines) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:102 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:102-205 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:105-228 — These two members are variants of one another: 65 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (50 shared lines) · ×1
  • Near-duplicate member pair (50 shared lines) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:101 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:101-215 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:96-208 — These two members are variants of one another: 50 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (41 shared lines) · ×1
  • Near-duplicate member pair (41 shared lines) app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:78 — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:78-129 | app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/UserUtilsCE.java:131-182 — These two members are variants of one another: 41 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (38 shared lines) · ×1
  • Near-duplicate member pair (38 shared lines) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:315 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:315-468 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:472-599 — These two members are variants of one another: 38 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (36 shared lines) · ×1
  • Near-duplicate member pair (36 shared lines) REDACTED:202 — REDACTED:202-356 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:206-336 — These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Edited copy of a member (30 corresponding lines) · ×1
  • Edited copy of a member (30 corresponding lines) app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java:598 — app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java:598-698 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java:1504-1560 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (27 corresponding lines) · ×1
  • Edited copy of a member (27 corresponding lines) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:83 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/utils/AwsHttpsProxyConfiguration.java:83-109 | app/server/appsmith-plugins/awsLambdaPlugin/src/main/java/com/external/plugins/AwsHttpsProxyConfiguration.java:83-109 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (31 corresponding lines) · ×1
  • Edited copy of a member (31 corresponding lines) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:130 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:130-161 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:331-363 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (21 corresponding lines) · ×1
  • Edited copy of a member (21 corresponding lines) REDACTED:190 — REDACTED:190-212 | REDACTED:870-892 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Members sharing a duplicated core (13 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (13 members, 50+ identical tokens) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:303 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:303-320 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:323-340 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:353-370 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:373-390 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:436-453 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:456-473 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:521-538 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:604-623 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:626-644 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:719-736 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:761-778 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:505-523 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:643-659 — These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (6 members, 50+ identical tokens) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration033AddOpenAIPlugin.java:29 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration033AddOpenAIPlugin.java:29-48 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration035AddAnthropicPlugin.java:28-49 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration038AddGoogleAIPlugin.java:28-51 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration039AddDatabricksPlugin.java:29-52 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration040AddAWSLambdaPlugin.java:29-53 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration040AddAppsmithAiPlugin.java:28-49 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication · Duplicated block (71–72 lines × 2) · ×1
  • Duplicated block (71–72 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3093 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3093-3163 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3311-3382 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:3093` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (51–63 lines × 2) · ×1
  • Duplicated block (51–63 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:296 — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:296-346 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:553-615 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:296` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (47 lines × 3) · ×1
  • Duplicated block (47 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:959 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:959-1005 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1076-1122 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1247-1293 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:959` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1075` calls `header` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1246` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (34–37 lines × 2) · ×1
  • Duplicated block (34–37 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java:179 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutActionServiceCEImpl.java:179-215 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:236-269 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/LayoutCollectionServiceCEImpl.java:236` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (30–34 lines × 2) · ×1
  • Duplicated block (30–34 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java:612 — app/server/appsmith-server/src/main/java/com/appsmith/server/fork/internal/ApplicationForkingServiceCEImpl.java:612-645 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCEImpl.java:1505-1534 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (31–34 lines × 2) · ×1
  • Duplicated block (31–34 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/imports/internal/partial/PartialImportServiceImpl.java:74 — app/server/appsmith-server/src/main/java/com/appsmith/server/imports/internal/partial/PartialImportServiceImpl.java:74-104 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ApplicationPageServiceImpl.java:72-105 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (33 lines × 2) · ×1
  • Duplicated block (33 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:34 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:34-66 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleExecuteUtils.java:59-91 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleExecuteUtils.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (31–32 lines × 2) · ×1
  • Duplicated block (31–32 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:152 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:152-183 | app/server/appsmith-plugins/saasPlugin/src/main/java/com/external/helpers/RequestCaptureFilter.java:94-124 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:152` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (31 lines × 3) · ×1
  • Duplicated block (31 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1023 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1023-1053 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1153-1183 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1314-1344 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1023` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (28–29 lines × 2) · ×1
  • Duplicated block (28–29 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:134 — app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:134-161 | app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:335-363 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCEImpl.java:134` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×1
  • Duplicated block (28 lines × 2) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:226 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:226-253 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:764-791 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:226` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:161 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:161-187 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:215-241 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×1
  • Duplicated block (25 lines × 2) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:769 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:769-793 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:854-878 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:769` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (23–25 lines × 2) · ×1
  • Duplicated block (23–25 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:365 — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:365-387 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:663-687 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:365` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (23 lines × 5) · ×1
  • Duplicated block (23 lines × 5) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:312 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:312-334 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:483-505 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/utils/PostgresDatasourceUtils.java:18-40 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/utils/RedshiftDatasourceUtils.java:111-133 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SnowflakeDatasourceUtils.java:18-40 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (21–22 lines × 2) · ×1
  • Duplicated block (21–22 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:764 — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:764-784 | app/server/appsmith-server/src/main/java/com/appsmith/server/artifacts/base/ArtifactServiceCEImpl.java:188-209 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (10–21 lines × 2) · ×1
  • Duplicated block (10–21 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/util/JSONPrettyPrinter.java:21 — app/server/appsmith-interfaces/src/main/java/com/appsmith/util/JSONPrettyPrinter.java:21-41 | app/server/appsmith-interfaces/src/main/java/com/appsmith/util/JSONPrettyPrinter.java:46-55 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/util/JSONPrettyPrinter.java:21` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17–21 lines × 2) · ×1
  • Duplicated block (17–21 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:155 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:155-171 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:149-169 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:155` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (20–21 lines × 2) · ×1
  • Duplicated block (20–21 lines × 2) app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:419 — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:419-439 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1131-1150 — before extracting anything, compare `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:419` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×1
  • Duplicated block (20 lines × 3) REDACTED:201 — REDACTED:201-220 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:173-192 | REDACTED:149-168 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:201` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (19–20 lines × 3) · ×1
  • Duplicated block (19–20 lines × 3) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:980 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:980-999 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:604-622 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:158-176 — before extracting anything, compare `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:980` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12–20 lines × 2) · ×1
  • Duplicated block (12–20 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitSolutionCEImpl.java:119 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitSolutionCEImpl.java:119-130 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitSolutionCEImpl.java:303-322 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (14–20 lines × 2) · ×1
  • Duplicated block (14–20 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:134 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:134-147 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:149-168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (19 lines × 4) · ×1
  • Duplicated block (19 lines × 4) REDACTED:799 — REDACTED:799-817 | REDACTED:481-499 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:390-408 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1077-1095 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:799` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×1
  • Duplicated block (19 lines × 3) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:46 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:46-64 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:92-110 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/SheetDeleteMethod.java:58-76 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:46` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16–19 lines × 3) · ×1
  • Duplicated block (16–19 lines × 3) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:132 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:132-147 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:144-162 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:137-152 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:132` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18–19 lines × 2) · ×1
  • Duplicated block (18–19 lines × 2) REDACTED:191 — REDACTED:191-209 | REDACTED:872-889 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:191` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17–18 lines × 3) · ×1
  • Duplicated block (17–18 lines × 3) REDACTED:177 — REDACTED:177-194 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:154-171 | REDACTED:131-147 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:177` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×1
  • Duplicated block (18 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:62 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:62-79 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:61-78 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:62` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (11–18 lines × 2) · ×1
  • Duplicated block (11–18 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:165 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:165-175 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:252-269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationTemplateServiceCEImpl.java:165` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (15–17 lines × 4) · ×1
  • Duplicated block (15–17 lines × 4) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:566 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:566-580 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:1008-1024 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:124-140 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:433-449 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Duplicated block (16–17 lines × 2) · ×1
  • Duplicated block (16–17 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:176 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:176-192 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:196-211 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (16 lines × 5) · ×1
  • Duplicated block (16 lines × 5) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:60 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:60-75 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:59-74 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:67-82 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:69-84 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:60-75 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:60` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (13–16 lines × 4) · ×1
  • Duplicated block (13–16 lines × 4) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:153 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:153-165 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:975-990 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:600-612 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:154-166 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:153` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12–16 lines × 2) · ×1
  • Duplicated block (12–16 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:204 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:204-215 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:193-208 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:204` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:213` calls `getBody` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:220` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×1
  • Duplicated block (15–16 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:128 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:128-142 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/SheetDeleteMethod.java:95-110 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/SheetDeleteMethod.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:128` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13–16 lines × 2) · ×1
  • Duplicated block (13–16 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:260 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:260-272 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:312-327 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java:312` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (15 lines × 5) · ×1
  • Duplicated block (15 lines × 5) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:53 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:53-67 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:50-64 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:49-63 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:59-73 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:50-64 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:53` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×1
  • Duplicated block (15 lines × 3) REDACTED:161 — REDACTED:161-175 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:138-152 | REDACTED:115-129 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:161` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12–15 lines × 2) · ×1
  • Duplicated block (12–15 lines × 2) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:155 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:155-166 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:165-179 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:155` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (14–15 lines × 2) · ×1
  • Duplicated block (14–15 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/widgets/refactors/WidgetRefactoringServiceCEImpl.java:126 — app/server/appsmith-server/src/main/java/com/appsmith/server/widgets/refactors/WidgetRefactoringServiceCEImpl.java:126-140 | app/server/appsmith-server/src/main/java/com/appsmith/server/widgets/refactors/WidgetRefactoringServiceCEImpl.java:163-176 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×1
  • Duplicated block (14 lines × 3) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:113 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:113-126 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:925-938 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:566-579 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:113` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:939` calls `startsWith` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:580` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (8–14 lines × 3) · ×1
  • Duplicated block (8–14 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:846 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:846-856 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:861-868 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:931-944 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:846` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9–14 lines × 2) · ×1
  • Duplicated block (9–14 lines × 2) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:952 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:952-965 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:587-595 — before extracting anything, compare `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:952` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:951` calls `startsWith` and `app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:586` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (11–14 lines × 2) · ×1
  • Duplicated block (11–14 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:440 — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:440-453 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1660-1670 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:440` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12–13 lines × 3) · ×1
  • Duplicated block (12–13 lines × 3) app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:347 — app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/DatabricksPlugin.java:347-358 | app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:176-188 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:247-258 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
D4 · Code Duplication · Duplicated block (10–13 lines × 3) · ×1
  • Duplicated block (10–13 lines × 3) REDACTED:269 — REDACTED:269-280 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:257-266 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:418-430 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:269` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `REDACTED:283` calls `put` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:269` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×1
  • Duplicated block (13 lines × 3) app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:138 — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:138-150 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:960-972 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/utils/SqlUtils.java:139-151 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:138` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11–13 lines × 3) · ×1
  • Duplicated block (11–13 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:534 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:534-546 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:589-601 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:717-727 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (10–13 lines × 2) · ×1
  • Duplicated block (10–13 lines × 2) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:78 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:78-87 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:447-459 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java` and `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:78` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11–13 lines × 2) · ×1
  • Duplicated block (11–13 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:428 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:428-438 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:729-741 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:428` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10–12 lines × 13) · ×1
  • Duplicated block (10–12 lines × 13) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:310 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:310-320 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:330-340 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:360-370 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:380-390 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:443-453 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:463-473 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:528-538 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:612-623 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:634-644 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:726-736 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:769-778 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:513-523 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:650-659 — there are 13 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 13 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:310` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:610` calls `setDatasourceComponent` and `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:308` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (12 lines × 4) · ×1
  • Duplicated block (12 lines × 4) app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:91 — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:91-102 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleExecuteUtils.java:140-151 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:481-492 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:166-177 — before extracting anything, compare `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleExecuteUtils.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:91` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10–12 lines × 3) · ×1
  • Duplicated block (10–12 lines × 3) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:155 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:155-166 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:147-156 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:140-150 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:155` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (4–12 lines × 3) · ×1
  • Duplicated block (4–12 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:895 — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:895-898 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1146-1157 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1595-1604 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1146` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10–11 lines × 7) · ×1
  • Duplicated block (10–11 lines × 7) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:47 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:47-56 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:61-70 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:58-68 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:57-67 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:65-75 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:67-77 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:58-68 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetStructureMethod.java:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11 lines × 6) · ×1
  • Duplicated block (11 lines × 6) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration033AddOpenAIPlugin.java:35 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration033AddOpenAIPlugin.java:35-45 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration035AddAnthropicPlugin.java:34-44 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration038AddGoogleAIPlugin.java:34-44 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration039AddDatabricksPlugin.java:35-45 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration040AddAWSLambdaPlugin.java:35-45 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration040AddAppsmithAiPlugin.java:34-44 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration035AddAnthropicPlugin.java:46` calls `getId` and `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration033AddOpenAIPlugin.java:47` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (8–11 lines × 4) · ×1
  • Duplicated block (8–11 lines × 4) app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:405 — app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:405-415 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:822-829 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:103-113 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/SnowflakePlugin.java:378-385 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:405` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10–11 lines × 4) · ×1
  • Duplicated block (10–11 lines × 4) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:997 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:997-1006 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1114-1123 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1285-1295 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1297-1306 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:997` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10–11 lines × 3) · ×1
  • Duplicated block (10–11 lines × 3) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:73 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:73-82 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:72-82 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:71-81 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:73` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9–11 lines × 2) · ×1
  • Duplicated block (9–11 lines × 2) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:520 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:520-528 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/plugins/GoogleSheetsPlugin.java:142-152 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:520` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10 lines × 7) · ×1
  • Duplicated block (10 lines × 7) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:51 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:51-60 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:48-57 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:47-56 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:38-47 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsGetMethod.java:57-66 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:48-57 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/SheetDeleteMethod.java:37-46 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:47` calls `RowsAppendMethod` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:44` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (10 lines × 6) · ×1
  • Duplicated block (10 lines × 6) app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:451 — app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:451-460 | app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:503-512 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:450-459 | app/server/appsmith-plugins/redisPlugin/src/main/java/com/external/plugins/RedisPlugin.java:531-540 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:452-461 | app/server/appsmith-plugins/smtpPlugin/src/main/java/com/external/plugins/SmtpPlugin.java:358-367 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:451` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9–10 lines × 3) · ×1
  • Duplicated block (9–10 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:527 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:527-535 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:587-595 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:873-882 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:527` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7–9 lines × 8) · ×1
  • Duplicated block (7–9 lines × 8) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:50 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:50-58 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:128-134 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:140-146 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:133-139 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:96-104 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:125-131 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/SheetDeleteMethod.java:62-70 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/plugins/GoogleSheetsPlugin.java:372-378 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:50` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7–9 lines × 3) · ×1
  • Duplicated block (7–9 lines × 3) REDACTED:321 — REDACTED:321-328 | REDACTED:422-430 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:611-617 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:618` calls `debug`, `currentThread`, `getName` and `REDACTED:329` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7–9 lines × 2) · ×1
  • Duplicated block (7–9 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/MustacheHelper.java:189 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/MustacheHelper.java:189-195 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/MustacheHelper.java:209-217 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/MustacheHelper.java:189` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (8 lines × 10) · ×1
  • Duplicated block (8 lines × 10) app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:432 — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:432-439 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:442-449 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:451-458 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:461-468 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:471-478 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:484-491 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:493-500 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:735-742 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:751-758 | app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:761-768 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:432` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:440` calls `convertToFormDataObject`, `get` and `app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:450` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (8 lines × 8) · ×1
  • Duplicated block (8 lines × 8) app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:454 — app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:454-461 | app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java:506-513 | REDACTED:562-569 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:453-460 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java:335-342 | app/server/appsmith-plugins/redisPlugin/src/main/java/com/external/plugins/RedisPlugin.java:534-541 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java:455-462 | app/server/appsmith-plugins/smtpPlugin/src/main/java/com/external/plugins/SmtpPlugin.java:361-368 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:454` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/ArangoDBPlugin.java:451` calls `debug`, `currentThread`, `getName` and `REDACTED:560` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (5–8 lines × 3) · ×1
  • Duplicated block (5–8 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:875 — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:875-882 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1145-1151 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:1594-1598 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:875` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6–8 lines × 2) · ×1
  • Duplicated block (6–8 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1231 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1231-1236 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1893-1900 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCEImpl.java:1231` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:52 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:52-59 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/GetDatasourceMetadataMethod.java:91-97 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:98-105 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/SheetDeleteMethod.java:64-71 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/FileInfoMethod.java:52` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6–7 lines × 3) · ×1
  • Duplicated block (6–7 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:562 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:562-568 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:656-661 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:839-844 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:570` calls `resolveConfig` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:663` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×1
  • Duplicated block (6 lines × 6) REDACTED:170 — REDACTED:170-175 | REDACTED:181-186 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:147-152 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java:158-163 | REDACTED:124-129 | REDACTED:135-140 — before extracting anything, compare `REDACTED` and `app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:170` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (5–6 lines × 3) · ×1
  • Duplicated block (5–6 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1194 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1194-1199 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1210-1214 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1220-1224 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1194` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1207` calls `add`, `createStep` and `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:1217` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (3–6 lines × 5) · ×1
  • Duplicated block (3–6 lines × 5) app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1135 — app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1135-1141 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1170-1175 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1195-1200 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1218-1220 | app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1238-1241 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-git/src/main/java/com/appsmith/git/handler/ce/FSGitHandlerCEImpl.java:1170` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (4–6 lines × 3) · ×1
  • Duplicated block (4–6 lines × 3) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:371 — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:371-376 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:697-700 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:814-819 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java:697` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×1
  • Duplicated block (5 lines × 4) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:155 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:155-159 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:165-169 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:155-159 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:149-153 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:155` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (4–5 lines × 3) · ×1
  • Duplicated block (4–5 lines × 3) app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/CommandUtils.java:35 — app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/CommandUtils.java:35-39 | app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/commands/GenerateContentCommand.java:145-149 | app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/utils/MessageUtils.java:30-33 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/CommandUtils.java:35` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/CommandUtils.java:35` calls `fromJson`, `get` and `app/server/appsmith-plugins/openAiPlugin/src/main/java/com/external/plugins/utils/MessageUtils.java:30` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (26 lines × 11) · ×1
  • Duplicated block (26 lines × 11) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/exceptions/pluginExceptions/AppsmithPluginError.java:224 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/exceptions/pluginExceptions/AppsmithPluginError.java:224-249 | app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/exceptions/ArangoDBPluginError.java:41-66 | app/server/appsmith-plugins/databricksPlugin/src/main/java/com/external/plugins/exceptions/DatabricksPluginError.java:41-66 | app/server/appsmith-plugins/graphqlPlugin/src/main/java/com/external/plugins/exceptions/GraphQLPluginError.java:41-66 | app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/exceptions/MongoPluginError.java:60-85 | app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/exceptions/MssqlPluginError.java:41-66 | app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/plugins/exceptions/MySQLPluginError.java:77-102 | app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/exceptions/OraclePluginError.java:59-84 | app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/exceptions/PostgresPluginError.java:59-84 | app/server/appsmith-plugins/restApiPlugin/src/main/java/com/external/plugins/exceptions/RestApiPluginError.java:41-66 | app/server/appsmith-plugins/snowflakePlugin/src/main/java/com/external/plugins/exceptions/SnowflakePluginError.java:50-75 — before extracting anything, compare `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/exceptions/pluginExceptions/AppsmithPluginError.java` and `app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/plugins/exceptions/ArangoDBPluginError.java` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/exceptions/pluginExceptions/AppsmithPluginError.java:224` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (231 lines × 2) · ×1
  • Duplicated block (231 lines × 2) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/BodyReceiver.java:1 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/BodyReceiver.java:1-231 | app/server/appsmith-plugins/saasPlugin/src/main/java/com/external/helpers/BodyReceiver.java:1-231 — before extracting anything, compare `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/BodyReceiver.java` and `app/server/appsmith-plugins/saasPlugin/src/main/java/com/external/helpers/BodyReceiver.java` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/BodyReceiver.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (30 lines × 9) · ×1
  • Duplicated block (30 lines × 9) app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/exceptions/S3PluginError.java:40 — app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/exceptions/S3PluginError.java:40-69 | app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/exceptions/DynamoPluginError.java:49-78 | app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/exceptions/ElasticSearchPluginError.java:39-68 | app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/exceptions/FirestorePluginError.java:40-69 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/plugins/exceptions/GSheetsPluginError.java:48-77 | app/server/appsmith-plugins/redisPlugin/src/main/java/com/external/plugins/exceptions/RedisPluginError.java:39-68 | app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/exceptions/RedshiftPluginError.java:39-68 | app/server/appsmith-plugins/saasPlugin/src/main/java/com/external/plugins/exceptions/SaaSPluginError.java:49-78 | app/server/appsmith-plugins/smtpPlugin/src/main/java/com/external/plugins/exceptions/SMTPPluginError.java:39-68 — before extracting anything, compare `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/exceptions/S3PluginError.java` and `app/server/appsmith-plugins/dynamoPlugin/src/main/java/com/external/plugins/exceptions/DynamoPluginError.java` as WHOLE FILES: 90% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/exceptions/S3PluginError.java:40` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (9 lines × 5) · ×1
  • Duplicated block (9 lines × 5) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/DateType.java:37 — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/DateType.java:37-45 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/StringType.java:23-31 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/TimeType.java:38-46 | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/TimestampType.java:36-44 | app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/plugins/datatypes/MySQLDateTimeType.java:40-48 — before extracting anything, compare `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/DateType.java` and `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/StringType.java` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 5) · ×1
  • Duplicated block (8 lines × 5) app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:248 — app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:248-255 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java:266-273 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkUpdateMethod.java:245-252 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsDeleteMethod.java:174-181 | app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsUpdateMethod.java:239-246 — before extracting anything, compare `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java` and `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsBulkAppendMethod.java` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-plugins/googleSheetsPlugin/src/main/java/com/external/config/RowsAppendMethod.java:248` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (22 lines × 5) · ×1
  • Duplicated block (22 lines × 5) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCECompatibleImpl.java:49 — app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCECompatibleImpl.java:49-70 | app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceImpl.java:48-69 | app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceImpl.java:48-69 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java:50-71 | app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce_compatible/UserServiceCECompatibleImpl.java:46-67 — before extracting anything, compare `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCECompatibleImpl.java` and `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceImpl.java` as WHOLE FILES: 96% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCECompatibleImpl.java:49` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×1
  • Duplicated block (21 lines × 2) app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/CreateDBTablePageSolutionImpl.java:42 — app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/CreateDBTablePageSolutionImpl.java:42-62 | app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/EnvManagerImpl.java:47-68 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/CreateDBTablePageSolutionImpl.java:42` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (5 lines × 5) · ×1
  • Duplicated block (5 lines × 5) app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java:111 — app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java:111-116 | app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java:121-126 | app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionControllerCE.java:69-74 | app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ApplicationControllerCE.java:271-275 | app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/LayoutControllerCE.java:56-61 — there are 5 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ActionCollectionControllerCE.java:111` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind `resource` to `ActionCollectionUpdateDTO` in one and `ActionCollectionDTO` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
DM10 · One transaction, one aggregate · One operation mutates 2 aggregates · ×1
  • One operation mutates 2 aggregates: McpTokenServiceCEImpl.revoke app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/McpTokenServiceCEImpl.java:236 — `McpTokenServiceCEImpl.revoke` saves `mcpKeyRepository`, `mcpTokenRepository` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event.
GD1 · Unfinished & placeholder code · Unfinished stub · ×1
  • Unfinished stub — throws a "not implemented" error app/client/src/widgets/TableWidget/widget/index.tsx:377 — A shipped function's whole body still throws a "not implemented" error — generated scaffolding that was never completed. Implement it or remove the dead surface.
IC1 · Incompleteness & stubs · Both branches are identical · ×1
  • Both branches are identical — the condition decides nothing app/client/packages/design-system/ads-old/src/Checkbox/index.tsx:89 — Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition.
IC1 · Incompleteness & stubs · Markup wires an event to an empty handler · ×1
  • Markup wires an event to an empty handler app/client/src/ce/pages/Applications/index.tsx:307 — `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.
M1 · Documentation (README) · README may be stale · ×1
  • README may be stale — 662 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
P12 · CI test-gate honesty · Test failure does not fail the CI gate · ×1
  • Test failure does not fail the CI gate REDACTED:247 — `continue-on-error: true` lets the step or job that runs `npx playwright test $ARGS --reporter=blob` fail without failing the pipeline — the suite can go red and the change still merges. Remove it from the test step, or quarantine the specific failing tests instead.
R10 · Code Duplication · Forked directory tree (400 identical files, ~419 KB × 2 trees) · ×1
  • Forked directory tree (400 identical files, ~419 KB × 2 trees) app/client/packages/design-system/ads-old/src/ControlIcons/index.tsx:1 — app/client/packages/design-system/ads-old/ and app/client/packages/design-system/widgets-old/ are near-verbatim copies of each other: 400 files are byte-identical under the same relative paths (~419 KB; the trees hold 449 and 426 files). That is one structural fact, not 400 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
R10 · Code Duplication · Duplication concentrated across 63 sibling directories (538 clone groups) · ×1
  • Duplication concentrated across 63 sibling directories (538 clone groups) REDACTED:1 — 538 duplicated blocks under app/client/src/widgets/ have copies in at least two of the sibling directories AudioRecorderWidget, AudioWidget, BaseInputWidget, ButtonGroupWidget, ButtonWidget, CameraWidget (+57 more sibling(s) not listed) — 349 of them are reported below, and 189 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 538 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 538 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 538 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 23 sibling directories (252 clone groups) · ×1
  • Duplication concentrated across 23 sibling directories (252 clone groups) app/client/src/git/components/BranchList/BranchListView.tsx:39 — 252 duplicated blocks under app/client/src/ have copies in at least two of the sibling directories IDE, PluginActionEditor, WidgetProvider, actions, api, ce (+17 more sibling(s) not listed) — 109 of them are reported below, and 143 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 252 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 252 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 252 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 26 sibling directories (56 clone groups) · ×1
  • Duplication concentrated across 26 sibling directories (56 clone groups) app/client/src/widgets/wds/WDSCurrencyInputWidget/widget/index.tsx:60 — 56 duplicated blocks under app/client/src/widgets/wds/ have copies in at least two of the sibling directories WDSBaseInputWidget, WDSButtonWidget, WDSCheckboxGroupWidget, WDSCheckboxWidget, WDSComboBoxWidget, WDSCurrencyInputWidget (+20 more sibling(s) not listed) — 35 of them are reported below, and 21 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 56 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 56 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 56 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 2 sibling directories (52 clone groups) · ×1
  • Duplication concentrated across 2 sibling directories (52 clone groups) app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:637 — 52 duplicated blocks under app/client/ have copies in at least two of the sibling directories packages, src — 34 of them are reported below, and 18 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 52 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 52 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 52 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 10 sibling directories (47 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (47 clone groups) app/client/src/pages/AdminSettings/Profile/UserProfileImagePicker.tsx:1 — 47 duplicated blocks under app/client/src/pages/ have copies in at least two of the sibling directories AdminSettings, AppIDE, AppViewer, Applications, Editor, Templates (+4 more sibling(s) not listed) — 29 of them are reported below, and 18 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 47 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 47 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 47 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 4 sibling directories (30 clone groups) · ×1
  • Duplication concentrated across 4 sibling directories (30 clone groups) app/client/src/layoutSystems/autolayout/editor/AutoLayoutCanvasArenas/hooks/useCanvasDragging.ts:92 — 30 duplicated blocks under app/client/src/layoutSystems/ have copies in at least two of the sibling directories anvil, autolayout, common, fixedlayout — 25 of them are reported below, and 5 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 10 sibling directories (17 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (17 clone groups) app/client/src/pages/Editor/DataSourceEditor/index.tsx:584 — 17 duplicated blocks under app/client/src/pages/Editor/ have copies in at least two of the sibling directories CurlImport, CustomWidgetBuilder, DataSourceEditor, DatasourceInfo, Explorer, FirstTimeUserOnboarding (+4 more sibling(s) not listed) — 13 of them are reported below, and 4 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 17 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 17 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 17 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 3 sibling directories (13 clone groups) · ×1
  • Duplication concentrated across 3 sibling directories (13 clone groups) app/client/packages/design-system/ads-old/src/ControlIcons/index.tsx:1 — 13 duplicated blocks under app/client/packages/design-system/ have copies in at least two of the sibling directories ads, ads-old, widgets-old — 10 of them are reported below, and 3 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 13 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 13 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 13 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 10 sibling directories (11 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (11 clone groups) app/client/packages/design-system/widgets/src/components/InlineButtons/src/InlineButtons.tsx:12 — 11 duplicated blocks under app/client/packages/design-system/widgets/src/components/ have copies in at least two of the sibling directories ComboBox, InlineButtons, MultiSelect, RadioGroup, Select, TextArea (+4 more sibling(s) not listed) — 6 of them are reported below, and 5 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 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 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 11 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 8 sibling directories (8 clone groups) · ×1
  • Duplication concentrated across 8 sibling directories (8 clone groups) app/client/src/pages/AppIDE/components/JSEntityItem/JSEntityItem.tsx:28 — 8 duplicated blocks under app/client/src/pages/AppIDE/components/ have copies in at least two of the sibling directories AppPluginActionEditor, JSAdd, JSEntityItem, JSExplorer, QueryAdd, QueryEntityItem (+2 more sibling(s) not listed) — 5 of them are reported below, and 3 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 8 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 8 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 8 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 (6 clone groups) · ×1
  • Duplication concentrated across 16 sibling directories (6 clone groups) app/client/packages/design-system/ads/src/SegmentedControl/SegmentedControl.tsx:48 — 6 duplicated blocks under app/client/packages/design-system/ads/src/ have copies in at least two of the sibling directories AnnouncementPopover, Avatar, Callout, Checkbox, DatePicker, Flex (+10 more sibling(s) not listed) — 3 of them are reported below, and 3 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 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 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 6 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 2 sibling directories (5 clone groups) · ×1
  • Duplication concentrated across 2 sibling directories (5 clone groups) app/client/src/reducers/entityReducers/datasourceReducer.ts:596 — 5 duplicated blocks under app/client/src/reducers/ have copies in at least two of the sibling directories entityReducers, uiReducers — 0 of them are reported below, and 5 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 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 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 5 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 · Wholesale file copy (739 identical lines × 2 files) · ×1
  • Wholesale file copy (739 identical lines × 2 files) REDACTED:1 — REDACTED:1 · app/client/src/widgets/wds/WDSTableWidget/widget/propertyUtils.ts:1 — these 2 files are line-for-line copies of one another — 739 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 (730 lines × 2 locations) · ×1
  • Duplicated block (730 lines × 2 locations) REDACTED:5705 — REDACTED:5705 · app/client/public/libraries/jsonwebtoken@8.5.1.js:16632 — 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 · Wholesale file copy (724 identical lines × 2 files) · ×1
  • Wholesale file copy (724 identical lines × 2 files) app/client/src/constants/ISDCodes.tsx:1 — app/client/src/constants/ISDCodes.tsx:1 · app/client/src/constants/ISDCodes_v2.tsx:1 — these 2 files are line-for-line copies of one another — 724 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 (641 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (641 matched lines × 2 locations) app/client/src/widgets/TableWidgetV2/widget/utilities.ts:39 — app/client/src/widgets/TableWidgetV2/widget/utilities.ts:39 · app/client/src/widgets/wds/WDSTableWidget/widget/utilities.ts:28 — the two spans are one implementation copied and then locally edited — 3589 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 (628 lines × 2 locations) · ×1
  • Duplicated block (628 lines × 2 locations) REDACTED:4015 — REDACTED:4015 · app/client/public/libraries/jsonwebtoken@8.5.1.js:8524 — 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 (535 lines × 2 locations) · ×1
  • Duplicated block (535 lines × 2 locations) REDACTED:6442 — REDACTED:6442 · app/client/public/libraries/jsonwebtoken@8.5.1.js:17369 — 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 · Wholesale file copy (454 identical lines × 2 files) · ×1
  • Wholesale file copy (454 identical lines × 2 files) app/client/src/widgets/MultiSelectTreeWidget/widget/index.tsx:1 — app/client/src/widgets/MultiSelectTreeWidget/widget/index.tsx:1 · app/client/src/widgets/SingleSelectTreeWidget/widget/index.tsx:1 — these 2 files are line-for-line copies of one another — 454 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 (452 lines × 2 locations) · ×1
  • Duplicated block (452 lines × 2 locations) REDACTED:7532 — REDACTED:7532 · app/client/public/libraries/jsonwebtoken@8.5.1.js:19290 — 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 · Wholesale file copy (412 identical lines × 2 files) · ×1
  • Wholesale file copy (412 identical lines × 2 files) app/client/packages/design-system/ads-old/src/ControlIcons/index.tsx:1 — app/client/packages/design-system/ads-old/src/ControlIcons/index.tsx:1 · app/client/packages/design-system/widgets-old/src/ControlIcons/index.tsx:1 — these 2 files are line-for-line copies of one another — 412 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 (369 identical lines × 2 files) · ×1
  • Wholesale file copy (369 identical lines × 2 files) app/client/src/widgets/TableWidgetV2/component/Constants.ts:1 — app/client/src/widgets/TableWidgetV2/component/Constants.ts:1 · app/client/src/widgets/wds/WDSTableWidget/component/Constants.ts:1 — these 2 files are line-for-line copies of one another — 369 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 (298 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (298 matched lines × 2 locations) app/client/src/widgets/MapChartWidget/constants.ts:366 — app/client/src/widgets/MapChartWidget/constants.ts:366 · app/client/src/widgets/MapChartWidget/constants.ts:682 — the two spans are one implementation copied and then locally edited — 818 tokens are still identical, in the same order in both spans, 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 (267 lines × 2 locations) · ×1
  • Duplicated block (267 lines × 2 locations) app/client/src/widgets/TableWidgetV2/widget/index.tsx:1401 — app/client/src/widgets/TableWidgetV2/widget/index.tsx:1401 · REDACTED:993 — 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 · Wholesale file copy (263 identical lines × 2 files) · ×1
  • Wholesale file copy (263 identical lines × 2 files) app/client/src/components/propertyControls/PrimaryColumnsControlV2.tsx:1 — app/client/src/components/propertyControls/PrimaryColumnsControlV2.tsx:1 · app/client/src/components/propertyControls/PrimaryColumnsControlWDS.tsx:2 — these 2 files are line-for-line copies of one another — 263 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 (251 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (251 matched lines × 2 locations) app/client/src/widgets/TableWidgetV2/widget/derived.js:2 — app/client/src/widgets/TableWidgetV2/widget/derived.js:2 · app/client/src/widgets/wds/WDSTableWidget/widget/derived.js:2 — the two spans are one implementation copied and then locally edited — 1494 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 (241 identical lines × 2 files) · ×1
  • Wholesale file copy (241 identical lines × 2 files) app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/index.ts:1 — app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/index.ts:1 · app/client/src/widgets/wds/WDSTableWidget/config/propertyPaneConfig/PanelConfig/Data.ts:1 — these 2 files are line-for-line copies of one another — 241 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 (239 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (239 matched lines × 2 locations) app/client/src/widgets/BaseInputWidget/component/index.tsx:64 — app/client/src/widgets/BaseInputWidget/component/index.tsx:64 · app/client/src/widgets/InputWidget/component/index.tsx:67 — the two spans are one implementation copied and then locally edited — 1210 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 (237 identical lines × 2 files) · ×1
  • Wholesale file copy (237 identical lines × 2 files) app/client/src/components/propertyControls/IconSelectControl.tsx:1 — app/client/src/components/propertyControls/IconSelectControl.tsx:1 · app/client/src/components/propertyControls/IconSelectControlV2.tsx:1 — these 2 files are line-for-line copies of one another — 237 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 (229 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (229 matched lines × 2 locations) app/client/src/widgets/TableWidgetV2/component/index.tsx:41 — app/client/src/widgets/TableWidgetV2/component/index.tsx:41 · app/client/src/widgets/wds/WDSTableWidget/component/index.tsx:18 — the two spans are one implementation copied and then locally edited — 1377 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 (225 lines × 2 locations) · ×1
  • Duplicated block (225 lines × 2 locations) REDACTED:3788 — REDACTED:3788 · app/client/public/libraries/jsonwebtoken@8.5.1.js:8297 — 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 (224 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (224 matched lines × 2 locations) app/client/src/widgets/TableWidgetV2/widget/index.tsx:726 — app/client/src/widgets/TableWidgetV2/widget/index.tsx:726 · REDACTED:386 — the two spans are one implementation copied and then locally edited — 1401 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 (218 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (218 matched lines × 2 locations) app/client/src/sagas/BuildingBlockSagas/BuildingBlockAdditionSagas.ts:476 — app/client/src/sagas/BuildingBlockSagas/BuildingBlockAdditionSagas.ts:476 · app/client/src/sagas/WidgetOperationSagas.tsx:1314 — the two spans are one implementation copied and then locally edited — 1105 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 (207 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (207 matched lines × 2 locations) app/client/src/git/components/BranchList/BranchListView.tsx:39 — app/client/src/git/components/BranchList/BranchListView.tsx:39 · app/client/src/pages/Editor/gitSync/components/BranchList.tsx:55 — the two spans are one implementation copied and then locally edited — 1008 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 (199 identical lines × 2 files) · ×1
  • Wholesale file copy (199 identical lines × 2 files) app/client/src/widgets/NumberSliderWidget/widget/propertyConfig/contentConfig.ts:1 — app/client/src/widgets/NumberSliderWidget/widget/propertyConfig/contentConfig.ts:1 · app/client/src/widgets/RangeSliderWidget/widget/propertyConfig/contentConfig.ts:1 — these 2 files are line-for-line copies of one another — 199 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 (197 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (197 matched lines × 2 locations) app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:637 — app/client/packages/dsl/src/migrate/migrations/012-migrate-incorrect-dynamic-binding-path-lists.ts:637 · app/client/src/entities/Widget/utils.ts:27 — the two spans are one implementation copied and then locally edited — 876 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 (193 lines × 2 locations) · ×1
  • Duplicated block (193 lines × 2 locations) REDACTED:7154 — REDACTED:7154 · app/client/public/libraries/jsonwebtoken@8.5.1.js:18081 — 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.
R2 · Cyclomatic Complexity · Complex function migrateVersionedDSL (cyclomatic 97, cognitive 98) · ×1
  • Complex function migrateVersionedDSL (cyclomatic 97, cognitive 98) app/client/packages/dsl/src/migrate/index.ts:151 — migrateVersionedDSL has cyclomatic complexity 97 and cognitive complexity 98; 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 renderCell (cyclomatic 90, cognitive 87) · ×1
  • Complex function renderCell (cyclomatic 90, cognitive 87) app/client/src/widgets/TableWidgetV2/widget/index.tsx:2011 — renderCell has cyclomatic complexity 90 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 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 exprProblem (cyclomatic 79, cognitive 125) · ×1
  • Complex function exprProblem (cyclomatic 79, cognitive 125) app/client/packages/mcp/src/builder/jsExpr.ts:510 — exprProblem has cyclomatic complexity 79 and cognitive complexity 125; 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 compileExpr (cyclomatic 70, cognitive 29) · ×1
  • Complex function compileExpr (cyclomatic 70, cognitive 29) app/client/packages/mcp/src/builder/jsExpr.ts:926 — compileExpr has cyclomatic complexity 70 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 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 55, cognitive 85) · ×1
  • Complex function (anonymous) (cyclomatic 55, cognitive 85) app/client/src/pages/Editor/PropertyPane/PropertyControl.tsx:90 — (anonymous) has cyclomatic complexity 55 and cognitive complexity 85; 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 54, cognitive 54) · ×1
  • Complex function (anonymous) (cyclomatic 54, cognitive 54) app/client/src/pages/AdminSettings/FormGroup/group.tsx:123 — (anonymous) has cyclomatic complexity 54 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 evaluateTree (cyclomatic 51, cognitive 114) · ×1
  • Complex function evaluateTree (cyclomatic 51, cognitive 114) app/client/src/workers/common/DataTreeEvaluator/index.ts:1114 — evaluateTree has cyclomatic complexity 51 and cognitive complexity 114; 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 51, cognitive 32) · ×1
  • Complex function (anonymous) (cyclomatic 51, cognitive 32) app/client/packages/dsl/src/migrate/migrations/057-migrate-styling-properties-for-theming.ts:221 — (anonymous) has cyclomatic complexity 51 and cognitive complexity 32; 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 Deploy (cyclomatic 49, cognitive 32) · ×1
  • Complex function Deploy (cyclomatic 49, cognitive 32) app/client/src/pages/Editor/gitSync/Tabs/Deploy.tsx:100 — Deploy has cyclomatic complexity 49 and cognitive complexity 32; 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 TabDeployView (cyclomatic 49, cognitive 31) · ×1
  • Complex function TabDeployView (cyclomatic 49, cognitive 31) app/client/src/git/components/OpsModal/TabDeploy/TabDeployView.tsx:99 — TabDeployView has cyclomatic complexity 49 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 updateWidgetAutoHeightSaga (cyclomatic 46, cognitive 135) · ×1
  • Complex function updateWidgetAutoHeightSaga (cyclomatic 46, cognitive 135) app/client/src/sagas/autoHeightSagas/widgets.ts:78 — updateWidgetAutoHeightSaga has cyclomatic complexity 46 and cognitive complexity 135; 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 applyWidgetPatch (cyclomatic 46, cognitive 114) · ×1
  • Complex function applyWidgetPatch (cyclomatic 46, cognitive 114) app/client/packages/mcp/src/builder/editPatch.ts:1612 — applyWidgetPatch has cyclomatic complexity 46 and cognitive complexity 114; 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 WrappedPropsComponent (cyclomatic 46, cognitive 63) · ×1
  • Complex function WrappedPropsComponent (cyclomatic 46, cognitive 63) app/client/src/widgets/withWidgetProps.tsx:58 — WrappedPropsComponent has cyclomatic complexity 46 and cognitive complexity 63; 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 46, cognitive 56) · ×1
  • Complex function (anonymous) (cyclomatic 46, cognitive 56) app/client/public/libraries/jsonwebtoken@8.5.1.js:2737 — (anonymous) has cyclomatic complexity 46 and cognitive complexity 56; 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 Cell (cyclomatic 45, cognitive 49) · ×1
  • Complex function Cell (cyclomatic 45, cognitive 49) app/client/src/widgets/TableWidget/widget/index.tsx:509 — Cell has cyclomatic complexity 45 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 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 44, cognitive 95) · ×1
  • Complex function (anonymous) (cyclomatic 44, cognitive 95) app/client/src/sagas/WidgetOperationSagas.tsx:1340 — (anonymous) has cyclomatic complexity 44 and cognitive complexity 95; 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 _decode (cyclomatic 44, cognitive 69) · ×1
  • Complex function _decode (cyclomatic 44, cognitive 69) app/client/public/libraries/jsonwebtoken@8.5.1.js:3268 — _decode has cyclomatic complexity 44 and cognitive complexity 69; 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 · REDACTED · ×1
  • REDACTED: 20765 lines of code REDACTED:1 — REDACTED has 20765 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 · app/client/public/libraries/jsonwebtoken@8.5.1.js · ×1
  • app/client/public/libraries/jsonwebtoken@8.5.1.js: 19964 lines of code app/client/public/libraries/jsonwebtoken@8.5.1.js:1 — app/client/public/libraries/jsonwebtoken@8.5.1.js has 19964 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: 8080 lines of code REDACTED:1 — REDACTED has 8080 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 · app/client/packages/mcp/src/app.ts · ×1
  • app/client/packages/mcp/src/app.ts: 7870 lines of code app/client/packages/mcp/src/app.ts:1 — app/client/packages/mcp/src/app.ts has 7870 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 · app/client/packages/design-system/widgets/src/components/Icon/src/icons.ts · ×1
  • app/client/packages/design-system/widgets/src/components/Icon/src/icons.ts: 5401 lines of code app/client/packages/design-system/widgets/src/components/Icon/src/icons.ts:1 — app/client/packages/design-system/widgets/src/components/Icon/src/icons.ts has 5401 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 · app/client/src/constants/DefaultTheme.tsx · ×1
  • app/client/src/constants/DefaultTheme.tsx: 2935 lines of code app/client/src/constants/DefaultTheme.tsx:1 — app/client/src/constants/DefaultTheme.tsx has 2935 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 · app/client/src/widgets/TableWidgetV2/widget/index.tsx · ×1
  • app/client/src/widgets/TableWidgetV2/widget/index.tsx: 2784 lines of code app/client/src/widgets/TableWidgetV2/widget/index.tsx:1 — app/client/src/widgets/TableWidgetV2/widget/index.tsx has 2784 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 · app/client/src/ce/constants/messages.ts · ×1
  • app/client/src/ce/constants/messages.ts: 2740 lines of code app/client/src/ce/constants/messages.ts:1 — app/client/src/ce/constants/messages.ts has 2740 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 · app/client/src/components/designSystems/blueprintjs/icon/svgImportsMap.ts · ×1
  • app/client/src/components/designSystems/blueprintjs/icon/svgImportsMap.ts: 2188 lines of code app/client/src/components/designSystems/blueprintjs/icon/svgImportsMap.ts:1 — app/client/src/components/designSystems/blueprintjs/icon/svgImportsMap.ts has 2188 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 · app/client/packages/mcp/src/builder/schema.ts · ×1
  • app/client/packages/mcp/src/builder/schema.ts: 2182 lines of code app/client/packages/mcp/src/builder/schema.ts:1 — app/client/packages/mcp/src/builder/schema.ts has 2182 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 · app/client/src/reflow/reflowUtils.ts · ×1
  • app/client/src/reflow/reflowUtils.ts: 2052 lines of code app/client/src/reflow/reflowUtils.ts:1 — app/client/src/reflow/reflowUtils.ts has 2052 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 · app/client/src/ce/sagas/DatasourcesSagas.ts · ×1
  • app/client/src/ce/sagas/DatasourcesSagas.ts: 2037 lines of code app/client/src/ce/sagas/DatasourcesSagas.ts:1 — app/client/src/ce/sagas/DatasourcesSagas.ts has 2037 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 · app/client/packages/mcp/src/builder/editPatch.ts · ×1
  • app/client/packages/mcp/src/builder/editPatch.ts: 1978 lines of code app/client/packages/mcp/src/builder/editPatch.ts:1 — app/client/packages/mcp/src/builder/editPatch.ts has 1978 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 · app/client/src/sagas/WidgetOperationSagas.tsx · ×1
  • app/client/src/sagas/WidgetOperationSagas.tsx: 1860 lines of code app/client/src/sagas/WidgetOperationSagas.tsx:1 — app/client/src/sagas/WidgetOperationSagas.tsx has 1860 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 · app/client/src/workers/common/DataTreeEvaluator/index.ts · ×1
  • app/client/src/workers/common/DataTreeEvaluator/index.ts: 1847 lines of code app/client/src/workers/common/DataTreeEvaluator/index.ts:1 — app/client/src/workers/common/DataTreeEvaluator/index.ts has 1847 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 · app/client/src/widgets/TableWidget/widget/propertyConfig.ts · ×1
  • app/client/src/widgets/TableWidget/widget/propertyConfig.ts: 1828 lines of code app/client/src/widgets/TableWidget/widget/propertyConfig.ts:1 — app/client/src/widgets/TableWidget/widget/propertyConfig.ts has 1828 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 · app/client/src/components/editorComponents/CodeEditor/index.tsx · ×1
  • app/client/src/components/editorComponents/CodeEditor/index.tsx: 1711 lines of code app/client/src/components/editorComponents/CodeEditor/index.tsx:1 — app/client/src/components/editorComponents/CodeEditor/index.tsx has 1711 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: 1692 lines of code REDACTED:1 — REDACTED has 1692 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 · app/client/src/sagas/WidgetOperationUtils.ts · ×1
  • app/client/src/sagas/WidgetOperationUtils.ts: 1676 lines of code app/client/src/sagas/WidgetOperationUtils.ts:1 — app/client/src/sagas/WidgetOperationUtils.ts has 1676 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 · app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx · ×1
  • app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx: 1640 lines of code app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx:1 — app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx has 1640 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 · app/client/src/sagas/ActionExecution/PluginActionSaga.ts · ×1
  • app/client/src/sagas/ActionExecution/PluginActionSaga.ts: 1577 lines of code app/client/src/sagas/ActionExecution/PluginActionSaga.ts:1 — app/client/src/sagas/ActionExecution/PluginActionSaga.ts has 1577 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 · app/client/src/ce/selectors/entitiesSelector.ts · ×1
  • app/client/src/ce/selectors/entitiesSelector.ts: 1557 lines of code app/client/src/ce/selectors/entitiesSelector.ts:1 — app/client/src/ce/selectors/entitiesSelector.ts has 1557 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 · app/client/src/ce/sagas/PageSagas.tsx · ×1
  • app/client/src/ce/sagas/PageSagas.tsx: 1479 lines of code app/client/src/ce/sagas/PageSagas.tsx:1 — app/client/src/ce/sagas/PageSagas.tsx has 1479 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 · app/client/packages/design-system/ads/src/Grid/Grid.stories.tsx · ×1
  • app/client/packages/design-system/ads/src/Grid/Grid.stories.tsx: 1451 lines of code app/client/packages/design-system/ads/src/Grid/Grid.stories.tsx:1 — app/client/packages/design-system/ads/src/Grid/Grid.stories.tsx has 1451 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 · app/client/src/widgets/JSONFormWidget/schemaTestData.ts · ×1
  • app/client/src/widgets/JSONFormWidget/schemaTestData.ts: 1448 lines of code app/client/src/widgets/JSONFormWidget/schemaTestData.ts:1 — app/client/src/widgets/JSONFormWidget/schemaTestData.ts has 1448 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 · app/client/packages/mcp/src/builder/templates.ts · ×1
  • app/client/packages/mcp/src/builder/templates.ts: 1433 lines of code app/client/packages/mcp/src/builder/templates.ts:1 — app/client/packages/mcp/src/builder/templates.ts has 1433 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: 1428 lines of code REDACTED:1 — REDACTED has 1428 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 · app/client/packages/ast/src/actionCreator/index.ts · ×1
  • app/client/packages/ast/src/actionCreator/index.ts: 1412 lines of code app/client/packages/ast/src/actionCreator/index.ts:1 — app/client/packages/ast/src/actionCreator/index.ts has 1412 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 · app/client/packages/design-system/ads/src/Flex/Flex.stories.tsx · ×1
  • app/client/packages/design-system/ads/src/Flex/Flex.stories.tsx: 1403 lines of code app/client/packages/design-system/ads/src/Flex/Flex.stories.tsx:1 — app/client/packages/design-system/ads/src/Flex/Flex.stories.tsx has 1403 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 · app/client/src/ce/constants/ReduxActionConstants.tsx · ×1
  • app/client/src/ce/constants/ReduxActionConstants.tsx: 1392 lines of code app/client/src/ce/constants/ReduxActionConstants.tsx:1 — app/client/src/ce/constants/ReduxActionConstants.tsx has 1392 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 · app/client/src/widgets/ListWidget/widget/index.tsx · ×1
  • app/client/src/widgets/ListWidget/widget/index.tsx: 1389 lines of code app/client/src/widgets/ListWidget/widget/index.tsx:1 — app/client/src/widgets/ListWidget/widget/index.tsx has 1389 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 · app/client/src/widgets/TableWidget/widget/index.tsx · ×1
  • app/client/src/widgets/TableWidget/widget/index.tsx: 1388 lines of code app/client/src/widgets/TableWidget/widget/index.tsx:1 — app/client/src/widgets/TableWidget/widget/index.tsx has 1388 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: 1340 lines of code REDACTED:1 — REDACTED has 1340 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 · app/client/src/ce/sagas/ApplicationSagas.tsx · ×1
  • app/client/src/ce/sagas/ApplicationSagas.tsx: 1334 lines of code app/client/src/ce/sagas/ApplicationSagas.tsx:1 — app/client/src/ce/sagas/ApplicationSagas.tsx has 1334 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 · app/client/src/widgets/ListWidgetV2/widget/index.tsx · ×1
  • app/client/src/widgets/ListWidgetV2/widget/index.tsx: 1324 lines of code app/client/src/widgets/ListWidgetV2/widget/index.tsx:1 — app/client/src/widgets/ListWidgetV2/widget/index.tsx has 1324 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 · app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx · ×1
  • app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx: 1318 lines of code app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx:1 — app/client/packages/design-system/widgets-old/src/Dropdown/index.tsx has 1318 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 · app/client/src/ce/pages/Applications/index.tsx · ×1
  • app/client/src/ce/pages/Applications/index.tsx: 1318 lines of code app/client/src/ce/pages/Applications/index.tsx:1 — app/client/src/ce/pages/Applications/index.tsx has 1318 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 · app/client/src/pages/AdminSettings/AI/index.tsx · ×1
  • app/client/src/pages/AdminSettings/AI/index.tsx: 1307 lines of code app/client/src/pages/AdminSettings/AI/index.tsx:1 — app/client/src/pages/AdminSettings/AI/index.tsx has 1307 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: 1254 lines of code REDACTED:1 — REDACTED 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 · app/client/src/sagas/GitSyncSagas.ts · ×1
  • app/client/src/sagas/GitSyncSagas.ts: 1253 lines of code app/client/src/sagas/GitSyncSagas.ts:1 — app/client/src/sagas/GitSyncSagas.ts has 1253 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R7 · Dead Code · Dead file (~3016 LoC) · ×1
  • Dead file (~3016 LoC) app/client/src/constants/DefaultTheme.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~1218 LoC) · ×1
  • Dead file (~1218 LoC) app/client/src/constants/ISDCodes.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~1213 LoC) · ×1
  • Dead file (~1213 LoC) app/client/src/constants/ISDCodes_v2.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~965 LoC) · ×1
  • Dead file (~965 LoC) app/client/src/constants/Currency.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~700 LoC) · ×1
  • Dead file (~700 LoC) REDACTED — no import path from any entry point (194 application, 156 tooling, 1765 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 (~425 LoC) · ×1
  • Dead file (~425 LoC) app/client/src/constants/WidgetValidation.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 (~277 LoC) · ×1
  • Dead file (~277 LoC) app/client/src/components/editorComponents/Debugger/EntityDependecies.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~270 LoC) · ×1
  • Dead file (~270 LoC) app/client/packages/mcp/live-harness.mjs — no import path from any entry point (194 application, 156 tooling, 1765 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 (~269 LoC) · ×1
  • Dead file (~269 LoC) app/client/packages/mcp/src/server.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 (~252 LoC) · ×1
  • Dead file (~252 LoC) app/client/src/pages/Editor/QueryEditor/QueryDebuggerTabs.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~242 LoC) · ×1
  • Dead file (~242 LoC) REDACTED — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 3 in-repo import(s) from 2 other file(s) do name it (app/client/src/constants/DefaultTheme.tsx, app/client/src/constants/IconConstants.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~231 LoC) · ×1
  • Dead file (~231 LoC) app/client/packages/rts/src/ctl/move-to-postgres.mjs — no import path from any entry point (194 application, 156 tooling, 1765 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 (~224 LoC) · ×1
  • Dead file (~224 LoC) app/client/src/pages/Editor/Explorer/Files/index.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~220 LoC) · ×1
  • Dead file (~220 LoC) app/client/src/pages/Editor/Explorer/Files/Submenu.tsx — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/pages/Editor/Explorer/Files/index.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~206 LoC) · ×1
  • Dead file (~206 LoC) app/client/src/constants/HelpConstants.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 (~198 LoC) · ×1
  • Dead file (~198 LoC) app/client/src/pages/Editor/Explorer/Actions/MoreActionsMenu.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~175 LoC) · ×1
  • Dead file (~175 LoC) app/client/src/components/editorComponents/EntityExplorerSidebar.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~174 LoC) · ×1
  • Dead file (~174 LoC) app/client/src/pages/Editor/Explorer/JSActions/JSActionContextMenu.tsx — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/pages/Editor/Explorer/JSActions/JSActionEntity.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~163 LoC) · ×1
  • Dead file (~163 LoC) app/client/src/components/common/Collapsible.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~160 LoC) · ×1
  • Dead file (~160 LoC) app/client/src/constants/typography.ts — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 2 in-repo import(s) from 1 other file(s) do name it (app/client/src/constants/DefaultTheme.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~153 LoC) · ×1
  • Dead file (~153 LoC) app/client/src/constants/AppConstants.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 (~138 LoC) · ×1
  • Dead file (~138 LoC) REDACTED — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/Visualization.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~135 LoC) · ×1
  • Dead file (~135 LoC) app/client/src/PluginActionEditor/components/PluginActionResponse/components/ApiFormatSegmentedResponse.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~128 LoC) · ×1
  • Dead file (~128 LoC) app/client/src/PluginActionEditor/components/PluginActionResponse/components/ApiResponseMeta.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~125 LoC) · ×1
  • Dead file (~125 LoC) app/client/src/pages/Editor/Explorer/Actions/ActionEntity.tsx — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/pages/Editor/Explorer/Files/index.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~120 LoC) · ×1
  • Dead file (~120 LoC) app/client/src/constants/AppsmithActionConstants/formConfig/ApiEditorConfigs.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 (~112 LoC) · ×1
  • Dead file (~112 LoC) app/client/src/pages/Editor/Explorer/JSActions/JSActionEntity.tsx — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/pages/Editor/Explorer/Files/index.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~111 LoC) · ×1
  • Dead file (~111 LoC) app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/Visualization.tsx — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/index.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~90 LoC) · ×1
  • Dead file (~90 LoC) app/client/src/api/AppThemingApi.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~88 LoC) · ×1
  • Dead file (~88 LoC) app/client/src/constants/DatasourceEditorConstants.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 (~79 LoC) · ×1
  • Dead file (~79 LoC) app/client/src/utils/hooks/useResize.tsx — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/pages/Editor/Explorer/Common/EntityExplorerResizeHandler.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~77 LoC) · ×1
  • Dead file (~77 LoC) app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/useGenerateVisualization.ts — no import path from any entry point (194 application, 156 tooling, 1765 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (app/client/src/PluginActionEditor/components/PluginActionResponse/components/Visualization/Visualization.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~74 LoC) · ×1
  • Dead file (~74 LoC) app/client/src/constants/Layers.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~68 LoC) · ×1
  • Dead file (~68 LoC) app/client/src/constants/AppsmithActionConstants/formConfig/ApiSettingsConfig.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 (~61 LoC) · ×1
  • Dead file (~61 LoC) app/client/src/pages/Editor/JSEditor/RemoveConfirmBeforeCallingDialog.tsx — no import path from any entry point (194 application, 156 tooling, 1765 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 (~58 LoC) · ×1
  • Dead file (~58 LoC) app/client/src/constants/userConstants.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 (~56 LoC) · ×1
  • Dead file (~56 LoC) app/client/src/constants/SecurityModalConstants.ts — no import path from any entry point (194 application, 156 tooling, 1765 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 · Unlisted import '@radix-ui/react-popper' · ×1
  • Unlisted import '@radix-ui/react-popper' app/client/src/IDE/Components/Nudge/Nudge.tsx:4 — Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
R8 · Dependency Hygiene · Unlisted import 'axe-core' · ×1
  • Unlisted import 'axe-core' app/client/playwright/helpers/a11y.ts:3 — Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
R8 · Dependency Hygiene · Unlisted import 'react-toastify' · ×1
  • Unlisted import 'react-toastify' app/client/src/workers/Evaluation/fns/showAlert.ts:1 — Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
R8 · Dependency Hygiene · Unlisted import '@react-types/slider' · ×1
  • Unlisted import '@react-types/slider' app/client/packages/design-system/ads/src/Slider/Slider.tsx:7 — Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
R8 · Dependency Hygiene · Unused dependency '@react-types/label' · ×1
  • Unused dependency '@react-types/label' — Declared in app/client/packages/design-system/headless/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 'rollup-plugin-copy' · ×1
  • Unused dependency 'rollup-plugin-copy' — Declared in app/client/packages/design-system/widgets/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 · Third-party script without Subresource Integrity · ×1
  • Third-party script without Subresource Integrity app/client/packages/storybook/.storybook/preview-head.html:1 — `https://cdn.jsdelivr.net/npm/container-query-polyfill@1/dist/container-query-polyfill.modern.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.
X1 · Async correctness · `async` callback passed to `forEach` · ×1
  • `async` callback passed to `forEach` app/client/src/components/formControls/MultiFilePickerControl.tsx:197 — `forEach` ignores what its callback returns, so the Promise each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early), and a rejection is never handled — in Node.js an unhandled rejection terminates the process by default, and in a browser it is lost. Iterate with `for (const item of items) { await … }` when the work must run in order, or `await Promise.all(items.map(async (item) => { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape.
X27 · Collection changed while being enumerated · Collection is structurally changed while it is being enumerated · ×1
  • Collection is structurally changed while it is being enumerated app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:233 — `updatedChanges.keySet()` is a live view over `updatedChanges` and shares its modification count, and line 235 calls `updatedChanges.remove(…)` inside the loop body — a structural change to a `HashMap`. The loop's hidden iterator is fail-fast, so its next `next()` throws `ConcurrentModificationException`: every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen.
Minor — 1966 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×1750
  • Orphaned file app/client/src/ce/sagas/DatasourcesSagas.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 app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java: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 app/client/src/constants/DefaultTheme.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 app/client/src/reflow/reflowUtils.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 app/client/src/widgets/TableWidget/widget/propertyConfig.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 app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/CreateDBTablePageSolutionCEImpl.java: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 app/client/src/widgets/JSONFormWidget/schemaTestData.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 app/client/src/sagas/WidgetOperationUtils.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 app/client/packages/design-system/ads/src/Icon/Icon.provider.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 app/server/appsmith-plugins/firestorePlugin/src/main/java/com/external/plugins/FirestorePlugin.java: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 app/client/src/ce/selectors/entitiesSelector.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 app/client/src/widgets/TableWidget/widget/index.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 app/client/src/widgets/ListWidget/widget/index.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 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 app/client/packages/ast/src/actionCreator/index.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 app/client/src/workers/common/DataTreeEvaluator/mockData/NestedArrayAccessorTree.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 app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java: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 app/client/src/utils/autocomplete/CodemirrorTernService.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 app/client/src/sagas/GitSyncSagas.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 app/client/packages/design-system/widgets-old/src/Dropdown/index.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 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 app/client/src/pages/Editor/DataSourceEditor/index.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 app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java: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 app/client/src/pages/Editor/PropertyPane/PropertyControl.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.
  • + 1725 more in this group — see findings.md.
X4 · Structured logging · Interpolated log message defeats structured logging · ×40
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:525 — `error` at line 525 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:543 — `error` at line 543 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java:781 — `error` at line 781 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextServiceCEImpl.java:187 — `info` at line 187 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextServiceCEImpl.java:209 — `debug` at line 209 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceContextServiceCEImpl.java:356 — `debug` at line 356 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:316 — `warn` at line 316 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:336 — `warn` at line 336 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:366 — `warn` at line 366 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:386 — `warn` at line 386 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:449 — `warn` at line 449 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:469 — `warn` at line 469 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:534 — `warn` at line 534 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:592 — `warn` at line 592 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:619 — `warn` at line 619 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:640 — `warn` at line 640 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:732 — `warn` at line 732 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog1.java:775 — `warn` at line 775 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:519 — `warn` at line 519 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java:656 — `warn` at line 656 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration033AddOpenAIPlugin.java:44 — `warn` at line 44 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration035AddAnthropicPlugin.java:43 — `warn` at line 43 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration038AddGoogleAIPlugin.java:43 — `warn` at line 43 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration039AddDatabricksPlugin.java:44 — `warn` at line 44 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/db/ce/Migration040AddAWSLambdaPlugin.java:44 — `warn` at line 44 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • + 15 more in this group — see findings.md.
P2 · Observability · Console output used as the logging channel · ×39
  • Console output used as the logging channel app/client/download-assets.js:23 — `app/client/download-assets.js` reports through `console.*` at line 23 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 app/client/download-assets.js:34 — `app/client/download-assets.js` reports through `console.*` at line 34 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 app/client/download-assets.js:37 — `app/client/download-assets.js` reports through `console.*` at line 37 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 app/client/download-assets.js:44 — `app/client/download-assets.js` reports through `console.*` at line 44 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 app/client/download-assets.js:47 — `app/client/download-assets.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 app/client/src/workers/Evaluation/evaluation.worker.ts:83 — `app/client/src/workers/Evaluation/evaluation.worker.ts` reports through `console.*` at line 83 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 app/client/src/workers/Evaluation/evaluation.worker.ts:90 — `app/client/src/workers/Evaluation/evaluation.worker.ts` reports through `console.*` at line 90 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 app/client/src/workers/Evaluation/handlers/evalTree.ts:282 — `app/client/src/workers/Evaluation/handlers/evalTree.ts` reports through `console.*` at line 282 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 app/client/src/workers/Evaluation/fns/utils/Messenger.ts:48 — `app/client/src/workers/Evaluation/fns/utils/Messenger.ts` 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 app/client/src/workers/Evaluation/fns/utils/Messenger.ts:98 — `app/client/src/workers/Evaluation/fns/utils/Messenger.ts` reports through `console.*` at line 98 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 app/client/src/widgets/TableWidget/widget/derived.js:275 — `app/client/src/widgets/TableWidget/widget/derived.js` reports through `console.*` at line 275 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 app/client/src/widgets/TableWidget/widget/derived.js:509 — `app/client/src/widgets/TableWidget/widget/derived.js` reports through `console.*` at line 509 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 app/client/src/utils/helpers.tsx:470 — `app/client/src/utils/helpers.tsx` reports through `console.*` at line 470 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 app/client/src/utils/helpers.tsx:475 — `app/client/src/utils/helpers.tsx` reports through `console.*` at line 475 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 app/client/src/utils/editor/EditorUtils.ts:13 — `app/client/src/utils/editor/EditorUtils.ts` reports through `console.*` at line 13 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 app/client/src/pages/AdminSettings/FormGroup/ColorInput.tsx:129 — `app/client/src/pages/AdminSettings/FormGroup/ColorInput.tsx` reports through `console.*` at line 129 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 app/client/src/layoutSystems/autolayout/utils/flexWidgetUtils.ts:135 — `app/client/src/layoutSystems/autolayout/utils/flexWidgetUtils.ts` reports through `console.*` at line 135 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 app/client/src/layoutSystems/autolayout/utils/positionUtils.ts:158 — `app/client/src/layoutSystems/autolayout/utils/positionUtils.ts` reports through `console.*` at line 158 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 app/client/src/components/propertyControls/TableCustomSortControl.tsx:183 — `app/client/src/components/propertyControls/TableCustomSortControl.tsx` reports through `console.*` at line 183 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 app/client/src/components/formControls/utils.ts:794 — `app/client/src/components/formControls/utils.ts` reports through `console.*` at line 794 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 app/client/src/components/formControls/DropDownControl/index.tsx:644 — `app/client/src/components/formControls/DropDownControl/index.tsx` reports through `console.*` at line 644 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 app/client/src/components/editorComponents/CodeEditor/index.tsx:1786 — `app/client/src/components/editorComponents/CodeEditor/index.tsx` reports through `console.*` at line 1786 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 app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts:343 — `app/client/src/components/editorComponents/ActionCreator/Field/FieldConfig.ts` reports through `console.*` at line 343 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 app/client/src/api/Api.ts:39 — `app/client/src/api/Api.ts` reports through `console.*` at line 39 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 REDACTED:4168 — `REDACTED` reports through `console.*` at line 4168 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • + 14 more in this group — see findings.md.
D10 · Test Quality · Mock-dominated test · ×28
  • Mock-dominated test: Should dispatch payload return by descriptor app/client/src/workers/Evaluation/fns/utils/__tests__/Promisify.test.ts:40 — This test sets up 3 test doubles (for example `jest.spyOn`) against 0 real object(s) of its own, and its only verification is 4 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: keeps credentials omitted after the Request global is replaced app/client/src/workers/Evaluation/fns/overrides/fetch.test.ts:50 — 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: 1. Success callback should be called when the request is successful app/client/src/workers/Evaluation/fns/__tests__/run.test.ts:44 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 4 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: 2. Error callback should be called when the request is unsuccessful app/client/src/workers/Evaluation/fns/__tests__/run.test.ts:80 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 4 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: 4. Callback should have access to other platform functions and entities at all times app/client/src/workers/Evaluation/fns/__tests__/run.test.ts:133 — This test sets up 3 test doubles (for example `jest.fn`) against 1 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: 2. Should return a promise which rejects when the request is unsuccessful app/client/src/workers/Evaluation/fns/__tests__/run.test.ts:204 — 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 clear previous click listeners when onClick prop changes app/client/src/widgets/MapWidget/component/MapComponent.test.tsx:88 — 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: should setup ResizeObserver on mount app/client/src/widgets/JSONFormWidget/fields/SelectField.test.tsx:154 — 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: calls clearErrors when isValid is true and error is present app/client/src/widgets/JSONFormWidget/fields/useRegisterFieldValidity.test.tsx:39 — This test sets up 4 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: does not call clearErrors when isValid is false app/client/src/widgets/JSONFormWidget/fields/useRegisterFieldValidity.test.tsx:93 — This test sets up 4 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: does not call clearErrors when there is no existing error app/client/src/widgets/JSONFormWidget/fields/useRegisterFieldValidity.test.tsx:145 — This test sets up 4 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: calls setError when isValid is false and error is not present app/client/src/widgets/JSONFormWidget/fields/useRegisterFieldValidity.test.tsx:197 — 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: should update data when input values change app/client/src/widgets/JSONFormWidget/component/Form.test.tsx:127 — This test sets up 6 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: Checks if dynamicBindingPathList contains a property path that doesn't have a binding app/client/src/utils/helpers.test.ts:394 — This test sets up 3 test doubles (for example `jest.spyOn`) 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 handle JS execution errors gracefully and still dispatch SUCCESS app/client/src/sagas/__tests__/onPageUnloadSaga.test.ts:203 — This test sets up 4 test doubles (for example `vi.mock/jest.mock of an imported module`) 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: should handle actual JS execution errors via AppsmithConsole.addErrors app/client/src/sagas/__tests__/onPageUnloadSaga.test.ts:247 — This test sets up 4 test doubles (for example `jest .fn`) against 0 real object(s) of its own, and its only verification is 4 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 copy and paste all selected widgets with hotkey cmd + c and cmd + v app/client/src/pages/Editor/GlobalHotKeys/GlobalHotKeys.test.tsx:253 — 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 4 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 cut and paste all selected widgets with hotkey cmd + x and cmd + v app/client/src/pages/Editor/GlobalHotKeys/GlobalHotKeys.test.tsx:352 — 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 acquire the mutex, fetch the request, cache the response, and release the mutex app/client/src/ce/utils/serviceWorkerUtils.test.ts:571 — This test sets up 3 test doubles (for example `jest.spyOn`) against 2 real object(s) of its own, and its only verification is 4 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 delete the cache and release the mutex if fetch fails app/client/src/ce/utils/serviceWorkerUtils.test.ts:603 — This test sets up 3 test doubles (for example `jest.spyOn`) against 2 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 dispatch changeApi when plugin type is API app/client/src/PluginActionEditor/components/PluginActionForm/hooks/useChangeActionCall.test.tsx:35 — This test sets up 3 test doubles (for example `vi.mock/jest.mock of an imported module`) 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 dispatch changeQuery when plugin type is not API app/client/src/PluginActionEditor/components/PluginActionForm/hooks/useChangeActionCall.test.tsx:53 — This test sets up 3 test doubles (for example `vi.mock/jest.mock of an imported module`) 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 not dispatch any action if the action Id has not changed app/client/src/PluginActionEditor/components/PluginActionForm/hooks/useChangeActionCall.test.tsx:109 — This test sets up 3 test doubles (for example `vi.mock/jest.mock of an imported module`) 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: handle valid name save on Enter key app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.test.tsx:62 — This test sets up 4 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: handle invalid name save on Enter key app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.test.tsx:94 — This test sets up 4 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.
  • + 3 more in this group — see findings.md.
AX6 · Interface segregation · Fat interface · ×26
  • Fat interface: CoreAppsmithApi (39 required operations) app/client/packages/mcp/src/app.ts:433 — `CoreAppsmithApi` declares 39 required operations: `getApplicationContext`, `listApplications`, `listWorkspaces`, `importApplicationArtifact`, `importPartialApplicationArtifact`, `updateLayout`, `listDatasources`, `createDatasource`, `getDatasourceStructure`, `triggerDatasource`, `getApplicationPages`, `getPage`, `getApplication`, `getGitStatus`, `getGitProtectedBranches`, `listGitBranches`, `createGitBranch`, `checkoutGitBranch`, `commitGitApplication`, `listActions`, `createAction`, `setActionRunBehaviour`, `getAction`, `updateAction`, `deleteAction`, `executeAction`, `getCurrentTheme`, `updateTheme`, `createPage`, `updatePage`, `deletePage`, `publishApplication`, `listPlugins`, `listActionCollections`, `createActionCollection`, `updateActionCollection`, `updateActionCollectionBody`, `deleteActionCollection`, `validateToken`. 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.
  • Fat interface: TableProps (17 required operations) app/client/src/widgets/TableWidgetV2/component/types.ts:12 — `TableProps` declares 17 required operations: `sortTableColumn`, `handleResizeColumn`, `handleReorderColumn`, `selectTableRow`, `updatePageNo`, `nextPageClick`, `prevPageClick`, `disableDrag`, `enableDrag`, `toggleAllRowSelect`, `searchTableData`, `applyFilter`, `onBulkEditDiscard`, `onBulkEditSave`, `onAddNewRow`, `onAddNewRowAction`, `onConnectData`. 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.
  • Fat interface: TableProps (16 required operations) app/client/src/widgets/wds/WDSTableWidget/component/Table.tsx:31 — `TableProps` declares 16 required operations: `sortTableColumn`, `handleResizeColumn`, `handleReorderColumn`, `selectTableRow`, `updatePageNo`, `nextPageClick`, `prevPageClick`, `disableDrag`, `enableDrag`, `toggleAllRowSelect`, `onSearch`, `onBulkEditDiscard`, `onBulkEditSave`, `onAddNewRow`, `onAddNewRowAction`, `onConnectData`. 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.
  • Fat interface: ActionCollectionServiceCE (31 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCE.java:19 — `ActionCollectionServiceCE` declares 31 abstract methods: `archiveActionCollectionByApplicationId`, `archiveById`, `bulkUpdateActionCollections`, `bulkValidateAndInsertActionCollectionInRepository`, `bulkValidateAndUpdateActionCollectionInRepository`, `deleteUnpublishedActionCollection`, `deleteUnpublishedActionCollection`, `deleteWithoutPermissionUnpublishedActionCollection`, `findActionCollectionDTObyIdAndViewMode`, `findAllActionCollectionsByContextIdAndContextTypeAndViewMode`, `findAllByApplicationIdAndViewMode`, `findAllByIds`, `findByArtifactIdAndArtifactType`, `findById`, `findByPageId`, `findByPageIdsForExport`, `generateActionCollectionByViewMode`, `generateActionCollectionViewDTO`, `generateAndSetPolicies`, `getActionCollectionsForViewMode`, `getActionCollectionsForViewMode`, `getCollectionsByPageIdAndViewMode`, `getNonComposedActionCollectionsByViewMode`, `getPopulatedActionCollectionsByViewMode`, `populateActionCollectionByViewMode`, `save`, `saveAll`, `saveLastEditInformationInParent`, `splitValidActionsByViewMode`, `update`, `validateAndSaveCollection`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 31 declarations carry 29 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 29 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: ApplicationPageServiceCE (25 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ApplicationPageServiceCE.java:14 — `ApplicationPageServiceCE` declares 25 abstract methods: `addPageToApplication`, `cloneApplication`, `clonePage`, `createApplication`, `createApplication`, `createOrUpdateSuffixedApplication`, `createPage`, `deleteApplication`, `deleteApplicationByResource`, `deleteUnpublishedPage`, `deleteUnpublishedPage`, `generateAndSetPagePolicies`, `getEvaluationVersion`, `getPage`, `getPage`, `getPageAndMigrateDslByBranchAndBasePageId`, `getPageAndMigrateDslByBranchedPageId`, `getPageDTOAfterMigratingDSL`, `getPagesBasedOnApplicationMode`, `makePageDefault`, `makePageDefault`, `publish`, `publishWithoutPermissionChecks`, `reorderPage`, `setApplicationPolicies`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 25 declarations carry 21 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 21 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: GitArtifactHelperCE<T> (31 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitArtifactHelperCE.java:15 — `GitArtifactHelperCE<T>` declares 31 abstract methods: `createArtifactForImport`, `createNewArtifactForCheckout`, `createNewArtifactForCheckout`, `deleteAllBranches`, `deleteArtifact`, `deleteArtifactByResource`, `disconnectEntitiesOfBaseArtifact`, `getAllArtifactByBaseId`, `getArtifactAutoCommitPermission`, `getArtifactByBaseIdAndBranchName`, `getArtifactById`, `getArtifactEditPermission`, `getArtifactGitConnectPermission`, `getArtifactManageDefaultBranchPermission`, `getArtifactManageProtectedBranchPermission`, `getArtifactReadPermission`, `getNewArtifact`, `getRepoSuffixPath`, `getSshKeys`, `getWorkspaceArtifactCreationPermission`, `intialiseReadMe`, `isContextInArtifactEmpty`, `isPrivateRepoLimitReached`, `publishArtifact`, `publishArtifactPostCommit`, `publishArtifactPostRefCreation`, `resetAttributeInBaseArtifact`, `saveArtifact`, `updateArtifactWithProtectedBranches`, `updateArtifactWithSchemaVersions`, `validateAndPublishArtifact`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 31 declarations carry 30 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 30 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: PermissionGroupServiceCE (26 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCE.java:15 — `PermissionGroupServiceCE` declares 26 abstract methods: `assignToUser`, `assignToUserAndSendEvent`, `bulkAssignToUserAndSendEvent`, `bulkAssignToUsers`, `bulkAssignToUsers`, `bulkUnAssignFromUserAndSendEvent`, `bulkUnassignFromUsers`, `bulkUnassignFromUsers`, `bulkUnassignUsersFromPermissionGroupsWithoutPermission`, `cleanPermissionGroupCacheForUsers`, `delete`, `deleteWithoutPermission`, `findAllByIds`, `findById`, `getAllByAssignedToUserAndDefaultWorkspace`, `getByDefaultWorkspace`, `getByDefaultWorkspaces`, `getById`, `getPublicPermissionGroup`, `getPublicPermissionGroupId`, `getSessionUserPermissionGroupIds`, `isEntityAccessible`, `leaveExplicitlyAssignedSelfRole`, `save`, `unAssignFromUserAndSendEvent`, `unassignFromUser`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 26 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 24 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: UserDataServiceCE (22 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserDataServiceCE.java:16 — `UserDataServiceCE` declares 22 abstract methods: `deleteProfilePhoto`, `ensureViewedCurrentVersionReleaseNotes`, `getFavoriteApplications`, `getFeatureFlagsForCurrentUser`, `getForCurrentUser`, `getForUser`, `getForUser`, `getForUserEmail`, `getGitProfileForCurrentUser`, `getProfilePhotoAssetIdsForUserIds`, `makeProfilePhotoResponse`, `makeProfilePhotoResponse`, `removeApplicationFromAllFavorites`, `removeRecentWorkspaceAndChildEntities`, `saveProfilePhoto`, `setViewedCurrentVersionReleaseNotes`, `setViewedCurrentVersionReleaseNotes`, `toggleFavoriteApplication`, `update`, `updateForCurrentUser`, `updateForUser`, `updateLastUsedResourceAndWorkspaceList`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 22 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: UserServiceCE (18 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserServiceCE.java:18 — `UserServiceCE` declares 18 abstract methods: `buildUserProfileDTO`, `claimSuperUserCreationSlot`, `createUser`, `findByEmail`, `findByEmailAndOrganizationId`, `forgotPasswordTokenGenerate`, `getAllByEmails`, `isUsersEmpty`, `releaseSuperUserCreationSlot`, `resendEmailVerification`, `resetPasswordAfterForgotPassword`, `signupIfAllowed`, `updateCurrentUser`, `updateWithoutPermission`, `updateWithoutPermission`, `userCreate`, `verifyEmailVerificationToken`, `verifyPasswordResetToken`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 18 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: WorkspaceServiceCE (16 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/WorkspaceServiceCE.java:15 — `WorkspaceServiceCE` declares 16 abstract methods under just 14 distinct name(s): `archiveById`, `create`, `create`, `createDefault`, `deleteLogo`, `findById`, `findByIdAndPluginsPluginId`, `findByIdsIn`, `getAll`, `getAll`, `getById`, `getDefaultEnvironmentId`, `getPermissionGroupsForWorkspace`, `retrieveAll`, `save`, `uploadLogo`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
  • Fat interface: ApplicationServiceCE (41 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCE.java:18 — `ApplicationServiceCE` declares 41 abstract methods: `archive`, `changeViewAccessForAllBranchesByBranchedApplicationId`, `changeViewAccessForSingleBranchByBranchedApplicationId`, `createBaseApplication`, `deleteAppNavigationLogo`, `findAllApplicationsByBaseApplicationId`, `findAllApplicationsByWorkspaceId`, `findAllBranchedApplicationIdsByBranchedApplicationId`, `findBranchedApplicationId`, `findBranchedApplicationId`, `findBranchedApplicationIdsByBaseApplicationId`, `findByBaseIdBranchNameAndApplicationMode`, `findByBranchNameAndBaseApplicationId`, `findByBranchNameAndBaseApplicationId`, `findByBranchedApplicationIdAndApplicationMode`, `findByBranchedId`, `findById`, `findById`, `findByIdAndExportWithConfiguration`, `findByUniqueAppName`, `findByUniqueAppNameRefNameAndApplicationMode`, `findByWorkspaceId`, `findByWorkspaceIdAndBaseApplicationsForHome`, `findByWorkspaceIdAndBaseApplicationsInAlphabeticalOrder`, `findByWorkspaceIdAndBaseApplicationsInRecentlyUsedOrder`, `getApplicationByBaseApplicationIdAndDefaultBranch`, `getApplicationInViewMode`, `getById`, `getGitConnectedApplicationsCountWithPrivateRepoByWorkspaceId`, `getRandomAppCardColor`, `getSshKey`, `isApplicationConnectedToGit`, `isApplicationNameTaken`, `save`, `saveAppNavigationLogo`, `saveLastEditInformation`, `setAppTheme`, `setTransientFields`, `updateApplicationWithPresets`, `updateByBranchedIdAndFieldsMap`, and 1 more. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 41 declarations carry 38 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 38 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: DatasourceServiceCE (27 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/datasources/base/DatasourceServiceCE.java:18 — `DatasourceServiceCE` declares 27 abstract methods: `archiveById`, `blockEndpointForConnectionRequest`, `consumeTokenIfAvailable`, `create`, `createDatasourceFromDatasourceStorage`, `createWithoutDeprecationCheck`, `createWithoutPermissions`, `createWithoutPermissions`, `extractKeysFromDatasource`, `findById`, `findById`, `findByIdAndEnvironmentId`, `findByIdWithStorages`, `findByNameAndWorkspaceId`, `getAllByWorkspaceIdWithStorages`, `getAllWithStorages`, `getRateLimitIdentifier`, `getTrueEnvironmentId`, `getTrueEnvironmentId`, `isEndpointBlockedForConnectionRequest`, `save`, `saveAll`, `testDatasource`, `updateDatasource`, `updateDatasourceStorage`, `validateDatasource`, `validateNewQueryCreationAllowed`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 27 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 24 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: ArtifactExchangeJsonCE (19 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/ce/ArtifactExchangeJsonCE.java:19 — `ArtifactExchangeJsonCE` declares 19 abstract methods: `getActionCollectionList`, `getActionList`, `getArtifact`, `getArtifactJsonType`, `getClientSchemaVersion`, `getContextList`, `getDatasourceList`, `getDecryptedFields`, `getModifiedResources`, `getServerSchemaVersion`, `setActionCollectionList`, `setActionList`, `setArtifact`, `setClientSchemaVersion`, `setContextList`, `setDatasourceList`, `setDecryptedFields`, `setModifiedResources`, `setServerSchemaVersion`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants 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.
  • Fat interface: DatasourceStorageServiceCE (27 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/datasourcestorages/base/DatasourceStorageServiceCE.java:15 — `DatasourceStorageServiceCE` declares 27 abstract methods: `archive`, `bindStoredCredentials`, `checkEnvironment`, `create`, `create`, `createDatasourceStorageDTOFromDatasourceStorage`, `createDatasourceStorageFromDatasource`, `createDatasourceStorageFromDatasourceStorageDTO`, `findByDatasource`, `findByDatasourceAndEnvironmentId`, `findByDatasourceAndEnvironmentIdForExecution`, `findStrictlyByDatasourceId`, `findStrictlyByDatasourceIdAndEnvironmentId`, `getAnalyticsProperties`, `getBindingTokensForDatasourceStorages`, `getDatasourceStorageDTOFromDatasource`, `getDatasourceStorageFromDatasource`, `getEnvironmentNameFromEnvironmentIdForAnalytics`, `mergeStoredCredentialsIfConnectionUnchanged`, `populateHintMessages`, `populateHintMessages`, `save`, `saveAll`, `updateDatasourceStorage`, `updateDatasourceStorage`, `validateDatasourceConfiguration`, `validateDatasourceStorage`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 27 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 24 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: CentralGitServiceCE (24 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCE.java:24 — `CentralGitServiceCE` declares 24 abstract methods: `checkoutReference`, `commitArtifact`, `connectArtifactToGit`, `createReference`, `deleteGitReference`, `detachRemote`, `discardChanges`, `discardChanges`, `fetchRemoteChanges`, `fetchRemoteChanges`, `generateSSHKey`, `getAutoCommitProgress`, `getCommitHistory`, `getGitArtifactMetadata`, `getGitDocUrls`, `getProtectedBranches`, `getStatus`, `importArtifactFromGit`, `isBranchMergable`, `listBranchForArtifact`, `mergeBranch`, `pullArtifact`, `toggleAutoCommitEnabled`, `updateProtectedBranches`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 24 declarations carry 22 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 22 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: GitHandlingServiceCE (39 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/GitHandlingServiceCE.java:25 — `GitHandlingServiceCE` declares 39 abstract methods: `checkoutArtifact`, `checkoutRemoteReference`, `commitArtifact`, `createFirstCommit`, `createGitReference`, `deleteGitReference`, `fetchRemoteReferences`, `fetchRemoteReferences`, `fetchRemoteRepository`, `fetchRemoteRepository`, `getBranchTrackingStatus`, `getCommitHistory`, `getDefaultBranchFromRepository`, `getGitAuthForUser`, `getGitAuthForUser`, `getRepoName`, `getStatus`, `initialiseReadMe`, `isBranchMergable`, `isGitAuthInvalid`, `isRepoPrivate`, `isRepoPrivate`, `listBranches`, `listBranches`, `listReferences`, `mergeBranches`, `obtainArtifactTypeAndIdentifierFromGitRepository`, `obtainArtifactTypeFromGitRepository`, `prepareChangesToBeCommitted`, `pullArtifact`, `reconstructArtifactJsonFromGitRepository`, `recreateArtifactJsonFromLastCommit`, `removeDanglingLocks`, `removeRepository`, `removeRepository`, `setRepositoryDetailsInGitArtifactMetadata`, `updateImportedRepositoryDetails`, `validateEmptyRepository`, `validateGitConnectDTO`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 39 declarations carry 33 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 33 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: ArtifactBasedImportServiceCE<T, U, V> (23 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/imports/internal/artifactbased/ArtifactBasedImportServiceCE.java:19 — `ArtifactBasedImportServiceCE<T, U, V>` declares 23 abstract methods: `createImportAnalyticsData`, `generateArtifactContextDependentImportableEntities`, `generateArtifactContextIndependentImportableEntities`, `generateArtifactSpecificImportableEntities`, `getArtifactSpecificConstantsMap`, `getBranchedArtifactIdsByBranchedArtifactId`, `getDatasourceIdSetConsumedInArtifact`, `getImportArtifactPermissionProviderForConnectingToGit`, `getImportArtifactPermissionProviderForImportingArtifact`, `getImportArtifactPermissionProviderForMergingJsonWithArtifact`, `getImportArtifactPermissionProviderForRestoringSnapshot`, `getImportArtifactPermissionProviderForUpdatingArtifact`, `getImportableArtifactDTO`, `getImportedArtifactFromDatabase`, `isArtifactConnectedToGit`, `migrateArtifactExchangeJson`, `postImportHook`, `setJsonArtifactNameToNullBeforeUpdate`, `syncClientAndSchemaVersion`, `updateAndSaveArtifactInContext`, `updateImportableArtifact`, `updateImportableEntities`, `validateArtifactSpecificFields`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants 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.
  • Fat interface: NewActionServiceCE (58 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCE.java:25 — `NewActionServiceCE` declares 58 abstract methods: `archive`, `archiveActionsByApplicationId`, `archiveById`, `archiveGivenNewAction`, `bulkInsertActions`, `bulkUpdateActions`, `bulkValidateAndInsertActionInRepository`, `bulkValidateAndUpdateActionInRepository`, `countActionsByPluginType`, `deleteGivenNewAction`, `deleteUnpublishedAction`, `deleteUnpublishedAction`, `extractAndSetJsonPathKeys`, `fillSelfReferencingDataPaths`, `findActionDTObyIdAndViewMode`, `findAllActionsByContextIdAndContextTypeAndViewMode`, `findAllByApplicationIdAndViewMode`, `findAllByApplicationIdAndViewMode`, `findAllById`, `findByCollectionIdAndViewMode`, `findById`, `findById`, `findByPageId`, `findByPageId`, `findByPageId`, `findByPageIdAndViewMode`, `findByPageIdsForExport`, `findByUnpublishedNameAndPageId`, `findUnpublishedOnLoadActionsExplicitSetByUserInPage`, `generateActionByViewMode`, `generateActionDomain`, `generateActionViewDTO`, `generateAndSetActionPolicies`, `getActionsForViewMode`, `getActionsForViewModeByPageId`, `getAnalyticsProperties`, `getUnpublishedActions`, `getUnpublishedActions`, `getUnpublishedActions`, `getUnpublishedActions`, and 18 more. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 58 declarations carry 49 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 49 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: NewPageServiceCE (37 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/newpages/base/NewPageServiceCE.java:19 — `NewPageServiceCE` declares 37 abstract methods: `archive`, `archiveById`, `archiveByIdWithoutPermission`, `archiveByIds`, `archivePagesByApplicationId`, `createApplicationPagesDTO`, `createDefault`, `createDefaultLayout`, `deleteAll`, `findAllByApplicationIds`, `findApplicationPages`, `findApplicationPagesByBranchedApplicationIdAndViewMode`, `findByApplicationId`, `findByApplicationIdAndApplicationMode`, `findByApplicationIdAndPageSlug`, `findByApplicationIdAndUniquePageSlug`, `findByBasePageId`, `findById`, `findByIdAndApplicationMode`, `findByIdAndLayoutsId`, `findByNameAndApplicationIdAndViewMode`, `findByNameAndViewMode`, `findByRefTypeAndRefNameAndBasePageId`, `findByRefTypeAndRefNameAndBasePageIdAndApplicationMode`, `findNewPagesByApplicationId`, `findNewPagesByApplicationId`, `findPageById`, `findRefPageId`, `getApplicationPagesDTO`, `getNameByPageId`, `getPageByViewMode`, `publishPages`, `save`, `saveAll`, `saveUnpublishedPage`, `updateDependencyMap`, `updatePage`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 37 declarations carry 36 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 36 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: PluginServiceCE (19 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/plugins/base/PluginServiceCE.java:16 — `PluginServiceCE` declares 19 abstract methods: `findAllByIdsWithoutPermission`, `findAllPluginsInWorkspace`, `findById`, `findByName`, `findByPackageName`, `getAllRemotePlugins`, `getDefaultPluginIcons`, `getDefaultPlugins`, `getEditorConfigLabelMap`, `getFormConfig`, `getInWorkspace`, `getPluginName`, `getPluginsByType`, `getUpcomingIntegrations`, `installDefaultPlugins`, `installPlugin`, `loadEditorPluginResourceUqi`, `loadPluginResource`, `saveAll`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants 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.
  • Fat interface: CustomApplicationRepositoryCE (33 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomApplicationRepositoryCE.java:15 — `CustomApplicationRepositoryCE` declares 33 abstract methods: `addPageToApplication`, `countByDeletedAtNull`, `countByNameAndWorkspaceId`, `countByWorkspaceId`, `findAllBranchedApplicationIdsByBranchedApplicationId`, `findAllUserApps`, `findBranchedApplicationIdsByBaseApplicationId`, `findByClonedFromApplicationId`, `findByClonedFromApplicationId`, `findByIdAndExportWithConfiguration`, `findByIdAndWorkspaceId`, `findByIdIn`, `findByMultipleWorkspaceIds`, `findByName`, `findByUniqueAppName`, `findByUniqueAppSlugRefName`, `findByWorkspaceId`, `findByWorkspaceId`, `getAllApplicationIdsInWorkspaceAccessibleToARoleWithPermission`, `getAllApplicationsCountAccessibleToARoleWithPermission`, `getApplicationByBaseApplicationIdAndDefaultBranch`, `getApplicationByGitBaseApplicationId`, `getApplicationByGitBranchAndBaseApplicationId`, `getApplicationByGitBranchAndBaseApplicationId`, `getApplicationByGitBranchAndBaseApplicationId`, `getGitConnectedApplicationByWorkspaceId`, `getGitConnectedApplicationWithPrivateRepoCount`, `protectBranchedApplications`, `setAppTheme`, `setDefaultPage`, `setPages`, `unprotectAllBranches`, `updateFieldById`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 33 declarations carry 29 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 29 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: CustomNewActionRepositoryCE (30 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewActionRepositoryCE.java:16 — `CustomNewActionRepositoryCE` declares 30 abstract methods: `archiveDeletedUnpublishedActions`, `countActionsByPluginType`, `countByDatasourceId`, `countByDeletedAtNull`, `findAllActionsByNameAndPageIdsAndViewMode`, `findAllByApplicationIds`, `findAllByApplicationIdsWithoutPermission`, `findAllByCollectionIds`, `findAllByIdIn`, `findAllNonJsActionsByNameAndPageIdsAndViewMode`, `findAllPublishedActionsByContextIdAndContextType`, `findAllUnpublishedActionsByContextIdAndContextType`, `findByApplicationId`, `findByApplicationId`, `findByApplicationId`, `findByApplicationId`, `findByApplicationIdAndViewMode`, `findByPageId`, `findByPageId`, `findByPageId`, `findByPageIdAndViewMode`, `findByPageIds`, `findByPageIds`, `findByUnpublishedNameAndPageId`, `findNonJsActionsByApplicationIdAndViewMode`, `findPublishedActionsByAppIdAndExcludedPluginType`, `findPublishedActionsByPageIdAndExcludedPluginType`, `findUnpublishedActionsByNameInAndPageId`, `findUnpublishedActionsByPageIdAndRunbehaviourSetByUserOnPageLoad`, `publishActions`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 30 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 24 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: CustomNewPageRepositoryCE (19 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomNewPageRepositoryCE.java:14 — `CustomNewPageRepositoryCE` declares 19 abstract methods: `countByDeletedAtNull`, `findAllByApplicationIds`, `findAllByApplicationIdsWithoutPermission`, `findAllPageDTOsByIds`, `findByApplicationId`, `findByApplicationId`, `findByApplicationId`, `findByApplicationIdAndNonDeletedEditMode`, `findByApplicationIdAndPageSlug`, `findByBasePageId`, `findById`, `findByIdAndLayoutsIdAndViewMode`, `findByNameAndApplicationIdAndViewMode`, `findByNameAndViewMode`, `findByUniquePageSlug`, `findPageByRefTypeAndRefNameAndBasePageId`, `getNameByPageId`, `publishPages`, `updateDependencyMap`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 19 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: ThemeServiceCE (21 abstract methods) app/server/appsmith-server/src/main/java/com/appsmith/server/themes/base/ThemeServiceCE.java:11 — `ThemeServiceCE` declares 21 abstract methods: `archiveApplicationThemes`, `archiveById`, `changeCurrentTheme`, `cloneThemeToApplication`, `getApplicationTheme`, `getApplicationTheme`, `getApplicationTheme`, `getApplicationThemes`, `getApplicationThemes`, `getApplicationThemes`, `getDefaultThemeId`, `getOrSaveTheme`, `getOrSaveTheme`, `getSystemTheme`, `getSystemThemes`, `getThemeById`, `persistCurrentTheme`, `publishTheme`, `save`, `updateName`, `updateTheme`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 21 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 16 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • Fat interface: FSGitHandler (31 abstract methods) app/server/appsmith-interfaces/src/main/java/com/appsmith/external/git/handler/FSGitHandler.java:20 — `FSGitHandler` declares 31 abstract methods: `checkoutRemoteBranch`, `checkoutTag`, `checkoutToBranch`, `cloneRemoteIntoArtifactRepo`, `commitArtifact`, `createAndCheckoutReference`, `createAndCheckoutToBranch`, `createNewRepository`, `createRepoPath`, `deleteBranch`, `fetchRemote`, `fetchRemote`, `getBranchTrackingStatus`, `getCommitHistory`, `getLastCommitDetails`, `getRemoteDefaultBranch`, `getStatus`, `isMergeBranch`, `listBranches`, `listTags`, `mergeBranch`, `mergeBranch`, `pullApplication`, `pullArtifactWithoutCheckout`, `pushArtifact`, `pushArtifact`, `rebaseBranch`, `resetHard`, `resetToLastCommit`, `resetToLastCommit`, `testConnection`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 31 declarations carry 27 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 27 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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.
  • + 1 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×25
  • Duplicated predicate app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java:218 — `!GitUtils.isArtifactConnectedToGit(application.getGitArtifactMetadata()) || GitUtils.isDefaultBranchedArtifact(application.getGitArtifactMet…` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/applications/base/ApplicationServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/searchentities/SearchEntitySolutionCEImpl.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java:179 — `!branchedArtifactId.equals(importingMetaDTO.getArtifactId()) && !branchedArtifactId.equals(artifact.getId())` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/importable/ActionCollectionImportableServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/NewActionImportableServiceCEImpl.java. 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 app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java:123 — `"text".equals(type) || "varchar".equals(type)` appears character-identically in 3 files — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlGetStructureUtils.java, app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java, app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java. 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 app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/BooleanType.java:9 — `"true".equalsIgnoreCase(s) || "false".equalsIgnoreCase(s)` appears character-identically in 2 files — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/datatypes/BooleanType.java, app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/plugins/datatypes/MySQLBooleanType.java. 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 app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java:433 — `(e instanceof SQLException) && e.getMessage().contains("The column index is out of range:")` appears character-identically in 2 files — app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/OraclePlugin.java, app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java. 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 app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java:122 — `HttpHeaders.CONTENT_TYPE.equalsIgnoreCase(header) && MULTIPART_FORM_DATA_VALUE.equalsIgnoreCase(value.get(0))` appears character-identically in 2 files — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/RequestCaptureFilter.java, app/server/appsmith-plugins/saasPlugin/src/main/java/com/external/helpers/RequestCaptureFilter.java. 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 REDACTED:301 — `SSHUtils.isSSHEnabled(datasourceConfiguration, CONNECTION_METHOD_INDEX) && sshProxy != null && !isBlank(sshProxy.getHost())` appears character-identically in 2 files — REDACTED, app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java. 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 app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java:113 — `TIME_TYPE_NAME.equalsIgnoreCase(typeName) || TIMETZ_TYPE_NAME.equalsIgnoreCase(typeName)` appears character-identically in 2 files — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlExecuteUtils.java, app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java:759 — `action.getPageId() == null || action.getPageId().isBlank()` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/helpers/NewActionHelperCE.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1241 — `action.getUnpublishedAction() == null || action.getUnpublishedAction().getDatasource() == null` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java, app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/utils/ce/JsonSchemaMigrationHelperCE.java. 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 app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java:90 — `apiKeyAuth == null || !StringUtils.hasText(apiKeyAuth.getValue())` appears character-identically in 3 files — app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java, app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/GoogleAiPlugin.java, app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java:173 — `applicationId == null || applicationId.isEmpty()` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java:116 — `assignedToUserIds == null || assignedToUserIds.isEmpty()` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/PermissionGroupServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/UserWorkspaceServiceCEImpl.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/ReleaseNotesUtilsCEImpl.java:38 — `cacheExpiryTime != null && Instant.now().isBefore(cacheExpiryTime)` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/ReleaseNotesUtilsCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/MockDataServiceCEImpl.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java:1262 — `certainCheckForDefaultRestDatasource || probableCheckForDefaultRestDatasource` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/MigrationHelperMethods.java, app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/utils/ce/JsonSchemaMigrationHelperCE.java. 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 app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java:312 — `connectionPool == null || connectionPool.isClosed() || !connectionPool.isRunning()` appears character-identically in 5 files — app/server/appsmith-plugins/mssqlPlugin/src/main/java/com/external/plugins/utils/MssqlDatasourceUtils.java, app/server/appsmith-plugins/oraclePlugin/src/main/java/com/external/plugins/utils/OracleDatasourceUtils.java, app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/utils/PostgresDatasourceUtils.java, app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/utils/RedshiftDatasourceUtils.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/imports/internal/ImportServiceCEImpl.java:105 — `contentType == null || !ALLOWED_CONTENT_TYPES.contains(contentType)` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/imports/internal/ImportServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AssetServiceCEImpl.java. 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 app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java:113 — `copyInput.equals("true") || copyInput.equals("false")` appears character-identically in 2 files — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/DataTypeStringUtils.java, app/server/appsmith-plugins/graphqlPlugin/src/main/java/com/external/utils/GraphQLDataTypeUtils.java. 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 app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java:77 — `datasourceConfiguration == null || datasourceConfiguration.getAuthentication() == null` appears character-identically in 3 files — app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/connections/OAuth2AuthorizationCode.java, app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/restApiUtils/helpers/HintMessageUtils.java, app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java. 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 REDACTED:402 — `datasourceConfiguration.getConnection() != null && datasourceConfiguration.getConnection().getMode() == null` appears character-identically in 4 files — REDACTED, app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java, app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java, app/server/appsmith-plugins/redshiftPlugin/src/main/java/com/external/plugins/RedshiftPlugin.java. 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 app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java:915 — `datasourceConfiguration.getConnection() == null || datasourceConfiguration.getConnection().getSsl() == null || datasourceConfiguration.getCo…` appears character-identically in 7 files — app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/MongoPlugin.java, app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/utils/DatasourceUtils.java, REDACTED, app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java. 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 app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:227 — `datasourceConfiguration.getSshProxy() == null || isBlank(datasourceConfiguration.getSshProxy().getHost())` appears character-identically in 2 files — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java, app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java. 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 app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java:241 — `datasourceConfiguration.getSshProxy().getPrivateKey() == null || datasourceConfiguration.getSshProxy().getPrivateKey().getKeyFile() == null …` appears character-identically in 2 files — app/server/appsmith-plugins/mysqlPlugin/src/main/java/com/external/utils/MySqlDatasourceUtils.java, app/server/appsmith-plugins/postgresPlugin/src/main/java/com/external/plugins/PostgresPlugin.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:254 — `deploymentName == null || deploymentName.trim().isEmpty()` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java. 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 app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java:239 — `endpoint == null || endpoint.trim().isEmpty()` appears character-identically in 2 files — app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIAssistantServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java. 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.
X7 · Silent fallback defaults · Silent fallback default in catch · ×10
  • Silent fallback default in catch app/client/packages/ast/src/index.ts:1114 — `getMemberExpressionObjectFromProperty` 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.
  • Silent fallback default in catch app/client/packages/ast/src/actionCreator/index.ts:881 — `getFunctionBodyStatements` 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.
  • Silent fallback default in catch app/client/packages/ast/src/actionCreator/index.ts:1268 — `getFunctionArguments` 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.
  • Silent fallback default in catch app/client/packages/ast/src/actionCreator/index.ts:1422 — `getFunctionParams` 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.
  • Silent fallback default in catch app/client/packages/ast/src/actionCreator/index.ts:1460 — `getQueryParam` 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.
  • Silent fallback default in catch app/client/packages/ast/src/actionCreator/index.ts:1540 — `checkIfThenBlockExists` swallows every exception into `return false` — 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.
  • Silent fallback default in catch app/client/packages/ast/src/actionCreator/index.ts:1578 — `checkIfCatchBlockExists` swallows every exception into `return false` — 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.
  • Silent fallback default in catch REDACTED:274 — `getLastBackupErrorMailSentInMilliSec` swallows every exception into `return 0` — 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.
  • Silent fallback default in catch app/client/src/plugins/Linting/utils/sortDependencies.ts:18 — `sortDependencies` 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.
  • Silent fallback default in catch app/client/src/utils/multiOrgDomains.ts:37 — `getStoredDomains` 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.
GD1 · Unfinished & placeholder code · Placeholder literal left in code · ×9
  • Placeholder literal left in code app/client/packages/design-system/widgets/src/components/Modal/stories/CustomModal.tsx:20 — A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code app/client/packages/design-system/widgets/src/components/Modal/stories/ModalExamples.tsx:63 — A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code app/client/packages/design-system/widgets/src/components/Modal/stories/ModalExamples.tsx:114 — A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code app/client/packages/design-system/widgets/src/components/Modal/stories/ModalExamples.tsx:133 — A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code app/client/packages/design-system/widgets/src/components/Modal/stories/SimpleModal.tsx:34 — A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:43 — A placeholder string ("Lorem ipsum") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code app/client/packages/design-system/widgets/src/testing/CompareTokens.tsx:101 — A placeholder string ("Lorem ipsum") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code app/client/src/pages/AdminSettings/Branding/previews/EmailPreview.tsx:31 — A placeholder string ("Lorem ipsum dolor sit amet consectetur, …") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code app/client/src/widgets/ListWidget/widget/index.tsx:1466 — A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in.
D16 · Bus Factor · Off-boarding risk · ×4
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 12 significant file(s) lose their only recent owner: app/client/src/constants/ISDCodes_v2.tsx, app/client/src/widgets/ListWidgetV2/widget/defaultProps.ts, app/client/src/widgets/ListWidgetV2/widget/propertyConfig.ts, app/client/src/widgets/TableWidgetV2/component/cellComponents/menuButtonTableComponent.tsx, app/client/src/components/propertyControls/DropDownControl.tsx, app/client/src/widgets/PhoneInputWidget/component/ISDCodeDropdown.tsx, app/client/src/widgets/PhoneInputWidget/component/utilities.ts, app/client/src/widgets/JSONFormWidget/fields/PhoneInputField.tsx (+4 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 7 significant file(s) lose their only recent owner: app/server/appsmith-interfaces/src/main/java/com/appsmith/util/RestrictedHostFilter.java, app/server/appsmith-plugins/elasticSearchPlugin/src/main/java/com/external/plugins/ElasticSearchPlugin.java, app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/RedisConfig.java, app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java, app/server/reactive-caching/src/main/java/com/appsmith/caching/components/RedisCacheManagerImpl.java, app/server/appsmith-plugins/anthropicPlugin/src/main/java/com/external/plugins/utils/RequestUtils.java, app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/clonepage/ActionCollectionClonePageServiceCEImpl.java. 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: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AIConfigServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/SecureBaseUrlResolverCEImpl.java, app/client/src/components/BottomBar/ManualUpgrades.tsx, app/server/appsmith-plugins/arangoDBPlugin/src/main/java/com/external/utils/ArangoDBErrorUtils.java, app/client/src/widgets/wds/WDSCustomWidget/widget/index.tsx, app/client/src/ce/sagas/analyticsSaga.ts. 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: app/server/appsmith-server/src/main/java/com/appsmith/server/staticurl/StaticUrlServiceImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/McpTokenServiceCEImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/imports/internal/artifactbased/ArtifactBasedImportServiceCE.java, app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceCECompatibleImpl.java, app/server/appsmith-server/src/main/java/com/appsmith/server/git/central/CentralGitServiceImpl.java. Pair on, review, or document these before any departure.
D30 · Dependency Vulnerabilities · Low CVE · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D34 · Knowledge Freshness · Most significant orphaned file · ×3
  • Most significant orphaned file REDACTED:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file app/client/src/components/designSystems/blueprintjs/icon/svgImportsMap.ts:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file app/server/appsmith-plugins/amazons3Plugin/src/main/java/com/external/plugins/AmazonS3Plugin.java:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
X7 · Silent fallback defaults · Silent fallback default on parse failure · ×2
  • Silent fallback default on parse failure app/server/appsmith-server/src/main/java/com/appsmith/server/authentication/helpers/AuthenticationFailureRetryHandlerCEImpl.java:89 — `getOriginPrefix` returns `""` when `URISyntaxException` is thrown, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. 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 in the catch or in the Javadoc, and the row stops firing.
  • Silent fallback default on parse failure app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/RedirectHelper.java:428 — `portOf` returns `-1` when `NumberFormatException` is thrown, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. 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 in the catch or in the Javadoc, and the row stops firing.
AC7 · A11y enforcement · Accessibility enforcement below the top rung · ×1
  • Accessibility enforcement below the top rung — Accessibility checks run in tests (Verified) but aren't gated in CI — run the suite that holds those checks in your pipeline so an accessibility regression blocks the merge (Prevented). What was searched, so you can tell an absence from a miss: the 1675 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
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 (39 single-owned of 2189 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; 2189 of the 6789 production source files in this repository met that bar). They are anonymized user #5 (3 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (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: app/client/packages/mcp/src/builder/capabilities.ts, app/client/packages/mcp/src/toolAnnotations.ts, app/client/src/ce/pages/AdminSettings/config/instanceSettings.ts, app/client/src/entities/DependencyMap/index.ts, app/client/packages/design-system/theming/src/color/src/LightModeTheme.ts, app/client/src/pages/Editor/CustomWidgetBuilder/Editor/AIAssistant/index.tsx, app/client/src/utils/Analytics/betterbugs.ts, app/client/packages/design-system/ads/src/__hooks__/useEditableText/useEditableText.ts (+1 more).
D19 · Documentation Quality · Documentation · ×1
  • Documentation: no build, run or usage example README.md:1 — the repository holds project manifests and neither `README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 7 of 46 project(s) overshoot their size bounds, lowering Project Cohesion to 7.0/10. The most over is `app/client` (511823 LoC, 4835 module-visible types across 863 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
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D30 · Dependency Vulnerabilities · Low vulnerability · ×1
  • REDACTED
D34 · Knowledge Freshness · Concentrated knowledge decay · ×1
  • Concentrated knowledge decay — 1753 of 2190 significant files have no living knowledge, while the repository is still being changed at a low rate (198 commit(s) in the last 90 days) — so this is one repo-wide knowledge-decay state, not 1753 separate risks. Counted over 2190 of the 6789 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D40 · Network Egress Confinement · No network policy · ×1
  • No network policy — No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need.
DM9 · Scattered domain decisions · Rule about [maxFileSize, maxNumFiles] decided in 2 places · ×1
  • Rule about [maxFileSize, maxNumFiles] decided in 2 places — app.client.src.widgets.FilePickerWidgetV2.widget.FilePickerWidgetProps's [maxFileSize, maxNumFiles] are judged in app.client.src.widgets.FilePickerWidgetV2.widget.FilePickerWidget, app.client.src.widgets.FilepickerWidget.widget.FilePickerWidget — the same decision, restated. Every copy is a chance to drift, and copies drift silently because each one looks correct on its own. Move the judgement onto the type that owns the members and let the call sites ask it.
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 35/36 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `app/client/packages/mcp`.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 364584 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
PF1 · Benchmark discipline · Benchmarks don't track allocations · ×1
  • Benchmarks don't track allocations — A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement — allocations (the main way hot code pressures a garbage collector or allocator) aren't being measured.
R8 · Dependency Hygiene · Type-only dependency '@react-types/shared' in production deps · ×1
  • Type-only dependency '@react-types/shared' in production deps app/client/packages/design-system/ads/src/Radio/Radio.types.tsx:3 — Every import is type-only — move it to devDependencies.
R8 · Dependency Hygiene · Test-only dependency '@aws-sdk/client-s3' in production deps · ×1
  • Test-only dependency '@aws-sdk/client-s3' in production deps app/client/package.json:60 — Only test files import it (first: app/client/cypress/scripts/util.ts:2) — move it to devDependencies.
S1 · Web-Security Posture · No security response headers detected · ×1
  • No security response headers detected app/client/vercel.json: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 `vercel.json` 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 — 14/16 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 (`!`) reduce the strict null checking score · ×1
  • Null assertions (`!`) reduce the strict null checking score — ~0.1 `!` null assertions per 1k TypeScript source lines — 67 assertion(s) across the 588946 source line(s) of the 4937 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: app/client/packages/mcp/src/builder/mongoQuery.ts (9), app/client/packages/mcp/src/app.ts (8), app/client/packages/mcp/src/builder/occupancy.ts (6). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.
Minor — 1 finding(s)
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: @shared/ast — @shared/ast: abstractness 0.00, instability 0.00, distance 1.00 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.

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/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-bed39a3926b6455f9c45a2086509b8af/history.json --exit-code 0 --source .234artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-bed39a3926b6455f9c45a2086509b8af/tree.json --exit-code 0 --source .7artifacts/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/watchdog-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 app/client/cypress/fixtures/Bugs --exclude app/client/cypress/fixtures/ImportApps --exclude app/client/cypress/fixtures/Listv2 --exclude app/client/cypress/fixtures/PartialImportExport --exclude app/client/cypress/fixtures/Table --exclude app/client/cypress/fixtures/Templates --exclude app/client/cypress/locators --exclude app/client/public/tinymce .647artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .37artifacts/raw/osv-scanner.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .15artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—semgrep --config /opt/semgrep-rules/gdpr.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 app/client/cypress/fixtures/Bugs --exclude app/client/cypress/fixtures/ImportApps --exclude app/client/cypress/fixtures/Listv2 --exclude app/client/cypress/fixtures/PartialImportExport --exclude app/client/cypress/fixtures/Table --exclude app/client/cypress/fixtures/Templates --exclude app/client/cypress/locators --exclude app/client/public/tinymce .7artifacts/raw/semgrep-gdpr.json
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — The repository ships application workloads but no cluster-governance resources (CRDs, admission webhooks, or a committed policy engine). Runtime threat-detection (Falco/Tetragon) and admission control (Kyverno/OPA-Gatekeeper/PodSecurity) are cluster-OPERATOR controls owned by the platform, not shipped by an application repo/chart — nothing for this repo to assess.0—
D43 · Malicious Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .0artifacts/raw/osv-scanner.json

Run 01a17a02-9b33-7afa-9a36-493d30371881 · 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