{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 81): render has cyclomatic complexity 81 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b7f49374b62a46ef391185709be5ad95e675dfed7be47161a5510b0fa597c1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 61): (anonymous) has cyclomatic complexity 61 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"710e9bf1a5ae3d86294d8f92dc243d16bdb1cb60dca324c07cfedc2457c10a8c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 61): (anonymous) has cyclomatic complexity 61 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e37735a3394eeab52a8e75f73df47d1e872d97b198babbb31e3caed4b425be8"}},{"ruleId":"D1","level":"warning","message":{"text":"insertLineContent (cyclomatic 53): insertLineContent has cyclomatic complexity 53 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"be32f6a51907f9c5f0ce2cc3538414b605db039baebb821b9e83fabe21683711"}},{"ruleId":"D1","level":"warning","message":{"text":"insertLineContent (cyclomatic 53): insertLineContent has cyclomatic complexity 53 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81a5b8d51a0020b74c7d932c8e5f7ca40bfa1504527cafab524a66d495bb149"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillOptimizationServiceImpl.buildConversationMessages (cyclomatic 50): SkillOptimizationServiceImpl.buildConversationMessages has cyclomatic complexity 50 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillOptimizationServiceImpl.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d06ec93b46f6cd12a687847e1e8736407edebbbc9e081c9cd05b44cf4802639"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 50): render has cyclomatic complexity 50 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d00c4ad92cf6086863526734d6f771d9e23b41b498723771960dee0e1b2a4d"}},{"ruleId":"D1","level":"warning","message":{"text":"renderInputSection (cyclomatic 48): renderInputSection has cyclomatic complexity 48 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"104dda93ed7492612d519f766acb452f8e633e433a6ae2f492225857f25c561c"}},{"ruleId":"D1","level":"warning","message":{"text":"SwitchManager.update (cyclomatic 47): SwitchManager.update has cyclomatic complexity 47 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchManager.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bfc069a60a4838e89c412b0cb01ef10e7438dd443688b315bbde731d44e478"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 44): (anonymous) has cyclomatic complexity 44 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaa9911dff3c26110cbfe06495d1ef29f2c642fb96343e57179dbfb7a4688b1"}},{"ruleId":"D1","level":"warning","message":{"text":"convertPackageToMcpConfig (cyclomatic 43): convertPackageToMcpConfig has cyclomatic complexity 43 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7764f396e739b23da44151222b2304d12234e68f23f310b9e49893bfe28fdcd"}},{"ruleId":"D1","level":"warning","message":{"text":"renderFileTree (cyclomatic 41): renderFileTree has cyclomatic complexity 41 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":2908}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1a491294b9c6a2414f1aa216b83c9109ce8e95b121fd9eb76072db78e759f1"}},{"ruleId":"D1","level":"warning","message":{"text":"convertOperation (cyclomatic 41): convertOperation has cyclomatic complexity 41 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7515f6bc684757f99290cfd8d61d5821fa9791d5b0cac875338e67a749e0f1ad"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 41): (anonymous) has cyclomatic complexity 41 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81494d68cf49b606c4926df1bffa2cbb39d564204969f39c385740eed808c0d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 41): (anonymous) has cyclomatic complexity 41 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"10aa6c9758734f2def67aee12498b248eaabeae4d11fb1987b521779d47b5ad5"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 40): (anonymous) has cyclomatic complexity 40 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/services/OpenApiService.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da94073c6206c81c87cacc663deb51f5a767884ff1f0a5668242a8c615fc6f0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e652970bd592fccbffc415c0b96b90df8138d6514cd3f1a410138f73f642c27"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewAgent/NewAgent.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e27606e1206beebafda68a0ebaf7670cfef8c16764954196f22304f806495e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/index.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c1d77aee845c6d718e0e2603ef30bf225b9120787cc58d9aa8c111bd5bd3c2"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 37): render has cyclomatic complexity 37 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":3271}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64e7794726127d5e8d5d14c7981fc359c07849e317fab70a91953bfebd406ae"}},{"ruleId":"D1","level":"warning","message":{"text":"parse (cyclomatic 37): parse has cyclomatic complexity 37 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.lib.json-lint.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"181d7c00287b3a88a71ad9f7e9af6a1c295959b2279749dd3de33e5274ec9481"}},{"ruleId":"D1","level":"warning","message":{"text":"parse (cyclomatic 37): parse has cyclomatic complexity 37 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.lib.json-lint.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0630ee531f552983e6aa06729566162f9a963fbbb6a01863f149d6fd99873dc3"}},{"ruleId":"D1","level":"warning","message":{"text":"renderFileTree (cyclomatic 36): renderFileTree has cyclomatic complexity 36 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4fc41e3bf1e81b090f26c282a19bde87e6a1d716ef7b0185865a20d36eaa43"}},{"ruleId":"D1","level":"warning","message":{"text":"renderPackageDetails (cyclomatic 35): renderPackageDetails has cyclomatic complexity 35 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e1efe35bd7b359a959e1c250f06862da24878034d44c365bd79db620c24ee1"}},{"ruleId":"D1","level":"warning","message":{"text":"measureCharInner (cyclomatic 35): measureCharInner has cyclomatic complexity 35 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2639}}}],"partialFingerprints":{"codehealthFindingId/v1":"045f0be8ea8fee4d9b75ca591c83abc50f0085ae6af4873450571cc4d93b6fbe"}},{"ruleId":"D1","level":"warning","message":{"text":"measureCharInner (cyclomatic 35): measureCharInner has cyclomatic complexity 35 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2639}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06a70e8eae0e3c39aaa0a6efb949e308dff011500d0bd6ba04131d1d776d8d1"}},{"ruleId":"D1","level":"warning","message":{"text":"openVisible (cyclomatic 33): openVisible has cyclomatic complexity 33 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/index.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"832112cabc5ffb65a7569813671daef8eb6b59498413b3d250e7cdd134c7432b"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaEditor (cyclomatic 33): SchemaEditor has cyclomatic complexity 33 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/SchemaEditor.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ac7c5a7daf68484a37a03533e4c3e579219a6a1e9b842f9c23a22396ce6744"}},{"ruleId":"D1","level":"warning","message":{"text":"markText (cyclomatic 33): markText has cyclomatic complexity 33 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5860}}}],"partialFingerprints":{"codehealthFindingId/v1":"80892a200796db1d194663a1898039980a6b2044c0f3385482467554f755afe0"}},{"ruleId":"D1","level":"warning","message":{"text":"markText (cyclomatic 33): markText has cyclomatic complexity 33 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5860}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2009454650138f395d76ec7c7b92a2dd7a028fa4f2b5600c8e789a72fe9be93"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 32): (anonymous) has cyclomatic complexity 32 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"4188780353b3e9234cfafbe1377bf7e1787f378e317b5a57d29f28dccf59728b"}},{"ruleId":"D1","level":"warning","message":{"text":"stretchSpansOverChange (cyclomatic 32): stretchSpansOverChange has cyclomatic complexity 32 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afd7545f26697346af13e3808223448f2af91b6dc982d183ec44e0cff0869ca"}},{"ruleId":"D1","level":"warning","message":{"text":"pollContent (cyclomatic 32): pollContent has cyclomatic complexity 32 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8739}}}],"partialFingerprints":{"codehealthFindingId/v1":"d927408f1c627b79f036ddb4a31d51f4cde50cd32662f812e3075421628b61e9"}},{"ruleId":"D1","level":"warning","message":{"text":"stretchSpansOverChange (cyclomatic 32): stretchSpansOverChange has cyclomatic complexity 32 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"e472bf628bff5c2800063c31524508d6f887258996864349794b5f89cae4206f"}},{"ruleId":"D1","level":"warning","message":{"text":"pollContent (cyclomatic 32): pollContent has cyclomatic complexity 32 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8739}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9fc5ba3f13a919e532e71bc8a17112bc381b547764f8e7a5d0c130a8aa3eec"}},{"ruleId":"D1","level":"warning","message":{"text":"ShowTools (cyclomatic 31): ShowTools has cyclomatic complexity 31 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc108a9f78c215052c4ecf0a12106c3f93e5b4834c57aca6a0715a67f2334630"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 30): render has cyclomatic complexity 30 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/PromptOptimizeDialog/PromptOptimizeDialog.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5822d9da5cc9d34a03ad6f15e572846e856813a052d04337a803850373451a"}},{"ruleId":"D1","level":"warning","message":{"text":"initEditedData (cyclomatic 30): initEditedData has cyclomatic complexity 30 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a7cd73997b4a62e6e9587eb41694999abc1778c351019cf673ccce18e45380"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationsEditor (cyclomatic 30): AnnotationsEditor has cyclomatic complexity 30 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/AnnotationsEditor.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fceeef96c7c70449b1727f5fb2892e5a3de555d83cdcccc24febc4f31e11fad"}},{"ruleId":"D1","level":"warning","message":{"text":"clear (cyclomatic 30): clear has cyclomatic complexity 30 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5747}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da202d80dd7f019e0de91de22c8395fbedb0473f72b2a2773eab5e3096accac"}},{"ruleId":"D1","level":"warning","message":{"text":"clear (cyclomatic 30): clear has cyclomatic complexity 30 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5747}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb53c5274d48f3dd4bfe786863a54dff08e0e0685b7e986e1b29e42542031238"}},{"ruleId":"D1","level":"warning","message":{"text":"skipAtomicInner (cyclomatic 29): skipAtomicInner has cyclomatic complexity 29 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5087}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8331d5dd3c4bfb5a878ccb56552ddc2f71366c42dc54a5cb5fe165063dc31d9"}},{"ruleId":"D1","level":"warning","message":{"text":"skipAtomicInner (cyclomatic 29): skipAtomicInner has cyclomatic complexity 29 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5087}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fcc796feb92cf11d127eece8e8313e6c4668a3ddfd7afb439b3b91e2112b74"}},{"ruleId":"D1","level":"warning","message":{"text":"N (cyclomatic 28): N 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/next/js/vendor-icons.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8c1cbed659f09baffc8af6021f14e2bfac16cd3c79e9043609969045a9027a"}},{"ruleId":"D1","level":"warning","message":{"text":"success (cyclomatic 27): success 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewAgent/NewAgent.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3476409bd5689befb16d4ae2bf80aa552c894e0ab1084f26f647fb6c18d27c"}},{"ruleId":"D1","level":"warning","message":{"text":"buildToken (cyclomatic 27): buildToken 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"152f891d46f75c8ced652fe264913072a67ffc7c5cec5ddccc1792638ee4d8ae"}},{"ruleId":"D1","level":"warning","message":{"text":"updateDisplayIfNeeded (cyclomatic 27): updateDisplayIfNeeded 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4156}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf8b3d9e00f6f1c7ccc4d90c5335cb0d0603f9aabdf8734e87bd08971c1f07f"}},{"ruleId":"D1","level":"warning","message":{"text":"buildToken (cyclomatic 27): buildToken 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a452fd2d4db66790c2a07f35adc10e550ab74976884a3b85b247f4791d3df1"}},{"ruleId":"D1","level":"warning","message":{"text":"updateDisplayIfNeeded (cyclomatic 27): updateDisplayIfNeeded 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae7353ef7325634a44284947178e03b607ad1687eb68e74faf72fdcbee3d6ee"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 26): (anonymous) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8e67dcc744a0f25f42327bfb8f5e767f6a1e19f9180369059284dcacaf2a4c"}},{"ruleId":"D1","level":"warning","message":{"text":"applyTextInput (cyclomatic 26): applyTextInput 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7859}}}],"partialFingerprints":{"codehealthFindingId/v1":"9152ebe2b05786292e793977411e8e53a883bfb5a137a8aa6becae61f5566f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"showPrimarySelection (cyclomatic 26): showPrimarySelection 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8600}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f9fa24a6ac6e3ff1d7fe7a5bfdf9c12de8b908622b69d403616f8b37e6f11c"}},{"ruleId":"D1","level":"warning","message":{"text":"applyTextInput (cyclomatic 26): applyTextInput 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7859}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c940471b75fe128d7833177ed2b0b647abe105b4241792c28908a8293e8252"}},{"ruleId":"D1","level":"warning","message":{"text":"showPrimarySelection (cyclomatic 26): showPrimarySelection 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8600}}}],"partialFingerprints":{"codehealthFindingId/v1":"7223716796c0905dde4d472e2c686e85975d9dc0b221dd3091913719123006e6"}},{"ruleId":"D1","level":"warning","message":{"text":"RpcClient.start (cyclomatic 25): RpcClient.start 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc51b3e77a51712836349f696bf91fd421d8816c5fb8263a95f1be2b587626d"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 25): render has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewPrompt/NewPrompt.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a6a587c963bf0734d996841696e701637de9678ea89223d2b3318a5ca329ac"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 25): (anonymous) has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d908c0c4804e0b3798a7bd90a735563f034850caf786e58c39a3c19e4f54bc"}},{"ruleId":"D1","level":"warning","message":{"text":"moveVisually (cyclomatic 25): moveVisually has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d19aca47f002e302d291c0075dcf9ead508bbd225742f60566e660c6fd1c67"}},{"ruleId":"D1","level":"warning","message":{"text":"buildLineContent (cyclomatic 25): buildLineContent has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd44a4272064a3f6750fdf5e52cb6092c1133c1cc9718a290050383705cd0ddf"}},{"ruleId":"D1","level":"warning","message":{"text":"regChange (cyclomatic 25): regChange has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3893}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ae3c993b7311f64abf8515be0b286082b12fc161b5229d7bbea0b0617241b0"}},{"ruleId":"D1","level":"warning","message":{"text":"onScrollWheel (cyclomatic 25): onScrollWheel has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4394}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26ffe9ac73c0426e8f3b78543fc418729593a08a05502217f7f2cc7d29bc341"}},{"ruleId":"D1","level":"warning","message":{"text":"findPosH (cyclomatic 25): findPosH has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8422}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd269ec555aae0cfc3075a0b97a9ef2d8c166a55c417ec33682780ae65a6ef3"}},{"ruleId":"D1","level":"warning","message":{"text":"moveVisually (cyclomatic 25): moveVisually has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d2c99d3b17dee94e774c6172a58f6768d4a6eee40f7f79cb199391255edb87"}},{"ruleId":"D1","level":"warning","message":{"text":"buildLineContent (cyclomatic 25): buildLineContent has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"01413046071aaf801f4cf56fd2323e7c91cf5942d69d8e28c84bd282c5acc92a"}},{"ruleId":"D1","level":"warning","message":{"text":"regChange (cyclomatic 25): regChange has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3893}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fddce89638582eed78a37cc6e05919f05ab5a0e00064923a68324c9716a9a17"}},{"ruleId":"D1","level":"warning","message":{"text":"onScrollWheel (cyclomatic 25): onScrollWheel has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4394}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fb23c997dc1d46ba0a16e2235ebcc1e67061975a1e3e76238b6c1399188f02"}},{"ruleId":"D1","level":"warning","message":{"text":"findPosH (cyclomatic 25): findPosH has cyclomatic complexity 25 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8422}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a5ae9875236579073d9bdf417cb6aa9046fc44a5edad0ed0415765fd0f12ed"}},{"ruleId":"D1","level":"warning","message":{"text":"validateProperties (cyclomatic 24): validateProperties has cyclomatic complexity 24 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/utils/validateContent.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e201d42ad703bfa81f2514aefadbb9149d759e8f2e992f54a488f2d0e050ee"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 24): (anonymous) has cyclomatic complexity 24 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"1590027608bd0ea7e263f2f5ce398fd0358bc59c871d248b11316e461c9abaa6"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillZipParser.parseMultipleSkillsFromZip (cyclomatic 23): SkillZipParser.parseMultipleSkillsFromZip 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ade016d19535faead1fa9af64f40ad559e60b46217f364f025c5dc1717013d9"}},{"ruleId":"D1","level":"warning","message":{"text":"ParamUtils.checkParam (cyclomatic 23): ParamUtils.checkParam 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b866818a86593acaee08ab2a74fdd245ee20697c734d2bff828c65cee2a5a4da"}},{"ruleId":"D1","level":"warning","message":{"text":"isPureJsonContent (cyclomatic 23): isPureJsonContent 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"3895ef941ab4b9b54261e8cd990704055fac0f4b86368c0f077911340c821830"}},{"ruleId":"D1","level":"warning","message":{"text":"renderCollapsibleSection (cyclomatic 23): renderCollapsibleSection 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1d167578844a902f20fb6fbde620a350507edb7ce2cf0009a3335095668fba"}},{"ruleId":"D1","level":"warning","message":{"text":"success (cyclomatic 23): success 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45bd627b5cdf6e20b120b1808cb8813f2352d07910977496286b7c4fbe3889a"}},{"ruleId":"D1","level":"warning","message":{"text":"handleOptimizeSuccess (cyclomatic 23): handleOptimizeSuccess 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":2244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dc58be038edd7f8b5914d3c28aedce023fdf868dbddd0022cc520639b83425"}},{"ruleId":"D1","level":"warning","message":{"text":"coordsCharInner (cyclomatic 23): coordsCharInner 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2890}}}],"partialFingerprints":{"codehealthFindingId/v1":"3093060eed82bd3c4900ef9f0368be04df26cd11aee1c7c5788ccb26b0824d4b"}},{"ruleId":"D1","level":"warning","message":{"text":"indentLine (cyclomatic 23): indentLine 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7791}}}],"partialFingerprints":{"codehealthFindingId/v1":"b387adf5c21dd8787455506541a84bab6b9c5e423bc2e452bbf9cdfb4d8d8d14"}},{"ruleId":"D1","level":"warning","message":{"text":"coordsCharInner (cyclomatic 23): coordsCharInner 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2890}}}],"partialFingerprints":{"codehealthFindingId/v1":"54efbda86349b45d20b45b01371119016a8ce4c48f9c9d27ade5680bdf3dbb21"}},{"ruleId":"D1","level":"warning","message":{"text":"indentLine (cyclomatic 23): indentLine 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7791}}}],"partialFingerprints":{"codehealthFindingId/v1":"7899ace3c4411ceac226f3f2c81c017061d6090fe9ae64ff8a68b6910ef7b29f"}},{"ruleId":"D1","level":"warning","message":{"text":"handleCustomService (cyclomatic 22): handleCustomService 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/globalLib.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"c695606d70a2185219d4a5272742af1806502e90f780719719d1d0e7d24e6c92"}},{"ruleId":"D1","level":"warning","message":{"text":"renderOptimizedPreview (cyclomatic 22): renderOptimizedPreview 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c47fe22785e1ce00817176fed365785b16c56ff30eb5c2eb86e97fbd5856b0"}},{"ruleId":"D1","level":"warning","message":{"text":"renderCollapsibleSection (cyclomatic 22): renderCollapsibleSection 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d94b2cd3537101993a1175db9831d704766c315080a88dbe58ed506a0e53b0"}},{"ruleId":"D1","level":"warning","message":{"text":"nodeAndOffsetInLineMap (cyclomatic 22): nodeAndOffsetInLineMap 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2591}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a4255b343921d7699bdfb2f55dad7666f3c45a8872e3482e1c931d24e3bdb2"}},{"ruleId":"D1","level":"warning","message":{"text":"poll (cyclomatic 22): poll 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":9214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff60c32932834e57f44e81634051db82cf28f060531486ab4c513c8ab4a20dc1"}},{"ruleId":"D1","level":"warning","message":{"text":"nodeAndOffsetInLineMap (cyclomatic 22): nodeAndOffsetInLineMap 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2591}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29c359235616127e1cb85645bac883fbae5bd81b5cf3b54ca88df4cc87df0d3"}},{"ruleId":"D1","level":"warning","message":{"text":"poll (cyclomatic 22): poll 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":9214}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb3d763ddcf3fae8557da780a24813834c22f190b0f36c9a092fb16bf189bc1"}},{"ruleId":"D1","level":"warning","message":{"text":"parseOptimizedSkillFromContent (cyclomatic 21): parseOptimizedSkillFromContent has cyclomatic complexity 21 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f4d39b2576d955a4f824b0585b9ba7507a8cb4c5fc907fe3122db6cf0ab8be"}},{"ruleId":"D1","level":"warning","message":{"text":"success (cyclomatic 21): success has cyclomatic complexity 21 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b7fa2e04b038e693ebceda979d9538ba874707f3fa12cbb724552749521abc"}},{"ruleId":"D1","level":"warning","message":{"text":"renderGeneratedSkill (cyclomatic 21): renderGeneratedSkill has cyclomatic complexity 21 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c13552b22294b0a1f80787f5121b745c429964f5f01817c9dad04784a7da560"}},{"ruleId":"D1","level":"warning","message":{"text":"constructor (cyclomatic 21): constructor has cyclomatic complexity 21 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpManagement/McpManagement.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca3dba5330e7ef8e348d64ccfb0cb87b217d19a19d6956aa8271749ad197d6d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 21): (anonymous) has cyclomatic complexity 21 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/AgentDetail/AgentDetail.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdb93e1058884719b73e7d87e834b44828f68364ce6d7d87b0d28d020a8dd34"}},{"ruleId":"D1","level":"warning","message":{"text":"RpcClient.reconnect (cyclomatic 20): RpcClient.reconnect 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"05607ed87c0948db7e49cc51aa26a5f4659ffb6c23d03147d6ade5833247c12c"}},{"ruleId":"D1","level":"warning","message":{"text":"EmbeddedConfigInfoPersistServiceImpl.batchInsertOrUpdate (cyclomatic 20): EmbeddedConfigInfoPersistServiceImpl.batchInsertOrUpdate 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93eec3e6f37fe5ab676a9a56ad5e83e133625f7db84e6be29f759fa3ba5dcfc"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 20): render 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/PluginManagement/PluginList/PluginDetail.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f36281fabaf97b52b0b4ebebf36742a1a3822318646f4dafb141c9aeec0e19e"}},{"ruleId":"D1","level":"warning","message":{"text":"processImportAndCloneResult (cyclomatic 20): processImportAndCloneResult 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"43656e915cb23971972f0e7793650f038cc884c085fd783e4a6220190890bcb4"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a1bface863f17954dd9592a78dcd11546064aaac2b12a09046133b84cb86bc"}},{"ruleId":"D1","level":"warning","message":{"text":"handleApply (cyclomatic 20): handleApply 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2b4b3c4633078fd66212e38fab43e5ffaa8d0cfaaa52682bfd48646249c04f"}},{"ruleId":"D1","level":"warning","message":{"text":"success (cyclomatic 20): success 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17b873ace673b9a814b2e7e80dcde3882fa5fb678e69788af633ff9dc50c69f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba0ee432803716dc193abeba7b4b10e7936e80b933b0672a3e6372ac8747b50"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"914b6fcfe6afae2d4c9e5189bf4d7820139a718ec7b43cdae90d818a9200116c"}},{"ruleId":"D1","level":"warning","message":{"text":"AdvancedConfig (cyclomatic 20): AdvancedConfig 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/AdvancedConfig.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d8ab06ecba56ab471c83a6f52791d3d45ccb642ba2997f2f327bbec27d69f6"}},{"ruleId":"D1","level":"warning","message":{"text":"validateTemplateFormat (cyclomatic 20): validateTemplateFormat 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/AdvancedConfig.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c870015b89df592532f1b27151df1ac79e9321031362e341a8111fd0053e30"}},{"ruleId":"D1","level":"warning","message":{"text":"makeChangeFromHistory (cyclomatic 20): makeChangeFromHistory 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5216}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdce742cfe03111d1eaaef816c8b593ac15128359ecbfb85e16d7e79a2c92001"}},{"ruleId":"D1","level":"warning","message":{"text":"makeChangeFromHistory (cyclomatic 20): makeChangeFromHistory 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5216}}}],"partialFingerprints":{"codehealthFindingId/v1":"39736af118adf92b9e7f54cb9c4e7d2962da50bb2c9698042b5c139d94242c2e"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillGenerationServiceImpl.buildUserMessage (cyclomatic 19): SkillGenerationServiceImpl.buildUserMessage 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b7ffef7b9ef3a3f929ed860ea4d04a45c3392a0ec5a54dd5907017897d38e8"}},{"ruleId":"D1","level":"warning","message":{"text":"Request (cyclomatic 19): Request has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/globalLib.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2387d6fbdbaacfc63261d522c1331df9b7f9efd14e267cd546ab0af40cfcec3b"}},{"ruleId":"D1","level":"warning","message":{"text":"constructor (cyclomatic 19): constructor has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d978c5c2ca1d1f586c4deaa51a60fecbc838b22d2785dc454d8811481ab9fec6"}},{"ruleId":"D1","level":"warning","message":{"text":"handleOptimize (cyclomatic 19): handleOptimize has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dfbbc60421f437675e0c1861d3c3f8fbe696f3c1277ff62ead5d302c6fba3d"}},{"ruleId":"D1","level":"warning","message":{"text":"createResponseTemplate (cyclomatic 19): createResponseTemplate has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"c650c3b4eb5b0cd2b859c5656200ecd62662be6e03c75acb74a97935b510f513"}},{"ruleId":"D1","level":"warning","message":{"text":"processSchemaProperties (cyclomatic 19): processSchemaProperties has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c912efae6b6d22309aeb05d92cbc98c2aa377f9406f68127d96d2799ba8df4"}},{"ruleId":"D1","level":"warning","message":{"text":"processArgument (cyclomatic 19): processArgument has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"384d1778ddc2f9c66811bc9a92fc8ee20e0069fb7f3fb7ed61e4c4767826b961"}},{"ruleId":"D1","level":"warning","message":{"text":"rawDataToFiledValue (cyclomatic 19): rawDataToFiledValue has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/utils.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"998c8b8dfd6dc862235867adc177f63fb7e6f55df60c083d60a650f67ede11e4"}},{"ruleId":"D1","level":"warning","message":{"text":"conflictingCollapsedRange (cyclomatic 19): conflictingCollapsedRange has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"724c52beb51e9c3276d6a67e6fc5bb26265d57e5b6648a12ef5c56bc476d544b"}},{"ruleId":"D1","level":"warning","message":{"text":"calculateScrollPos (cyclomatic 19): calculateScrollPos has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"81af4f1f2e34486c6f4f3ab0dc4c72d83dc1706f909a67a923ea1c81267dcfef"}},{"ruleId":"D1","level":"warning","message":{"text":"onDrop (cyclomatic 19): onDrop has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":6431}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65fb2e8b05118912549ab405259b4db65982cb915a4fc63759f91a3a1590538"}},{"ruleId":"D1","level":"warning","message":{"text":"onMouseDown (cyclomatic 19): onMouseDown has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9ebe3d4c3855c030357ec45e8754587f2f7765ca16474ea88d95283bbd79c7"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeMirror$1 (cyclomatic 19): CodeMirror$1 has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7600}}}],"partialFingerprints":{"codehealthFindingId/v1":"042831fd61af5d7bcdcc13a94e4e3842af17a291e33d60181fe305b3a3ec765c"}},{"ruleId":"D1","level":"warning","message":{"text":"conflictingCollapsedRange (cyclomatic 19): conflictingCollapsedRange has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"936122cc10f29b7b79065b41c54f7a7fc15b871827fcb239663f5f0df95dcc6d"}},{"ruleId":"D1","level":"warning","message":{"text":"calculateScrollPos (cyclomatic 19): calculateScrollPos has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"733e15bc63896b809046f5f401c450d0fdacbdc7348fe606aac409e4698a64f4"}},{"ruleId":"D1","level":"warning","message":{"text":"onDrop (cyclomatic 19): onDrop has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":6431}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf57f26c1e43250074918b6b83dfb891f80eab04ddbf1785e869586fcf489501"}},{"ruleId":"D1","level":"warning","message":{"text":"onMouseDown (cyclomatic 19): onMouseDown has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f653b5d1ea0b24c5cefc4914a85aa56089caf6b4e3f2450c1721c34fc4da5d0"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeMirror$1 (cyclomatic 19): CodeMirror$1 has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7600}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7c944dc42bf04f2fe3eb4746c2dc296952dcf52a7accd9f9be7ae81f1d0393"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigRpcTransportClient.checkListenCache (cyclomatic 18): ConfigRpcTransportClient.checkListenCache 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"680046b8163656f12f394afaa84e4a9c0df8cb1ea82bca405d752a03e9bf9961"}},{"ruleId":"D1","level":"warning","message":{"text":"NamingFuzzyWatchNotifyRequestHandler.requestReply (cyclomatic 18): NamingFuzzyWatchNotifyRequestHandler.requestReply 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/remote/gprc/NamingFuzzyWatchNotifyRequestHandler.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7d71a9996f83ed5eb3c1f4d7c169fad8537b25b10afb26a81daf6a38643c12"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigCloneService.cloneConfig (cyclomatic 18): ConfigCloneService.cloneConfig 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCloneService.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9788b511924ac49bd988c9203c7a915faec30d6ff0cd1279d576078c3f7e1d"}},{"ruleId":"D1","level":"warning","message":{"text":"GrpcBiStreamRequestAcceptor.streamObserverOnNext (cyclomatic 18): GrpcBiStreamRequestAcceptor.streamObserverOnNext 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/remote/grpc/GrpcBiStreamRequestAcceptor.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e1047752df08e45dd3e5185fa7e67948062d31db4e159342b9ab1ff649ca2e"}},{"ruleId":"D1","level":"warning","message":{"text":"Base64Decode.decode (cyclomatic 18): Base64Decode.decode 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/utils/Base64Decode.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"acdb9136d2579dd435ca87aa95c4c65750c6004337749f4998629fd8433cee52"}},{"ruleId":"D1","level":"warning","message":{"text":"validateProperty (cyclomatic 18): validateProperty has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/utils/validateContent.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a732e994ce79c866019c838bb861b7a34cd253b1890ff518743afff3f6f279"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 18): render has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc45c4825620c096fa9f77199c2a0f8af6bfdec3ffe2bfd45a6fc3a2732e1353"}},{"ruleId":"D1","level":"warning","message":{"text":"handleExport (cyclomatic 18): handleExport has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bd4c3731cf140284a4f74728cdd1c12a8d38b2435fbb7aba0dd09d1bf21a2c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50a75960200f0da10befc90a5cad87faf7f91c772eeb1650229a349a38f7a6e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3132}}}],"partialFingerprints":{"codehealthFindingId/v1":"54bf2a8f9035fdb230fe30ad78afcb6ad0976801b08462fa4b19edd48b9a1208"}},{"ruleId":"D1","level":"warning","message":{"text":"endOperation_finish (cyclomatic 18): endOperation_finish has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3813}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bca3cfe00b9f6c904a0ab381e62576b1e40f0d6527532adb69f38b15bf4dbc"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4049}}}],"partialFingerprints":{"codehealthFindingId/v1":"d108712bc86984d6d1a11d95758b2f44f88fd07790e714dfb1bc9e24c6e91831"}},{"ruleId":"D1","level":"warning","message":{"text":"locateNodeInLineView (cyclomatic 18): locateNodeInLineView has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8955}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8c4d7df07c4f0f0ffc00aef0edbde02dfa4e346a70fb1b8435117cef4711cf"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c565c31a0aa188a8e96015eaa2b79c9f8557b06c4351fc3a8e977bbcf4da15fe"}},{"ruleId":"D1","level":"warning","message":{"text":"endOperation_finish (cyclomatic 18): endOperation_finish has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3813}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a1404ae5adc5278ee1f402367d1897a068202dd85b83beb625d1a749cad0f2"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4049}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef1951659f92a2118c9fb1c0e426639587fa47d856aded2052d6a6cc92fcc90"}},{"ruleId":"D1","level":"warning","message":{"text":"locateNodeInLineView (cyclomatic 18): locateNodeInLineView has cyclomatic complexity 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8955}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fe1232eebd705a28aba22d51ff0a1d80d7a09b7f6051367bb885553b13e980"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptOperationServiceImpl.listPrompts (cyclomatic 17): PromptOperationServiceImpl.listPrompts 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f0e4ffbc8a99dc7057e44da66e5f7def452d0e52c3d694fa3dec486a8aedf6"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillUtils.syncToLocalCore (cyclomatic 17): SkillUtils.syncToLocalCore 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/ai/model/skills/SkillUtils.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7320bde826e21a1a20f8eba69284c579fc4c7b7454943e21c3bc11597bd5e7f"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigEncryptionFilter.doFilter (cyclomatic 17): ConfigEncryptionFilter.doFilter 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/filter/impl/ConfigEncryptionFilter.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2d337e62fde51825c11becc2c160f0e5347f6714fcbda7d04b1422d0aeba74"}},{"ruleId":"D1","level":"warning","message":{"text":"LockGrpcClient.lock (cyclomatic 17): LockGrpcClient.lock 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/lock/remote/grpc/LockGrpcClient.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c957215ddf4db5e39c8263ea397b73efe22a5ff0c5e55d3371eab62d482c39b"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.fromProperties (cyclomatic 17): Builder.fromProperties 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/grpc/DefaultGrpcClientConfig.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f5c56161a3bb4dac59c4faa1fcf2afefa9a08aced6fa9f4a17837c13d86173"}},{"ruleId":"D1","level":"warning","message":{"text":"DumpAllProcessor.process (cyclomatic 17): DumpAllProcessor.process 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/processor/DumpAllProcessor.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b466d04a8e53f888bfbd65986f7dc893372a32395b79fa26e625d7d4cc7dac4"}},{"ruleId":"D1","level":"warning","message":{"text":"saveConfig (cyclomatic 17): saveConfig 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/SettingCenter/CopilotConfig.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"078bf20f2c71cdbbbe5c28a0d7dd8e2b8c2faaf7419d28cdf258ed2d3c4cec8d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2c00c36920c312025c47b0c01e86fa8eccdc32a6752bd84112ba4c107a865f"}},{"ruleId":"D1","level":"warning","message":{"text":"handleSSEMessage (cyclomatic 17): handleSSEMessage 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"17247e97f33e5851d7ecadb7e405774a8f27626696ae98541d2eaa34d3c7190e"}},{"ruleId":"D1","level":"warning","message":{"text":"onChange (cyclomatic 17): onChange 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5004d2bbc02f21678a3be5e42db0b88ad4c99ed52d9372cf58352387749898"}},{"ruleId":"D1","level":"warning","message":{"text":"Base64.encode (cyclomatic 16): Base64.encode 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/codec/Base64.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"be42329a85ef47459f777bfbe68ed7ffc539c92409478b1336fbe3b9bcd9cffb"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultParamChecker.checkParamInfoFormat (cyclomatic 16): DefaultParamChecker.checkParamInfoFormat 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/paramcheck/DefaultParamChecker.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a625772a95597bd4658e887bd524348d514e39a3a19560e5c9dce41103cc6c"}},{"ruleId":"D1","level":"warning","message":{"text":"RpcClient.request (cyclomatic 16): RpcClient.request 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eae411dbcbfd19d9ad1f8b30faabd48b658a1d2dca2b34c54025ec1332e3d9b"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInfoBase.equals (cyclomatic 16): ConfigInfoBase.equals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/ConfigInfoBase.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a54d509c9aad0fa382f091f0c5fde19b189f7e4c20afd723e547a64c0642d8"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalConfigInfoPersistServiceImpl.batchInsertOrUpdate (cyclomatic 16): ExternalConfigInfoPersistServiceImpl.batchInsertOrUpdate 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31812764c937fd7e9edd125755d55072120e855531e9336c406b8a8a12cdefd"}},{"ruleId":"D1","level":"warning","message":{"text":"JwtTokenValidator.validateClaims (cyclomatic 16): JwtTokenValidator.validateClaims 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-oidc-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/oidc/token/JwtTokenValidator.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"74984225015f6dce28118d6a4f4a0630b61275b6fe4b5e4772347a0dc7155059"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 16): render has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc83bb116884013d581d57db0213b91dc61002b691f0ced5881ecd9f15f394d"}},{"ruleId":"D1","level":"warning","message":{"text":"handleSSEMessage (cyclomatic 16): handleSSEMessage has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d309566a7096d2920519395b1208688cfbf72e824ab3206f3e62d7d84b90b05"}},{"ruleId":"D1","level":"warning","message":{"text":"onload (cyclomatic 16): onload has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillManagement.js"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb70616aa0c26ecb6f765b0fccd49ab960025c0fbf3917b1ec6e6b49a2f37c6b"}},{"ruleId":"D1","level":"warning","message":{"text":"findFileInTree (cyclomatic 16): findFileInTree has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3438958b05f08927b779aacde83b32de0e4c682c8ea0ca7678f3a2dc87c7d16"}},{"ruleId":"D1","level":"warning","message":{"text":"next (cyclomatic 16): next has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.lib.json-lint.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"def9a3ab7de045caa7751ba060d0f80b35497cc742c9312a6dfa172341e24954"}},{"ruleId":"D1","level":"warning","message":{"text":"updateLineGutter (cyclomatic 16): updateLineGutter has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"df71b17d123c23faa9972e91ba47cc6d0cbe2199a263241469d718d393d6fd53"}},{"ruleId":"D1","level":"warning","message":{"text":"addChangeToHistory (cyclomatic 16): addChangeToHistory has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4780}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77d0f70b581b188b135592a54e5ba50b113e959d8fbe31ff8577ce07dbd42c2"}},{"ruleId":"D1","level":"warning","message":{"text":"onKeyPress (cyclomatic 16): onKeyPress has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7057}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c3d242d7c8aa4a3a81ce80efe904311c84b4caf51ea4c6a8fbe89ac7ae5b7d"}},{"ruleId":"D1","level":"warning","message":{"text":"next (cyclomatic 16): next has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.lib.json-lint.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fb0ad3a083f14e30a1fce47feeb119f5bb59b97f09d68b3ccb9acaaf2e88e9"}},{"ruleId":"D1","level":"warning","message":{"text":"updateLineGutter (cyclomatic 16): updateLineGutter has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"3144a452ebfd1d81bbd0a561fc594bf679646c07422f261169a607a3b1342f0d"}},{"ruleId":"D1","level":"warning","message":{"text":"addChangeToHistory (cyclomatic 16): addChangeToHistory has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4780}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d41810e11fdf1033bba0551d4bce83b116d9717d4ad1cf251073a52f5b5bb4d"}},{"ruleId":"D1","level":"warning","message":{"text":"onKeyPress (cyclomatic 16): onKeyPress has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7057}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb76e889dadd29ebe8567078d0622d3d1a863191fb8389c1df06f2ab40f5a3b"}},{"ruleId":"D2","level":"warning","message":{"text":"convertOperation (cognitive 180): convertOperation has cognitive complexity 180 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"43edf9fabc66eecef29ca48c95f772cf330e7faaf7f060a143570a23fa401a1f"}},{"ruleId":"D2","level":"warning","message":{"text":"insertLineContent (cognitive 135): insertLineContent has cognitive complexity 135 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8db4b50e6e3fcbf11d5fededfff718e624329ec1b6b3f185661c7fc915e1d7"}},{"ruleId":"D2","level":"warning","message":{"text":"insertLineContent (cognitive 135): insertLineContent has cognitive complexity 135 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"182fdcf3ebb8b7a7fbf9a1484222c597c5b020a83df276c01e29112e25cd6dd4"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillOptimizationServiceImpl.buildConversationMessages (cognitive 116): SkillOptimizationServiceImpl.buildConversationMessages has cognitive complexity 116 (threshold 15). Drivers by points: if/else 95, boolean chains 12, loops 9 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillOptimizationServiceImpl.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e123bf74cc1b1f8807d76823fbc22023f4b47f30373c44ca483af9ee5ae8376"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 101): (anonymous) has cognitive complexity 101 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7b0987ebd6f6c4e11c80cbd571c05c74ce1477a03d1ec782f15bcf3188a4b0"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 101): (anonymous) has cognitive complexity 101 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d8d06a4dc479e66488363f91b5746c9c1fd62cb4893a1c6245eeb36abfbd8d"}},{"ruleId":"D2","level":"warning","message":{"text":"skipAtomicInner (cognitive 99): skipAtomicInner has cognitive complexity 99 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5087}}}],"partialFingerprints":{"codehealthFindingId/v1":"590c9e3fcbef11a086a847b6825788c7fdb88ec86439776145c6973d923d04eb"}},{"ruleId":"D2","level":"warning","message":{"text":"skipAtomicInner (cognitive 99): skipAtomicInner has cognitive complexity 99 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5087}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb92a442840bbf69186b2ab7d75463e6216adb864dcc6df928a461e678caecd"}},{"ruleId":"D2","level":"warning","message":{"text":"parse (cognitive 77): parse has cognitive complexity 77 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.lib.json-lint.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f09b97c24a2aaaab9e907564325b991145e1b4b3b18846fbc65d49d11451710"}},{"ruleId":"D2","level":"warning","message":{"text":"parse (cognitive 77): parse has cognitive complexity 77 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.lib.json-lint.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c60178935a353ca5678fb337be386ded65a06dcea08bd9ee23e52d1573079cd"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 76): render has cognitive complexity 76 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"02970e7d4f66a8683a08d92aeb7fd50dd8b5c6f358833a188dc565e976387bff"}},{"ruleId":"D2","level":"warning","message":{"text":"SwitchManager.update (cognitive 70): SwitchManager.update has cognitive complexity 70 (threshold 15). Drivers by points: if/else 65, loops 3, boolean chains 1, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchManager.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e846fab89be6e25f33254fbbcf975ba7f4f8f9afbcde86b13d076948e1f6ef96"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 63): (anonymous) has cognitive complexity 63 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/services/OpenApiService.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2425ce7fbd4f936a7051b8a886eb5e7668dfe8219dd1d1c96b79043d6aa9272"}},{"ruleId":"D2","level":"warning","message":{"text":"stretchSpansOverChange (cognitive 63): stretchSpansOverChange has cognitive complexity 63 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"6579d3c8c0b0de559366a8d93caf789e08e1cf1cf312a8a05018de7c0a8396dd"}},{"ruleId":"D2","level":"warning","message":{"text":"stretchSpansOverChange (cognitive 63): stretchSpansOverChange has cognitive complexity 63 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"226ff57f7e50abeaae74b63c211811be53f517f59d309b20fedf19f0fe35dee5"}},{"ruleId":"D2","level":"warning","message":{"text":"ParamUtils.checkParam (cognitive 61): ParamUtils.checkParam has cognitive complexity 61 (threshold 15). Drivers by points: if/else 51, boolean chains 5, loops 5 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"252505daef93acec2f7c1b7020b204559f1adb36fabd1534d2b468e5a7c71aa8"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 61): (anonymous) has cognitive complexity 61 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"81608a3c654b797ce1abc6c4b8d420a7fbff08ebd23ad6d273f4ae193487eec6"}},{"ruleId":"D2","level":"warning","message":{"text":"RpcClient.start (cognitive 59): RpcClient.start has cognitive complexity 59 (threshold 15). Drivers by points: if/else 45, error handling 6, loops 6, boolean chains 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"252ee1ac69b5b5238a1359df2d7a2114e5bab7f3973a98a5e7cf970da190744a"}},{"ruleId":"D2","level":"warning","message":{"text":"convertPackageToMcpConfig (cognitive 55): convertPackageToMcpConfig has cognitive complexity 55 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c8790b3d152e3e36155afc446ccd2723be9b504da2a62314be9b90a9a9733d"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 52): render has cognitive complexity 52 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"6597d0178047961a47a912f5f724dc060285075a98c06d6fb278edb40216d5c2"}},{"ruleId":"D2","level":"warning","message":{"text":"initEditedData (cognitive 51): initEditedData has cognitive complexity 51 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9293ff11ab0be645a79056049fd8c4eb09c6172ea953b7b79e98e5773e5d005"}},{"ruleId":"D2","level":"warning","message":{"text":"renderInputSection (cognitive 49): renderInputSection has cognitive complexity 49 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"575b04f61bd828e28efa1c2c66a946e71b181bbbe65ddede7a3e5f7303e713db"}},{"ruleId":"D2","level":"warning","message":{"text":"parseOptimizedSkillFromContent (cognitive 48): parseOptimizedSkillFromContent has cognitive complexity 48 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2d1652ec5f559496fc308d38ecfc4c9f5f35ebb1850c28889e5f35660fe511"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillGenerationServiceImpl.buildUserMessage (cognitive 46): SkillGenerationServiceImpl.buildUserMessage has cognitive complexity 46 (threshold 15). Drivers by points: if/else 39, loops 4, boolean chains 3 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9002dce8075176b296ecb346a3c0a1e2f001e598e03bb3bb8a1a2a4ebc20bd"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 46): (anonymous) has cognitive complexity 46 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/index.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e425727a2e535cf80fac8e8ad1ed57b38aa59f4f54795500b008c797b53d95"}},{"ruleId":"D2","level":"warning","message":{"text":"measureCharInner (cognitive 46): measureCharInner has cognitive complexity 46 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2639}}}],"partialFingerprints":{"codehealthFindingId/v1":"a058410b2bcabfb5f88c6d60ee6ebef6b0231e44d08762904b618569e3e834a5"}},{"ruleId":"D2","level":"warning","message":{"text":"measureCharInner (cognitive 46): measureCharInner has cognitive complexity 46 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2639}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4d1722e7b8700ef964ef87b54aa1b14bea64ff0c4866cb7f3a5465bb09cde1"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionUtils.get (cognitive 45): CollectionUtils.get has cognitive complexity 45 (threshold 15). Drivers by points: if/else 25, loops 12, error handling 8 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/utils/CollectionUtils.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cd4d4ded1c051c7f1f7c409652ddb31be40f6365fa8de52e834afb329bf218"}},{"ruleId":"D2","level":"warning","message":{"text":"renderFileTree (cognitive 44): renderFileTree has cognitive complexity 44 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":2908}}}],"partialFingerprints":{"codehealthFindingId/v1":"943708ce92a6c99bde67e4c7d3e166fa93dd9014b7105bf74df0461d3d060ef1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 44): (anonymous) has cognitive complexity 44 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewAgent/NewAgent.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d454a78fc1a82f7498cb509727a6694fba207650cbfbdee5d576d4022b7b669e"}},{"ruleId":"D2","level":"warning","message":{"text":"coordsCharInner (cognitive 43): coordsCharInner has cognitive complexity 43 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2890}}}],"partialFingerprints":{"codehealthFindingId/v1":"9974f86573eeb2b9cdfc52ca3064a126b28e3fb4795a9a98435e6a02947a3f26"}},{"ruleId":"D2","level":"warning","message":{"text":"findPosH (cognitive 43): findPosH has cognitive complexity 43 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8422}}}],"partialFingerprints":{"codehealthFindingId/v1":"52477d01b7f608b54fbb90001a24e9c778829c4ecef83e233b82181016a6bdc8"}},{"ruleId":"D2","level":"warning","message":{"text":"coordsCharInner (cognitive 43): coordsCharInner has cognitive complexity 43 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2890}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d104a89986c00b9c5a44e72243a639f9137ace1510c5c7e6521796855d0467"}},{"ruleId":"D2","level":"warning","message":{"text":"findPosH (cognitive 43): findPosH has cognitive complexity 43 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8422}}}],"partialFingerprints":{"codehealthFindingId/v1":"9474c1179a74f21df7df579454cfb4a1fcd869796067bb8facd419ca13439469"}},{"ruleId":"D2","level":"warning","message":{"text":"validateProperties (cognitive 42): validateProperties has cognitive complexity 42 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/utils/validateContent.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e882e9bad4e38b8fe618b5f76ed5caeb3020f2291524b94913a59dde0cdb2c6"}},{"ruleId":"D2","level":"warning","message":{"text":"NamingFuzzyWatchNotifyRequestHandler.requestReply (cognitive 41): NamingFuzzyWatchNotifyRequestHandler.requestReply has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23, loops 12, boolean chains 3, match/switch 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/remote/gprc/NamingFuzzyWatchNotifyRequestHandler.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"674282d1a497b20399acd08c17ff7b2c715ea3621f1b30843ab72cc6bf670fe2"}},{"ruleId":"D2","level":"warning","message":{"text":"buildToken (cognitive 40): buildToken has cognitive complexity 40 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a377aa6303c3ac423cf481eae3f1dd08016014063c211274db5a948dc4625c2"}},{"ruleId":"D2","level":"warning","message":{"text":"buildToken (cognitive 40): buildToken has cognitive complexity 40 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e2608dcbbdebd5ecbee9ea0e893288026bc212903642bf7bee33c6defe9e70"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedConfigInfoPersistServiceImpl.batchInsertOrUpdate (cognitive 39): EmbeddedConfigInfoPersistServiceImpl.batchInsertOrUpdate has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26, loops 5, error handling 4, boolean chains 2, ternaries 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"318062a8f6f6d8d99debc2d931dc6d15a17c901c272452094cb82725ef711603"}},{"ruleId":"D2","level":"warning","message":{"text":"renderFileTree (cognitive 39): renderFileTree has cognitive complexity 39 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"be399a8d1bafb8341b1d9e3a9558534428a815727153b371d28a3a0d4eef48ce"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 39): (anonymous) has cognitive complexity 39 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2b3d0fa4a8acd2ff84703a849e4d6e6d5cb4ef7ef4063c3b9636907e834203"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 39): (anonymous) has cognitive complexity 39 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd98705dd6deabcf04d2f9a4e127a27f4a0a153d2083c73abf845fadceb6bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillZipParser.parseResources (cognitive 38): SkillZipParser.parseResources has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23, loops 12, boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e55b9843f39cd1ec225a2cc5a8a80ff94f1a8e89971ede1f1359d8621737cd8"}},{"ruleId":"D2","level":"warning","message":{"text":"handleCustomService (cognitive 38): handleCustomService has cognitive complexity 38 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/globalLib.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"079abb4fbeb6c44272a5c94acdad2a7ffcb1de54a1f1d682aa22ff46d994b8fc"}},{"ruleId":"D2","level":"warning","message":{"text":"nodeAndOffsetInLineMap (cognitive 38): nodeAndOffsetInLineMap has cognitive complexity 38 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2591}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5af35aae057e02000b6a6b2514d5f223b7c4f7e01f7b4147e909cce4376760"}},{"ruleId":"D2","level":"warning","message":{"text":"clear (cognitive 38): clear has cognitive complexity 38 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5747}}}],"partialFingerprints":{"codehealthFindingId/v1":"2257d8d89f94936040a24a1d7f056daef90c51dc51d42f789ca4debbe533dbc3"}},{"ruleId":"D2","level":"warning","message":{"text":"markText (cognitive 38): markText has cognitive complexity 38 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5860}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c25ef552623e5d20116b4e63e03c05727d7ffcdeb980799288f669ae46793e"}},{"ruleId":"D2","level":"warning","message":{"text":"nodeAndOffsetInLineMap (cognitive 38): nodeAndOffsetInLineMap has cognitive complexity 38 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2591}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5322a693ed46d242a681eaeb91c5b805c79aacffd50d182e8d3646aeb63400c"}},{"ruleId":"D2","level":"warning","message":{"text":"clear (cognitive 38): clear has cognitive complexity 38 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5747}}}],"partialFingerprints":{"codehealthFindingId/v1":"755290cbb7b76332a7d8dc9973331b6ca596044b83ce3b7294a02fc39488c10b"}},{"ruleId":"D2","level":"warning","message":{"text":"markText (cognitive 38): markText has cognitive complexity 38 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5860}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e7d2bd830b59e8f3f3dbbb195f5bf215377c46323510dc04825f4988bf87de"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigRpcTransportClient.checkListenCache (cognitive 37): ConfigRpcTransportClient.checkListenCache has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18, loops 12, error handling 6, boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9b836a3fd0eeaf2313142f9ed93bf9a8bb015d615e01beb12e24e9bb1d4a58"}},{"ruleId":"D2","level":"warning","message":{"text":"openVisible (cognitive 37): openVisible has cognitive complexity 37 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/index.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c0bf00ba13bf1347c91b42cfd4e11a6736ba64dedb2138b57e028b8737e70c"}},{"ruleId":"D2","level":"warning","message":{"text":"buildLineContent (cognitive 36): buildLineContent has cognitive complexity 36 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"5323570e8c161c4aca0bd8322d45d2e4324b56afb5023efbce19c9bd5b65bf7f"}},{"ruleId":"D2","level":"warning","message":{"text":"applyTextInput (cognitive 36): applyTextInput has cognitive complexity 36 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7859}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d6390bc9621fb5313d6a3ece9077fd0238988263aab85f190e95e05a965414"}},{"ruleId":"D2","level":"warning","message":{"text":"buildLineContent (cognitive 36): buildLineContent has cognitive complexity 36 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2fe887d4e953cf3a9f02a8029b8634711fc5be3b5b9e4710db3fa8e13bc986"}},{"ruleId":"D2","level":"warning","message":{"text":"applyTextInput (cognitive 36): applyTextInput has cognitive complexity 36 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7859}}}],"partialFingerprints":{"codehealthFindingId/v1":"07875154acddfb9bb44371464de0e0fc60926a1cb46ec8da90ebb20c77b57c97"}},{"ruleId":"D2","level":"warning","message":{"text":"GrpcBiStreamRequestAcceptor.streamObserverOnNext (cognitive 35): GrpcBiStreamRequestAcceptor.streamObserverOnNext has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21, error handling 7, boolean chains 4, ternaries 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/remote/grpc/GrpcBiStreamRequestAcceptor.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f895be03b26b3590a0a8387fcabd719c984ed49ab5c09f09dde82919b007a3c4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 35): (anonymous) has cognitive complexity 35 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f642fdfa33151c405e9b596183f9734438c054bd6a61d5f866f469f82d046d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 35): (anonymous) has cognitive complexity 35 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0323899373da0eda2cae063785e43aa4ee35d43137aeddc8fe7e7fbf44bd0615"}},{"ruleId":"D2","level":"warning","message":{"text":"RpcClient.reconnect (cognitive 34): RpcClient.reconnect has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, ternaries 6, error handling 5, boolean chains 3, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa48862ec85c92e07f4a1eefdc18ac603dbcd42324ce07acc0eda04893d0658"}},{"ruleId":"D2","level":"warning","message":{"text":"DumpAllProcessor.process (cognitive 34): DumpAllProcessor.process has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27, loops 4, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/processor/DumpAllProcessor.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73710876b84f2da7be3782c55aaba6d3f313425e116648ce35a681764670c79"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 34): (anonymous) has cognitive complexity 34 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88e6ceda7b9f89c41f8f768e1c9711dccb712c6ba23c6f485eb716d2c7d411f"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 34): render has cognitive complexity 34 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":3271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3b9839ba946be13663c5dc8b3047863574c72356962e575136565400ea505b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 34): (anonymous) has cognitive complexity 34 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cebb7b04bf6e35a1c6cf3251538bdb748d435bf8311d387b962926ae205a91d"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptOperationServiceImpl.listPrompts (cognitive 33): PromptOperationServiceImpl.listPrompts has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 21, if/else 8, boolean chains 2, loops 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf77ed72b757374183738c5cac8c451b4ab18d799a55ef82a5450d262927b2dc"}},{"ruleId":"D2","level":"warning","message":{"text":"regChange (cognitive 33): regChange has cognitive complexity 33 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3893}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4026b2cdbeec738974179063e453632ab189716322f70c44cb71fa23ef1780"}},{"ruleId":"D2","level":"warning","message":{"text":"onScrollWheel (cognitive 33): onScrollWheel has cognitive complexity 33 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4394}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3ae79f54d45a400cb149dd029a1821c67682fd4f54928d38756134f761c651"}},{"ruleId":"D2","level":"warning","message":{"text":"pollContent (cognitive 33): pollContent has cognitive complexity 33 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8739}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea9329103db7c447af123bb69e5f71fd6dcbd3d7fa2d28096e9fc2a5b569745"}},{"ruleId":"D2","level":"warning","message":{"text":"regChange (cognitive 33): regChange has cognitive complexity 33 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3893}}}],"partialFingerprints":{"codehealthFindingId/v1":"575b811c4a9845deae8e9b41f25a107d1a95cae8206ce97ee7ec50d0b700bd59"}},{"ruleId":"D2","level":"warning","message":{"text":"onScrollWheel (cognitive 33): onScrollWheel has cognitive complexity 33 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4394}}}],"partialFingerprints":{"codehealthFindingId/v1":"1554f14a6826fc796b8efae3ff7ad5e15612af2e54c6865ab3f32fef7c7d5d87"}},{"ruleId":"D2","level":"warning","message":{"text":"pollContent (cognitive 33): pollContent has cognitive complexity 33 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8739}}}],"partialFingerprints":{"codehealthFindingId/v1":"b877e10b0b7fd8344bacb6411f7104d90c32862981f54a1dbdb292ff9ff9876b"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillUtils.syncToLocalCore (cognitive 32): SkillUtils.syncToLocalCore has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20, error handling 4, boolean chains 3, ternaries 3, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/ai/model/skills/SkillUtils.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6384c2f0099bcd033b38a7d4cff74fe0a33286d6d1fac86235fc08dfffe3e3"}},{"ruleId":"D2","level":"warning","message":{"text":"processImportAndCloneResult (cognitive 32): processImportAndCloneResult has cognitive complexity 32 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"c193a98d47396cce5fcedcc50bf3dce0cccf44ff61de30ac556d0280029a6f30"}},{"ruleId":"D2","level":"warning","message":{"text":"success (cognitive 32): success has cognitive complexity 32 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewAgent/NewAgent.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d58dccfb1165e359b0c3188a2f8286a0ae8a5de9144992276c23ff12699402"}},{"ruleId":"D2","level":"warning","message":{"text":"processSchemaProperties (cognitive 32): processSchemaProperties has cognitive complexity 32 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7db8cc77ebfdd5bb81737114c7f041b4a0c5fa7bf7a97c143a1fff6cd4d77d6"}},{"ruleId":"D2","level":"warning","message":{"text":"indentLine (cognitive 32): indentLine has cognitive complexity 32 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7791}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd4e72cee3ce2e71b98c08aff1a7321b5660dda4f2497c3b332bac2cbf68fcc"}},{"ruleId":"D2","level":"warning","message":{"text":"indentLine (cognitive 32): indentLine has cognitive complexity 32 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7791}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd5cc69f3abe0acb31650fa02f4fd83a4594b76b10df343a49bcf191962e9d0"}},{"ruleId":"D2","level":"warning","message":{"text":"RpcClient.request (cognitive 31): RpcClient.request has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19, error handling 6, boolean chains 3, ternaries 2, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc340d1a04d9830b4050fbc176f1c77572fbad66ea4c1a7b7a7a9e9855353b9b"}},{"ruleId":"D2","level":"warning","message":{"text":"findFileInTree (cognitive 31): findFileInTree has cognitive complexity 31 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a17fde0ed7e6ccba18787c2b1bb01ebdab3d0da44e7e475c6e7099746fe018"}},{"ruleId":"D2","level":"warning","message":{"text":"processArgument (cognitive 31): processArgument has cognitive complexity 31 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"317529d459e9b96963b80a361e1fb61d63395371ac30204dddb4a059069c9af7"}},{"ruleId":"D2","level":"warning","message":{"text":"renderPackageDetails (cognitive 31): renderPackageDetails has cognitive complexity 31 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dda02d57a43f69028300868f720c6030c6326228923d44a22380abc8dde196"}},{"ruleId":"D2","level":"warning","message":{"text":"moveVisually (cognitive 31): moveVisually has cognitive complexity 31 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"79176d7d7e7d626553c80af42f75d6f37e2da69b05c4fb9240ed76968bcfe4ba"}},{"ruleId":"D2","level":"warning","message":{"text":"moveVisually (cognitive 31): moveVisually has cognitive complexity 31 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7eb784636492f028560210f5a49ac9c65dbae3146e5d020b713650e013212c3"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillZipParser.parseMultipleSkillsFromZip (cognitive 30): SkillZipParser.parseMultipleSkillsFromZip has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18, loops 6, error handling 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7398b66db2cae81d9e06e665e3e8c6e09a86270b54357f8421ce8d0f4b4e7b0"}},{"ruleId":"D2","level":"warning","message":{"text":"Base64.encode (cognitive 30): Base64.encode has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, boolean chains 3, loops 2, match/switch 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/codec/Base64.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f383f9482d9d47181011dd458a274d8d1300d4902bf2605658ac5d515c1f3c45"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 30): (anonymous) has cognitive complexity 30 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"52224c0f0bbf52ab280450de6daeba5d92e292aebdf56610ad243ee10b8c2020"}},{"ruleId":"D2","level":"warning","message":{"text":"createResponseTemplate (cognitive 30): createResponseTemplate has cognitive complexity 30 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"2750f1598c57482380ae07ef111d3f9a525e58d0d4541e62df1b07593d5bd611"}},{"ruleId":"D2","level":"warning","message":{"text":"endOfLine (cognitive 30): endOfLine has cognitive complexity 30 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fd02261fde674bdae1b68d894417b6713dd0cc054f9a393fa973870e74cc87"}},{"ruleId":"D2","level":"warning","message":{"text":"endOfLine (cognitive 30): endOfLine has cognitive complexity 30 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5f358efaedb30ec28951b01c35e4045ece9884182e73b23992b01277813d98"}},{"ruleId":"D2","level":"warning","message":{"text":"YmlChangeParser.buildFlattenedMap (cognitive 29): YmlChangeParser.buildFlattenedMap has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, loops 7, ternaries 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/YmlChangeParser.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf7d4726bcdf4630b1bb426ba7198a770b53b736357a9aaa997a891b0efa8e3"}},{"ruleId":"D2","level":"warning","message":{"text":"InetUtils.findFirstNonLoopbackAddress (cognitive 29): InetUtils.findFirstNonLoopbackAddress has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15, loops 5, ternaries 5, boolean chains 2, error handling 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sys/src/main/java/com/alibaba/nacos/sys/utils/InetUtils.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"497712a39416f03f2b4a61c9f607a0774bf3e63619128d8ce763d621b87ea19a"}},{"ruleId":"D2","level":"warning","message":{"text":"handleOptimizeSuccess (cognitive 29): handleOptimizeSuccess has cognitive complexity 29 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":2244}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6a4dd880bd14ef1a5b29a1f713c0a79111609c0533582e2777fd98cfa0c426"}},{"ruleId":"D2","level":"warning","message":{"text":"rawDataToFiledValue (cognitive 29): rawDataToFiledValue has cognitive complexity 29 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/utils.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"244c0984e977d495b60771b5e70c7b38eee179670f319b545525c98050caf649"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationsEditor (cognitive 29): AnnotationsEditor has cognitive complexity 29 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/AnnotationsEditor.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1063fa1d9f782c1d1d60ef35e719b0d7a44b8d70bc82999d74a7b7be43bcee8"}},{"ruleId":"D2","level":"warning","message":{"text":"conflictingCollapsedRange (cognitive 29): conflictingCollapsedRange has cognitive complexity 29 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"c308729c90e9a5864b77d4005444735458711179407f34a2ddc33850a774f704"}},{"ruleId":"D2","level":"warning","message":{"text":"conflictingCollapsedRange (cognitive 29): conflictingCollapsedRange has cognitive complexity 29 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7e978e35f975f12772d67f4b48aaa919771aeb930ccb0dfbda70a05fa3e917"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvUtil.setSelfEnv (cognitive 28): EnvUtil.setSelfEnv has cognitive complexity 28 (threshold 15). Drivers by points: if/else 28 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/utils/EnvUtil.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53917c372d926268697e44af102793e4bb8eb1a2c2ea13feb2e01fff53b9c13"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInfoBase.compareTo (cognitive 28): ConfigInfoBase.compareTo has cognitive complexity 28 (threshold 15). Drivers by points: if/else 28 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/ConfigInfoBase.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6153bc428ec8b6c8cc2b0e92be6293acd52909510259c5a7c994927043a02b"}},{"ruleId":"D2","level":"warning","message":{"text":"1.onNext (cognitive 28): 1.onNext has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10, ternaries 8, boolean chains 4, error handling 3, loops 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b4d704b8a1649cb09a2f015f59d558cf145a496712a5666c776b023c2f2149"}},{"ruleId":"D2","level":"warning","message":{"text":"LockGrpcClient.lock (cognitive 27): LockGrpcClient.lock has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, error handling 2, boolean chains 1, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/lock/remote/grpc/LockGrpcClient.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"215a6108cf893ae5b28c32764ec33b1dfb42443bf671003d383a68f08206b21f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalConfigInfoPersistServiceImpl.batchInsertOrUpdate (cognitive 27): ExternalConfigInfoPersistServiceImpl.batchInsertOrUpdate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, loops 5, error handling 4, boolean chains 2, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b078276c8aa0fddb53ea1108794b7876c918de50172fea141dec994f5681bf8"}},{"ruleId":"D2","level":"warning","message":{"text":"isPureJsonContent (cognitive 27): isPureJsonContent has cognitive complexity 27 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"febec6aacbbaf1786ea83b757df750bf6554d24d86381fc81bca08bdeb54f3b5"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 27): render has cognitive complexity 27 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/PromptOptimizeDialog/PromptOptimizeDialog.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc0297e51916482c48930d820cb77f393ff8154cd21925f49c160ff312eae17"}},{"ruleId":"D2","level":"warning","message":{"text":"onChange (cognitive 27): onChange has cognitive complexity 27 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d146f85aac0bcf04ef69ca7539d3acc7292b5685b71d4ff8f7ca10debb935bb"}},{"ruleId":"D2","level":"warning","message":{"text":"markedSpansAfter (cognitive 27): markedSpansAfter has cognitive complexity 27 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"180300792861e156bdb3e424c6d0f9b795168e1310a7297a722aa872880e8b8a"}},{"ruleId":"D2","level":"warning","message":{"text":"showPrimarySelection (cognitive 27): showPrimarySelection has cognitive complexity 27 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8600}}}],"partialFingerprints":{"codehealthFindingId/v1":"e246b7f8396bbb1699821b747d9ab85f6ce3d284d27a6de923a4ed1afb052a8a"}},{"ruleId":"D2","level":"warning","message":{"text":"markedSpansAfter (cognitive 27): markedSpansAfter has cognitive complexity 27 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6f0282597450eec6d181004d6ff0c6f823177fe3d6abcb2bf2a868c9ddb6ab"}},{"ruleId":"D2","level":"warning","message":{"text":"showPrimarySelection (cognitive 27): showPrimarySelection has cognitive complexity 27 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8600}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f76cf1694c082d15cf61b6c2fb2945275c9c60e366468c9e4ef74c80b94211a"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalConfigInfoPersistServiceImpl.findAllConfigInfo4Export (cognitive 26): ExternalConfigInfoPersistServiceImpl.findAllConfigInfo4Export has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, loops 4, boolean chains 1, error handling 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3a96a250115ce97162866400b1e2046fb0fda3d2eef0a440d9d5b3b18d95ac"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotHttpParamExtractor.extractParam (cognitive 26): CopilotHttpParamExtractor.extractParam has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, error handling 6, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/CopilotHttpParamExtractor.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"715d3b000b71a6ebc7758e797ac4ec3b5a8c1db386b3cc3c001bf92e6e2be967"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceEntryXdsGenerator.deltaGenerate (cognitive 26): ServiceEntryXdsGenerator.deltaGenerate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, loops 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/ServiceEntryXdsGenerator.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27e00c206da0d39850149f05b2ea761cd9952b9b5fd351928f495454c2469e7"}},{"ruleId":"D2","level":"warning","message":{"text":"success (cognitive 26): success has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a33e01e60871c70df8203d615122cf46bf2d3d4ba0b01ad4fa544f87884fec8"}},{"ruleId":"D2","level":"warning","message":{"text":"extractPackageNameFromArgs (cognitive 26): extractPackageNameFromArgs has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbfa799bd5ae1fdd2e0cb225199a7d69ac5460c20388c6715543c6224690d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"validateTemplateFormat (cognitive 26): validateTemplateFormat has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/AdvancedConfig.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcd36508982d6c7ce0a240f2397c655011d9fbb70cd11fdfa86e5159548028f"}},{"ruleId":"D2","level":"warning","message":{"text":"runMode (cognitive 26): runMode has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec295fe918d290f441a4d0479c2797e83867d0c3bc87e69eee1346e242c071f1"}},{"ruleId":"D2","level":"warning","message":{"text":"copyHistoryArray (cognitive 26): copyHistoryArray has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4924}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6bdfca5d450d11a2cdd0c93ad76fbd4800748a60cc44f27c2803629a723625"}},{"ruleId":"D2","level":"warning","message":{"text":"makeChangeFromHistory (cognitive 26): makeChangeFromHistory has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07aed4c890ea982e5e74a7931c2b3bee1abc31fa0b39a7818921f9f4517b9ef"}},{"ruleId":"D2","level":"warning","message":{"text":"runMode (cognitive 26): runMode has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"14236e8c9fe8337436dec2192e1371d258c5e06cf549050084f9f783cca68b35"}},{"ruleId":"D2","level":"warning","message":{"text":"copyHistoryArray (cognitive 26): copyHistoryArray has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4924}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe50098ed072a5839cef3c05aafe5d381493ed07c4706ba656237feb35f0ac4"}},{"ruleId":"D2","level":"warning","message":{"text":"makeChangeFromHistory (cognitive 26): makeChangeFromHistory has cognitive complexity 26 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5216}}}],"partialFingerprints":{"codehealthFindingId/v1":"384e9c11fd5b7f8809c37135d60542fe9dbacd79c22cd569560976c8fdea51e1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentRequestUtil.normalizeSupportedInterfaces (cognitive 25): AgentRequestUtil.normalizeSupportedInterfaces has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, loops 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentRequestUtil.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb8799ef8dd917dbe56dba0b46465c47fbd56a23125970f6458a309fc6e60f5"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionUtils.size (cognitive 25): CollectionUtils.size has cognitive complexity 25 (threshold 15). Drivers by points: loops 11, error handling 7, if/else 7 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/utils/CollectionUtils.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"98399f7e6eced90b30ef1ef32887b0c6aea7545bd1ddaf5f8b617619b4755c9f"}},{"ruleId":"D2","level":"warning","message":{"text":"DumpChangeGrayConfigWorker.run (cognitive 25): DumpChangeGrayConfigWorker.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, loops 6, boolean chains 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeGrayConfigWorker.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32e72e886949f9a182d90b4ad709249ea3643f4291cc1cfd14cb3c152f4c3e8"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedConfigInfoPersistServiceImpl.findAllConfigInfo4Export (cognitive 25): EmbeddedConfigInfoPersistServiceImpl.findAllConfigInfo4Export has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, loops 4, boolean chains 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"15658412b0697929b533ad83bf29982c4f090615a1bb120622d477d842b9d7a7"}},{"ruleId":"D2","level":"warning","message":{"text":"NacosRuntimeConnectionEjector.ejectOverLimitConnection (cognitive 25): NacosRuntimeConnectionEjector.ejectOverLimitConnection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, loops 3, error handling 2, boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/remote/NacosRuntimeConnectionEjector.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7060e574d5a70d8f5b1004475c4a5b44e52a005bcb6e83c820a4452b35eb772"}},{"ruleId":"D2","level":"warning","message":{"text":"EdsGenerator.deltaGenerate (cognitive 25): EdsGenerator.deltaGenerate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, loops 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/EdsGenerator.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9da4dfb26b9944844f31dc1edb7055595062d2d014478acd65153772fdaf16e"}},{"ruleId":"D2","level":"warning","message":{"text":"JwtTokenValidator.validateClaims (cognitive 25): JwtTokenValidator.validateClaims has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, boolean chains 5, ternaries 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-oidc-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/oidc/token/JwtTokenValidator.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3320dad8a9d5e42035918968995de6882fd3de1cdf47bcfdcb870ee0122ab837"}},{"ruleId":"D2","level":"warning","message":{"text":"success (cognitive 25): success has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15213827a7cf6309d2609978bca247e98e499891e4fb809e0e4daed8f4c5967"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaEditor (cognitive 25): SchemaEditor has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/SchemaEditor.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3021b98d5d101eacae771fd33780142ba090c8acc57e1d453023ae0c06665c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 25): (anonymous) has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/SchemaEditor.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b005a3c6ba1a3a27c59b8cb6f682ea8567b2cc005de31d5b7ec98c3f7c02c4"}},{"ruleId":"D2","level":"warning","message":{"text":"N (cognitive 25): N has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/next/js/vendor-icons.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa65a3e25b75d10253558bf260217bfeaefca4a77b43f86ab5490f6b6eb6dfe"}},{"ruleId":"D2","level":"warning","message":{"text":"updateLineGutter (cognitive 25): updateLineGutter has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"905f5c7a411d2a35218145fb4fe1bd0d7ae87117615c5bd3e5d25c8d99a724f0"}},{"ruleId":"D2","level":"warning","message":{"text":"alignHorizontally (cognitive 25): alignHorizontally has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3300}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f734cf035835c5d634b6cb2927ffc00189410bd25c69ed6ec17b34e5bc14b44"}},{"ruleId":"D2","level":"warning","message":{"text":"scrollPosIntoView (cognitive 25): scrollPosIntoView has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e968f5c2232e6aeba2989b29fd4ef1cbe0377a3ea816bb1812cfad5d1bc9b3"}},{"ruleId":"D2","level":"warning","message":{"text":"locateNodeInLineView (cognitive 25): locateNodeInLineView has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8955}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43f11376d96b0a054ddf3752767952d6ada4cdf8c5fb1ff692b179f10761d77"}},{"ruleId":"D2","level":"warning","message":{"text":"find (cognitive 25): find has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8976}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6cb42484b82b190b54dfcfcab621293cbbc08640fc2a02523c533e45b5d368"}},{"ruleId":"D2","level":"warning","message":{"text":"updateLineGutter (cognitive 25): updateLineGutter has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed265101c6fd9c99c82af768ba19211b52201ae8852613496b8473a86706ad7"}},{"ruleId":"D2","level":"warning","message":{"text":"alignHorizontally (cognitive 25): alignHorizontally has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d787b45e736ce3e9396ccd07737fff38486a8f09c9085478e6999bddda10e26b"}},{"ruleId":"D2","level":"warning","message":{"text":"scrollPosIntoView (cognitive 25): scrollPosIntoView has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3362}}}],"partialFingerprints":{"codehealthFindingId/v1":"9060c9707b7645424c14cb6bcaf61d63bdb72598af2bb6a5b8b80ef0a6762025"}},{"ruleId":"D2","level":"warning","message":{"text":"locateNodeInLineView (cognitive 25): locateNodeInLineView has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8955}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad0becfece230374e364995b10666de756cac5e89af0d3b6e0e9dcae140ff64"}},{"ruleId":"D2","level":"warning","message":{"text":"find (cognitive 25): find has cognitive complexity 25 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8976}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea4e1a73a13138de1109a5947830f5a791c28c468d8af977df396ee1e008eee"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 24): render has cognitive complexity 24 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewPrompt/NewPrompt.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"46032a26f5403f92ae7791822a9e85e3147985c9101aa06e06e624b0af55a655"}},{"ruleId":"D2","level":"warning","message":{"text":"createRequestTemplate (cognitive 24): createRequestTemplate has cognitive complexity 24 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa75febdb0e21ed1f0a56e633a865b2250d8c13934766a1ca7858863c138da8"}},{"ruleId":"D2","level":"warning","message":{"text":"next (cognitive 24): next has cognitive complexity 24 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.lib.json-lint.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"759a45b9f8556e84ae2b98e34d20b3bdcdaa81106fd2ea43652033ae9dddb8dd"}},{"ruleId":"D2","level":"warning","message":{"text":"next (cognitive 24): next has cognitive complexity 24 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.lib.json-lint.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c3c947bce950dfc22893899fab4a110b7a95ba66770fafe7a6b875df3b4301"}},{"ruleId":"D2","level":"warning","message":{"text":"NetUtils.findFirstNonLoopbackAddress (cognitive 23): NetUtils.findFirstNonLoopbackAddress has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 4, ternaries 4, boolean chains 2, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/utils/NetUtils.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1188c9ca59ee1cea8815d6ac38e5a98633ada539a2816c43ac05e7fc31dc65"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiTagMatchGrayRule.match (cognitive 23): MultiTagMatchGrayRule.match has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, boolean chains 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/gray/multitag/MultiTagMatchGrayRule.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1fcb40896a664466f746dc3b62f054b335b673f4c3f2746836108070a051eb"}},{"ruleId":"D2","level":"warning","message":{"text":"ControllerMethodsCache.initClassMethod (cognitive 23): ControllerMethodsCache.initClassMethod has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, loops 11 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/code/ControllerMethodsCache.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"4593d8779bf3f3e37add53278a82b20cc21b45cea6a047b461c0e07c026fe40f"}},{"ruleId":"D2","level":"warning","message":{"text":"NacosRuntimeConnectionEjector.ejectOutdatedConnection (cognitive 23): NacosRuntimeConnectionEjector.ejectOutdatedConnection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, error handling 7, loops 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/remote/NacosRuntimeConnectionEjector.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"940ed52a43ee14d88af89158affc6072217e6e21e24686d321342f73d58b7598"}},{"ruleId":"D2","level":"warning","message":{"text":"validateProperty (cognitive 23): validateProperty has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/utils/validateContent.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8314c42b715ad0e9ea307db2f737cf59cf574ea9ceb3b6b44499c64a989beed3"}},{"ruleId":"D2","level":"warning","message":{"text":"computeDiff (cognitive 23): computeDiff has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/PromptOptimizeDialog/PromptOptimizeDialog.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89668233acddadcd14f396358640353fa57c84f9a0dffadd67d72c389da2c69"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 23): (anonymous) has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1cb6eb36897c622e9baf914a615ce91e078b2b0bfe3694bb42c0f16c9eea85"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 23): (anonymous) has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"8896882e13bc991e91e0c75eba973c3c50b9ca56fa00a1697177d6590842e65f"}},{"ruleId":"D2","level":"warning","message":{"text":"markedSpansBefore (cognitive 23): markedSpansBefore has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"e916769191ab99f38f8961554ce4565b6209ec4b2293888dbe670624694f0493"}},{"ruleId":"D2","level":"warning","message":{"text":"calculateScrollPos (cognitive 23): calculateScrollPos has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a7836cb7159ed62990e52f8f7eb8870c16b7c5e714f3d236248bddbcfe699b"}},{"ruleId":"D2","level":"warning","message":{"text":"endOperation_finish (cognitive 23): endOperation_finish has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3813}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c2ce56f4befc1ffd11310d0febf1bac168806a3730fdb3788c5bfeecdfa935"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeKeyMap (cognitive 23): normalizeKeyMap has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":6662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec67855a6ff674bdf4bedc8fe68aaf87cf4cf0b81921117b479300df555dc106"}},{"ruleId":"D2","level":"warning","message":{"text":"onMouseDown (cognitive 23): onMouseDown has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7106}}}],"partialFingerprints":{"codehealthFindingId/v1":"907c1a152ac06b2bcd6181e08f56f2d6f9a82c624a358ccab045912b443f61e7"}},{"ruleId":"D2","level":"warning","message":{"text":"markedSpansBefore (cognitive 23): markedSpansBefore has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5916dad9f3040c92110794cf978bcdfe2e61fcba11d426f9e3a310bd93ea06"}},{"ruleId":"D2","level":"warning","message":{"text":"calculateScrollPos (cognitive 23): calculateScrollPos has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4edb080b7a688138025ba501545d549c526d38a063c9c9bc9914020499468f6"}},{"ruleId":"D2","level":"warning","message":{"text":"endOperation_finish (cognitive 23): endOperation_finish has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3813}}}],"partialFingerprints":{"codehealthFindingId/v1":"4000f0511bd591739a63ae8a1735a6ed790b571709066442732c14470bccad59"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeKeyMap (cognitive 23): normalizeKeyMap has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":6662}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca8caff88c56e7e9197fd1aa82fc5cf6d99553d1b986d3a3a9d4d5d2f1f9a80"}},{"ruleId":"D2","level":"warning","message":{"text":"onMouseDown (cognitive 23): onMouseDown has cognitive complexity 23 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9385c0814a628fff10b3192c9610b81bf01a15f3854d14a146272904eec6b498"}},{"ruleId":"D2","level":"warning","message":{"text":"NacosMcpRegistryService.listMcpServerByNamespaceList (cognitive 22): NacosMcpRegistryService.listMcpServerByNamespaceList has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 3, ternaries 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/service/NacosMcpRegistryService.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a95f80875ce0c5a56bd764be4c590246528bb76065c58491efc6e6a661c576"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupKey.parseKey (cognitive 22): GroupKey.parseKey has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/common/GroupKey.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bb1b45c31c79c1f75f4373f6bc7993ba475f435d48b8de90b15747337607fc"}},{"ruleId":"D2","level":"warning","message":{"text":"FailoverSwitchRefresher.run (cognitive 22): FailoverSwitchRefresher.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 4, boolean chains 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/backups/FailoverReactor.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeff8c566020fc710238d48c2f928872dc8adf34bc9b8894e0cd5ca7ce9e0b5e"}},{"ruleId":"D2","level":"warning","message":{"text":"NamingHttpClientProxy.reqApi (cognitive 22): NamingHttpClientProxy.reqApi has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, error handling 6, loops 4, boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e600175af8ef1d3fddb90fea1882e67e31c4ce9e6b988e9bc8e17bfaba273a"}},{"ruleId":"D2","level":"warning","message":{"text":"DumpChangeConfigWorker.run (cognitive 22): DumpChangeConfigWorker.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 6, boolean chains 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f1b21ac27590b1afcb10ad432438334595a60d820f9d99f5ce59d1130769bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCloneService.cloneConfig (cognitive 22): ConfigCloneService.cloneConfig has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8, ternaries 7, boolean chains 4, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCloneService.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"566d9c374cfb25b3ebb3f9b971f8b9a136c8e60b3cc36670fbb18bd6bf736ba1"}},{"ruleId":"D2","level":"warning","message":{"text":"MD5Util.getClientMd5Map (cognitive 22): MD5Util.getClientMd5Map has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/MD5Util.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"057ff102e6962494c167d72059d7e404b7e51ad7016554dcd0283d3472444873"}},{"ruleId":"D2","level":"warning","message":{"text":"Base64Decode.decode (cognitive 22): Base64Decode.decode has cognitive complexity 22 (threshold 15). Drivers by points: loops 7, ternaries 6, if/else 5, boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/utils/Base64Decode.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1deb53af87db013cdb83ec4821b3136c3376c9390b30cec18df61622bd5eb8"}},{"ruleId":"D2","level":"warning","message":{"text":"renderOptimizedPreview (cognitive 22): renderOptimizedPreview has cognitive complexity 22 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"80aab82c7e113774a1feb6587c8531be7a4a6788e6d26397a0e829d8c3bfdbe6"}},{"ruleId":"D2","level":"warning","message":{"text":"extractPackageName (cognitive 22): extractPackageName has cognitive complexity 22 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"553d0ae624b81e03b925ab62c8211b259e3650dabb2273843cce855409776f32"}},{"ruleId":"D2","level":"warning","message":{"text":"extractToolsFromOpenAPI (cognitive 22): extractToolsFromOpenAPI has cognitive complexity 22 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"348996e2edd9b2fe1fafaf1e63c6c16613fd9024c6185278f8d5820bbb9b7a28"}},{"ruleId":"D2","level":"warning","message":{"text":"allOfHandle (cognitive 22): allOfHandle has cognitive complexity 22 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/Swagger2Tools.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f36606548370e5b6dc8ec6487697e8ff9f3261b5fdb7d91a1e55e28e0eae9c0"}},{"ruleId":"D2","level":"warning","message":{"text":"onDrop (cognitive 22): onDrop has cognitive complexity 22 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":6431}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4159b86e14f757a6892ed7bb331c840a8937072b4592581d8b013afcc7479d1"}},{"ruleId":"D2","level":"warning","message":{"text":"triggerElectric (cognitive 22): triggerElectric has cognitive complexity 22 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7917}}}],"partialFingerprints":{"codehealthFindingId/v1":"8082e0b742425636ec3499107dee9cd69a0afefe58ff4918bae1f4e1726e4e11"}},{"ruleId":"D2","level":"warning","message":{"text":"onDrop (cognitive 22): onDrop has cognitive complexity 22 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":6431}}}],"partialFingerprints":{"codehealthFindingId/v1":"61320f97ec33cf30085aec668e13d11a7588a957159f8a15e034fad842824015"}},{"ruleId":"D2","level":"warning","message":{"text":"triggerElectric (cognitive 22): triggerElectric has cognitive complexity 22 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7917}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95dae6ad6dd5b094cf13935e0afc52cf85a0f20ea7a0893c4bd17d8d6fb821a"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupKey.parseKey (cognitive 21): GroupKey.parseKey has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"169afaf6de2f1e68e699c96da8a482bae7f8033e907724083968dbdfa4b631fc"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupKey2.parseKey (cognitive 21): GroupKey2.parseKey has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa42c177c0a4562925846cf97417ac5889a33d561b439a6cf9ad7d7b5d8e7109"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteRequestAuthFilter.filter (cognitive 21): RemoteRequestAuthFilter.filter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 2, error handling 2, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/auth/RemoteRequestAuthFilter.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0aa61f861b7ef8027de81d51b650b8c70ce53e193810ca028947ff604572cb"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHandlerRegistry.onApplicationEvent (cognitive 21): RequestHandlerRegistry.onApplicationEvent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, error handling 4, loops 3, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/remote/RequestHandlerRegistry.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0715ca48a1e18fb5ca000fc973c7876b00984a7102ca033327cba1ec4f69270b"}},{"ruleId":"D2","level":"warning","message":{"text":"NamingFuzzyWatchContextService.syncServiceContext (cognitive 21): NamingFuzzyWatchContextService.syncServiceContext has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/v2/index/NamingFuzzyWatchContextService.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad78aaaeca99c5d0ef14bcf66cb306d5f75977213f36d861fa137793398217c2"}},{"ruleId":"D2","level":"warning","message":{"text":"handleOptimize (cognitive 21): handleOptimize has cognitive complexity 21 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"7915159bb412aeb91e524047188c1cc31a245f78beedbc186198f15706134425"}},{"ruleId":"D2","level":"warning","message":{"text":"extractPackageVersionFromArgs (cognitive 21): extractPackageVersionFromArgs has cognitive complexity 21 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"957c4ae976ccd0bdf36bb5c1a7216959a0af327c9a8f2bd1d769a0718cbbb5ea"}},{"ruleId":"D2","level":"warning","message":{"text":"extractPackageVersion (cognitive 21): extractPackageVersion has cognitive complexity 21 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f798eee9a4abaea07ccd2813a13c1e7a2b674e26dbfe71e5e07c991658979f3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSpecOperationServiceImpl.listAgentSpecs (cognitive 20): AgentSpecOperationServiceImpl.listAgentSpecs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, ternaries 3, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f15b3e8fba056f162e12ca34f96ab46bd5f4065fa0465ef5278e595ef623664"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigEncryptionFilter.doFilter (cognitive 20): ConfigEncryptionFilter.doFilter has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 8 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/filter/impl/ConfigEncryptionFilter.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab28408c9c2c495729b11c3fb01e27f43e4c9ef6aa38c57e0bbb42b476ad2c3"}},{"ruleId":"D2","level":"warning","message":{"text":"NamingFuzzyWatchServiceListHolder.doExecuteNamingFuzzyWatch (cognitive 20): NamingFuzzyWatchServiceListHolder.doExecuteNamingFuzzyWatch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, error handling 6, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/cache/NamingFuzzyWatchServiceListHolder.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58bbb58f46158cd1e0d74ed9f111bc4a0b33da7af297534b4afb92ae811985f"}},{"ruleId":"D2","level":"warning","message":{"text":"Base64.decode (cognitive 20): Base64.decode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 2, match/switch 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/codec/Base64.java"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c7e1f68c4c755cbb4570abaa851ebcf7c5542a549a1a5eba48de522120fc34"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigFuzzyWatchContextService.syncGroupKeyContext (cognitive 20): ConfigFuzzyWatchContextService.syncGroupKeyContext has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/ConfigFuzzyWatchContextService.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62089b0267ba5f5f815f9921f6916edf054ee8fd1b5cb1dc4db8458c6872ad3"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveRefs (cognitive 20): resolveRefs has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/services/OpenApiService.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"574dbe0732446113dd3ec224f36d821de6d455b9dec66c6fada70bb603b958f8"}},{"ruleId":"D2","level":"warning","message":{"text":"renderCollapsibleSection (cognitive 20): renderCollapsibleSection has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bba5e2462364eddebe7267479f394a8d02aa155d52301f984ecec3919d9a43e"}},{"ruleId":"D2","level":"warning","message":{"text":"onload (cognitive 20): onload has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillManagement.js"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"efde16cd29f148cfab894a8f46bf49c163011cd23edbe2f1035ab784fe5aa4ea"}},{"ruleId":"D2","level":"warning","message":{"text":"renderGeneratedSkill (cognitive 20): renderGeneratedSkill has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bce06908f381d11731a7df1c5139ac9c051405a60df6d76476c37c09080973"}},{"ruleId":"D2","level":"warning","message":{"text":"constructor (cognitive 20): constructor has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpManagement/McpManagement.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0da96ff0d0f01cc20eddd686e9094b3eb45f1c4fcd3c5e1db7b6c287831067"}},{"ruleId":"D2","level":"warning","message":{"text":"ShowTools (cognitive 20): ShowTools has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cbbf5920123f8c9f8a153d5953d314471f92ffe28fe5494088327c62b6b7f3"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 20): (anonymous) has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e1dad2da85b4e007ffa7b59a48bb90570c5b324456c1d62e916801fc4c6121"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 20): (anonymous) has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/AgentDetail/AgentDetail.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4e7991c95e0ff2ad78736871f73e3b99474db7ebf17299009853aff1fe5809"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 20): (anonymous) has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4049}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9633f1dcff9a080dec2d6a0035eb91525298c22509e80cf5cadd0f97204954"}},{"ruleId":"D2","level":"warning","message":{"text":"find (cognitive 20): find has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5796}}}],"partialFingerprints":{"codehealthFindingId/v1":"9912cf350e59ac98658f49ee19b40fabf868a611feabf0f1905d2b90feb69530"}},{"ruleId":"D2","level":"warning","message":{"text":"configureMouse (cognitive 20): configureMouse has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb307009d7cfaabceca16efc5bb3b260f48a1ac4eef543b572cd346b1ddcb6f3"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 20): (anonymous) has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4049}}}],"partialFingerprints":{"codehealthFindingId/v1":"900b148b4c75f0d9c4c4a0913818653681cd46216d50189ba52b577db8835eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"find (cognitive 20): find has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5796}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b105404d13fd04a1d0aab5acc52596140a7246e54f49efc484128db1ce23d45"}},{"ruleId":"D2","level":"warning","message":{"text":"configureMouse (cognitive 20): configureMouse has cognitive complexity 20 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4fc2cd0b958568a36e9e227502a1333c41064d60e0c809af03da2a3905fd69"}},{"ruleId":"D2","level":"warning","message":{"text":"AiResourceManager.resolveLatestOnlineVersion (cognitive 19): AiResourceManager.resolveLatestOnlineVersion has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e222a9341f3681142f9fcd6a73cd724fc0f100ebf21867013f59b079a33cc89"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillOperationServiceImpl.createDraft (cognitive 19): SkillOperationServiceImpl.createDraft has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27e3c41eede92c3c54507cf5086f99aa252b592cd9dbd0f2277c83480a59d30"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialWatcher.loadPropertyPath (cognitive 19): CredentialWatcher.loadPropertyPath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, ternaries 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/identify/CredentialWatcher.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b57d3c127436276d84582870ded0476c50119f822e0cd881284ee4413bb1d19"}},{"ruleId":"D2","level":"warning","message":{"text":"NacosLock.tryLock (cognitive 19): NacosLock.tryLock has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, error handling 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/lock/NacosLock.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f612521502d386b75c38545faf6cb9e21f1d67e5dbbb2114abbadbc3bcbf5b4"}},{"ruleId":"D2","level":"warning","message":{"text":"DiskCache.parseServiceInfoFromCache (cognitive 19): DiskCache.parseServiceInfoFromCache has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 5, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/cache/DiskCache.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eef3d7265b7dcc94fb5e741536ac90a5c1fa0fa3c42e016e1af25518cc5f901"}},{"ruleId":"D2","level":"warning","message":{"text":"RpcClient.asyncRequest (cognitive 19): RpcClient.asyncRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, error handling 6, boolean chains 2, ternaries 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa1d912e9022de844b5ca742dbb20cf0c5174d801479fb98c658693b89a7cc8"}},{"ruleId":"D2","level":"warning","message":{"text":"RpcClient.requestFuture (cognitive 19): RpcClient.requestFuture has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, error handling 6, boolean chains 2, ternaries 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a672c38404a282b55e7038961a76387097cb9029f433bef41d738bfd615116f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInfoBase.equals (cognitive 19): ConfigInfoBase.equals has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/ConfigInfoBase.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9fbbcdd8536982781f6e8543dec095026b08a3678541576c6fe503cb5535a8"}},{"ruleId":"D2","level":"warning","message":{"text":"LockRequestHandler.handle (cognitive 19): LockRequestHandler.handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/remote/rpc/handler/LockRequestHandler.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ac256ab70e606d64e2ec185700156f1274eb89b56347e8a02e5913216a301d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7429b89605c9c07dc4e57775947196e467416acfda5bcd8ccb5b2eee0c7e8e"}},{"ruleId":"D2","level":"warning","message":{"text":"handleExport (cognitive 19): handleExport has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bc2c995bf0e68b9da03d33d9ae93e2b333abc2089e2f714109ba6b510ad8a9"}},{"ruleId":"D2","level":"warning","message":{"text":"success (cognitive 19): success has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"e330f75417372b0a39a61c25e583fb9a7cb2f4a6c54e224be8da4c23ccdf2067"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a4473d2167f176ff837e02d3ef08e21347289a50dd45c920a36454a265c2b5"}},{"ruleId":"D2","level":"warning","message":{"text":"renderCollapsibleSection (cognitive 19): renderCollapsibleSection has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dccfd26c898dfa166c55932fbf9f8ff79946cf3149d24df6e920ab2c115180"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"278b453883ec50c8f8203f3ed5a6724ebdd68f870f8d8bd1544759896be9af00"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"e937845cab10e9bcd82a1e3970e6e7a9fc57f29ad76ed5406151a309c5b8278f"}},{"ruleId":"D2","level":"warning","message":{"text":"AdvancedConfig (cognitive 19): AdvancedConfig has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/AdvancedConfig.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4447b617e53a6ef98580c752f8b340318e841d98bc663951ee430555bbf394f"}},{"ruleId":"D2","level":"warning","message":{"text":"getBidiPartAt (cognitive 19): getBidiPartAt has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c885c8ada35ca28bcd397a86713bb73ff55d672c311ac459714a1d4057f754"}},{"ruleId":"D2","level":"warning","message":{"text":"updateHeightsInViewport (cognitive 19): updateHeightsInViewport has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69d4a7b814a4b12ac6debdd213462c13c207ec6ef6e24076ce5b1d57f3e616d"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeOldSpans (cognitive 19): mergeOldSpans has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4900}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeec5efdd0dcbfecf40a847f96d2bc14568136f450618fec7de70e81a42ea57e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeMirror$1 (cognitive 19): CodeMirror$1 has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7600}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39b1751441125156e479d3c1273bb658623492e6c38f1c6ab52c797e45b6a91"}},{"ruleId":"D2","level":"warning","message":{"text":"walk (cognitive 19): walk has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8904}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e096b4d6a31f81e9db667c897fafd51dfce45e4705ac919a5857433164be93b"}},{"ruleId":"D2","level":"warning","message":{"text":"getBidiPartAt (cognitive 19): getBidiPartAt has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf1af1c1e9a6ba950bf820c3b5e90f2957848914c6379aa6d2b138dacaa48b4"}},{"ruleId":"D2","level":"warning","message":{"text":"updateHeightsInViewport (cognitive 19): updateHeightsInViewport has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3242}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fe170483ac65a7a30275ef675eac98dc9678744aa37ab7983b70b89644cad3"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeOldSpans (cognitive 19): mergeOldSpans has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4900}}}],"partialFingerprints":{"codehealthFindingId/v1":"e510ac72631e477950fe9c4bcde06407e949c48a8753e00d9634278cfe7f1c1e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeMirror$1 (cognitive 19): CodeMirror$1 has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7600}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a397508c21e1395a9e407421c5bad8ae412a94b6be8eaf19dda3d2accd533e8"}},{"ruleId":"D2","level":"warning","message":{"text":"walk (cognitive 19): walk has cognitive complexity 19 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71c8911fee811b94e12e76e61e1d02b2c717f789f9aade63ef6b75963308c39"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptOperationServiceImpl.createDraft (cognitive 18): PromptOperationServiceImpl.createDraft has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 10, if/else 8 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bab5f55f9398744a763d94dcc5063fd0d1d1cec7405830da2e95f16ca2ecfc"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerHttpAgent.httpDelete (cognitive 18): ServerHttpAgent.httpDelete has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b435fab86a9b81b1fa4551b596603b55d645324e3468cd24b9ef51182999619d"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerHttpAgent.httpGet (cognitive 18): ServerHttpAgent.httpGet has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"019ae87f04f0ece0a46f1c80dad7e457f1268714c9bf342565e4bddc0f68b2a9"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerHttpAgent.httpPost (cognitive 18): ServerHttpAgent.httpPost has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"71289a8b48d614b2ddd4edfd99f9c2577ad1e1df42e1a1a868e4a9ade23d315d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigRpcTransportClient.checkRemoveListenCache (cognitive 18): ConfigRpcTransportClient.checkRemoveListenCache has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6, loops 6, if/else 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"54df2346687f547169a512d1b8ed3a4b402d65d306e4e5278b877d5722a598b9"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtils.cleanPath (cognitive 18): StringUtils.cleanPath has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, loops 2, boolean chains 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/utils/StringUtils.java"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe99d7e1ae9bd53cf2eef04e7e0f028d4d723b18e34df0455f0124f264e27285"}},{"ruleId":"D2","level":"warning","message":{"text":"DumpConfigHandler.configDump (cognitive 18): DumpConfigHandler.configDump has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpConfigHandler.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b0257a70394d5b27a08688996fac53d3b6af4c7f24e10615d4bb1f999b25e0"}},{"ruleId":"D2","level":"warning","message":{"text":"TpsControlRequestFilter.filter (cognitive 18): TpsControlRequestFilter.filter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, error handling 6, ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/control/remote/TpsControlRequestFilter.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c0e7bc5e0ff630f29abcb480dc083f3542476bc5bf5edb4827cf075e257fd9"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractCheckedRoleService.hasPermission (cognitive 18): AbstractCheckedRoleService.hasPermission has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/AbstractCheckedRoleService.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b526cc35769ecd30994a3aa66018b07ab03a7c0afeb01bc2ace7166a90bd2e22"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 18): render has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/PluginManagement/PluginList/PluginDetail.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6ceb69ff65b0b2c0cb812bd96b69ffa22229dd115f8719bcf8071ec120de2f"}},{"ruleId":"D2","level":"warning","message":{"text":"constructor (cognitive 18): constructor has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad864bc29b45c92ab3e935820967facaca1138f2c0973266f60534c8abd36363"}},{"ruleId":"D2","level":"warning","message":{"text":"handleApply (cognitive 18): handleApply has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillManagement/SkillOptimizeDialog.js"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"67492943dc3c728b5619841ed2f32dcdfcb99049a8203cee8069bc2b41d77cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"handleSubmit (cognitive 18): handleSubmit has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d147fb79d38c01d48331f9bde19a2530f9bd274011a92926b6a85b339b99d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"autoImportToolsFromMCPServer (cognitive 18): autoImportToolsFromMCPServer has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3c5435cdd8efe6b041a6b5aeaea6e14c22c11ec80d8d98a73913bcd046edd0"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd91e4d28e9cfcb86ac001ddd4198fc9e39e97fcaee97e0821aba7901f35040"}},{"ruleId":"D2","level":"warning","message":{"text":"removeReadOnlyRanges (cognitive 18): removeReadOnlyRanges has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"06033a4627107d9dae6818da846d289b4596ce841f01e65e493d0ad11f2730f8"}},{"ruleId":"D2","level":"warning","message":{"text":"update (cognitive 18): update has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"6181bb47502ca9648ddb5efe9fe9775b92c9f274a957be7c80c46dbaefa1edfc"}},{"ruleId":"D2","level":"warning","message":{"text":"viewCuttingPoint (cognitive 18): viewCuttingPoint has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3978}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1eeb5bedcbd7f4c02e5eea3286ebed2505f1b429df927b666bb8c639e745e7"}},{"ruleId":"D2","level":"warning","message":{"text":"updateDisplayIfNeeded (cognitive 18): updateDisplayIfNeeded has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4156}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d49cb0ac591511e59fe40ca6f6e528e0442bc6e1ef0aec7e5c946a94b60b5a7"}},{"ruleId":"D2","level":"warning","message":{"text":"patchDisplay (cognitive 18): patchDisplay has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4275}}}],"partialFingerprints":{"codehealthFindingId/v1":"303e211ebedbe817c29545519c49c7ea18228113edac240cd77e6365786d811e"}},{"ruleId":"D2","level":"warning","message":{"text":"makeChange (cognitive 18): makeChange has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5176}}}],"partialFingerprints":{"codehealthFindingId/v1":"22597dc78d889113271320ba2ff7fc63f8578502ada4a30ce3869c41546bb1c2"}},{"ruleId":"D2","level":"warning","message":{"text":"poll (cognitive 18): poll has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":9214}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d12b4895bfde7144758638c48b74495c990c433f74f91a0645a2ee3da91a39"}},{"ruleId":"D2","level":"warning","message":{"text":"removeReadOnlyRanges (cognitive 18): removeReadOnlyRanges has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a99666caa8c79e70fef29eb2ff407a0875fa4557294437ad08e192c72f73c04"}},{"ruleId":"D2","level":"warning","message":{"text":"update (cognitive 18): update has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"4897930b6d3fb6a7588220737f2108f89cca3ad38fc783151fb0747c6988e6de"}},{"ruleId":"D2","level":"warning","message":{"text":"viewCuttingPoint (cognitive 18): viewCuttingPoint has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3978}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c37f6beedca6b9d578c7c9a738d05cf619aa3f420dbfbb35d6de64b35d2dbb4"}},{"ruleId":"D2","level":"warning","message":{"text":"updateDisplayIfNeeded (cognitive 18): updateDisplayIfNeeded has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d594ab21acf4c017f333333b740af65bbec0a9e4533bc9ee47e07063320518bd"}},{"ruleId":"D2","level":"warning","message":{"text":"patchDisplay (cognitive 18): patchDisplay has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4275}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab17fbba6116a556d48df0bc45ac074d88dc2211c6a5f60bc2b8f5343bdb9ae3"}},{"ruleId":"D2","level":"warning","message":{"text":"makeChange (cognitive 18): makeChange has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5176}}}],"partialFingerprints":{"codehealthFindingId/v1":"790b2501fe3a5aefcbe75e8ca6f23f1916a333d497dcda690c9613e8244041cb"}},{"ruleId":"D2","level":"warning","message":{"text":"poll (cognitive 18): poll has cognitive complexity 18 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":9214}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d38e0762792da3136c8a38753fc24c02f6fa03fc7b79d307a4cc50c80410e8"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishPipelineExecutor.execute (cognitive 17): PublishPipelineExecutor.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 7, loops 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/pipeline/PublishPipelineExecutor.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"87056fce67fdab9ef467957433982bf7407ea44cb3b414c80741637a62e11a60"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillOperationServiceImpl.listSkills (cognitive 17): SkillOperationServiceImpl.listSkills has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, ternaries 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"600c5bb86a388f1df1e709d1fed11fa92900a755ccd7da79dc8b5e56851d84cc"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillOperationServiceImpl.refreshSkillIndexManifest (cognitive 17): SkillOperationServiceImpl.refreshSkillIndexManifest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 4, loops 2, error handling 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe82558c840d5efe52ff53f70d1a5d74a9720f6ef4eb2bef18b0b55af218e41b"}},{"ruleId":"D2","level":"warning","message":{"text":"OidcClientAuthServiceImpl.login (cognitive 17): OidcClientAuthServiceImpl.login has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-basic/src/main/java/com/alibaba/nacos/client/auth/oidc/OidcClientAuthServiceImpl.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdd42a4ab5e30851a5e09f51bdd54d79a6362d1971cf6e40e43d78012269504"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialWatcher.loadCredentialFromProperties (cognitive 17): CredentialWatcher.loadCredentialFromProperties has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/identify/CredentialWatcher.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"54683621c271e65367c8e99a1296dc214d523d9478214f99d7f24b7e7d0b168c"}},{"ruleId":"D2","level":"warning","message":{"text":"NacosLock.lockInterruptibly (cognitive 17): NacosLock.lockInterruptibly has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, error handling 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/lock/NacosLock.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"985f9401e9ec2be22ec1afaf3afb76646068ab4778a4e808a7a019761c0674cc"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiTagMatchGrayRule.parse (cognitive 17): MultiTagMatchGrayRule.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/gray/multitag/MultiTagMatchGrayRule.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8143ebc549b7a3f7fa7fb2782757d9415e93470f0731784afba0bd5a3f981ce7"}},{"ruleId":"D2","level":"warning","message":{"text":"LockOperationServiceImpl.expireLock (cognitive 17): LockOperationServiceImpl.expireLock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5650b2e28073a0b78199ddfc37e4e20322c74d8727d4de48b8640dc4ce46aa21"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientHttpProxy.resolveErrorMessage (cognitive 17): ClientHttpProxy.resolveErrorMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/remote/ClientHttpProxy.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0121d8c4b1749ba6155603099a1f568f6c17cf04028a1ce7cca2264801346417"}},{"ruleId":"D2","level":"warning","message":{"text":"HealthCheckTaskV2.doHealthCheck (cognitive 17): HealthCheckTaskV2.doHealthCheck has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/healthcheck/v2/HealthCheckTaskV2.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fafa0810524cc5b71a40532a69db0a40dd0cd6fc40c1d019992ebcbec140f56"}},{"ruleId":"D2","level":"warning","message":{"text":"parseCommandLine (cognitive 17): parseCommandLine has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewMcpServer/NewMcpServer.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d463186a333bd687a3cf2dbb7f1025d68cf4226cfab9e388ce0d8ab15c1018"}},{"ruleId":"D2","level":"warning","message":{"text":"buildArrayItemSubtree (cognitive 17): buildArrayItemSubtree has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/ShowTools.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3584a9d6d859c13e3126ef7e1075d39a42c60668514806ea0a5aa6cc95889d9"}},{"ruleId":"D2","level":"warning","message":{"text":"lineIsHidden (cognitive 17): lineIsHidden has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc7f55c1dffdb287863918d22bb18682c42ab05e476f11657a48c9293725338"}},{"ruleId":"D2","level":"warning","message":{"text":"intoCoordSystem (cognitive 17): intoCoordSystem has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":2741}}}],"partialFingerprints":{"codehealthFindingId/v1":"3172ff1842e62f7d88f2d579f2624994f3baeb90f301dae0982e67cac3ce4bcb"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":3132}}}],"partialFingerprints":{"codehealthFindingId/v1":"462cf9dbc99c61afe5f125fdf5d5b14f3133e68b6fb3b901bc59b37843266f0c"}},{"ruleId":"D2","level":"warning","message":{"text":"rebaseHistArray (cognitive 17): rebaseHistArray has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5421}}}],"partialFingerprints":{"codehealthFindingId/v1":"15eadce2c582461c356f98082449905044b07e2f908885d6d732cce9c01eae73"}},{"ruleId":"D2","level":"warning","message":{"text":"leftButtonSelect (cognitive 17): leftButtonSelect has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":7242}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e72858e1eed2cb53c2337e94f807873fa4523190b84fadc61955fdeb89f606"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8046}}}],"partialFingerprints":{"codehealthFindingId/v1":"f344e255f27e5347a8cb347e933db865b5d209171b1625aa8f764c9ffbda9653"}},{"ruleId":"D2","level":"warning","message":{"text":"getHelpers (cognitive 17): getHelpers has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1aad6f321777cfa5c53546842f349a61fa74e35a9e8f59ab4650b1e2200604"}},{"ruleId":"D2","level":"warning","message":{"text":"reset (cognitive 17): reset has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":9144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2a2f0202c2bef1a4395f2224e56c6a8f313ecc1ea417381ea52ba26276db5d"}},{"ruleId":"D2","level":"warning","message":{"text":"lineIsHidden (cognitive 17): lineIsHidden has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d6f7285dd08ead094fae61176c7b7f9a4f41f6196a711337e94e8392666d4b"}},{"ruleId":"D2","level":"warning","message":{"text":"intoCoordSystem (cognitive 17): intoCoordSystem has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":2741}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b0959b647b9a30184a3fb3c4c310a0a9817e547cf511a653ed675b1695bbe6"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":3132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79d645df834b47a2b0eaa6c44bdb942cd6cffd67612d821f6c811b41e34d2e0"}},{"ruleId":"D2","level":"warning","message":{"text":"rebaseHistArray (cognitive 17): rebaseHistArray has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5421}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cbbb183a4fb909ffd20385ccc3ae56a529cf2eabcd4d786622681e9d14864e"}},{"ruleId":"D2","level":"warning","message":{"text":"leftButtonSelect (cognitive 17): leftButtonSelect has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":7242}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcee9969a21dd9e02986d1a7ec26f351a262ff4919a8ddc6086ede7b33b8f32b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8046}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ed4724fd19b90d33755d8acc884a1baaf21a37c7615aeb490ba1b18edb594a"}},{"ruleId":"D2","level":"warning","message":{"text":"getHelpers (cognitive 17): getHelpers has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fafef1a6d1e3d9fef695f69ba8c440ca4529336e047d83eeefa8bc2bc7cb8d3"}},{"ruleId":"D2","level":"warning","message":{"text":"reset (cognitive 17): reset has cognitive complexity 17 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":9144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3cc3d97e0b9a3432136dcd782503f5a84d5b2ff22dc0c9d60655be4da9483e"}},{"ruleId":"D2","level":"warning","message":{"text":"NacosSkillsRegistryService.collectExportableSkills (cognitive 16): NacosSkillsRegistryService.collectExportableSkills has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/service/NacosSkillsRegistryService.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38a330467d7e5be3bf71bdd31e691a88fe400065f31f189bfd9d5478e66a007"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSpecOperationServiceImpl.searchAgentSpecs (cognitive 16): AgentSpecOperationServiceImpl.searchAgentSpecs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 2, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3566565db19c9f049f68f645d84e0fd03c8294bac5bf10a681b6cb1e890356"}},{"ruleId":"D2","level":"warning","message":{"text":"AiResourceManager.doPublish (cognitive 16): AiResourceManager.doPublish has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"142b95b8f35300426874fd8f7a496822f3bec9cae35ca792cd8b2476a055f2db"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillOperationServiceImpl.writeSkillToStorage (cognitive 16): SkillOperationServiceImpl.writeSkillToStorage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, ternaries 4, error handling 3, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50a68af8e17796947768826085547c3f8e5ad25671adf0f67f7d6f33226fd4a"}},{"ruleId":"D2","level":"warning","message":{"text":"McpExternalDataAdaptor.generateRemoteServiceConfig (cognitive 16): McpExternalDataAdaptor.generateRemoteServiceConfig has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10, if/else 3, error handling 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"979dbf899bfeb03cb8c8e23905c3f17eba1098e8690f21628a4cd0ac756ca87e"}},{"ruleId":"D2","level":"warning","message":{"text":"McpServerOperationService.injectFrontendEndpointRef (cognitive 16): McpServerOperationService.injectFrontendEndpointRef has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpServerOperationService.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1523aa48617c30b63c29d99a074c3f78caefe6c1712f9bcb071e0f874fbd0f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSpecZipParser.parseResources (cognitive 16): AgentSpecZipParser.parseResources has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a86b05b4264161c0f01675a915001d3c919330db73d5320aef7ed934d6ee3e2"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillRequestUtil.parseFrontmatterField (cognitive 16): SkillRequestUtil.parseFrontmatterField has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/SkillRequestUtil.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"699dd031a06752e736a66f6d6f9d4e247b871c36f1dec93482ea6ba5d179c8a9"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillZipParser.parseYamlFrontMatter (cognitive 16): SkillZipParser.parseYamlFrontMatter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b72df0fdefdbefd2bbe8149db33db8411b93bcd662b6983e9ccfc0929dce071"}},{"ruleId":"D2","level":"warning","message":{"text":"InstancesDiffer.doDiff (cognitive 16): InstancesDiffer.doDiff has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/cache/InstancesDiffer.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2680e82f9d8a251b1d60b28107ce799c8a922675b2dada2582a1bca9d19423"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpUtils.buildUrl (cognitive 16): HttpUtils.buildUrl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/http/HttpUtils.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a570e52f01e6ff4b51222bb132abcf2d8855c170ac771b67fa02a03d47fc9f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.fromProperties (cognitive 16): Builder.fromProperties has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/grpc/DefaultGrpcClientConfig.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a06a53662ef32c337d9919565179c3f11af483f99c3ea19732845887c692256"}},{"ruleId":"D2","level":"warning","message":{"text":"DumpProcessor.process (cognitive 16): DumpProcessor.process has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 14, if/else 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/processor/DumpProcessor.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"52070945ada807d0a2293704880a11eb3c494be39aba20fa9d8b77d866ccef7a"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedConfigInfoPersistServiceImpl.findConfigInfoLike4Page (cognitive 16): EmbeddedConfigInfoPersistServiceImpl.findConfigInfoLike4Page has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 4, loops 3 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfd20be5e0f117d9be672f32343df2fd6af14ff0ee4a42dbef4e85b3f75fe31"}},{"ruleId":"D2","level":"warning","message":{"text":"PersistentInstanceSnapshotOperation.removeDeadClient (cognitive 16): PersistentInstanceSnapshotOperation.removeDeadClient has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/PersistentClientOperationServiceImpl.java"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a7f30eb5528d6da675795cdc27ca422680f075f56e6ae18e9f7b2920249616"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientServiceImpl.getPublishedClientList (cognitive 16): ClientServiceImpl.getPublishedClientList has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/ClientServiceImpl.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8480e558a9a9c30f2612e3e95d1354abad7e24171b77794a5973143d4af73968"}},{"ruleId":"D2","level":"warning","message":{"text":"PostProcessor.run (cognitive 16): PostProcessor.run has cognitive complexity 16 (threshold 15). Drivers by points: error handling 8, if/else 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/healthcheck/v2/processor/TcpHealthCheckProcessor.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"389e5e07ff45d3f0f2a6d7063d38bed10651b9395a9e7b1000572b0efc9b713a"}},{"ruleId":"D2","level":"warning","message":{"text":"McpRegistryClient.generateRemoteServiceConfig (cognitive 16): McpRegistryClient.generateRemoteServiceConfig has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10, if/else 3, error handling 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c5f5e2fce357dc4bfb371c51b30be978fe2ea526fbbb77c1f5ba182cce6561"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/utils/request.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f45a23c5ebc221462726c96c51d39de20e8db6192116e1d5b8a0b86df43295"}},{"ruleId":"D2","level":"warning","message":{"text":"success (cognitive 16): success has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/PromptDetail/PromptDetail.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80e463d0f0a949e40418e90af9b8c5a76a7961f88ac1b8a3e960e87a38020b7"}},{"ruleId":"D2","level":"warning","message":{"text":"success (cognitive 16): success has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e200c5a4308d15d6b222cd62aa859346204e5832eaebb18c0f382d743ffacb"}},{"ruleId":"D2","level":"warning","message":{"text":"buildDefaultSecurityFields (cognitive 16): buildDefaultSecurityFields has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/McpDetail.js"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77d2d4929e9fc43dac523a8cb47bf7871fb92326d207d5d0ab2bb50f6ef2a21"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/McpDetail/CreateTools/SchemaEditor.js"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"43022d36d4887ecca84f0c78b27d0a16e277ddcc6ddbc1efb2bc82400f6485c5"}},{"ruleId":"D2","level":"warning","message":{"text":"postUpdateDisplay (cognitive 16): postUpdateDisplay has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4228}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3d07c0b7dc6fd5576719b635ebf5ae60d88ce210bdecf7eff20fc3ab019306"}},{"ruleId":"D2","level":"warning","message":{"text":"addChangeToHistory (cognitive 16): addChangeToHistory has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":4780}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf4a2298fc8524fd7c266bf35c374b3697e6077c5a4b788c8a482d438e54896"}},{"ruleId":"D2","level":"warning","message":{"text":"makeChangeSingleDocInEditor (cognitive 16): makeChangeSingleDocInEditor has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":5338}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5bdbfa50c3806da4407106068abf3153a783f33228ff19bbb26705d9b6b235"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":6863}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c87e891e2001312183915c896c1c55cfcc8997a824a8523dbb843db6990ffe6"}},{"ruleId":"D2","level":"warning","message":{"text":"findWordAt (cognitive 16): findWordAt has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":8296}}}],"partialFingerprints":{"codehealthFindingId/v1":"43142bea2eaed6ecbee7b822d4b20ca8a3d9e36926d1c1d6e11623ad4e2b525a"}},{"ruleId":"D2","level":"warning","message":{"text":"postUpdateDisplay (cognitive 16): postUpdateDisplay has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9625af07a3ac15cf9a524bdbf55464d59577480056edf8a876b51fc21c89c7"}},{"ruleId":"D2","level":"warning","message":{"text":"addChangeToHistory (cognitive 16): addChangeToHistory has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":4780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ed0135df0a68f28e12b8fe75594ae6ebc5e217085fb8360c6dd5d3d93ebb18"}},{"ruleId":"D2","level":"warning","message":{"text":"makeChangeSingleDocInEditor (cognitive 16): makeChangeSingleDocInEditor has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":5338}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ce1c522b0e1a9a636ea1f4d336d7aae6e01206a87392a0991994af3fc0ab47"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":6863}}}],"partialFingerprints":{"codehealthFindingId/v1":"a878382f3f84fc3673c1289d0bf0f6b03145e057b2cefea86a0fcf07161db03c"}},{"ruleId":"D2","level":"warning","message":{"text":"findWordAt (cognitive 16): findWordAt has cognitive complexity 16 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":8296}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1d78dbb663defa171e6e5b2b5b8a98a5138ede73cc70012c53a1adecf774af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/codemirror.js: FileTooLong \u2014 6348 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). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/console-ui/public/js/codemirror.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba756f980d35dda74b5f72e72c8e60b6eeb60591ffbb0bc049303f2775d07ac4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/codemirror.js: FileTooLong \u2014 6348 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). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/legacy/js/codemirror.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6568f1d0468e9c828f751068b6461aa7c2519a453ab18a9b8979a1158291e29"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: NewSkill/NewSkill.js: FileTooLong \u2014 2885 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). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/NewSkill/NewSkill.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54bee6d7dfe39f30f87dfe87a8699a216a490835438902ec35d04ae89a1eed4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SkillDetail/SkillDetail.js: FileTooLong \u2014 1792 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), about 98% of them inside a single declaration: SkillDetail (51-2467). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1807e92bae517bbb9c661b241db3cb42163c27cabb0e6b6691adf3ec373dc44f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NacosNamingService: TooManyMethods \u2014 81 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"82da787c897646da92acb69b6d0ffe50e872e22e10c5472f1d8d71b22fa3944d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiResourceManager: TooManyMethods \u2014 72 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63fa02ac35cbcd3c4d047c9d47f0f7c1b1b2d6b2dd1b8960b77420719e00abb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SwitchDomain: TooManyMethods \u2014 72 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchDomain.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"52490e48b508463cd7178eef4139741bac48e65e82d765b59f0d5a7e3e6bc946"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: skills/SkillOperationServiceImpl.java: FileTooLong \u2014 1198 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SkillOperationServiceImpl (99-1889). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9084619568b8c6390326b38009372a530ea8bd02b7e52f5ee46f85c157f9ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkillOperationServiceImpl: TooManyMethods \u2014 71 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"146287f03645921d80896ba2c28be81e36bd0910aeeb3016261914886890ab28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extrnal/ExternalConfigInfoPersistServiceImpl.java: FileTooLong \u2014 1084 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ExternalConfigInfoPersistServiceImpl (104-1410). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46776d790bdc2cafbcc3c5521b6a06c0bb8eb61419d0938754fd2f50ac256a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agentspecs/AgentSpecOperationServiceImpl.java: FileTooLong \u2014 975 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AgentSpecOperationServiceImpl (86-1568). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"208c31da4fc5e716ddf24da878ef223293d1ede9ca778a1bf9a7c5524280d51a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: embedded/EmbeddedConfigInfoPersistServiceImpl.java: FileTooLong \u2014 953 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: EmbeddedConfigInfoPersistServiceImpl (98-1253). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da36d4028b0ebea231e2a483427dd1f35bfb9bf20bd4428ff2ff911abe50ed0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: impl/ClientWorker.java: FileTooLong \u2014 922 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: ClientWorker (116-1514). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f1a55af6dad1e6f82d444a4f816f70281d8c6a18e961e60814a4a3bf0b8746"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: resource/AiResourceManager.java: FileTooLong \u2014 921 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AiResourceManager (71-1522). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3938c89806e88d5f7644c4c1b93ac0dea4562e415b8041a23235802c9a707364"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PropertyUtil: TooManyMethods \u2014 51 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/PropertyUtil.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e84c79e0b91271cd4731e615e0c5b57bd5e5a9bfefa622c974816bb106b60c6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PromptOperationServiceImpl: TooManyMethods \u2014 50 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"343d0c12a49c961078a556d2db16bed5a4b5d1da1fd69cc0a99dfac4edc3d74f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentSpecOperationServiceImpl: TooManyMethods \u2014 49 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa0fc22559e27258b932ecee8c800af7a81cac548b6f1475e97b0117494eedd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EnvUtil: TooManyMethods \u2014 49 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sys/src/main/java/com/alibaba/nacos/sys/env/EnvUtil.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6db258ef20a424bcebcdf5d787a47428c18c2bf6905439490443e08dc83552"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prompt/PromptOperationServiceImpl.java: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: PromptOperationServiceImpl (83-1127). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af23d317f7432c2c5ad23c299f0bd3030ba445d2082d20d54ce44be7b78f70d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkillWellKnownImportService: TooManyMethods \u2014 47 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/skill/SkillWellKnownImportService.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a364e64dbb90d60952a9a1bae0119af3a40e171fff502aa5f35a9411213d494f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExternalConfigInfoPersistServiceImpl: TooManyMethods \u2014 45 methods. Most of these members implement repository.ConfigInfoPersistService (34 of 43 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9628cd44c2528843a6be4c04d9b65cda4702355de86a73cd1f139246b0884365"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigHistoryInfoDetail: TooManyMethods \u2014 43 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/ConfigHistoryInfoDetail.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4744acbf01502a4dd1f1700e447092083458a40bb9adaf2f773eb68a507a520"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkillUploadPrecheckResult: TooManyMethods \u2014 41 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/ai/model/skills/SkillUploadPrecheckResult.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ac453406b34425bdfbf732f5d136599f502e923fe08874593da8730c15d030"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CacheData: TooManyMethods \u2014 41 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/CacheData.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f81759f440c6c2dfadb07ff9245c77c04c23514392e5768a73332b2f3336346"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigForm: TooManyMethods \u2014 41 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/form/ConfigForm.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5393722c519d38d06f8b0a3fdcab96beb74cc139198eb13d6a8b6efcff444d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EmbeddedConfigInfoPersistServiceImpl: TooManyMethods \u2014 40 methods. Most of these members implement repository.ConfigInfoPersistService (34 of 37 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da7e66fdefb71b24193e1a41dcda78273a722e445aaa25039004ddc38c9eb5f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkillsShImportService: TooManyMethods \u2014 40 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/skill/SkillsShImportService.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b573328aadb09fe5babb070700f7c0c1c848628ec86a1280d18d5e3ebb6ab4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StringUtils: TooManyMethods \u2014 39 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/utils/StringUtils.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbca95e8b765bc3e93955d7df87b69d4b74cd1cac6a5f26f58084a5921b74ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ServiceInfo: TooManyMethods \u2014 38 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/naming/pojo/ServiceInfo.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa790efe36af187865bc5f203fbdceb8f3c3ce91c44bc3c799f4bed91012aab1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NamingGrpcClientProxy: TooManyMethods \u2014 38 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/remote/gprc/NamingGrpcClientProxy.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1668d656bc43fbe72320fda9b4d52faf1264769783204cb3eaf313b110d7d91"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RpcClient: TooManyMethods \u2014 38 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab03c4ded4082830b4a660bd9110db2a6b6e5f70c42b3c19817716d24e260a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetricsMonitor: TooManyMethods \u2014 38 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/monitor/MetricsMonitor.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"06df8872fc2cb973d33dcbd6c8c53e0629fc8263ee91015df12ad3fa5e291ac5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiGrpcClient: TooManyMethods \u2014 37 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9057e5f824850b1da25846fffd0b66b18138cb4202e52280e2cd99d71a0c1d59"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigHistoryInfo: TooManyMethods \u2014 37 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/ConfigHistoryInfo.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5a0faeff2a3e9cd790d2b2b64546b5a111c7635b4b1da95acbcce310d7daf0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/McpServerOperationService.java: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: McpServerOperationService (86-888). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpServerOperationService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcba42c36046ee09c86d63884bc6b76fb713a4304dd820e71dfff490a620cc08"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Instance: TooManyMethods \u2014 36 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/naming/pojo/Instance.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ae90af6852adea45099e271074027f74853601ccb7e3852b24773bc0dccae7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NacosAiService: TooManyMethods \u2014 36 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/NacosAiService.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"018f3affd3487db9b2a19f1df0bf1d306209f11c82a9a64b39d6b22776f515df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: v3/ConfigControllerV3.java: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: ConfigControllerV3 (116-815). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3060b8bc5634bbb3484043b314803fa56820f7c815457b992c82a28c888897cf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpServerBasicInfo: TooManyMethods \u2014 35 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/ai/model/mcp/McpServerBasicInfo.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5766ff3ea729730660b595d4dd0ac7bc7a1a7173a30a5e779bdee80aee15eee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NacosNamingMaintainerServiceImpl: TooManyMethods \u2014 35 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1f0e02d1334639ac96ab003ecd6f372398304c12d81d765f5ff879a06918e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/RpcClient.java: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: RpcClient (69-1082). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4465154b535a37b8e7bebf2d7368510ef6974c04036c1154cf08241beee9f9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiResourceImportManager: TooManyMethods \u2014 34 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportManager.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff9450a1374d55c438106eedbd4ed569a891983ca4eea50ddb694bcc6cc14f5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigDumpEvent: TooManyMethods \u2014 34 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/event/ConfigDumpEvent.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f5c8c8243c60dadfb419f1a520fbb7a58addecf8152a68d57abe2f1c227220"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConnectionMeta: TooManyMethods \u2014 34 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/remote/ConnectionMeta.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f583309cd6e00c4725232d4efad4bedbd198f94bc081554403b253e205871be"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkillSpectorPipelineService: TooManyMethods \u2014 34 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPipelineService.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9760ee21a701ccc9c368864ae614ecf626b2a9e29482c0d7938ee4733c61715c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CapacityService: TooManyMethods \u2014 33 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/capacity/CapacityService.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc0c803342bfc1a4ff612c538d73e61b11b0a4c41168d6603844acba6a977c8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DiskUtils: TooManyMethods \u2014 32 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sys/src/main/java/com/alibaba/nacos/sys/utils/DiskUtils.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f00a22465c054b6f74a5ae675f7f1f19b579e870d7f247a50c94a8f0b1aebf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/SkillZipParser.java: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SkillZipParser (53-995). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fc1240c395315bb0448d75a119f831890fddee7421eb6dcb751604a7b96337"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: naming/NacosNamingService.java: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: NacosNamingService (74-759). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd57cec8cc3b9ea9623909c3ce2687b4fe73cb70d5ab14a5c6198b8af55f8b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiResourceImportProperties: TooManyMethods \u2014 31 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/importer/config/AiResourceImportProperties.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0df93adb4a0771d2301322d8c0b6c71f114c57048422cf14deeda625e27db11"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiResource: TooManyMethods \u2014 31 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/model/AiResource.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb9226c391b627fe9dffe1d737f4e5471d9e9df6b39c834e27f1c1eb534734d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkillZipParser: TooManyMethods \u2014 31 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5184fc5974a53ca02d60f9f017bdd80f15d1b5c445fa094bee8c2a91c789f70"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClientWorker: TooManyMethods \u2014 31 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb67e99762337353e8f6e20ef999db35646a44dde262cf09ccf601711ee216aa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigRpcTransportClient: TooManyMethods \u2014 31 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c94df315cacdad110dee8b40dcad7f3fe2df08a9825cd2de46b975b914b8f3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ParamInfo: TooManyMethods \u2014 31 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/paramcheck/ParamInfo.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85adb22c2df4e9761d575860628a2760992caf866dd5aac6f64d5a6375131e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: skill/SkillWellKnownImportService.java: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: SkillWellKnownImportService (67-801). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/skill/SkillWellKnownImportService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fcf55829a59c3dd5454d087f8e770653be7035af66e8f8a4260bcdefba8eb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: naming/NacosNamingMaintainerServiceImpl.java: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: NacosNamingMaintainerServiceImpl (64-647). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b106f6ef038f569b57f9f1131a564dcda6bc143456db790199165a31b12c3da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:239-259 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigTagsRelationMapperByOracle.java:88-108 \u2014 before extracting anything, compare \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java\u0060 and \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigTagsRelationMapperByOracle.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 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 \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"be65caf8b1e4deafda6900eaa4566a85cb2c2f9725d8cab7100209ca3fc9c961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:314-332 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigTagsRelationMapperByOracle.java:83-101 \u2014 before extracting anything, compare \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java\u0060 and \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigTagsRelationMapperByOracle.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 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 \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:314\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"285cda732a44f7c1e84fc2446c1f1420079ac87b1ebf3c7bfecbd207734da3c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:1126-1142 | client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:1219-1236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:1126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a120b7dae9fc748d956c926b70027852447b366c561ab3bb6b27a798e4338440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:80-96 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:123-139 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:166-182 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/extrnal/AuthExternalPaginationHelperImpl.java:84-100 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/extrnal/AuthExternalPaginationHelperImpl.java:127-143 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/extrnal/AuthExternalPaginationHelperImpl.java:180-195 \u2014 there are 6 copies across 2 file(s) \u2014 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab0bc0a407153ba7b26247f9b654045ec3d3420213f52cf6ce3de22a137c3d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:240-255 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:348-363 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:457-472 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:561-576 \u2014 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 \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"926159d8bf7aece875038d1296d9416e575a1478a413eb1b6d65ef7144ecbdf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:147-163 | ai/src/main/java/com/alibaba/nacos/ai/config/SkillDataBootstrapInitializer.java:139-154 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6efe3c54f80ed71a7924c37939cd969cb3756cbd7ea3878384500c3c21f330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCacheService.java:293-308 | config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCacheService.java:347-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCacheService.java:293\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCacheService.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd9aa4f687d33ebe422716494ffd4a35525a138c6091faeb6eef438435904c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:100-114 | client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:162-176 | client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:225-239 \u2014 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 \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:100\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06c8c47ca033777115e2a7885dbd18ccaa40ddfc39c64c6aa975c5bf26718c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/DiskUtils.java:69-83 | sys/src/main/java/com/alibaba/nacos/sys/utils/DiskUtils.java:205-219 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/DiskUtils.java:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/DiskUtils.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cfb5259fe32b6d5c69946a781f0bf1e4f0f50cf1e3c1560b5b320798ee2823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): persistence/src/main/java/com/alibaba/nacos/persistence/repository/embedded/EmbeddedPaginationHelperImpl.java:133-146 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:73-86 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:116-129 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:159-172 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/extrnal/AuthExternalPaginationHelperImpl.java:77-90 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/extrnal/AuthExternalPaginationHelperImpl.java:120-133 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/extrnal/AuthExternalPaginationHelperImpl.java:173-186 \u2014 there are 7 copies across 3 file(s) \u2014 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 7 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/alibaba/nacos/persistence/repository/embedded/EmbeddedPaginationHelperImpl.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d51b311460bfef43983c1a2a161d6152323c21f1d5f7092918b23fd90ba8225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java:714-728 | common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java:766-779 | common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java:817-830 \u2014 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 \u2014 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 \u0060common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java:714\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8728ebc0f21d7c5b73279bd035b0128cdf8c5816b0be05bbf2eaedee8ce616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:252-265 | ai/src/main/java/com/alibaba/nacos/ai/config/SkillDataBootstrapInitializer.java:237-250 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27f65e5b0cf36367f43baefa80bbb4f1aef4922e41db0a88038a8c7c5ef5db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:347-360 | ai/src/main/java/com/alibaba/nacos/ai/config/SkillDataBootstrapInitializer.java:270-283 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:347\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87b57a0b469e4c3c77b8ae782b35b1e85b0906bbc005b47f09e453d9bdba101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java:81-94 | config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java:76-89 \u2014 before extracting anything, compare \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java\u0060 and \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 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 \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a3dad9f1657d98027fabcd69eb3786576a487472d73b3b1ff80320c96536be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): copilot/src/main/java/com/alibaba/nacos/copilot/service/PromptDebugServiceImpl.java:78-91 | copilot/src/main/java/com/alibaba/nacos/copilot/service/PromptOptimizationServiceImpl.java:77-90 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/PromptDebugServiceImpl.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"40619b189bf1e0e30a856fe9a8ba493a0d41caeea0ad1f6138b364f2e5c96ab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:119-131 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:281-293 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:390-402 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:498-510 \u2014 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 \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f597640e25ee4a43e51a840e0bc934cfdb1032c6da38c39fbd19a06969c6b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): common/src/main/java/com/alibaba/nacos/common/paramcheck/DefaultParamChecker.java:562-574 | common/src/main/java/com/alibaba/nacos/common/paramcheck/DefaultParamChecker.java:594-607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060common/src/main/java/com/alibaba/nacos/common/paramcheck/DefaultParamChecker.java:562\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/paramcheck/DefaultParamChecker.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85d670ca42473602d9b455008e30bb98701d49fa2f6c6643c6bc0bbe7792150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:684-697 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:745-757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:684\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3e03eea642eccb226eb866c014a7e30b3614cff96e76e16c691deca196431f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/namespace/repository/EmbeddedNamespacePersistServiceImpl.java:87-99 | core/src/main/java/com/alibaba/nacos/core/namespace/repository/EmbeddedNamespacePersistServiceImpl.java:127-139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060core/src/main/java/com/alibaba/nacos/core/namespace/repository/EmbeddedNamespacePersistServiceImpl.java:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/namespace/repository/EmbeddedNamespacePersistServiceImpl.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"438d9a0b2f109d15ac084c4bf658deae57af481bba896c22e1a58f4f3b9b705e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java:103-115 | istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java:334-346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a6d68c0f339477d22c373f4ec34b04920fd7a1dc59ea0be71152e0fb7ef7f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:193-205 | lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:323-336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:193\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5468567b3d4070955a0864f3ce3776100594310ee47e08e1267c8ce0effb9a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:198-210 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/extrnal/AuthExternalPaginationHelperImpl.java:211-223 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java:198\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/embedded/AuthEmbeddedPaginationHelperImpl.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"054af9326f0e93da9be8eb8fd1b82f71d1e20eb921066649adae8b6ee993c46d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:189-200 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:208-219 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:228-239 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:260-271 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:280-292 \u2014 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 \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:260\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4439c1a95baa5fd1f0d06419db5c70cd752d356098ebc1a319e919b49eb3115a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:221-232 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:329-340 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:438-449 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:543-554 \u2014 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 \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b766a90eef2e6f1fbc4d41f58735da513456ccf5808c116b339fd0679b5ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java:141-152 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:116-128 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:127-139 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:192-204 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f44b89a2201171151808d9ae4efd2378b16ef84fe4e3049cb05f40eb370105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:153-164 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:134-145 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:145-156 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:210-221 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3d46a992295a4ad27b275c75c156e509fb9c3bc5a94f32dfd7716118c8e435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:189-200 | ai/src/main/java/com/alibaba/nacos/ai/config/SkillDataBootstrapInitializer.java:179-190 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:189\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"03823ab987ef9eb478fdea683868c314f505cf9b3e05126e22c93d75c4c6fd65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/importer/security/AiResourceImportSecurityGuard.java:104-115 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/http/DefaultImportHttpClient.java:166-177 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/importer/security/AiResourceImportSecurityGuard.java:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/importer/security/AiResourceImportSecurityGuard.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d49bf3fba12e122c5cb06e40a6581520c7e94710118afff47ac6c3a6d8b2e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:818-829 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1071-1083 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:818\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a1a40191d315b183970c16002be7638d888bdf8ff65552cc98f88a350798bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1295-1306 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1641-1652 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d5764894e0d33f0d370c8e5357b3477b1a7b35bfffaf8f1efb1c493ab4d3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:157-168 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java:241-252 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79168b232b733940e8d74a8451cca8893f46074c65079d61ce0ff2e536fe246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): api/src/main/java/com/alibaba/nacos/api/ai/model/agentspecs/AgentSpecUtils.java:72-83 | api/src/main/java/com/alibaba/nacos/api/ai/model/skills/SkillUtils.java:609-621 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060api/src/main/java/com/alibaba/nacos/api/ai/model/agentspecs/AgentSpecUtils.java:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/ai/model/agentspecs/AgentSpecUtils.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa55fdc860a999c3a7dbe8fb4d89157223b2291d743fc612e521b2fd3f10b35f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:327-338 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:471-482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:327\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"76530148341d6880e76ad35348f0d00ad6673b514fe2d088f6624166e9895591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchContext.java:267-278 | client/src/main/java/com/alibaba/nacos/client/naming/cache/NamingFuzzyWatchContext.java:185-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchContext.java:267\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchContext.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"af32a99bd180408e765b26b1b4c8e9ee4fdbd0e76ee527f18d43b2b5e835b9b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java:262-273 | client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java:329-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java:262\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3c5da98088599eb672b8470c77215ffcd335fac1072d73f8fbc3dc1a305319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/security/SecurityProxy.java:121-132 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/remote/ClientHttpProxy.java:344-356 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/security/SecurityProxy.java:121\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/security/SecurityProxy.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b54108e4f00395ec7a4698e2a94da995c449b417ca9073c64f610d9f4c07cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:602-614 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:657-668 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:602\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e32c1008f4e21db9635563b7ec2f3276bd3114f9462f4657b2ade5363a9815e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1223-1234 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1368-1379 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"36345f09714b79571c7c1fc88b10b341d094d1952699ec22802dd13b5c0f6ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1246-1257 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1283-1294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1246\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6349379b7c81271de4a9770611e16a14c4e62301f91b5a5530fcf3b41e041c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:165-177 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:236-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7fa2a47fe7bd8bde493cace122059cac34c4a242f9706ef588157703e9afc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java:134-145 | example/src/main/java/com/alibaba/nacos/example/SkillExample.java:123-134 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f873f97bdc91c301376e1ff47e468b3171636735c10beeb8fbb3842b34f048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): example/src/main/java/com/alibaba/nacos/example/NamingFuzzyWatchExample.java:71-82 | example/src/main/java/com/alibaba/nacos/example/NamingFuzzyWatchExample.java:88-99 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060example/src/main/java/com/alibaba/nacos/example/NamingFuzzyWatchExample.java:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/src/main/java/com/alibaba/nacos/example/NamingFuzzyWatchExample.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"590333c8858e50bb39a73a935c753a25706790997612cfa62229c77912e1a288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/mcp/McpConnection.java:40-51 | istio/src/main/java/com/alibaba/nacos/istio/xds/DeltaConnection.java:44-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060istio/src/main/java/com/alibaba/nacos/istio/mcp/McpConnection.java:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/mcp/McpConnection.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da859ae2dd76b5bf94ea1b9ecde54d84ed532aa61670db55fb4f494ed8d9d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/consistency/ephemeral/distro/v2/DistroClientTransportAgent.java:72-83 | naming/src/main/java/com/alibaba/nacos/naming/consistency/ephemeral/distro/v2/DistroClientTransportAgent.java:122-133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/consistency/ephemeral/distro/v2/DistroClientTransportAgent.java:72\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/consistency/ephemeral/distro/v2/DistroClientTransportAgent.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9944becc7d71fb8855b041e0b43d29ad5a568e60d29b5ad628a34bf489472b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:429-440 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPipelineService.java:494-505 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:429\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"323d5126cbb6e146677b11bc784c8e20a94f49bfa6d5698ab5e851ac296884e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:199-210 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:257-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:199\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4027caccb91edee449e98d45d53892c52201f0d0f0d59a2118fececac5803657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/HistoryConfigInfoMapperByOracle.java:74-85 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/HistoryConfigInfoMapper.java:139-150 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/HistoryConfigInfoMapperByOracle.java:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/HistoryConfigInfoMapperByOracle.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"06346e14afa4e1068f2469708907f5deed24a7629aaef7d1dd7e68d0111ef9ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java:228-238 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigTagsRelationMapper.java:73-83 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:230-240 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoTagsRelationMapperByDerby.java:62-72 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:208-218 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:267-277 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigTagsRelationMapperByMySql.java:58-68 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:221-231 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:291-301 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigTagsRelationMapperByOracle.java:60-70 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:370-380 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigTagsRelationMapper.java:64-74 \u2014 there are 12 copies across 10 file(s) \u2014 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 12 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java:228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c167906ba2df648ad6c221d3177401d37812ed6c1813743a274754f70e6bf5f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistService.java:43-53 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:163-173 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:141-151 | core/src/main/java/com/alibaba/nacos/core/namespace/repository/EmbeddedNamespacePersistServiceImpl.java:166-176 | core/src/main/java/com/alibaba/nacos/core/namespace/repository/ExternalNamespacePersistServiceImpl.java:161-171 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java:135-145 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java:159-169 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedUserPersistServiceImpl.java:160-170 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:167-177 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalRolePersistServiceImpl.java:180-190 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalUserPersistServiceImpl.java:196-206 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistService.java:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistService.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4a582bbe7e8cc0344e6ad784b4a8114cba6c3001891dcd508ba73240049609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:264-274 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:295-305 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:329-339 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:473-483 \u2014 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 \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"20062bc6fa08df6ac8e3bb7cad6769e8becccede9cf76b4e937f1524cd5bb558"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): client/src/main/java/com/alibaba/nacos/client/config/impl/LocalConfigInfoProcessor.java:74-84 | client/src/main/java/com/alibaba/nacos/client/config/impl/LocalConfigInfoProcessor.java:94-104 | client/src/main/java/com/alibaba/nacos/client/config/impl/LocalEncryptedDataKeyProcessor.java:64-74 | client/src/main/java/com/alibaba/nacos/client/config/impl/LocalEncryptedDataKeyProcessor.java:87-97 \u2014 there are 4 copies across 2 file(s) \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/LocalConfigInfoProcessor.java:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/LocalConfigInfoProcessor.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0634eac7dcd4fc08caf5177ac238c670e82f1bbb587db79291675eaff80dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1130-1140 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1166-1176 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1244-1254 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1281-1291 \u2014 there are 4 copies across 2 file(s) \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6d00a1499ba52b2db69c1d4bd7d2373f8f67232762f1660b859a31f8a6bbc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:121-131 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java:208-218 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java:277-287 \u2014 there are 3 copies across 2 file(s) \u2014 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 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:121\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c7970da43c6a550224716495475f3b79395473cf98b9af0fa6b5c8ffedeb3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): persistence/src/main/java/com/alibaba/nacos/persistence/repository/embedded/operate/BaseDatabaseOperate.java:88-98 | persistence/src/main/java/com/alibaba/nacos/persistence/repository/embedded/operate/BaseDatabaseOperate.java:115-125 | persistence/src/main/java/com/alibaba/nacos/persistence/repository/embedded/operate/BaseDatabaseOperate.java:167-177 \u2014 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 \u2014 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 \u0060persistence/src/main/java/com/alibaba/nacos/persistence/repository/embedded/operate/BaseDatabaseOperate.java:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/alibaba/nacos/persistence/repository/embedded/operate/BaseDatabaseOperate.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c2eb9d58f71f7ad43a373d97223e48c038dbe447946ff3302aef1816146235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:284-294 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:308-319 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigTagsRelationMapperByOracle.java:77-87 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:284\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c9173afa5bd5003a2f9dc34a3e612baa2d94469977d20e8b242abbb3ae753f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/pipeline/repository/PipelineExecutionRepositoryImpl.java:150-160 | ai/src/main/java/com/alibaba/nacos/ai/pipeline/repository/PipelineExecutionRepositoryImpl.java:187-197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/pipeline/repository/PipelineExecutionRepositoryImpl.java:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/pipeline/repository/PipelineExecutionRepositoryImpl.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a839686448febc33d1ab4fe0cb5ecd1d501aac09102558e68723d932aaab22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1171-1181 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:793-803 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62daa94bfdd7df4f4443160db2d134310be9edd3f6265d1d54a23f5e80a8e4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:384-396 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java:275-285 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:384\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6f69ac0ff3b0b8be8fcfa5de91a46ab8ee1c84c0c136a40ba884d8eb5cd0fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java:106-116 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillSeedArchiveReader.java:112-122 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java:106\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"28358dcd1ef291cc94540dea3940e37cd77828f88547c46bbf47ac1471f75734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java:208-218 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillSeedArchiveReader.java:211-221 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"141a39f578130c90bbfcebb2ced3f4e7e1e7378868e4ece9815287f97c87636f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:220-230 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java:524-534 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:220\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92e8f0b03a50b1301e1540a03487275971e4b344aafc43497b9fe254aa98ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/ai/cache/NacosAgentCardCacheHolder.java:199-209 | client/src/main/java/com/alibaba/nacos/client/ai/cache/NacosMcpServerCacheHolder.java:177-187 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/java/com/alibaba/nacos/client/ai/cache/NacosAgentCardCacheHolder.java:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/cache/NacosAgentCardCacheHolder.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d166d246a75430aeee17039c0ec9ceac2252f10494aaaedb5f724dd6cfd971c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:79-89 | client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:203-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b0cf9a2caf69112589e62e1fa3cfffd4feb7623d2c3dad3b86bfba09da43ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:262-273 | client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:286-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:262\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e32c8a64b0281630c9c79ff5221c8e9d7c61598327eda9aabe00d0a1f03d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:420-430 | client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:476-486 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78412b16286b3b592f71ca53ea7502409db33af8776efb6bd21c3db8aa0af69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java:225-239 | client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java:296-306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"08274db3e64e19d062fc947c8562318a2bb255201e5ed0b7144661f98c07bc3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): common/src/main/java/com/alibaba/nacos/common/notify/DefaultPublisher.java:209-220 | common/src/main/java/com/alibaba/nacos/common/trace/publisher/TraceEventPublisher.java:119-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060common/src/main/java/com/alibaba/nacos/common/notify/DefaultPublisher.java:209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/notify/DefaultPublisher.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"da20ceadaa08bfada61e9a863fe3cde2a8a5d4fd286135b7e139e398dd6312dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:303-313 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:182-192 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:303\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81246c0ec3e4cff617ce43682e0dd17c4777076f50e9ebff69211f0cbf4c25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:693-703 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:409-419 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:693\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c44341bd5d00d9a257739bfeb447bdc2218ae9d711ec1d4de835b854e488fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigServletInner.java:288-298 | config/src/main/java/com/alibaba/nacos/config/server/remote/ConfigQueryRequestHandler.java:195-205 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigServletInner.java:288\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigServletInner.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c85f4ec038b796c2682af7f7a9204850a2816cb8674a4848d474243f657ec10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/model/ConfigCacheFactoryDelegate.java:46-56 | config/src/main/java/com/alibaba/nacos/config/server/model/ConfigCachePostProcessorDelegate.java:49-59 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/model/ConfigCacheFactoryDelegate.java:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/ConfigCacheFactoryDelegate.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fdb25047806b3351110611860aa5894d9e74251a6d45b691928824d78d2698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/model/ConfigInfoBase.java:194-204 | config/src/main/java/com/alibaba/nacos/config/server/model/ConfigInfoChanged.java:76-86 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/model/ConfigInfoBase.java:194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/ConfigInfoBase.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"87133985146fd364b9143a3f4e87b84bc4681b01506225520115b870b5d1a72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java:281-291 | config/src/main/java/com/alibaba/nacos/config/server/service/capacity/TenantCapacityPersistService.java:262-272 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba304a1e33314d024c87183aa23ba45274576c32b785d76403d17cbb39d5d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:148-158 | config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeGrayConfigWorker.java:148-159 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c32ada7583dbd4ef850652c49d15b107a3c45a9889c3de1778c293db0084d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:380-391 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:355-365 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:380\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4250b38f1bd0929b48290adb91c84a6f6c411626085b44600b05195bd7d0628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:778-788 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:867-877 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"50884cf0952f71d45d0bead4a0b66a634cfb117b426c82f35eb7a410920854e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:281-291 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:369-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"94550b9f8d4b143c2e15b99e40036430aba2ced921cd8e0e7cefab3a04032ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/HistoryService.java:80-90 | config/src/main/java/com/alibaba/nacos/config/server/service/HistoryService.java:102-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/HistoryService.java:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/HistoryService.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c9e42b7948c6b165553411b9360c03e630dd98a8f52c9d59470c32419d1e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): copilot/src/main/java/com/alibaba/nacos/copilot/service/PromptOptimizationServiceImpl.java:76-86 | copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillOptimizationServiceImpl.java:100-110 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/PromptOptimizationServiceImpl.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"789413713457decf42a6dd142b431bda4e1d046570b125c4bd0a6d0d9d895cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:161-171 | copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:192-202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"368c972945273967e5ccb83ba4290d85d740dd0ed0512d21125a9210bdc444b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java:66-76 | example/src/main/java/com/alibaba/nacos/example/SkillExample.java:69-79 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"525c42629a47385144c4dd6df0e0ae1d54444e4ca53810eb16d17701fec89060"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java:112-122 | example/src/main/java/com/alibaba/nacos/example/SkillExample.java:102-112 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb737116105b5fccdfc073da13fad8b7192d3379e0857a0f54228bd421fae4c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/mcp/NacosMcpService.java:127-137 | istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java:172-182 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060istio/src/main/java/com/alibaba/nacos/istio/mcp/NacosMcpService.java:127\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/mcp/NacosMcpService.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd129913813e07fe0e8cd05d30aa1fc8e0ffd0f975e9610ff621f7638f92fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java:124-134 | naming/src/main/java/com/alibaba/nacos/naming/consistency/persistent/impl/AbstractSnapshotOperation.java:68-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"099d26c91c0380a3504d1eccca9b3591df7c0cd7e7bb8be8748b7028ca9d1a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/consistency/ephemeral/distro/v2/DistroClientTransportAgent.java:183-193 | naming/src/main/java/com/alibaba/nacos/naming/consistency/ephemeral/distro/v2/DistroClientTransportAgent.java:210-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/consistency/ephemeral/distro/v2/DistroClientTransportAgent.java:183\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/consistency/ephemeral/distro/v2/DistroClientTransportAgent.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a3abeaad7fd55b7e8a8fc1a379e835fa4c391d1937aefb874001ee07620ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerCommandResolver.java:63-73 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorCommandResolver.java:65-75 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerCommandResolver.java:63\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerCommandResolver.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6903e033de7f1da63a29c203e1fe2a991051cb310d346b3bcfd9a6c1d19c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java:74-84 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalRolePersistServiceImpl.java:90-100 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"063f67fc4a2bdc9b000541efc9b963529418663ea66cd6cbf6b0dd4a701b589a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedUserPersistServiceImpl.java:108-118 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalUserPersistServiceImpl.java:133-143 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedUserPersistServiceImpl.java:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedUserPersistServiceImpl.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac95c00fad172d223266afa2d08a822ce489a1d3019e10ac2930aff0ccac1139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:76-86 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:148-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7dcba6551db4ffce9d0efc146ebe6324013f05bf5b67d5bae50302e706d6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/EnvUtils.java:39-49 | sys/src/main/java/com/alibaba/nacos/sys/env/EnvUtil.java:302-313 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/EnvUtils.java:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/EnvUtils.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5ff9b9880f62c3e8241d113e7321e696de74f56d4d0c051a39da7f42ec8558"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:167-177 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:180-190 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e71f766ca0040dd4c72a8817b616c1deab266dff1b22ebf1ac6292531276515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigTagsRelationMapperByMySql.java:130-140 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigTagsRelationMapperByOracle.java:144-154 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigTagsRelationMapperByMySql.java:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigTagsRelationMapperByMySql.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab50894f000b222a5e5804130a347a25fe47e334c713b243dc0c1ae6ba0eb29a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:280-289 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:336-345 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:266-275 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:319-328 \u2014 there are 4 copies across 2 file(s) \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa43838853c2167de4853e8cd4813df7a3775ea94787a52541730d0c0825d828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/AiResourceMapperByDerby.java:37-47 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/AiResourceMapperByMySql.java:38-47 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/AiResourceMapperByOracle.java:35-45 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-postgresql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/postgresql/AiResourceMapperByPostgresql.java:37-46 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/AiResourceMapperByDerby.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e07f1f459bf9cbc6f69583739470557dc389de3de4067dd4f1d87c5f45928e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:122-131 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:185-194 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:221-230 \u2014 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 \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d9e56aadba38fce74e449326b26eb4623e0f5d4e7f61beb0a15872eca7846f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/model/form/ConfigForm.java:82-91 | naming/src/main/java/com/alibaba/nacos/naming/push/v2/hook/PushResult.java:54-63 | plugin-default-impl/nacos-oidc-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/oidc/config/OidcAuthPluginConfig.java:112-121 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/model/form/ConfigForm.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf168b09f81260e7ea98eb2f29b8fa564987952d2f8e2d7e2040ec6c32be543e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRocksDbDiskService.java:110-119 | config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java:106-115 | config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java:101-110 \u2014 before extracting anything, compare \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java\u0060 and \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 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 \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRocksDbDiskService.java:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRocksDbDiskService.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3add5033e24a326777579819e8ca8cf244e1f8e801df311db4f8c8212f3cf3bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:396-405 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:415-424 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPipelineService.java:480-489 \u2014 there are 3 copies across 2 file(s) \u2014 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 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:396\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29d338c81e9e005457192f84b57dd51a2c552557e26e7a0c406a5328ff49822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:323-332 | ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1231-1240 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:323\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"6777cf7d3e73f0ff628acd272c652bb817820fabb7f74b6b190ef0017c75891f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java:206-215 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleSkillController.java:193-202 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e37132fa3a9d49e593c2ec2a06513616083099304a9056394fe4f4e123e958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/form/agentspecs/admin/AgentSpecScopeForm.java:43-52 | ai/src/main/java/com/alibaba/nacos/ai/form/skills/admin/SkillScopeForm.java:43-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/form/agentspecs/admin/AgentSpecScopeForm.java:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/form/agentspecs/admin/AgentSpecScopeForm.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1939f236f9b60da5f00e20a95e0b351670c9fa85958765d3dbf2dfdd60178f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:226-235 | ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:254-263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"215aaa1e9549723ab618b6110942b33a0cfadebcb83709fd4b7bdc67d7257418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1276-1285 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1619-1628 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c355d8b0a8f9d1e88338079ac71bfff873d24760edee6bf3cd456689969f445b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptDownloadCountManager.java:76-85 | ai/src/main/java/com/alibaba/nacos/ai/service/SkillDownloadCountManager.java:76-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptDownloadCountManager.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef804127773f9056833149d4362e5397d1bdd2f03de2bd746c8ac7af9d345d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:150-159 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:140-149 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5719b570350eb299da251e08856c05192915cf9197824b029536689eb3467f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:298-307 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java:208-217 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:298\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3f590ee8e461feb8b70b0e38ae75a29b2ab4202ae5c26aa6ea899242036516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecRequestUtil.java:107-116 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillRequestUtil.java:390-399 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecRequestUtil.java:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecRequestUtil.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83d39648d1f5196057cdd6bf339e0316ff6caef1f01f0d30bb7d0c17217a6b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java:163-172 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillSeedArchiveReader.java:166-175 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java:163\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecSeedArchiveReader.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"415ea32e17ee461b620c6104442bbd381c0c13c7c928e071540fa1d155fd5fda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:199-208 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java:503-512 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:199\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"053b8c608a2ea7401df0c6b65829453f35c4be8d4d06436a321bd364a202497b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java:641-650 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:216-225 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"060724b836f3e15dbf947586caaefb3706a0f2a97a9e6043922704cdab38f595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:349-358 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:493-502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c89fe37cac83cc571206830b824260b3404f799b0dd1e4b0c6e12a2f6e58e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:67-76 | client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:191-200 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5530e75f44b78619fd5e3692a693602f0b0dc77784593f955f89ea1b98abc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:208-217 | client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:241-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1705a55aee66b34b41b9e537c33034f5704864368015c4e315a282e9ed06faef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchGroupKeyHolder.java:243-252 | client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchGroupKeyHolder.java:257-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchGroupKeyHolder.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bb3294a92b95517cac1c5d9e688a660345066365a0b32470771a0b65360578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/LocalConfigInfoProcessor.java:146-156 | client/src/main/java/com/alibaba/nacos/client/config/impl/LocalEncryptedDataKeyProcessor.java:120-129 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/LocalConfigInfoProcessor.java:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/LocalConfigInfoProcessor.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6deb124379e0e3b0029b899024f9416eeb24021221d99ad4202df56d242af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): common/src/main/java/com/alibaba/nacos/common/paramcheck/DefaultParamChecker.java:551-560 | common/src/main/java/com/alibaba/nacos/common/paramcheck/DefaultParamChecker.java:583-592 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/paramcheck/DefaultParamChecker.java"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ae30ad09881c648637ba9b6ea3c7533bdb4b1a16c0ec3ac235ea485e65bd06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/aspect/ConfigChangeAspect.java:120-129 | config/src/main/java/com/alibaba/nacos/config/server/aspect/ConfigChangeAspect.java:160-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/aspect/ConfigChangeAspect.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb111b88c7c0395409278ef8cbd3e544df8efeaafa168545d6333f773b8f10f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:194-203 | console/src/main/java/com/alibaba/nacos/console/controller/v3/config/ConsoleConfigController.java:120-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e36d6e0c9cdb569a11df0cc23ee6ddb7154647884c1cf0ead81b6496c528d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:602-612 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:313-322 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:602\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"986c2660289d17e389e27579843933b5e76249f51bf3b1e306c8ddfe17a266a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:629-639 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:337-346 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:629\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d307d3ce217fa9f0a393ae5e57b254f2325ed61c781d54cd5bdf32a8dc0441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:766-775 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:279-288 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0a0ef5505baeb626199adca16ed5ede9a980a5151c55899a2b8bcffc87438f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java:403-413 | config/src/main/java/com/alibaba/nacos/config/server/service/capacity/TenantCapacityPersistService.java:368-377 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b419f5eb5896411e211ad17cb8da0a4562d5962106a065f7fd7e219eea68df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:463-472 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:438-447 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"020e3afd2a1318fff322c24277a3c7881a3eada0aee153fd174336259cb4e66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:444-453 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:506-515 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:444\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d80be80012619e45e19169a1a38f4e2cb174a77a44bb66975c07dc005fe90c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:850-859 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:959-968 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:850\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23072765c9d356cff484c550c0ca125d351577cda6e8787e58d9838b5203c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1064-1073 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1162-1171 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ec42d80ff8fc5c6e6d6d913a7a64c77d78694142847154aa1063064cbadce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:178-188 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:785-794 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c511e178c803d11da0972728502de2b7840daf97481d5e4568075f40f1e3396f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:93-102 | copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillOptimizationServiceImpl.java:109-118 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e7b5f98ffb717171100fcdffd3397498183edd65869b05c77a6db847713d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/namespace/filter/NamespaceValidationRequestFilter.java:110-119 | core/src/main/java/com/alibaba/nacos/core/remote/grpc/RemoteParamCheckFilter.java:52-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/namespace/filter/NamespaceValidationRequestFilter.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d08d11b5ad0f4292fcd69a1d82380ca87e5faa860f62fe0197af41c81d7085e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java:184-193 | istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java:201-210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6454edc0ddfd90501871af4badf446e2d60cead96c9b607d9df1a15961fdd597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java:93-102 | naming/src/main/java/com/alibaba/nacos/naming/consistency/persistent/impl/AbstractSnapshotOperation.java:54-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dd937f97d65d96693ed6832a6876d0ec5c216540de257bcad8a5c799dbe9c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:190-199 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:134-143 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c5e2a47ce4c6024af1c27347b3eb718a7d21322a46cdb0cb71d85994a61f39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/v2/client/manager/impl/EphemeralIpPortClientManager.java:95-104 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/client/manager/impl/PersistentIpPortClientManager.java:83-92 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naming/src/main/java/com/alibaba/nacos/naming/core/v2/client/manager/impl/EphemeralIpPortClientManager.java:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/v2/client/manager/impl/EphemeralIpPortClientManager.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"57030db2889dce4a8dc1f9d18410a6a0fe315b163659413ce98084d827849470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/jwt/NacosSignatureAlgorithm.java:103-112 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/jwt/NacosSignatureAlgorithm.java:160-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/jwt/NacosSignatureAlgorithm.java:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/jwt/NacosSignatureAlgorithm.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dd0d35d140df0bd219231a34f74d5538be5af49abafae77c73d18deacb4fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java:50-60 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:60-69 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java:50\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b178a2c829f03b7d91d347be9effc98c1c6869e468641228df0cebada4531a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java:106-116 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:133-142 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java:106\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"02102aa0027b382a787493f71cc8509a0c5a541c7a6fb2e3e777e0ec2fec12e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/DiskUtils.java:112-121 | sys/src/main/java/com/alibaba/nacos/sys/utils/DiskUtils.java:280-289 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/DiskUtils.java:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/DiskUtils.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0f9ccd66bd2d500fb49d7f19b6136e3521b71e0a0e71a3283d53859eec905b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java:272-281 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigTagsRelationMapper.java:118-127 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"8637f8930fda706a5a4a1ef1ca2cf9920111665401b327d1a94a1ad010b318e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/AiResourceMapperByDerby.java:56-65 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/AiResourceMapper.java:121-130 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/AiResourceMapperByDerby.java:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/AiResourceMapperByDerby.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"181a4fd9b53bcb56ff6ceab19f0c6a06743fe5f756fd394f2aa1083afb73a7c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/HistoryConfigInfoMapperByDerby.java:46-55 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/HistoryConfigInfoMapperByOracle.java:60-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/HistoryConfigInfoMapperByDerby.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"83997cbbc930d610cd97276374824e2171b2478165557cb8849fa0c1639699f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): core/src/main/java/com/alibaba/nacos/core/persistence/DistributedDatabaseOperateImpl.java:237-245 | core/src/main/java/com/alibaba/nacos/core/persistence/DistributedDatabaseOperateImpl.java:265-273 | core/src/main/java/com/alibaba/nacos/core/persistence/DistributedDatabaseOperateImpl.java:293-301 | core/src/main/java/com/alibaba/nacos/core/persistence/DistributedDatabaseOperateImpl.java:322-330 | core/src/main/java/com/alibaba/nacos/core/persistence/DistributedDatabaseOperateImpl.java:350-358 | core/src/main/java/com/alibaba/nacos/core/persistence/DistributedDatabaseOperateImpl.java:378-386 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 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 \u0060core/src/main/java/com/alibaba/nacos/core/persistence/DistributedDatabaseOperateImpl.java:237\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/persistence/DistributedDatabaseOperateImpl.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"549caf24cd70768101e04d327a167bdfb09b40c5b9c7ba81befa5f99df0bd98c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java:149-157 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java:250-258 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java:273-281 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/users/NacosUserServiceRemoteImpl.java:118-126 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/users/NacosUserServiceRemoteImpl.java:197-205 \u2014 there are 5 copies across 2 file(s) \u2014 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 \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java:149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db91a5e6b515f04832b9db210efa4f2056aa0285fb89b4a39f56bb433871e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:251-259 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:282-290 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:313-321 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:457-465 \u2014 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 \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5edfd525472547e371815383871d597eecea45837e5fc1bbcb97541d396f4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java:66-74 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java:122-130 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:76-86 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:148-158 \u2014 there are 4 copies across 2 file(s) \u2014 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 \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedPermissionPersistServiceImpl.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c641f071b927de2e70a85ad223aa97aecbb6fbf5ac18e78a66d6fce0f827b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/service/NacosSkillsRegistryService.java:412-420 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/skill/SkillWellKnownImportService.java:508-516 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/skill/SkillsShImportService.java:436-444 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/service/NacosSkillsRegistryService.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6703eeff73e00da60a92284a292de55b5e0d5748e8a89c21519f92d10e76c6e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client/src/main/java/com/alibaba/nacos/client/config/common/GroupKey.java:85-93 | config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java:66-74 | config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java:61-69 \u2014 before extracting anything, compare \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java\u0060 and \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 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 \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/java/com/alibaba/nacos/client/config/common/GroupKey.java:85\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/common/GroupKey.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a89634688e3693587708f101c94f2b7106b498245635b8551b95984b038818d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:333-341 | client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:417-426 | client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:474-482 \u2014 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 \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7184d48fe71e847bc5155e06ef9fb6772211ed77c9f6e45f383a0302d223342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java:135-143 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalRolePersistServiceImpl.java:195-203 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalUserPersistServiceImpl.java:172-180 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalPermissionPersistServiceImpl.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e23355feb103d42154342013e624a49cda853c285ab803bec74068c5583a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java:195-203 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:173-181 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:186-194 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java:195\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-base/src/main/java/com/alibaba/nacos/plugin/datasource/impl/base/BaseConfigInfoMapper.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8881769dc1a10b74305f3e5ec1489da36fb77c58343a9fc0bae09bc22d0890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/GroupCapacityMapperByDerby.java:85-93 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/GroupCapacityMapperByMysql.java:68-76 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/GroupCapacityMapperByOracle.java:67-75 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/GroupCapacityMapperByDerby.java:85\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/GroupCapacityMapperByDerby.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e974c7126880f35f107c03c6bac54a51ca465f6369fb8935446abbd2e2117b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/TenantCapacityMapperByDerby.java:114-122 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/TenantCapacityMapperByMySql.java:114-122 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/TenantCapacityMapperByOracle.java:113-121 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/TenantCapacityMapperByDerby.java:114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/TenantCapacityMapperByDerby.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad11a9e7a7e874939b0c03ab9a81707f268404c5c8e2395a87067d0a75a5ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/controller/McpRegistryController.java:118-126 | ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/controller/McpRegistryController.java:149-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/controller/McpRegistryController.java:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/controller/McpRegistryController.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc3007201422d336a514b69094b86ec535ab04389192cac5368ee1f388f00d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:370-378 | ai/src/main/java/com/alibaba/nacos/ai/config/SkillDataBootstrapInitializer.java:293-301 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java:370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/config/AgentSpecDataBootstrapInitializer.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc682078bdbf23e890a7b2bdb6783791ba0c62abfd8da60a646e03dd14cbd912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java:237-245 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleSkillController.java:224-232 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java:237\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fb300796b57f1d8616645f1a9318da960807e66c1fb1f7e390f38e719135ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:164-172 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:836-844 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:164\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e42eea2c6aee2e80ad947fd27d2c6e8e59c9cb6be7ffb776c1e773258c202f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:752-760 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillClientOperationServiceImpl.java:144-152 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"899031f41a1879e427bea8e9d3e37f91b36382d6009f2718200eef34a434736f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1329-1339 | ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1383-1391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4efeae643bdea491af38104e2388f402fcc1bfc6980440ed487e9a54a1a12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptDownloadCountManager.java:109-117 | ai/src/main/java/com/alibaba/nacos/ai/service/SkillDownloadCountManager.java:109-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptDownloadCountManager.java:109\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptDownloadCountManager.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"629322e09cd9d8e72bbe7019b9954b3d198bfb673b5ab8337d3899bc3db1e28f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:141-149 | ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:206-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b697f1342e5a56ef251bdcd3bbf6043a2c400de1f62bd3125467d872cfcf15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourceVersionPersistServiceImpl.java:133-141 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:128-136 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourceVersionPersistServiceImpl.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d71a85c7af75ebe4025c8b99bde12c91feea3831c0b1d5982762776e35e901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:151-159 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:174-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8e463a1e7c2d7c6ff9301cd963b9f21220d01ad8580973a33be8173d483e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:753-761 | ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:1168-1176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e9155f9ec8c0ee3aa7fdafbea375eea955fc7a6627137fb8e281447e0ad3e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:857-865 | ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:1369-1377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:857\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd58956a1c5f823046e095ab4bf0dab89dc404a904067e33f8250782a2ddf0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:938-946 | ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:1369-1377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:938\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18ae0081a2b9c36359d7822fd8e522199c8135cdfa77654257b6942e2118798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1617-1625 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1639-1647 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1617\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1617}}}],"partialFingerprints":{"codehealthFindingId/v1":"0245adf93f2c2abf813dc2077fd063f511c16f99fa4a5bc479f8e343acb6597b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:160-168 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java:101-109 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc31e6e22cd12a0da8c80c5d892102c162caa5098cc43e115181cd7fd4c39e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:245-253 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java:145-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2fb92b2866e7e947b58a55e4f98830e87b8c6e94913171b1e6423ba0f96224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:311-321 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java:221-229 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:311\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7245ffea02f945c7eaf764146eae522386db4303e94694789399801a590610ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api/src/main/java/com/alibaba/nacos/api/utils/StringUtils.java:74-82 | common/src/main/java/com/alibaba/nacos/common/utils/StringUtils.java:69-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060api/src/main/java/com/alibaba/nacos/api/utils/StringUtils.java:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/utils/StringUtils.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"543ecb77047ebfbb8ee31bd56da2fed6872cf9d53f0446f7a84fe7261390e224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/ConfigResourceInjector.java:50-58 | client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/LockResourceInjector.java:44-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/ConfigResourceInjector.java:50\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/ConfigResourceInjector.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"01473b7a154efbbac9285fe8d946849b03477ccc81056b09d1d7a78c58bf6bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:379-387 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:416-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:379\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f473cb9d92c2e146eefcfca2a2833540fcf04611aa0b06f071b6970cabb552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:426-434 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java:502-510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiHttpClientProxy.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be4f7c2f14522eeec4c966aa92d33e6058dc4af054950ba13007aaed5a1b81e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/lock/NacosLock.java:143-151 | client/src/main/java/com/alibaba/nacos/client/lock/NacosLock.java:188-196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/lock/NacosLock.java:143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/lock/NacosLock.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1570957f6ae80117f2640532346b334d88eec634eb53e93a1a83bdc798f910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): common/src/main/java/com/alibaba/nacos/common/packagescan/classreading/ClassReader.java:399-416 | common/src/main/java/com/alibaba/nacos/common/packagescan/classreading/ClassReader.java:419-427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/packagescan/classreading/ClassReader.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba60776a035d355fd5053e66c2c3949987da265c89217ca8d00308e3f5a22c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ListenerControllerV3.java:83-91 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:242-250 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ListenerControllerV3.java:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ListenerControllerV3.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d1b46ae732b5a194c5e3c1640e4f1a4834e424e6e22a42e5390d29f1cd49af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRawDiskService.java:67-75 | config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRawDiskService.java:95-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRawDiskService.java:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRawDiskService.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"35113f57a26b53062615a0148da66c8accaa011ce293da9c3445149fe34ed72d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:69-77 | config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeGrayConfigWorker.java:61-70 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:69\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2509222020a7b01f6d038f849cb715102a1ba4b5483e6243286232ac125f1772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:98-106 | config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeGrayConfigWorker.java:96-106 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c2268aab2cfec653ce8823ffc2fe3d662d9f2c6a9e440f7f8439fd6789c7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:115-123 | config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeGrayConfigWorker.java:116-124 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22c7477a96369a77d79c7f549133e5275c5c0c75eb9e4c663392d5a70eecb0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/notify/AsyncNotifyService.java:327-336 | config/src/main/java/com/alibaba/nacos/config/server/service/notify/AsyncNotifyService.java:352-360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/notify/AsyncNotifyService.java:327\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/notify/AsyncNotifyService.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ceafefa00bb208996ec45419a18a8eea8253d7630341966dd67f446533ab9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:431-439 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:413-421 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8c1089f90b916835a4eb2ac859b7dcfbde37671e60675a0a1b8c9b0ce48a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:896-904 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1051-1059 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:896\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"77731a7cbb2779a56adbf53985b0c34d85a3ea684b920ed3bd9dde6bcaa018ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1030-1038 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1129-1137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1030\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b387a062f5520028587fc56fd504ba0a36fd835f54d5b8d603040407c70d247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1185-1193 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1328-1336 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"02214d138ad5707851ef4c41c4fd5067d4ef519f4e0b006c486ea7622ec521af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:155-163 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalHistoryConfigInfoPersistServiceImpl.java:155-163 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:155\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0c010376477e66d6171b86d27652356b236fecedeedf51d9761e8521545722"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:234-242 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:286-294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b71cd862d5e16b2a1d3ecfcca9838b1203754f043d0b05691a348a5c5e8837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:281-289 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:299-307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66709292ccab05a0180a91e1b58785e3f36d777becab99195f12076ed394f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:702-710 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:765-774 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:702\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b6521d23a6c168939f8bc9b9f5d59cf67273e3a2c4320edd00805d25e94e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java:41-50 | config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java:37-45 \u2014 before extracting anything, compare \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java\u0060 and \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey2.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 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 \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/GroupKey.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f21db79a8b5f16ef7a8d73c287d53f7aefd6cb08c304516e9dee43fa46b194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/core/PluginInnerHandler.java:254-262 | core/src/main/java/com/alibaba/nacos/core/controller/v3/PluginControllerV3.java:200-208 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/core/PluginInnerHandler.java:254\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/core/PluginInnerHandler.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc875f4a2bdf2e8613f7911488cece731d5ae9c11f56ff3d05e4a9aa25236654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/auth/NacosServerAdminAuthConfig.java:65-73 | core/src/main/java/com/alibaba/nacos/core/auth/NacosServerAuthConfig.java:65-73 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/nacos/core/auth/NacosServerAdminAuthConfig.java:65\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/auth/NacosServerAdminAuthConfig.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d32fb55555471cf8149e21917febe8a105857857effc2817593cf8e70cef14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/control/http/HttpTpsCheckRequestParserRegistry.java:43-51 | core/src/main/java/com/alibaba/nacos/core/control/remote/RemoteTpsCheckRequestParserRegistry.java:43-51 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060core/src/main/java/com/alibaba/nacos/core/control/http/HttpTpsCheckRequestParserRegistry.java:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/control/http/HttpTpsCheckRequestParserRegistry.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c525dcce776836dd9e858eed4d88f674ca8dd5215854bdcab21d02f724cb6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/remote/grpc/GrpcRequestAcceptor.java:171-179 | core/src/main/java/com/alibaba/nacos/core/remote/grpc/GrpcRequestAcceptor.java:187-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060core/src/main/java/com/alibaba/nacos/core/remote/grpc/GrpcRequestAcceptor.java:171\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/remote/grpc/GrpcRequestAcceptor.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9277c3b987e02c9c821180b2db0031b503d22c5a96ff6c1ff2e21bdee69695be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/mcp/ServiceEntryMcpGenerator.java:68-77 | istio/src/main/java/com/alibaba/nacos/istio/xds/ServiceEntryXdsGenerator.java:68-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060istio/src/main/java/com/alibaba/nacos/istio/mcp/ServiceEntryMcpGenerator.java:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/mcp/ServiceEntryMcpGenerator.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf331bf231ecae534e7ae6395a3952aa4810e1d79ed5b8e3e30c4da412e109b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:545-553 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:562-570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:545\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d811f62085821e9990563d1295710d101a7691db20283afeb555aa927e15e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/EphemeralClientOperationServiceImpl.java:60-68 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/EphemeralClientOperationServiceImpl.java:82-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/EphemeralClientOperationServiceImpl.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"504e380464b77e1fba7458f21e56a9c0854c1d14686cc7cc1dd23c6ca2d9c02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/EphemeralClientOperationServiceImpl.java:70-78 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/EphemeralClientOperationServiceImpl.java:98-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/EphemeralClientOperationServiceImpl.java:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/EphemeralClientOperationServiceImpl.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b14a92225fa1ab04847c1f57d6140da9d276eb629f1ab30497e237b618f2b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/model/form/InstanceForm.java:71-79 | naming/src/main/java/com/alibaba/nacos/naming/model/form/UpdateHealthForm.java:64-72 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naming/src/main/java/com/alibaba/nacos/naming/model/form/InstanceForm.java:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/model/form/InstanceForm.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c326cbcbc9134df4f4ddb96853277e5a289973495ea2fe8ab5ffbd6a3d055762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/InstanceRequestHandler.java:71-79 | naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/PersistentInstanceRequestHandler.java:74-82 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/InstanceRequestHandler.java:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/InstanceRequestHandler.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1657d353efe9dd4af7a06b01845970ad7f99a36d4c83da1803005ec69a4fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryImportService.java:129-137 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/skill/SkillWellKnownImportService.java:441-449 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryImportService.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e896e14a546a14a3a4ccb7297d4ca2dd0eda51f7e8a2effdaffbe9fce5361bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:201-211 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPipelineService.java:179-187 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:201\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d58b2e3acb91f7b9557f42e9254ae9aedfad38c1d932790d8b129ba436d1862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:340-348 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPipelineService.java:426-434 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b92d53f48ddf0c5668a103210d3a6e5c539a063dd5edf112dc4b2def91f466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPluginConfig.java:96-104 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPluginConfig.java:127-135 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPluginConfig.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef638e38c5cf81d682f39076f8855621ef31a21baa9b17c36337ddce9e1e2a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/controller/v3/UserControllerV3.java:302-310 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/controller/UserController.java:94-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/controller/v3/UserControllerV3.java:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/controller/v3/UserControllerV3.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2c6ed3ec7567bafb86b37da8f0c5a14e1940251767acc1afcc0e3e640c6fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/handler/support/DerbyPageHandlerAdapter.java:47-56 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/handler/support/MysqlPageHandlerAdapter.java:46-54 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/handler/support/DerbyPageHandlerAdapter.java:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/handler/support/DerbyPageHandlerAdapter.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e816b7f0d01253991df6992b3e08d0a4f1b611944049f321573cbb8b290f700c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java:175-183 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalRolePersistServiceImpl.java:198-206 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3b10b441bcd6be08ab6ac9852e64a3021686cbb5f4ddb139ddcb186db4d97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:138-147 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:192-200 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:138\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f03a1b47102fc9181edc7f1233bd9d8c92b839bceeb10a9551292a2dbfeeef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:478-486 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:501-509 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:478\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2532525c3babfd68ae5706745b8413bfa16ebf9ad068e6941e3beee6c7f8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:81-88 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:97-104 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:246-253 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:274-281 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:320-327 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:401-408 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:475-483 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:506-513 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b619a561228332bc7322bb621425108acfa526aec9667339a74136a497598acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java:64-71 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java:81-88 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java:198-205 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/users/NacosUserServiceRemoteImpl.java:75-82 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/users/NacosUserServiceRemoteImpl.java:142-149 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/users/NacosUserServiceRemoteImpl.java:157-165 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/users/NacosUserServiceRemoteImpl.java:175-182 \u2014 there are 7 copies across 2 file(s) \u2014 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/roles/NacosRoleServiceRemoteImpl.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"683cd81f48fd885cc9e029635bce3c802f1c138784a650ae5ca39a0bd698897f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:315-322 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:339-346 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:235-242 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:255-262 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:325-332 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:349-356 \u2014 there are 6 copies across 3 file(s) \u2014 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff135631c7f1c680ba64e9235a0ab063a4de164b9e494027f36d4b6d82707633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): client/src/main/java/com/alibaba/nacos/client/lock/remote/grpc/LockGrpcClient.java:244-251 | client/src/main/java/com/alibaba/nacos/client/lock/remote/grpc/LockGrpcClient.java:280-287 | client/src/main/java/com/alibaba/nacos/client/lock/remote/grpc/LockGrpcClient.java:304-311 | client/src/main/java/com/alibaba/nacos/client/lock/remote/grpc/LockGrpcClient.java:425-432 \u2014 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 \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/lock/remote/grpc/LockGrpcClient.java:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/lock/remote/grpc/LockGrpcClient.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b0c9df93e569bfc0b063f0327af5de93adb13e03c22070f0efa54d745a9aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:576-583 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1097-1104 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:658-665 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1206-1213 \u2014 there are 4 copies across 2 file(s) \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:576\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68ac59ef2a8460de97a22f8c543db5f62b48cddc7c87ee57a4a47ab84771cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): naming/src/main/java/com/alibaba/nacos/naming/paramcheck/NamingDefaultHttpParamExtractor.java:46-53 | naming/src/main/java/com/alibaba/nacos/naming/paramcheck/NamingInstanceBeatHttpParamExtractor.java:42-49 | naming/src/main/java/com/alibaba/nacos/naming/paramcheck/NamingInstanceListHttpParamExtractor.java:40-47 | naming/src/main/java/com/alibaba/nacos/naming/paramcheck/NamingInstanceMetadataBatchHttpParamExtractor.java:45-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/paramcheck/NamingDefaultHttpParamExtractor.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3125fba321b4d393c3b1baee76e3195828e930196270523232d28d0b6a2e2ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/AiResourceVersionMapperByDerby.java:37-44 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/AiResourceVersionMapperByMySql.java:40-47 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/AiResourceVersionMapperByOracle.java:37-44 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-postgresql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/postgresql/AiResourceVersionMapperByPostgresql.java:39-46 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/AiResourceVersionMapperByDerby.java:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/AiResourceVersionMapperByDerby.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2815c17287bf1e5efce4717377d4f70ebd48ce256b5b1ee27dae4cd0a1582c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java:379-386 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java:671-678 | ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java:681-688 \u2014 there are 3 copies across 2 file(s) \u2014 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 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentSpecZipParser.java"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b88c34d8a202c47eb8f4fd126211e844bcf56f3503c69900a354d9bfc3e541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:493-500 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:510-517 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:540-547 \u2014 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 \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:493\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3f64f06ab784a4002dc5aaa964026a7d92a7105bc79dc2d4be49b8d423bb9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:291-298 | lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:497-504 | lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:522-529 \u2014 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 \u2014 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 \u0060lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:291\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"0521efad04a020f804fe1bb6d4435fad58272c7b072cacb58d9fa4b3d3a5c42b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:238-245 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:297-304 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:365-372 \u2014 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 \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a63ae213c5a3505d145c09afd2f3a9174a816a0bfc647072bdf5154f815c792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:246-253 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:307-314 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:375-382 \u2014 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 \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:246\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9d38a0c5c0f73d9d62eb873090070a0f4c49eabcf62a8da9fe261e01d9048f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:442-449 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:114-121 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:302-309 \u2014 there are 3 copies across 2 file(s) \u2014 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 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:442\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3c8174160195526d7cc6004646a7b196d640e317bb9d1c01f6c2563570e06a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): naming/src/main/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HealthCheckCommonV2.java:110-117 | naming/src/main/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HealthCheckCommonV2.java:161-169 | naming/src/main/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HealthCheckCommonV2.java:213-220 \u2014 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 \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HealthCheckCommonV2.java:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HealthCheckCommonV2.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f813c6ca7412e2f542322ce1f7d85f57e7dea2cc61306d6104781b1b8064228a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:268-275 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:477-484 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:500-507 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"217ea0fdca1d694a7e0e85026b80ec2afd8e27a32a10b793298345c62579e355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportManager.java:142-149 | ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportManager.java:182-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportManager.java:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportManager.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ffeae8d76b093bd6fc1191e618b6f4f103e687064bc14652d1aa38b8150acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/remote/handler/ReleaseMcpServerRequestHandler.java:101-108 | client/src/main/java/com/alibaba/nacos/client/ai/NacosAiService.java:181-188 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/remote/handler/ReleaseMcpServerRequestHandler.java:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/remote/handler/ReleaseMcpServerRequestHandler.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc88583ceda1fc56aaa287eaaed64de2233df82ab81b5e003895734c54f5dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/a2a/A2aServerOperationService.java:493-500 | ai/src/main/java/com/alibaba/nacos/ai/service/a2a/A2aServerOperationService.java:510-517 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/a2a/A2aServerOperationService.java"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52b2464394551ae34bc9775fe4d7e45d24bff80a9413a78f4ffce46dc8a7966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:410-417 | ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:465-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"14082d14bc9ae7ed04a218b1bde18e12bddfc5e5fbd1cffdd77fcbcbca60746e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:660-668 | ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:696-703 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:660\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ba82331b89886b4a292c0ded01d2dd87d036cf1a89ad8339b6458e1b32b038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:887-894 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1149-1156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d34ee53783740116751c1b3b1bf6d96928a1594e6b3cd5061b98020cb2beacc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptDownloadCountManager.java:169-176 | ai/src/main/java/com/alibaba/nacos/ai/service/SkillDownloadCountManager.java:171-178 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptDownloadCountManager.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1220e132c525fb64045ec4c5125414135ec65933afdbf420a9fa846447a051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:182-189 | ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:208-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"77972ee06056820c9f738a2e4667174c9f70e75381c0607f48628e55f2312fd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:135-142 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:125-132 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd69363996408ab9dd4f132671984795d1e3a375207bdbbf10440acee015132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourceVersionPersistServiceImpl.java:105-112 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:103-110 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourceVersionPersistServiceImpl.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"381843800434d74877f28cce9195e608b3bbdc13105e54a1918035175fa0cb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:722-729 | ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:959-966 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"2650a93741a756c7f2fdaa5b1a52d6640206d4502df6b92c57171ff77904b4ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1113-1120 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1476-1483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"668cb642ef9a774545a3734d10870f641cdb3184d1ea66c8da581fb05038e86f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:503-510 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java:294-301 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:503\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4d3e0cca67728545ec113ab7feee875d4ba23959b137bf4ab56a8948375017"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpServerOperationService.java:387-394 | ai/src/main/java/com/alibaba/nacos/ai/service/McpServerOperationService.java:516-523 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpServerOperationService.java:387\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpServerOperationService.java"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c1e8591551c8da523908455e1940ae0b725d32b7ab3f4bf240b83a54f67f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/AiResourceInjector.java:58-65 | client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/ConfigResourceInjector.java:61-68 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/ConfigResourceInjector.java:61\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/AiResourceInjector.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"db198b137e0f9969193201157a06489faabdb12590f2169fe6daa6a0b77d6107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:1004-1011 | client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:1029-1036 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"02eabb7b8d74d2f5ef3630d9bfe27eb06b1754c0362b54b2cb242a7f63fd1064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchContext.java:488-495 | client/src/main/java/com/alibaba/nacos/client/naming/cache/NamingFuzzyWatchContext.java:354-361 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchContext.java:488\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigFuzzyWatchContext.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"6786d858420015e3d5e848f230e99aa87297d9eb81f423b91f4b4288fa49eb42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java:56-63 | config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java:62-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bedde9c01c458d3bf18a445cbc640052d496f77efc72490bce0d5f5c0717298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:226-233 | client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:257-265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8090e414e6f7fad61a93f00c9f6006aa49567c2357bfe674332405f65d5f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): common/src/main/java/com/alibaba/nacos/common/trace/publisher/TraceEventPublisher.java:118-125 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/event/publisher/NamingEventPublisher.java:116-123 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060common/src/main/java/com/alibaba/nacos/common/trace/publisher/TraceEventPublisher.java:118\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/trace/publisher/TraceEventPublisher.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5615cdba469da44662eedceaa3827aae3623a68cb8dade5a32a8bb6471ede98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:367-374 | console/src/main/java/com/alibaba/nacos/console/controller/v3/config/ConsoleConfigController.java:263-270 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"afaaf705a4233b2f390055dce4b541a4f1a1168584d64044b637491cd588f878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:438-445 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:495-502 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:438\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f30497b6e247ce8146a3d79d4954749d6613386932f3b96e35a48725b776358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/capacity/CapacityService.java:406-413 | config/src/main/java/com/alibaba/nacos/config/server/service/capacity/CapacityService.java:513-520 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/capacity/CapacityService.java"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"707464fb241a0a04ddef13bd9f2b6b929df29f983e7d15707a4bbff12840f26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:403-411 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:541-548 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"580c04a5804ee0c928f7ed9a111a140f897e4facc8a3a0b0defb7cc77c09a61f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:723-730 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:815-822 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c43acf9624d946cf9b8b4f78513e418abfc22dafa2c9fa7fd09d2fb52bcd59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:191-198 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalHistoryConfigInfoPersistServiceImpl.java:204-211 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:191\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52e33e9a947438e581a27fa31c7288ee963f20c8146cc601c19811df4903e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/trace/ConfigTraceService.java:169-177 | config/src/main/java/com/alibaba/nacos/config/server/service/trace/ConfigTraceService.java:218-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/trace/ConfigTraceService.java:169\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/trace/ConfigTraceService.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7962a2910d348c9613852282ce0ccd452a819dbda09ed21f1f1a9d6c2bd02d15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/LongPollingService.java:378-386 | config/src/main/java/com/alibaba/nacos/config/server/service/LongPollingService.java:441-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/LongPollingService.java:378\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/LongPollingService.java"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79a4048c85f19abfd73c63c00eb4e55f356940df8ce066c414eeb17ddef02d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/config/ConsoleConfigController.java:225-232 | console/src/main/java/com/alibaba/nacos/console/controller/v3/config/ConsoleConfigController.java:269-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/config/ConsoleConfigController.java:225\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/config/ConsoleConfigController.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f4ab258bb839452e58299a428f1aead6349cfacb598a30de9c49d1a827b4a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java:165-172 | naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/ServiceControllerV3.java:246-253 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7258c244a5de071caa070a1a28cccb25ef010da69c1bfcf11ca25622322155f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java:239-246 | naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/ClusterControllerV3.java:64-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"205080a78d872e635e3c8cfaaaf1a25d359ce44c6d8268ba288aba235626f7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java:254-261 | naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/ServiceControllerV3.java:219-226 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java:254\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a35f9e67ae6d4f994f39d72d15556f851b6159108d70fd45bd0b89bcb2d81bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/config/ConfigImportAndExportService.java:124-131 | console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/config/ConfigImportAndExportService.java:163-170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/config/ConfigImportAndExportService.java:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/config/ConfigImportAndExportService.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd30d5dd31630dcdce0181db3b61242311bd31a3c0a0d9a33e9050f87e9be844"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/auth/NacosServerAdminAuthConfig.java:118-125 | core/src/main/java/com/alibaba/nacos/core/auth/NacosServerAuthConfig.java:118-125 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/java/com/alibaba/nacos/core/auth/NacosServerAdminAuthConfig.java:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/auth/NacosServerAdminAuthConfig.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"106236a1cdc339e3a9952ce25b7d8ab4783ce33d1d4237ff72985118f73757c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/paramcheck/impl/InstanceRequestParamExtractor.java:41-48 | core/src/main/java/com/alibaba/nacos/core/paramcheck/impl/PersistentInstanceRequestParamExtractor.java:41-48 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/paramcheck/impl/InstanceRequestParamExtractor.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f199f30bcc20cb76064a7b17d9b488cd51a921a91000d03535f1ca1ef517fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/xds/LdsGenerator.java:159-166 | istio/src/main/java/com/alibaba/nacos/istio/xds/RdsGenerator.java:117-124 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060istio/src/main/java/com/alibaba/nacos/istio/xds/LdsGenerator.java:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/LdsGenerator.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b0331cd66e5ea07270ba50305547758b7664bcabf028e495537bc8eb8874a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/xds/LdsGenerator.java:172-179 | istio/src/main/java/com/alibaba/nacos/istio/xds/LdsGenerator.java:220-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060istio/src/main/java/com/alibaba/nacos/istio/xds/LdsGenerator.java:172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/LdsGenerator.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09d53c805f2f53bd076a51db6f69b41ef69d45645b2bd2c11831196f75da551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:423-430 | lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:487-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00f41ea08d00d625ab56a110df4f7a3a5647c4d2b195a2489cb44917d3304b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:433-440 | lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:462-469 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:433\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6a11e56aeec0c5e092f829219240ffcca30f5a8f101bba518d1fb9d536889f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:423-430 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:433-440 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ed9f6144e213c52fa7414c3f2d4ebb99ce63790d7a1cb851191afd10698356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:160-167 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:242-249 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56855da2601fa4cc3d26bbee95fa64d19eec88c0cbaffac78ec32912ebc256f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:182-189 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:452-459 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"146ffcfa9053633c07de327e875deb3da3ed54f7b695594df2d35fd56fa28374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:190-197 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:260-267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:190\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8857c290c8599d98299fd8bdb0dd9c926205cea71f3389767daa56e59810c8ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:243-250 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:464-471 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57824180ef06ec321923aaebdb7e8f335125c852f8406a645ea62bb316f265b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:213-220 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:519-526 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:213\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c22e3490994e241bbcb9c0cab5d87ee7397e3564aa78841a81478411b87c5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:339-346 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:370-377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d699cf623815a55338e2e92442c458ee62db3ebda51414dc2c50b06edef43453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/v2/metadata/InstanceMetadataProcessor.java:95-102 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/metadata/ServiceMetadataProcessor.java:101-108 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naming/src/main/java/com/alibaba/nacos/naming/core/v2/metadata/InstanceMetadataProcessor.java:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/v2/metadata/InstanceMetadataProcessor.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad26268faf8e3dfca45c8bdcce9418c4ce97234de87261fe428fc412a2a8c4f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/ServiceOperatorV2Impl.java:252-259 | naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/ServiceListRequestHandler.java:77-84 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/core/ServiceOperatorV2Impl.java:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/ServiceOperatorV2Impl.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"6059d4637c36045b5502a1008b3b74a50cb258c3289503c0acfbc81d3bdf2139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/monitor/collector/NamingSubAndPubMetricsCollector.java:63-70 | naming/src/main/java/com/alibaba/nacos/naming/monitor/collector/NamingSubAndPubMetricsCollector.java:75-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/monitor/collector/NamingSubAndPubMetricsCollector.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d691625ce0cc67415fa90c0065675553d40aea4bec34656ab9ebf403975ac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerCommandResolver.java:89-96 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorCommandResolver.java:91-98 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerCommandResolver.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerCommandResolver.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c5dddfb38914d87e856dd64e9e88baae02758a8db2de3e225d8a5a9b5d370c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java:60-68 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalRolePersistServiceImpl.java:73-80 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedRolePersistServiceImpl.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca165ee2e9e249d40e5be20d3b29ea3f284c93baf5e3968d97b7099db028d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedUserPersistServiceImpl.java:122-129 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/ExternalUserPersistServiceImpl.java:148-156 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedUserPersistServiceImpl.java:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/persistence/EmbeddedUserPersistServiceImpl.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eab4935af4c8a508df87d8278bbfccf7232416fb00704da11ea5384f3fafc9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:274-281 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:305-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:274\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5426518a5af493bff2e8d7bbaa5f4aea9ead971314bdbe847641e4579c2b441f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoTagsRelationMapperByDerby.java:111-118 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoTagsRelationMapperByDerby.java:154-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoTagsRelationMapperByDerby.java:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoTagsRelationMapperByDerby.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa5e5f45537e2a7a3ad4e93dbe66c34713eb7eb5d51e71b70ba390aacdfa939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/GroupCapacityMapperByDerby.java:97-104 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/GroupCapacityMapperByMysql.java:80-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/GroupCapacityMapperByDerby.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adb17994f7136cde97fb59ada33f43f4cfcd61a6fc4dcb2860419c5696b2158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:421-428 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigTagsRelationMapper.java:119-127 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:421\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b7f130511bc283d69c37ca53f5b958f3b2a6bcaa9285bf2e0b80b6c6c461ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 17): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:92-98 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:113-119 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:360-366 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:380-386 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:400-406 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:443-449 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:131-137 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:272-278 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:310-316 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:326-332 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:342-348 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:426-432 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:77-83 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:370-376 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:390-396 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:410-416 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:453-459 \u2014 there are 17 copies across 3 file(s) \u2014 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 17 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d99ca6863d9f2a02c517db8110894733ac3b2e5089c727195acb7b07503b5b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:132-138 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:273-279 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:69-75 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:197-203 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:96-102 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:283-289 \u2014 there are 6 copies across 3 file(s) \u2014 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2ec9918ef2ddcc10fee1d85b7e33edbc6d74eac9929c30445405af230ef9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java:166-172 | config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java:173-179 | config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java:180-186 | config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java:187-193 | config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java:194-200 \u2014 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 \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/ParamUtils.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"792e5e8096baea9be10d9a4de8ed8cd37c91dc14de5162b68e03568be1dc8711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:60-67 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourceVersionPersistServiceImpl.java:61-68 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:79-86 | core/src/main/java/com/alibaba/nacos/core/namespace/repository/EmbeddedNamespacePersistServiceImpl.java:66-72 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"78999cab47263a5004f52a9345e3e81c8dab42b81e11397f892ba0c8e1318022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/AiResourceInjector.java:49-55 | client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/ConfigResourceInjector.java:48-55 | client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/LockResourceInjector.java:42-49 | client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/NamingResourceInjector.java:56-64 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/AiResourceInjector.java:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-basic/src/main/java/com/alibaba/nacos/client/auth/ram/injector/AiResourceInjector.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"054682760d5e33a3f36559e11efa66e3276a14cfa5e13110dd29f97a7ff28095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:72-78 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:112-118 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:361-367 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:59-65 \u2014 there are 4 copies across 3 file(s) \u2014 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. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c25c4289186ac02275f0e0149e1faa35ec7da30d3da4e6cf0189c8580c635c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:196-203 | client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:225-231 | client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:256-263 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bac20b0670193c02eac76197629f18d05623477c5b22aceb1880b42fb8ee162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java:199-205 | config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java:224-230 | config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java:248-254 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6872adb3dcd749c9ba4d9d4e63741115e1fe7065d9c486b4cbe0131736045282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/capacity/TenantCapacityPersistService.java:178-185 | config/src/main/java/com/alibaba/nacos/config/server/service/capacity/TenantCapacityPersistService.java:203-210 | config/src/main/java/com/alibaba/nacos/config/server/service/capacity/TenantCapacityPersistService.java:228-234 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/capacity/TenantCapacityPersistService.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef61af27179e847c6bcefd9b5d29223ea29ce32476531d7d2161dc8bda54abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/dump/processor/DumpAllProcessor.java:98-104 | config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeConfigWorker.java:117-123 | config/src/main/java/com/alibaba/nacos/config/server/service/dump/DumpChangeGrayConfigWorker.java:118-124 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/dump/processor/DumpAllProcessor.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6b67d765ea42ea92f8c5356e4fc5903c744f0ae3d0c806b63eb8376c6ebd75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:713-719 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:762-768 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:392-398 \u2014 there are 3 copies across 2 file(s) \u2014 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 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a08d8f6408712aa8373999b9a35c9327f0888d790f9e1b11fd83c99498c034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:106-112 | config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:132-139 | config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:158-164 \u2014 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 \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7938f5209f08ec2bc704090c4a3d378c1830f836bd6a1c5d289bac4e4c5ac1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:292-298 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:212-218 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:302-308 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8011de0fc913dc627065f3702b32537a2f5b5c5b7663bb9f7be4fec5e7510f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:166-172 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:193-200 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:263-270 \u2014 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 \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0edb49f39b87e0febc4e6f0b74a1c8f596e73a7af07964431fd1956180eb30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:170-177 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:186-193 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:204-210 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e97ef58ac250716eeb615b9106679cd19379316015e77619b667b42c1bc090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): address/src/main/java/com/alibaba/nacos/address/controller/AddressServerClusterController.java:148-154 | address/src/main/java/com/alibaba/nacos/address/controller/AddressServerClusterController.java:202-208 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060address/src/main/java/com/alibaba/nacos/address/controller/AddressServerClusterController.java:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"address/src/main/java/com/alibaba/nacos/address/controller/AddressServerClusterController.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"238c6d5be178f79f99c53766868acf1559b40e89199dc854b60c665d30780f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/controller/PipelineAdminController.java:64-70 | ai/src/main/java/com/alibaba/nacos/ai/controller/PipelineAdminController.java:110-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/controller/PipelineAdminController.java:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/controller/PipelineAdminController.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4a754ae23570ad0eb512fffeee0126bf299149c6bc7adef77cbed6b8ca3f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/importer/security/AiResourceImportSecurityGuard.java:157-163 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/http/DefaultImportHttpClient.java:221-227 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/importer/security/AiResourceImportSecurityGuard.java:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/importer/security/AiResourceImportSecurityGuard.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3795d375f7e094e301ccdbc1b6607efefa54e7ab094bd2c54bf18538db3fccae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/index/AbstractMcpServerIndex.java:83-89 | ai/src/main/java/com/alibaba/nacos/ai/service/a2a/A2aServerOperationService.java:328-335 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/index/AbstractMcpServerIndex.java:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/index/AbstractMcpServerIndex.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"827eec453a732ac7b140840f1059208ca324c4372a14bd10a6df06a7ac459b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/remote/manager/AiConnectionBasedClientManager.java:57-63 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/client/manager/impl/ConnectionBasedClientManager.java:62-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/remote/manager/AiConnectionBasedClientManager.java:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/remote/manager/AiConnectionBasedClientManager.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"993f04339c5729384d2ecd2590373ce78d760388d87f776a769690c009a9294a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:187-193 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:858-864 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:187\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba613bd7febaa451649a7d7a70fb717d1c4ace8f28eb3e4132db1f739392494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:340-346 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1015-1021 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48765e8d82aa6a181464e89b817fa2ac3ca0d24a3f76aff0b28cdec6667991d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:546-553 | ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:597-603 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:546\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff16263796e6e5218b717fcc5cfc86519afbb747f9240a316c2ed1d67ae8ef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:674-680 | ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:719-725 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"466fb038c343712daeb53f65249ecee5405a1f14e651971f5e55a2d661626b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1159-1165 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:781-788 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java:1159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/agentspecs/AgentSpecOperationServiceImpl.java"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab04cd47f0e3a097c67fa44a32fe64128f33b3486419b5d5ff2cc62b716e293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:487-493 | ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:606-612 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:606\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2f870be2ae287fa4fa36b8044ae585093bb1fafa39386a9d96c99dccfeb152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:111-117 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:105-111 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:111\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b20741b438c4cd64c1f7886f1c099dea9d85658ed5cfa0f6ca95518c6da8a3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:192-198 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:203-210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9071dc201ae18e2104c8e9004c82fadaeadc0904b9a92b26457bf3d15f796d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:221-227 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:240-246 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"883ede546d288fa526ea3d7b8579249b82fb31e3ee29bd9d7de9348d80d4f831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:207-213 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:220-227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"233f4284bfb9f338a4e58d8cc8c831fb630dbea11300d9b3db444c12a3d909a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:331-339 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java:238-244 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:331\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d86605ccc604db08df4efa29c7b7b64d74b6bda3fb8ad3db6651f6c77dfa37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpResourceOperationService.java:98-104 | ai/src/main/java/com/alibaba/nacos/ai/service/McpToolOperationService.java:99-106 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpResourceOperationService.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea4424c87a2d4bb72fd2739cd185800e4624e8732d534a3bfb19f43a725dcb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java:165-171 | client/src/main/java/com/alibaba/nacos/client/naming/remote/NamingClientProxyDelegate.java:92-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb34e0a711b822c216cc67a7d568af2ff97e23862cf56fdf6c4abb748eafd01f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java:659-665 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:234-240 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java:659\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"60592b3a7d204e6b9c797007c6c404391785a7ad28ef27dabf78ded750855af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:1096-1102 | client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:1151-1157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java:1096\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7839bc8217f46c6faff91b04f5de0a820ca992e5a6585c439c49bb702a66f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/aspect/CapacityManagementAspect.java:78-84 | config/src/main/java/com/alibaba/nacos/config/server/aspect/RequestLogAspect.java:69-75 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/aspect/CapacityManagementAspect.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0f883790f0fc30edc65443be0f869f8cf910e4315d0373da857b2a287185e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/aspect/RequestLogAspect.java:102-108 | config/src/main/java/com/alibaba/nacos/config/server/aspect/RequestLogAspect.java:124-130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/aspect/RequestLogAspect.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0160a9ae1071005688260ef08abd3d55ea119e6bdb10e7ba6cc9dcc5a98a90e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:221-227 | console/src/main/java/com/alibaba/nacos/console/controller/v3/config/ConsoleConfigController.java:137-143 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c656fd3a787933bf251a18fc5505298829f054d99232a96369f62d76646ea533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigOpenApiController.java:122-128 | config/src/main/java/com/alibaba/nacos/config/server/remote/ConfigQueryRequestHandler.java:116-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigOpenApiController.java:122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigOpenApiController.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"946a502a706e0910c3214049200fc6b9a9effe596c9939680ccde2b18689f372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/HistoryControllerV3.java:80-86 | console/src/main/java/com/alibaba/nacos/console/controller/v3/config/ConsoleHistoryController.java:98-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/HistoryControllerV3.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d837d6515f33441a090599eabcb081b3be61069f5dfc94c0ef2954672fe098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/HistoryControllerV3.java:87-93 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/HistoryInnerHandler.java:79-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/HistoryControllerV3.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88b0d6f102b47a497841ba13ce4d4aafad7a4499a188c4dbc564b9c949f7a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:361-367 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:340-346 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a07b72496daff4ba568a8bf64ab0064b61cd63008fe011476cfe754d715bf79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:362-368 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:445-451 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f67c556dbc3896b182319e62cc4388b7390b134d4af614d8d0b28a6413db81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:391-398 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:468-474 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:391\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e85959bc09f02401503036d317ab14527d892500d658fd01e83aefc9c5df76a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:826-832 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:1147-1153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:826\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b4907f7f7c95cc2c2bf12e9666d7ffba4e04f8244e9c01e5c0938cbed0f252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:974-980 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1067-1073 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0efdd142a0fa170944f3a1392280a7dc6071b75c3f7d8190b75ae83c576b62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:994-1000 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1092-1098 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6485e6fdba5b14989873777e7b465d7d05801c4d893585095e4fba4308af68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:122-128 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalHistoryConfigInfoPersistServiceImpl.java:122-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e0da34da0577f87d21e1b90206ffd0518d68db3bee9d6874f01cd60601aa25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:136-142 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalHistoryConfigInfoPersistServiceImpl.java:137-143 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0509ca7a39f276a80a2df93e6c454980ffba8a47457daaed3678cd1cfec175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:236-242 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalHistoryConfigInfoPersistServiceImpl.java:266-272 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c17c3c73b2e9172a778c8d78d6ea045846262ac222ae80661b3b7ad9e6e8c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:442-448 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1166-1172 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:442\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2ef5e66708d0d353e071e6774a5dd5853d2c3d5901b879e2c74f9224b2d495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:998-1004 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1146-1152 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:998\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b7566a5d71dd2420953598ea0b395af36a602fd7f3a1588ea77f39ac61a5f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:56-62 | config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:82-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e674aaf1a31c7ded35ff0b6c589798cdad994b5796f865bc0bd61d9cd071dc9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCloneService.java:148-154 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:326-332 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCloneService.java:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/ConfigCloneService.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7410f271c7371200e742a054d8707412a6a9cc29b481e8b9fcbcd45285d0a8b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/ConfigOperationService.java:93-99 | config/src/main/java/com/alibaba/nacos/config/server/service/ConfigOperationService.java:223-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/ConfigOperationService.java:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/ConfigOperationService.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3de66a7f83c2f2b673e60daffc308255f452ceb64dc015fcaed84e74aef82f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:292-298 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:324-330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:292\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"8419d859247889ef45b0cc589adbd5ef30a88d19449fdee6c1e64253b0d94458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:401-407 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:432-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java:401\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsoleCopilotController.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"869a67323522ac482b24c6f28cfcb56cc3f17cd91dc5b3c5e663ef77486906d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsolePipelineController.java:64-70 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsolePipelineController.java:110-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsolePipelineController.java:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsolePipelineController.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78ba79d2040de5ae0a8aad0b6e2576146ef7b139d1873f4dd1a2d845a850c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:142-148 | copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillOptimizationServiceImpl.java:269-275 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf83b4f96c4efdfc1506443dafc55e63a094768cee6c5677b32ac0c54773d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/persistence/DerbySnapshotOperation.java:100-106 | naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchDomainSnapshotOperation.java:62-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/persistence/DerbySnapshotOperation.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96e21188126b6638fe3cba9f8846bd1eab152bb3977fdc3ea307893c8b7cd5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigService.java:110-116 | core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigService.java:137-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigService.java:110\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigService.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fc669bb214a119fa2575dc38d3090544010458a5bde54c87ea50535e178b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/plugin/sync/StandalonePluginStateSynchronizer.java:75-81 | core/src/main/java/com/alibaba/nacos/core/plugin/PluginManager.java:267-274 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060core/src/main/java/com/alibaba/nacos/core/plugin/sync/StandalonePluginStateSynchronizer.java:75\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/plugin/sync/StandalonePluginStateSynchronizer.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cbc6388a87de38ddc6d8d07feba5c2ae96b4f253998f2320bc2cb155338d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/xds/RdsGenerator.java:146-152 | istio/src/main/java/com/alibaba/nacos/istio/xds/RdsGenerator.java:240-246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060istio/src/main/java/com/alibaba/nacos/istio/xds/RdsGenerator.java:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/RdsGenerator.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f2321b6346694db0cd40f03639d8de5dc0d14ed9e9999743b7137c739b1fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java:106-112 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/PersistentClientOperationServiceImpl.java:341-347 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"061d9005f62f07533e024a4855784ee6b225c63d5797fb8b014451161b72c97e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java:147-154 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/PersistentClientOperationServiceImpl.java:360-366 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bd17dd74f61fdb1c531443b6fb04897575cf45d37edbc7d8ed1f25b885d406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:101-107 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:122-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aeeb7d588b7a4b48d5c105670d8cfe2cb375575a2aba970ef4016ded638fe38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:155-161 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:91-97 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edc4c33a4e632a4e805d56905a88a58b6de767c4b10d6f99fffe6334a85441a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:67-73 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:125-131 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1db8d19b7db61538e000d521124006e8d8cc0224c31b1f541d5485d6a1b6618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:120-126 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:369-375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"435620f604b6fad931bf87cf691dc87c0174e53f3a99128dc7324a562c45bf4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:140-146 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:392-398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edd5677c2099fa5f937ba44a027cdfe8e71316270713b0c79b9cdc189c47911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:92-98 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:133-139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc76e355e37bd262b30ebfcc898748ab2bf0449b9c0b9a7d8f0b41b90482bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:101-107 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:146-152 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf0b102b47768ec322bec991ec4172211e1e2938ea5a9a9fe87b885efcbebc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:129-135 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:209-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a577941dcfb202308bc15f3ec277a597cb287d2b4f592c3fcf66ce218f170536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:159-165 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:256-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a8e2f05873a4a274b8a8969dfd53b68b9be24131c4ba7fc904d719249ae3e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:374-380 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:395-401 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:374\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66691aa20acec64cd59800a3c55cf5968b70e3958ee802472528eca0628ae3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:84-90 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:256-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c4e652cb39e1a30c866dc9e2a3a246b97861bb6650ac18e96ca6db1536627a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:340-346 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:396-402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9afb2187bda8ff49882b4c324067b56e5d44deb0340828a358c34974197a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:365-371 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:384-390 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:365\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0531f48b2e3ee40b7078283878c5765d6e25f2a4b3c29fc029c9de047b579074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:313-319 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:393-399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:393\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b118b0c90f416edc64710c6bb0bd8c2cfc18f44e0a37191d6a27b5f38d8f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java:137-143 | naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceOpenApiController.java:130-136 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3178c7f87fe4c70723812cf7311421e33f087570df132f149b69cb50b5d79da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java:188-196 | naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java:216-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/InstanceControllerV3.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f8e18e5b1f7d7d596cc35f0b7e40a482b470666b9ff19f004bc30711803f0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:323-329 | naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:349-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:323\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8461316ae3c41665caf7418fbb15dc287cc853d0216958e823fa3b787a6581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:331-337 | naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:357-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:331\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae2d18a79042c60ddc286abfa5c6351ad855c006380b00eb5c577417cd50e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/monitor/collector/NamingSubAndPubMetricsCollector.java:54-60 | naming/src/main/java/com/alibaba/nacos/naming/monitor/collector/NamingSubAndPubMetricsCollector.java:73-79 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/monitor/collector/NamingSubAndPubMetricsCollector.java:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/monitor/collector/NamingSubAndPubMetricsCollector.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"67274fb62c715ddaa8f9d8ad70aab399d22c76673d49f7b329932d434d6b6775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:232-238 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPipelineService.java:296-302 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a27e4ff6ea640a24c29c01cae656edfaaf795965335e88123c895e99d8ebb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:286-292 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPipelineService.java:244-250 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2dda9501a5f49958f0f55f9f3d9a27673f3f83324360093c90ed33f1f53de5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:313-319 | plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillSpectorPipelineService.java:279-286 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java:313\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-ai-pipeline-plugin/src/main/java/com/alibaba/nacos/plugin/ai/pipeline/spi/impl/SkillScannerPipelineService.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cf57464af41be289a1c3ec5373b93a7b355c66628a381548807967290c1bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/jwt/NacosSignatureAlgorithm.java:130-136 | plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/jwt/NacosSignatureAlgorithm.java:185-191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/jwt/NacosSignatureAlgorithm.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6fe6d32effa9db6e4a37c322b1a83559025eed677dfa31691f4618a3b7f639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): plugin-default-impl/nacos-default-control-plugin/src/main/java/com/alibaba/nacos/plugin/control/impl/NacosTpsControlManager.java:79-85 | plugin/control/src/main/java/com/alibaba/nacos/plugin/control/tps/DefaultTpsControlManager.java:56-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-control-plugin/src/main/java/com/alibaba/nacos/plugin/control/impl/NacosTpsControlManager.java:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-control-plugin/src/main/java/com/alibaba/nacos/plugin/control/impl/NacosTpsControlManager.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d974b4b273eccb5155db2e7ca08990bfa3d635da4bed056474a8e096d75e0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): plugin-default-impl/nacos-default-control-plugin/src/main/java/com/alibaba/nacos/plugin/control/impl/NacosTpsControlManager.java:95-101 | plugin/control/src/main/java/com/alibaba/nacos/plugin/control/tps/DefaultTpsControlManager.java:76-82 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-control-plugin/src/main/java/com/alibaba/nacos/plugin/control/impl/NacosTpsControlManager.java:95\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-control-plugin/src/main/java/com/alibaba/nacos/plugin/control/impl/NacosTpsControlManager.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87ea6098c172f5051d9945d0859163dce756ff648924e60790c401acb488ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): plugin/control/src/main/java/com/alibaba/nacos/plugin/control/tps/barrier/LocalSimpleCountRateCounter.java:89-95 | plugin/control/src/main/java/com/alibaba/nacos/plugin/control/tps/barrier/LocalSimpleCountRateCounter.java:110-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin/control/src/main/java/com/alibaba/nacos/plugin/control/tps/barrier/LocalSimpleCountRateCounter.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5a9d6de5f4079914963a020311e838e811e8db687f39cac26a91f0647586c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:254-261 | plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-oracle/src/main/java/com/alibaba/nacos/plugin/datasource/impl/oracle/ConfigInfoMapperByOracle.java:280-286 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java:254\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-mysql/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"563f5dfb5a70120826e353c129da4a68c38f6142ca418e760caa324445521f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 22): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:140-145 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:263-268 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:281-286 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:325-330 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:349-354 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:369-374 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:389-394 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:409-414 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:432-437 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:452-457 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:114-119 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:134-139 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:104-109 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:273-278 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:291-296 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:335-340 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:359-364 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:379-384 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:399-404 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:419-424 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:442-447 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:462-467 \u2014 there are 22 copies across 3 file(s) \u2014 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 22 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"692bfecb008056235670a65da62ca7b073d776cdf3a4cc51838637b1a57e75fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:152-157 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:93-99 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:114-120 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:361-367 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:381-387 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:401-407 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:444-450 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:132-138 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:273-279 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:311-317 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:327-333 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:343-349 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:427-433 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:78-84 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:371-377 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:391-397 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:411-417 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:454-460 \u2014 there are 18 copies across 4 file(s) \u2014 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 18 sites; resolving a subset leaves the remainder to drift apart. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f885f34060261e017cbe3b6b35ca8c0d1f4c5fe0bf27fb3a14dc50d14ec09b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:86-92 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:123-129 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalHistoryConfigInfoPersistServiceImpl.java:77-83 | core/src/main/java/com/alibaba/nacos/core/namespace/repository/ExternalNamespacePersistServiceImpl.java:63-68 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d54d09c8b9f6f30413ce9f4d9cf594e214484ea78b714fbc118156d4abade5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:96-101 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:68-74 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:126-132 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:405-411 \u2014 there are 4 copies across 3 file(s) \u2014 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. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a234a1b98e49d5874ac47da9081ca7baebb0d322b7fbed6af479d2c16740d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:64-69 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:158-164 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:255-261 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:275-280 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fddfd07cf58eec3854bddf6dcaa3a2329124c04c8483296084012371c471636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:91-96 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:174-180 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:190-196 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:208-213 \u2014 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 \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"b869286b485acdb7635aaaf8cd60e6f9a00f7a7041d3b8d0f0fe5daa533bf253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:146-151 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:263-268 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:281-286 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:296-301 \u2014 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 \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d45a10e5fa1f74926e8a3fc19d21f76190f29e5a41246bc231219fc4941db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): ai/src/main/java/com/alibaba/nacos/ai/utils/AgentRequestUtil.java:142-148 | client/src/main/java/com/alibaba/nacos/client/ai/remote/AiGrpcClient.java:657-662 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:232-238 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/utils/AgentRequestUtil.java:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/AgentRequestUtil.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae672eb02a1070ce7bb1bd56a6a0598f31cb4a0e357a1aa61406af3282e844d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): client/src/main/java/com/alibaba/nacos/client/redo/service/AbstractRedoService.java:154-159 | client/src/main/java/com/alibaba/nacos/client/redo/service/AbstractRedoService.java:171-176 | client/src/main/java/com/alibaba/nacos/client/redo/service/AbstractRedoService.java:189-194 \u2014 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 \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/redo/service/AbstractRedoService.java:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/redo/service/AbstractRedoService.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b040eb2e261f9d02e09618255f9de9511ec134919fbb909be17cb98c4e2b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:146-151 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:271-276 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:327-332 \u2014 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 \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9630dafe1abfbb3545e80e3e45a08f4b15faf73f8ac8de50c22dd6a55472f70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:248-253 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:234-242 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:286-294 \u2014 there are 3 copies across 2 file(s) \u2014 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 3 sites; resolving a subset leaves the remainder to drift apart. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"93346e70aeee11c30d9627cc6301cb288c81ed2db767c624763a6212fdcb4bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:351-356 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:720-725 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:331-336 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4266987a9b7faea1505f979042e9cfaf58e11d232943d3e82ae505eb22639d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:83-89 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:140-146 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:158-163 \u2014 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 \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/A2aMaintainerServiceImpl.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8898f049c07e093f0ad2a9a9666001de7fb4c2af530922b60bdd6ba2a510d7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:93-98 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:114-119 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:134-139 \u2014 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 \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/McpMaintainerServiceImpl.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7345a1e9f1714d7c5a0e1c3ad470055b786b11f00d71f4988db26ebeb65109a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:235-240 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:366-371 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:387-392 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8c9a6fab7fe05b38df224c60183ed39c8bedcf5659a0a2202d03d8e3d74471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:164-169 | naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:324-329 | naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java:350-355 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/InstanceOperatorClientImpl.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac94e56882f0d12a942c71605f527ed4fe883d6a25a303df17749c04c94d9b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/controller/SkillsRegistryController.java:139-144 | ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/controller/SkillsRegistryController.java:194-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/controller/SkillsRegistryController.java:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai-registry-adaptor/src/main/java/com/alibaba/nacos/airegistry/controller/SkillsRegistryController.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e8a66ccb62d4272c1bc8116adfd430f1429033d6720f46b4b6f5fab9c84206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportSourceManager.java:207-212 | ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportSourceManager.java:219-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportSourceManager.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df2d20061f312cd43d28373232d12e6b47cc55d7d451bd575ffe499042e218d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/remote/handler/a2a/AgentEndpointRequestHandler.java:146-151 | ai/src/main/java/com/alibaba/nacos/ai/remote/handler/McpServerEndpointRequestHandler.java:198-203 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/remote/handler/a2a/AgentEndpointRequestHandler.java:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/remote/handler/a2a/AgentEndpointRequestHandler.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec04c1a089c0ca5c2eeb4df00dbe06e925b0ba056c5b88c44c8c49b43a9bd73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:584-589 | ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:620-625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:584\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd84b2db9efb77a0292a7d736a1977acb583d3ed7d4a68908b0cc865c5fb766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java:76-81 | ai/src/main/java/com/alibaba/nacos/ai/service/repository/EmbeddedAiResourcePersistServiceImpl.java:71-76 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/repository/AiResourcePersistServiceImpl.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"305869bc33afb73896e3170e7148a5d8c2db56dabff28c15a6d4f4147ead838a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:170-175 | ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:248-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ef83b6d411851fb549f95d2193b6499fccbf08ff79a9b9b818f81636d09d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1629-1634 | api/src/main/java/com/alibaba/nacos/api/ai/model/skills/SkillUtils.java:408-414 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1629\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95f79cbd87914bd408894bc00920a61d912fbd6a78ded01b0cba7be2deb27f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:186-191 | plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java:125-130 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/McpExternalDataAdaptor.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"59dfcb5c1380fe37c22668ad7b759a52bce151932b1f12391e27f5af3418e6d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api/src/main/java/com/alibaba/nacos/api/grpc/auto/BiRequestStreamGrpc.java:53-58 | api/src/main/java/com/alibaba/nacos/api/grpc/auto/RequestGrpc.java:58-63 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060api/src/main/java/com/alibaba/nacos/api/grpc/auto/BiRequestStreamGrpc.java:53\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/grpc/auto/BiRequestStreamGrpc.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8142178317896d933005a174f8b8ae363c4308737bc70dee8a99d8dbdad329e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api/src/main/java/com/alibaba/nacos/api/naming/pojo/ServiceInfo.java:301-306 | naming/src/main/java/com/alibaba/nacos/naming/utils/InstanceUtil.java:99-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/naming/pojo/ServiceInfo.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70aca9670295f96e440b58c25bc0f914fa8c7e22870913fc2d14bb43a7a1ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java:86-91 | client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java:102-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"071d82f3d6799e8b25e5efff6cb694c5713176835fe02fbea08e9e8ea31a0c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:240-245 | client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:271-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f1bebcd271fb131dbedc000cc99150a6c92eb2e4beb3e3558baf158f3a2663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): common/src/main/java/com/alibaba/nacos/common/remote/client/grpc/GrpcClient.java:559-564 | core/src/main/java/com/alibaba/nacos/core/remote/grpc/negotiator/tls/DefaultTlsContextBuilder.java:65-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060common/src/main/java/com/alibaba/nacos/common/remote/client/grpc/GrpcClient.java:559\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/remote/client/grpc/GrpcClient.java"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d67945e8d6eb4c84e255cd1fa24b3fcc792c8d8582f7e074a7d47cdf2a74a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:382-387 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:516-521 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:382\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"06549f337a3bd161f6d8be5c51d3b5fe0173e761c251b2d9318facbd32d38908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:206-211 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:192-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:206\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"754d52c354398781f27cd12feb700b64b7af7d997441f246704a0ecf047b0bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:218-223 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoGrayPersistServiceImpl.java:204-209 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java:218\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoGrayPersistServiceImpl.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0973c2aca55ac76362287c08fa36a86332544d0b125fd82861ac7ad1b7fa61c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:335-340 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedHistoryConfigInfoPersistServiceImpl.java:108-113 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"335f21ee50556d49687c98c34ee03b8ded971e93065728d6a97b7f731aad08b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:385-390 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:461-466 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:385\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6cccaa28fdd3000430621719bb06db9b4f3ecff75872a167082228044863ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:929-934 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:1302-1309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:929\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"26413b82df621a1903646eff701a90c0a9d581223962a2abaed28d32c905e5f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:436-441 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:458-463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"387ea6a5d1c307e476e012d7e00b13c34ecad3df689335b0ac641b0de2053b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:228-233 | config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:252-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java:228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/sql/EmbeddedStorageContextUtils.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9444c07174bb82d01a7d08f6e1c6f3ac5e93e505f42f1aca884a2ce7c3c37c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/utils/MD5Util.java:62-67 | config/src/main/java/com/alibaba/nacos/config/server/utils/MD5Util.java:83-89 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/utils/MD5Util.java:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/utils/MD5Util.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b194543b23aef271ec9b8d3648f98545b433f71a974cf397cc01b6ba9fc4a89c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleInstanceController.java:132-137 | naming/src/main/java/com/alibaba/nacos/naming/utils/NamingRequestUtil.java:91-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleInstanceController.java:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleInstanceController.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ebd29694be19fac1b6bcf068880161d7c0413a74fd02663ec63a27122b330d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java:94-99 | naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/ServiceControllerV3.java:100-105 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ec5b51ebd2fd46402f5ac756adb884822a34ae064684352d5f31d3842b3cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java:127-132 | naming/src/main/java/com/alibaba/nacos/naming/controllers/v3/ServiceControllerV3.java:198-203 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleServiceController.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"899332c952dd5baf71a979b85485a06b3f684ca9f2dc6b944d7c8e2c233c635a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/core/PluginInnerHandler.java:234-239 | core/src/main/java/com/alibaba/nacos/core/controller/v3/PluginControllerV3.java:180-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/core/PluginInnerHandler.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0feaa51347083ca8a2c193133a34d3f8ac84c3f122f488930e5c34430850567"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/core/PluginInnerHandler.java:246-251 | core/src/main/java/com/alibaba/nacos/core/controller/v3/PluginControllerV3.java:192-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/core/PluginInnerHandler.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6a5602395fb3f8afa678070413a1a04cf72cfb1ce6b83c817db15c2d6307aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/naming/ServiceRemoteHandler.java:115-120 | naming/src/main/java/com/alibaba/nacos/naming/core/CatalogServiceV2Impl.java:98-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/naming/ServiceRemoteHandler.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2de2629c6cf338f7e410ee0784099f2f7a5ba8216d3e5cbe554d8efeac02639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:122-127 | copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillOptimizationServiceImpl.java:248-255 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8263e9919f0fcd0bc96df5a26d3e8dba046f96fc10a1bb64120db818d4693c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:181-186 | copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillOptimizationServiceImpl.java:290-297 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java:181\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"copilot/src/main/java/com/alibaba/nacos/copilot/service/SkillGenerationServiceImpl.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b5f28e5f469464f2ff30e13f6571377085e4bcdee58c10c8b80854067d6630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/paramcheck/impl/BatchInstanceRequestParamExtractor.java:38-43 | core/src/main/java/com/alibaba/nacos/core/paramcheck/impl/ServiceListRequestParamExtractor.java:37-42 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/paramcheck/impl/BatchInstanceRequestParamExtractor.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdaf9ce72b502218d3e50377c5bc598dfd73435569bb2c2e1b1cb1a26882bde5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/java/com/alibaba/nacos/core/utils/Loggers.java:59-64 | naming/src/main/java/com/alibaba/nacos/naming/misc/Loggers.java:59-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/utils/Loggers.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5231816a6c7bf981a22e3203ad35baa3acdd2fc4a83dcdbb08f6968a6012de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/mcp/ServiceEntryMcpGenerator.java:80-85 | istio/src/main/java/com/alibaba/nacos/istio/xds/ServiceEntryXdsGenerator.java:78-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/mcp/ServiceEntryMcpGenerator.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"832424b91b5018bd764324c797485831ec28b12067852c3e896a69b4edac8ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/xds/EdsGenerator.java:78-83 | istio/src/main/java/com/alibaba/nacos/istio/xds/EdsGenerator.java:123-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060istio/src/main/java/com/alibaba/nacos/istio/xds/EdsGenerator.java:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/EdsGenerator.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c677c8c48cf137804488b896df2a41c6ff9cf97634397479be8557d105846be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): istio/src/main/java/com/alibaba/nacos/istio/xds/EdsGenerator.java:99-104 | istio/src/main/java/com/alibaba/nacos/istio/xds/ServiceEntryXdsGenerator.java:104-109 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060istio/src/main/java/com/alibaba/nacos/istio/xds/EdsGenerator.java:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"istio/src/main/java/com/alibaba/nacos/istio/xds/EdsGenerator.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"385144156d0feeaa019d21fd2f4258c93e498a3f774b61476a2813a3d9ff2fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/NacosLockManager.java:56-61 | lock/src/main/java/com/alibaba/nacos/lock/NacosLockManager.java:84-89 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060lock/src/main/java/com/alibaba/nacos/lock/NacosLockManager.java:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/NacosLockManager.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3613c5bc0f001d80c8794569e895d8d430410a345ecdc89a400d6c124f7800e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:213-218 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:218-223 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5f8fd3bb6e4c19f2b96b46f3f56f3ef9dbc657a36fb494ba3dd2f812786a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:221-226 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:183-188 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8a7521cb82f193f0da306841539649bac9264a147f2b4ae860d45b690a3ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:253-258 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerServiceImpl.java:262-267 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java:253\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentSpecMaintainerServiceImpl.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d589c8475e6064b5876f4d2afaf585aef5d5ca4f59eef50874e1d47c39adaa5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:404-409 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:448-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"34efb82ecb9d5eb64e7ab20ac6c6a6d0c0b1b4678cbf6db49486c71c355f43b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:413-418 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:434-439 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:413\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c8562cb5c8973778c92aca5e6095d063447b5d58da396cdf9b4a1f55a58df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:214-219 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:345-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"190cebc6c7140b6cab1880d35e7810eeb52fee366a1329a78a16fb105afb849e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java:344-349 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:168-173 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/NacosConfigMaintainerServiceImpl.java"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"830fafc0e4f20dbd190b2add7e90dc47ed213712a35cd6043b67869d7afa69be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:580-585 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:602-607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5036d88d8bf783d28f16b212fd9935e2cb62bf9d1bcba82cb955aa028a2af27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/PersistentClientOperationServiceImpl.java:115-120 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/PersistentClientOperationServiceImpl.java:167-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/PersistentClientOperationServiceImpl.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11cfa6202b08f93f2c8007f2812fc47a8e584e77c1bcad280f0996535081cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/CatalogServiceV2Impl.java:156-161 | naming/src/main/java/com/alibaba/nacos/naming/core/CatalogServiceV2Impl.java:187-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/CatalogServiceV2Impl.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"140dacd85a99cc6eb51c5647fdfd4bb4807bbeebd2c78dc0bf4fb529d77b6885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java:126-131 | plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/mapper/ConfigInfoMapper.java:186-191 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugin-default-impl/nacos-default-datasource-plugin/nacos-datasource-plugin-derby/src/main/java/com/alibaba/nacos/plugin/datasource/impl/derby/ConfigInfoMapperByDerby.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee895fd588a814003450eddc4717c09eb3b69b744889b80211101c72d690066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:188-192 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java:417-421 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/utils/RequestUtil.java:42-46 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/utils/RequestUtil.java:61-65 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/utils/RequestUtil.java:86-90 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/utils/RequestUtil.java:104-108 \u2014 there are 6 copies across 2 file(s) \u2014 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 6 sites; resolving a subset leaves the remainder to drift apart. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/naming/NacosNamingMaintainerServiceImpl.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d4dcbca77af6079e87256c84264d63351847c4c1f30da537ed076c29a8ac85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1267-1271 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1284-1288 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1299-1303 \u2014 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 \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1267\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fc0706ffc0932ddadba96eb4dea0affd46ce366314a9649a67902bc09d1697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): core/src/main/java/com/alibaba/nacos/core/plugin/PluginStateSnapshotOperation.java:125-132 | lock/src/main/java/com/alibaba/nacos/lock/persistence/NacosLockSnapshotOperation.java:142-146 | naming/src/main/java/com/alibaba/nacos/naming/core/v2/service/impl/PersistentClientOperationServiceImpl.java:355-359 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060core/src/main/java/com/alibaba/nacos/core/plugin/PluginStateSnapshotOperation.java:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/com/alibaba/nacos/core/plugin/PluginStateSnapshotOperation.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c6ca87b57e7c114d7a67932930479aa577f6d3c56d8f92d5d4f55048c56214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/controller/PromptAdminController.java:189-193 | console/src/main/java/com/alibaba/nacos/console/controller/v3/ai/ConsolePromptController.java:182-187 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/controller/PromptAdminController.java:189\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/controller/PromptAdminController.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1229124e29c1faf4366e3c370cfe02fa5a4bf9faacc38b6477a62c56117193"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/remote/handler/a2a/AgentEndpointRequestHandler.java:136-140 | ai/src/main/java/com/alibaba/nacos/ai/remote/handler/McpServerEndpointRequestHandler.java:189-193 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/remote/handler/a2a/AgentEndpointRequestHandler.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c3565ab6c96733efff73e787780ac05c7255fb15f2865dc644ced1e82ee7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:474-478 | ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java:574-578 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e694e96a906ec022670eba767fcba63788f97e94b79ffe16457c6f6dee265b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:298-302 | ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:324-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/resource/AiResourceManager.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b21e7b0643cb4b30def3968add01c4325a5c74c6d55ef1fcfbb649579196e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:870-874 | ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java:1013-1018 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"9013b2bdda3dc8602193f699053f4c75033241da8ce6fd20671554d8e940e175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java:101-105 | client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java:119-123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java:101\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/config/utils/ParamUtils.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b464085d7cf13c699c5e3014fe48191cd49277c01beb1d4b855ad8032cf1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:144-148 | client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java:200-204 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/alibaba/nacos/client/naming/remote/http/NamingHttpClientProxy.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"012877984949183edf460e30a8b598760151e9b3f63b308cd32e9ff9f16f93ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:596-600 | console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/config/ConfigInnerHandler.java:306-310 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:596\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6044c9d0244a731fc241f4317537355af9cf52c93ec4b90246428acf537cf40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java:88-92 | config/src/main/java/com/alibaba/nacos/config/server/service/capacity/TenantCapacityPersistService.java:85-89 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/capacity/GroupCapacityPersistService.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a0d2ff5e3363f5ac7f9b352c3e40d451d51387d02f6ddbcbfbf694d323d319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:314-318 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:385-389 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"209a6c2a8f7be63ea7a22188ecba6a02a14ca53c7d7e0ede0c468b492398e419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:705-709 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java:754-758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"9922ef807038f0e5179c834970bed9cb7cdffc4e47f144b341e127cf178d02dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:806-810 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java:853-857 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/extrnal/ExternalConfigInfoPersistServiceImpl.java"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60b95c4f26a6022cad6415f23ca6e9b0d1bc7d05df8f7f7684832b93c344178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:347-351 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:381-385 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a26efe62fb261223df40cd41f63e27ffe2db2cdca1a9e10a5bc6ff972890bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:444-448 | config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java:468-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/ConfigRowMapperInjector.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"61894acefe12c3b8ec7fd9a66960ede9549403ff96b042321fade2ec32fc1bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleInstanceController.java:152-157 | naming/src/main/java/com/alibaba/nacos/naming/utils/InstanceUtil.java:158-162 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleInstanceController.java:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/controller/v3/naming/ConsoleInstanceController.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6088f5db28643915bc8ba8988c4cdfe6e1673dce08cdd7f2aca80466902bca9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/ai/AiResourceImportRemoteHandler.java:157-161 | console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/ai/AiResourceImportRemoteHandler.java:167-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/ai/AiResourceImportRemoteHandler.java:157\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/ai/AiResourceImportRemoteHandler.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfcaa6210b3c2ae815305b41c2d28bb6d4ae713d0fc5a3855f2ed2c47d95053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): console/src/main/java/com/alibaba/nacos/console/NacosConsoleStartUp.java:111-115 | core/src/main/java/com/alibaba/nacos/core/listener/startup/NacosCoreStartUp.java:124-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060console/src/main/java/com/alibaba/nacos/console/NacosConsoleStartUp.java:111\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/java/com/alibaba/nacos/console/NacosConsoleStartUp.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65dcb6f7f0028b478cf64e9856cfbc346dd8d0aaf17fd8c0718486e69532164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java:90-94 | example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java:107-111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/src/main/java/com/alibaba/nacos/example/AgentSpecExample.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84cb2f4044e102d6402a316a8b08e0f3e2c6ec491dfe11f6376fb516e0f88d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:453-457 | lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java:481-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock/src/main/java/com/alibaba/nacos/lock/service/impl/LockOperationServiceImpl.java"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d969e2ba97df6d223a8e4c97dab14b8c0fbda117549c07978ac3203cbab3cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java:90-94 | maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:357-361 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/PromptMaintainerServiceImpl.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1e373c6ab3dd71302d8c7b8d85f6e3cde399ced75c9481f5d24e80de4ddcf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/core/ClientServiceImpl.java:279-283 | naming/src/main/java/com/alibaba/nacos/naming/core/ClientServiceImpl.java:306-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060naming/src/main/java/com/alibaba/nacos/naming/core/ClientServiceImpl.java:279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/core/ClientServiceImpl.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"9474eaedc8a57ab7205c4be4e76c9dcacf27f5d934bc8a187f958f54b8a1bb9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/InstanceRequestHandler.java:91-95 | naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/PersistentInstanceRequestHandler.java:89-93 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/InstanceRequestHandler.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fde51913de5bd3b95378d9a821559ab5590454d01386f263799739ba12d12e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): api/src/main/java/com/alibaba/nacos/api/ai/model/a2a/AgentEndpoint.java:175-192 | config/src/main/java/com/alibaba/nacos/config/server/model/ConfigAdvanceInfo.java:132-148 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/alibaba/nacos/api/ai/model/a2a/AgentEndpoint.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f93e9f5eaa9917d6decf23bf2a5d8edc58ca2d2883d9b5eb3563463f57c087"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: console-ui-next/src/pages/promptDetail/index.tsx: console-ui-next/src/pages/promptDetail/index.tsx changed 5 times in last 90 days, max complexity 108. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui-next/src/pages/promptDetail/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e137e06a8ab6d19e9b9a10cf9175216cd331288e9fd7d50e963b6baeb19f1d4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: console-ui-next/src/pages/skillDetail/index.tsx: console-ui-next/src/pages/skillDetail/index.tsx changed 5 times in last 90 days, max complexity 98. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui-next/src/pages/skillDetail/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"060612cdc6a67ed3c497d825491b3206d4523141ef54787ef5ae298669f78ff8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: console-ui-next/src/pages/agentSpecDetail/index.tsx: console-ui-next/src/pages/agentSpecDetail/index.tsx changed 4 times in last 90 days, max complexity 91. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui-next/src/pages/agentSpecDetail/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"122dcda6a6e83b40f6d97d3c0a932a319ebb03e33c05bfeca537cad0c185671a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: console-ui/src/pages/AI/SkillDetail/SkillDetail.js: console-ui/src/pages/AI/SkillDetail/SkillDetail.js changed 3 times in last 90 days, max complexity 81. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui/src/pages/AI/SkillDetail/SkillDetail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a0df633e994abcb73d3ebcfbfcab36803baf894bfe5598dba8a0dcb92edfa5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java: ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java changed 8 times in last 90 days, max complexity 23. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/utils/SkillZipParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e7c887367cb14c5e2c0eb7712cfa0e813f8b5c7dcb87af1b35572ac0e59b3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: console-ui-next/src/pages/mcpServerDetail/index.tsx: console-ui-next/src/pages/mcpServerDetail/index.tsx changed 2 times in last 90 days, max complexity 60. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui-next/src/pages/mcpServerDetail/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3102bc1ad24faf7684d13cff7b363c6f28acc9ab257d0f7998d7921bf117b1e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: console-ui-next/src/pages/newMcpServer/index.tsx: console-ui-next/src/pages/newMcpServer/index.tsx changed 3 times in last 90 days, max complexity 39. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui-next/src/pages/newMcpServer/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bce3de24e1414752df38126cc443707ff24e34f279a73676a3f206f64a9399"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: console/src/main/resources/static/next/js/vendor-icons.js: console/src/main/resources/static/next/js/vendor-icons.js changed 4 times in last 90 days, max complexity 28. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console/src/main/resources/static/next/js/vendor-icons.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"724505367dbb27cd9a1f9eab16b449b6476f1cbb9d681310f7bc94c9402872cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java: ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java changed 6 times in last 90 days, max complexity 17. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/prompt/PromptOperationServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62341d6b0162ac783dc75b613f7fafbbae2409a03802cbd252a0690e32500bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java: config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java changed 5 times in last 90 days, max complexity 20. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedConfigInfoPersistServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"209f250f484850aa4ab0aca7dc4299a9e7c5dc6978483e7d2b989ab02d08dde2"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 31 significant file(s) lose their only recent owner: plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/skill/SkillWellKnownImportService.java, ai/src/main/java/com/alibaba/nacos/ai/importer/manager/AiResourceImportManager.java, plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/skill/SkillsShImportService.java, console-ui-next/src/components/ai/resource-import/ImportAiResourceDialog.tsx, ai/src/main/java/com/alibaba/nacos/ai/service/McpLegacyImportAdapter.java, plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/mcp/McpRegistryClient.java, ai/src/main/java/com/alibaba/nacos/ai/importer/config/AiResourceImportProperties.java, plugin-default-impl/nacos-default-ai-importer-plugin/src/main/java/com/alibaba/nacos/plugin/ai/importer/defaultimpl/DefaultAiResourceImportSourceProvider.java (\u002B23 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5852a55d59bc8f1d113e9c114b7bf778f6333e32f829cff301630462f760daa8"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 8 significant file(s) lose their only recent owner: ai/src/main/java/com/alibaba/nacos/ai/config/PromptDataMigrationTask.java, ai/src/main/java/com/alibaba/nacos/ai/config/NacosPromptLegacyDataReader.java, ai/src/main/java/com/alibaba/nacos/ai/utils/PromptVersionUtils.java, console-ui-next/src/pages/register/index.tsx, ai/src/main/java/com/alibaba/nacos/ai/form/prompt/PromptPublishForm.java, ai/src/main/java/com/alibaba/nacos/ai/config/PromptLegacyDataReader.java, console-ui-next/src/layouts/AppLayout.tsx, ai/src/main/java/com/alibaba/nacos/ai/config/LegacyPromptData.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6197be4bc92296e68b3e18f0b49273f0a70b9b916f981dc30d4d78366a5a53f4"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 7 significant file(s) lose their only recent owner: core/src/main/java/com/alibaba/nacos/core/persistence/DerbySnapshotOperation.java, naming/src/main/java/com/alibaba/nacos/naming/core/v2/index/ServiceStorage.java, common/src/main/java/com/alibaba/nacos/common/tls/TlsFileWatcher.java, plugin/control/src/main/java/com/alibaba/nacos/plugin/control/utils/DiskUtils.java, core/src/main/java/com/alibaba/nacos/core/paramcheck/ExtractorManager.java, console-ui-next/src/components/layout/change-password-dialog.tsx, config/src/main/java/com/alibaba/nacos/config/server/service/ClientIpWhiteList.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1049fb4cd759676c4fcbf91530b24033ed80da63cdd2a87e7cd461e97e84dbcd"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 6 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (56 single-owned of 1419 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #4 (2 file(s)), anonymized user #5 (3 file(s)), anonymized user #6 (2 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D19","level":"note","message":{"text":"The Prerequisites section lists Node.js \u003E= 20.19\u002B and npm \u003E= 10, but the .npmrc configuration is cut off mid-sentence in the visible portion.: Ensure the .npmrc config (e.g., registry, cache) referenced in the prerequisites is present and correctly noted."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"console-ui-next/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"855ce8dfba01ece96de1a5fef3208a3d7730ce1b185a6e564503df4bd440189c"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8743198b3f38e166f195bd2d59bc89129f3b1e00990d497f4c615f1675c943a"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bef9dcae55ef8f321d7e020282ba8b29c9dfbe6aebd00fb4c618c41a324321bf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ee4bb9dafaa6d3bed22f3aab251a0ff84d581da4d9c8344d8097dc3b8b32fab6"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c303424a7d1a4a712a77077b6342b2feba69146556a0b04667f34dba5d9514c"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6465c839c018276189fe7effa161e489ce81d010e4d5bac6000df486eb87caaf"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37aa6ead829349cd0c56f0222eeb55c3f48e480fac33c0f1aee4416e4ddd5124"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66547d01684e92101f7d2ffc32a4e8d5b1cc84079cdee9a5236f6ed281bb9909"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8012c42d297dc9578a0981eaaa3ed7c6e73ed5aa3dc41882e27c10ca099fea5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e539cb0740dea86a7df86b7287bb271d3368d49d45f29340e134af4dad7d9c2f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b6c55a08f2b35e11767deb6452f4d85746c5d4d1333adc775336a4b8786de129"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66f46099573e62503a4037983be1136ae2f2f5c5ca02874c86fc9b5860ce14c4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc03f292b207db80011fe2dabe33ca9d868c971dafb6f928256ade70f517a346"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97c2e4332131215432380febc246436d942ba540d08c47d0580632feccef87e2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"28d2ce06f69429bf05aae9e75e11fe065b591841cd91f69f73488d0e370d8c13"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8adb42bdaf604023f8cda30be06df7a620cbcd4ba439881be2102e4be72748bf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e026a95a07edae920e610aac73f0e8552a9cb0b998eff200eca719b688008f4f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf854d18a20409a191035add3a35da9fff4769ac1fa81f51bb85488d995a7bba"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f2a8fc7ce6f7474bafdc6cf47205b034a3a2d216e92ab2e1e359e0c0ccad520f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8d8fb3ed9df691dee2f16bacd72a281382d372cb7ee65df441e6622dc3c7ba1f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab8d83539c5ebe567cb6deae98d392d6617f9ea4001a34a9a21fb3f393c0be8f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b8dcd05e0b0ee1a13a1a8f3539a209c2cfce789c92f4a3eddc7b1e7b66d5121"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"625435054865948bfae16cd2c4376d24b799f4c4c00c5be65fa140823dc4ea3a"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"75f85f1ee5c451809b0c1ca8fc7986e65aab3d8fd9d5d8af5fc278ea3bf7df17"},"taxa":[{"id":"CWE-326","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"510883f8c5c91abfa60dfc3d85aaa8e41bac5d3deedf4c1328ec02104071459a"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a5e5f60b3b4f8713e0c77bf22c345bac45ca69ccc0caf7285248be1ee5a43f9"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4721a0bf44b6329f2a1f66caef67cffa511c89ed1510044c34a09b892bffa007"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e3d6bdf99f215df72eaf08882cbfe02263c1e1c142be7f2d24e558abc7a734f"},"taxa":[{"id":"CWE-352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fea14d2a0c5df272efdcb608ea63dbdd434f3952b52dc95a1f9163313e574a45"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"40b8aba86e60b32d4fff7669a5238cadbdc3ef1f0eba6dfee1eb6f5d89811d5e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5364b3afd8560f18767bd3c59bc87723a89de837be18b5b813141bd3d9e2780b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4be95f15f1ebffe9018ae78c6976dca09b42430895cfbc5a924739ad9a3aeb8"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01fe9eb73af2fa12867743b395f8c412c832850566036c7ba707c679e42456b1"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df4e118a9293b22cbd39456280b63fef87e0f59323a5aade03c0730ff554bc51"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cfffad423eef786d4e9fb8fafab0227e584dca8d2097325bacb8e9ea856c9217"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22e0d4f080b9a2afe3fd197161a86e521baa1c0d7c6c0652fe575f330fd047f0"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d24d9cb1171d9628bb6e9ab492f1979c1704c99833436a8f3e0ec1a50582a87"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7be05ed81c6a126901367278ad73c5d5f9adcc674373cb7b6cd5afc4724ccf6"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9633649d8a0c8b4ddc33c17f7b6f77a4cc5e5d4131156a45b9a484721a19140f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"403b1b03a072a9f37902f4ec7bec1cf550dad8faba7da1b45e8ecaf4a13802db"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b04688fe080468f1f8bd010c8146d73e4a79f59825e759c1a628a2c959c521ac"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2305d291f611edc119505eebba8c11c004217f9a0baf493745374d9108b8997d"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3c63288e415e4ad7ef7c6b57577084c6f85e343716add1186d23930850688d8b"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7393ba7793d38d073f2d83c194f8ef945029229d122452cd9d514b87d6768f79"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3effde68290d27ba0a6de1ed82a25a08d64007113ce67396c0dc799cb10b4d2e"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ca85d6e241a83c35e7a1806cfc67b4cda0942859310daf3fc45a76645f36935"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e88b47f9899581db43624a964f9cb9d48cb3e313c1733e755765e4adc38e1e6d"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef2e3fc88f90e716949f742e01fe11e0f2bfdd242c3dd2b6698e93a47b7cdc50"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e0a44f9e19a507f19e970f60b7c30db04633452dbe9129a83b4110851196ba3"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4392e0d17b78ed6bb082e14a22acfe36f57764bb50db5d2493933d9ff070cd04"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e8b786c30d5047d0961b7c3bb472d40132b38d68623f7350a73408decf34d72"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"48650839624d80ce6a44d33e290fab3659947d269e04a1856f79aa049354de9d"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"30c267b854f225bca3867c76221e8b850ee8636c67306510378f8f979d4e53d8"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5562d76cc0ec378c39ceeef1b9498e340ba05fc2b2fb591cffecc28054ac84f"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0856411a655639153f53195ed7af25c525d07af47bda2eb49749378ebafba146"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"79b0013c47b0577ba7bd6cafcf732cdf798b105a83152f7a330dfafb0ade3084"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37d22f25adabec013fcd83178114b1a5c454141503cca5d69f03810272cf264f"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c850733812d8396060899319c842fd1cdfc40a13019b1ee658d979f8c825e440"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8f3e3a87db7fd72f34b579a4fa15da1af902f6b6de0ea5d29bf5ec0737531bba"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0bded216ff77ae04d8273f6119c2fe5fc35c13da9ff7f4fd35b843bc3b0293b5"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"712cdfde5423e94e342024366d6190e45db7a80a7c616e999acdb810fe91ce74"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b55b492d1b032f117e9fa48ef84fc8038740a2409f694028758bda3d2bcc5d3"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d357d02e22c7dbed59e600f04c3f277a3e4d25f532e53aca992a909738326102"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6b7459788ccee22a53204e88698924d7db6c70be86d3d250fea56ff3e7a7348"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e21fe2b8534f9d6251abb09f20fa81728cc99a909ea964dc50a700ff2c97eecd"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e446c6045db759ef71ae26577d9cff9ed84889f9544185043b293b1e5a625bc8"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6fe63f212e15b89cfdac56c45f9fef74ee5882c4c9b81b2befee082741ac45f6"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4552918f6343263037bf592c0c60c9ec95585e69470d171f11e51f6f70f1ce8b"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c13a4e2ff35d8e04da76fa5a7e7416f05f18aacee4a9ccbbd00f5a5345a1512"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3d967198f68c4ea9f940b9fc8ad8ed7ca354efe76e3550de7ae974cc8d3f653a"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"077987fe155bec79c938550eee67468a52bf1a8e34faa6687a3a727a64a49b84"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/packagescan/classreading/ClassReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13be947b96f01e957d748d8bf7a50e57d8c057bd5226a0932ea24cd273a13691"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/service/capacity/CapacityService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe58ee8429885dadd1e0d52855fd4badbe7635575527fb90c9f3b86fbeb561f5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/alibaba/nacos/common/http/client/NacosRestTemplate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e0006e04fca58648636f921da6c58d27443e096da80e3124e1f3edf9806e04"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/src/main/java/com/alibaba/nacos/config/server/aspect/CapacityManagementAspect.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b3760b6f2a603e1d59591f98de73932080c9a656668df0edbdc32874a93fdf"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 253 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (257 orphaned of 1427 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillOperationService.java \u2194 SkillHandler.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationService.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/handler/ai/SkillHandler.java\u0060 (context console) sit in DIFFERENT parts of the tree yet change together 68% of the time (13 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e267a8a7f77b6faf27661ca48447ab888ead0b450f74905bece9726ed1aac916"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillOperationServiceImpl.java \u2194 SkillHandler.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/handler/ai/SkillHandler.java\u0060 (context console) sit in DIFFERENT parts of the tree yet change together 68% of the time (13 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21903b6e9c6a262226762b8dcd4eaf010e0ab093e733bc9ef415e6f0a1f3df0b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillOperationServiceImpl.java \u2194 SkillInnerHandler.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/handler/impl/inner/ai/SkillInnerHandler.java\u0060 (context console) sit in DIFFERENT parts of the tree yet change together 68% of the time (17 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bff1ca2935fd5d8ac09b15b4c56a5ac6baa30f5a052e315c1b70fd4c4e77d29"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillOperationServiceImpl.java \u2194 SkillProxy.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/proxy/ai/SkillProxy.java\u0060 (context console) sit in DIFFERENT parts of the tree yet change together 67% of the time (12 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb33963a257d46bd2fdd4ee44d6d9f3aebdb54721c0af809cf4e8eba92fa000"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillOperationService.java \u2194 SkillProxy.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationService.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/proxy/ai/SkillProxy.java\u0060 (context console) sit in DIFFERENT parts of the tree yet change together 67% of the time (12 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f48c21b2d28187e586e1e4ac6d46826f56e53579d1c4fd15e0253e82b53a1d2"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillOperationService.java \u2194 SkillNoopHandler.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationService.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/handler/impl/noop/ai/SkillNoopHandler.java\u0060 (context console) sit in DIFFERENT parts of the tree yet change together 65% of the time (11 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0f4a761a23bdd735a70ea07bb085f8186936d3c1bcbedbffa3bff34017b869"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillOperationServiceImpl.java \u2194 SkillNoopHandler.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/handler/impl/noop/ai/SkillNoopHandler.java\u0060 (context console) sit in DIFFERENT parts of the tree yet change together 65% of the time (11 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/service/skills/SkillOperationServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefc717a29994085667f2a5a9dfcd8892c3ab88052e81e013a42af24b310a144"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillAdminController.java \u2194 SkillNoopHandler.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/handler/impl/noop/ai/SkillNoopHandler.java\u0060 (context console) sit in DIFFERENT parts of the tree yet change together 65% of the time (11 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda40a3ea42a15baa574db8cc52e7d7d27cf381e6d000e98c84b850fb710795a"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillAdminController.java \u2194 SkillMaintainerService.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java\u0060 (context ai) and \u0060maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/SkillMaintainerService.java\u0060 (context maintainer-client) 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) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e169235859a8e6a0c7ccbfdd4503767ddc58760985fe8e123942b801c191b74c"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SkillAdminController.java \u2194 SkillHandler.java: \u0060ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java\u0060 (context ai) and \u0060console/src/main/java/com/alibaba/nacos/console/handler/ai/SkillHandler.java\u0060 (context console) 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) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ai/src/main/java/com/alibaba/nacos/ai/controller/SkillAdminController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f2086b0d2ffaf5f0fda0858b1ba3d0b5c327702a170c472add2c8b168bbe88"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"02667bec53ef251aa588863a87a9ee58c9d0080ac8d7c07c23defbc54b340fe2"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c4fc411090d5923596e1382926bc5c630ed11a8d1a2373507a075c1f7ea6174"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f2f444b4af8f9109231f0312acb2957c7876f6eec1f2f240bc79567043e74d83"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"890ea2b823cf95be15414621468c5639a2a07929ed36d68e3e457c788baafb62"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cceca4f774ca9c65dc8a393b1f6877d1e7b71e622a4e46a346ed34d0e5f9dc7a"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ecacc39c9f9859446fbca538fc033d696c00d2dd569bb0bf76a192cc75fbdc0"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e45501a6ef7cdc7aac25f3f24a6168cf7c96c77cbf64cb48384183b6a7ccdec0"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"108a0cd00e79f5b2ff1e45d9b800d5610012b618ded5bd95f7a4fb48a9a46f7d"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c6449c3383b3e95e84d717c00bf9396663ddf48adc19f77b6ae648889ac48ee"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e5d1fa2820d849f053ece2ebfd2c71c24aa3e5ff69a1e207b5e34430a31809a0"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8df7c96c0d63667329a624f07e6c1ba94e76a1461fff6953aec85fbb8e7efb1e"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2451b19a928fd754ba0118ab1355209afc170189bccf58a23f9d1eb1b0e41d3a"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b496775d19d6d8860170b962519e758fdd086dc56e969ef308b02312bc470df6"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"647f0e868f9b7dbf00c76cbb12fd07de98e3e4c09e6ddc8a2ec622dadb9a634c"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"04cb91851bf5e8e7b1f85d361752c16daa4f8fc760c1b516fa7d6519ca159bfb"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"65d9fbbac845bcda45a04208867ab64547cddde1c1d5e7582a1f9ffebaac320f"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"03288bd71cdd1b7e691b8692312255f685ea0eedc48ecb3ed5e06ceb955e3474"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5444ff702b932d4bc657f00a2a899cc68266efb9ffacd266f739998b66a2d1eb"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ccefb0d5590bc302b34655d1570c752d561e722f7c0478a1f202b506129672d9"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"71dbb24f2e360a5a18c9741f31d57e0f44ccdaea85e915f83edd8fc63321be15"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2021eee37b67ddb714c1c5b7be698f1d8424dbb6ade8ab1d0d60ca1c9d8abb24"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1bc49f58e4d558613cbf252552cf265e0c0302c0b560ffa4a517cdc826659624"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f67a0e7bd757fcf1bdfc35386ecde9b24c579b91e6a2e48a75e2b1875928ac18"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c4a716ff14d45e37ddc2f94f20d928a055d5949b9a4b89433c07903e72e06ee"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d0af1ebbd6deec13626d330c74214b62c6f260aadad1f81a23b8f18ab6f9b9c"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0317358350f326352e2c938b5fa0109062f974649505d29cd101ca669f6f76d9"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f85dd93f3e8010ccf24a7703f3f8525776bbe89c06bfe14f2d2edc3eb69bf12"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fcc6c40dad3a5bf2b4aa76a14114dfbac3234d6ae7298c673768909a1c7cc020"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d49f6a1970fb3c2b478af47b99fffe626119cda19da3c2af46a07cc8e29fefb"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d9b27c59fbec8e4677ece29a578786868d25e3ecc0d37c9aa93ae6122a59968b"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ede28dfa5fad8e234ccd2e25d896fc12778c6589941a731ce0f3c9a1c2a160f4"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea3d3830a7cda221e59293818e7c818e1dfefe359d4318ce1a8897f232d4b3fd"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d07d1c93c4e9bf55c944d73467cb10ed31fcc7c57d01e7a21f5ff841e81a6cf8"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55a6c81046fbf5ea62cea83363459a789cf5856a66436d025f32662fa6b7392c"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ab92a88c1855ca1c273d28b5bb90acff2c725253b4ed09b069c10b852c444e3"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"407d1966a6e384614c4107130452145a76771744d72fdd106d3c3571c581b99d"}},{"ruleId":"D38","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"af1efd74dfb1f94f7d51884f536d9fceee847fac3b0c4a0dcedc7f0a504e5b7c"}},{"ruleId":"D38","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a39385af33b382b867a2b3f9b619febf6e0dabe1df13ea085fc90e182da9e43c"}},{"ruleId":"D38","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"33f48f6dfe913f070fc812bfec4b6376379a9155bcc657e9c50d5a0234485d1d"}},{"ruleId":"D38","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e00e6d0f117324d8e98da1f1fac56f3e21538e6f03abab10f7d011cbcb8e57c4"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1004","guid":"872195c9-bb07-cf51-8a32-865f4bb753ca","name":"CWE-1004","shortDescription":{"text":"CWE-1004"},"helpUri":"https://cwe.mitre.org/data/definitions/1004.html"},{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"CWE-295","shortDescription":{"text":"CWE-295"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-326","guid":"7ee78bef-7589-f65f-a9d7-619f3485e844","name":"CWE-326","shortDescription":{"text":"CWE-326"},"helpUri":"https://cwe.mitre.org/data/definitions/326.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"CWE-328","shortDescription":{"text":"CWE-328"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-352","guid":"2afe7bdb-7330-195f-b3bf-8cf5b789b3ae","name":"CWE-352","shortDescription":{"text":"CWE-352"},"helpUri":"https://cwe.mitre.org/data/definitions/352.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"CWE-502","shortDescription":{"text":"CWE-502"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":114,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}