{"$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":"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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"AdaptiveSPIHelper.createAdaptiveExtensionClassCode (cyclomatic 37): AdaptiveSPIHelper.createAdaptiveExtensionClassCode has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"poto-spi/src/main/java/com/weibo/poto/spi/utils/AdaptiveSPIHelper.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5877e4b6fe70f0a7042809ae32400a0df6ab081457bcd201c15a6b30becfa381"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassUtils._forName (cyclomatic 20): ClassUtils._forName has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"poto-spi/src/main/java/com/weibo/poto/spi/utils/ClassUtils.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfebaa5c9b5de5063b7aee49b88f7cb8fbc42b94e2a03b592dace8a124c0047"}},{"ruleId":"D1","level":"warning","message":{"text":"SPILoader.loadClass (cyclomatic 18): SPILoader.loadClass 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":"poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.java"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02d762948e8131638393a6c50e3e18b59b2d9c9869cb4ddb397b9d221835e96"}},{"ruleId":"D1","level":"warning","message":{"text":"JavassistCompiler.doCompile (cyclomatic 16): JavassistCompiler.doCompile 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":"poto-spi/src/main/java/com/weibo/poto/spi/compiler/JavassistCompiler.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a15a6e872c3c9a2c33853803ad43d0263865fb61d0b924846c589ff2df8959"}},{"ruleId":"D2","level":"warning","message":{"text":"AdaptiveSPIHelper.createAdaptiveExtensionClassCode (cognitive 134): AdaptiveSPIHelper.createAdaptiveExtensionClassCode has cognitive complexity 134 (threshold 15). Drivers by points: if/else 101, loops 31, boolean chains 2 (nesting depth added 89). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"poto-spi/src/main/java/com/weibo/poto/spi/utils/AdaptiveSPIHelper.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91dd9e12cb40f944e5626d701912584d032cefd2cf776806a122e3061a21dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"SPILoader.loadClass (cognitive 47): SPILoader.loadClass has cognitive complexity 47 (threshold 15). Drivers by points: if/else 41, loops 4, boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.java"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce0e72ce03b27dc1a0cfda31155826d61b2c154cdcf7aa317e69de1dd72fc04"}},{"ruleId":"D2","level":"warning","message":{"text":"JavassistCompiler.doCompile (cognitive 30): JavassistCompiler.doCompile has cognitive complexity 30 (threshold 15). Drivers by points: if/else 25, loops 4, 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":"poto-spi/src/main/java/com/weibo/poto/spi/compiler/JavassistCompiler.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60b99bfdc18c058d1117ac45d14708d376d3473b2c8bf34f1e8a8e3f8c54cd3"}},{"ruleId":"D2","level":"warning","message":{"text":"SPILoader.getActivateExtension (cognitive 30): SPILoader.getActivateExtension has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, loops 3, boolean chains 2, ternaries 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":"poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4bd0a3220a0477989188d10b9772e155f292b64b6a175c7c71c787d0570a38"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassUtils.searchMethod (cognitive 28): ClassUtils.searchMethod has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, loops 7, boolean chains 1, error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"poto-spi/src/main/java/com/weibo/poto/spi/utils/ClassUtils.java"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f6a3c1d6af859bd1326f7cfbcb74f2dfdbd1965ef4f8c807ede4b3d2355107"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassUtils._forName (cognitive 22): ClassUtils._forName has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, error handling 4 (nesting depth added 3). 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":"poto-spi/src/main/java/com/weibo/poto/spi/utils/ClassUtils.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45136a6e009734e1867cc17464d1acbd27ba6a838d774a6e4ad5f69326c4755"}},{"ruleId":"D2","level":"warning","message":{"text":"JavaFileManagerImpl.list (cognitive 20): JavaFileManagerImpl.list has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, loops 7, boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"poto-spi/src/main/java/com/weibo/poto/spi/compiler/JdkCompiler.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b970e8f0a373e8a0491a2840c5e67da38e75154775b72cc624c7eec4a1ae3ff"}},{"ruleId":"D2","level":"warning","message":{"text":"SpringBeanParametersResolverFactory.createParameterResolver (cognitive 17): SpringBeanParametersResolverFactory.createParameterResolver has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"poto-kernel/src/main/java/com/weibo/poto/bus/common/SpringBeanParametersResolverFactory.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1eab1bc3acac9b9ea3436bed706626c6e5891b76302719642ac078fd9ab869"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassUtils.getGenericClass (cognitive 16): ClassUtils.getGenericClass has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, ternaries 3, 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":"poto-spi/src/main/java/com/weibo/poto/spi/utils/ClassUtils.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef628521589c7a1fc905cb7b910ea0170d85b61254f5223e56028d33e1c4b83"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClassUtils: 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":"poto-spi/src/main/java/com/weibo/poto/spi/utils/ClassUtils.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"255611c07bffaed33f6127ee505118897ecb809aa2867eca0cf08d778569ce60"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SPILoader: 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":"poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dbb58c12b7569ba7a212dd8cda15a57b49c1027c3ad5dae5948712e183d832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.java:302-313 | poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.java:344-354 \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 \u0060poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.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":"poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"450b3ddac831d58c409da999282e03d5e6319c43859cd75da3003cbdfcf22907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): poto-spi/src/main/java/com/weibo/poto/spi/compiler/JavassistCompiler.java:75-83 | poto-spi/src/main/java/com/weibo/poto/spi/compiler/JavassistCompiler.java:92-100 \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":"poto-spi/src/main/java/com/weibo/poto/spi/compiler/JavassistCompiler.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"233efd90e69135484f7a97605fa210c9a0b0b35eec9013457021ca6c11d7d83f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): poto-spi/src/main/java/com/weibo/poto/spi/utils/AdaptiveSPIHelper.java:149-157 | poto-spi/src/main/java/com/weibo/poto/spi/utils/AdaptiveSPIHelper.java:170-178 \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 \u0060poto-spi/src/main/java/com/weibo/poto/spi/utils/AdaptiveSPIHelper.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. 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":"poto-spi/src/main/java/com/weibo/poto/spi/utils/AdaptiveSPIHelper.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f17e9165dcbcf99d1bfe56dbb561277e476afcdd651c04da06881ef9e2b8b39"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 24 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"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":"9bca4d482e7063f000375ec2071c3d02de449b5265e92acbea9e7a217d138e62"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 24 of 24 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 24 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"poto-spi/src/main/java/com/weibo/poto/spi/SPILoader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd87bc9c72edb79ee6b6439562453f30d256f5d3a271631dcac5c946314cb62"}}],"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-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-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-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-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-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":1,"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."]}]}