{"$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":"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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"CriteriaFactory.createCriteria (cyclomatic 32): CriteriaFactory.createCriteria has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-relational/src/main/java/org/springframework/data/relational/repository/query/CriteriaFactory.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec06b42cd4cdaabe0acfcc2ce65ad106eccd36a209083e9b33dfe06e64040a7a"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryExecutionBlockBuilder.select (cyclomatic 31): QueryExecutionBlockBuilder.select has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/JdbcCodeBlocks.java"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"4040adb5f2bd2689c588d91f369bc10707db5d3091e27aaa1808ebc3637437ce"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryMapper.createCondition (cyclomatic 27): QueryMapper.createCondition has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33afe1195d8b411768dd079750b048134e1ef485eacd199783394d1e59a4758"}},{"ruleId":"D1","level":"warning","message":{"text":"NamedParameterUtils.parseSqlStatement (cyclomatic 23): NamedParameterUtils.parseSqlStatement 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/NamedParameterUtils.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"df02370c6980a82955788f66025680ad4f684d0951ce38fdbacd52be6b63e099"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryMapper.createCondition (cyclomatic 23): QueryMapper.createCondition 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"b395ad4b0626c60199f70840ea4d794112ff5bcd8e22caa194e462de1ca75567"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryMapper.mapCondition (cyclomatic 17): QueryMapper.mapCondition 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8b2b3cc452c00a38c94901db88b899eb02b1c0a02a5e6b5712a1da0771489a"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectValidator.enter (cyclomatic 16): SelectValidator.enter 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/SelectValidator.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"582372910cc13977fee70cd15bd1813a9ca357185018e0ad60a296da6bf793c9"}},{"ruleId":"D1","level":"warning","message":{"text":"RelationalExampleMapper.getMappedExample (cyclomatic 16): RelationalExampleMapper.getMappedExample 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":"spring-data-relational/src/main/java/org/springframework/data/relational/repository/query/RelationalExampleMapper.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9b199f752e9e305ba2b459857135adc520ff90abb1fecb769da9fc6238f912"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryExecutionBlockBuilder.select (cognitive 61): QueryExecutionBlockBuilder.select has cognitive complexity 61 (threshold 15). Drivers by points: if/else 31, ternaries 23, boolean chains 7 (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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/JdbcCodeBlocks.java"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"2426299d2f9da16bcd76f3a2248801f18901e9585882c34e09432043eda615bb"}},{"ruleId":"D2","level":"warning","message":{"text":"NamedParameterUtils.parseSqlStatement (cognitive 56): NamedParameterUtils.parseSqlStatement has cognitive complexity 56 (threshold 15). Drivers by points: if/else 38, loops 12, boolean chains 6 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/NamedParameterUtils.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82c18c3e82d8c697e50b2a62acd4cf4b2d1950c2959d32e8ba2be060db77bcd"}},{"ruleId":"D2","level":"warning","message":{"text":"NamedParameterUtils.skipCommentsAndQuotes (cognitive 48): NamedParameterUtils.skipCommentsAndQuotes has cognitive complexity 48 (threshold 15). Drivers by points: if/else 34, loops 14 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/NamedParameterUtils.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b323d055def1a953560f79a0ce7abf6b1c8fed599dc54921880054a5ae8cba8"}},{"ruleId":"D2","level":"warning","message":{"text":"NamedParameterUtils.substituteNamedParameters (cognitive 37): NamedParameterUtils.substituteNamedParameters has cognitive complexity 37 (threshold 15). Drivers by points: if/else 26, loops 11 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/NamedParameterUtils.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94a95a93e23b913980317699a50c7f6680c4301fa7d19b89de02db88630a408"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryMapper.mapCondition (cognitive 32): QueryMapper.mapCondition has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 14, if/else 10, boolean chains 5, 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fdce68969332e851ae33b3eb6c4445c185580dcc432951ca2c94a0732e9630"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegatingVisitor.doLeave0 (cognitive 31): DelegatingVisitor.doLeave0 has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, ternaries 5, loops 2 (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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/DelegatingVisitor.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"21eb602452c484f98fa775b4fc067581b1db5a8efb525a8432f82845560216c9"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryMapper.createCondition (cognitive 29): QueryMapper.createCondition has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12, ternaries 9, boolean chains 4, loops 3, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"111ad129674ceb5319295a78ca6beb30f5ae63e4b8f0c6b6cbc9a286b20adcf1"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryMapper.mapCondition (cognitive 28): QueryMapper.mapCondition has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 10, if/else 9, loops 5, boolean chains 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1174c5d113be1888005e5554ead958e7bc9a242fced8e29e4fa95ca4c462ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"JdbcRepositoryFactoryBean.afterPropertiesSet (cognitive 26): JdbcRepositoryFactoryBean.afterPropertiesSet has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23, boolean chains 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/support/JdbcRepositoryFactoryBean.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"780cd565887a45a386f7494eeaabe25aff08872072d73a1bc3c524c98478ad27"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryMapper.createCondition (cognitive 23): QueryMapper.createCondition has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, ternaries 5, loops 3, boolean chains 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"496bb6b931dae36d925c5ce70c39a539357a058467d5a3655bb854b1fb2ceded"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpandedQuery.bind (cognitive 21): ExpandedQuery.bind has cognitive complexity 21 (threshold 15). Drivers by points: loops 12, if/else 9 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/NamedParameterUtils.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"906536af0c3de72bcf5ce370444f40fcc05362e5aa529fd097f154428a52545f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionVisitor.enterMatched (cognitive 21): ExpressionVisitor.enterMatched has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, ternaries 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/ExpressionVisitor.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e0a8ec11b91e8c92b4b285bc401fd0cfa029ed02082fa7529f60c26c8d53ef"}},{"ruleId":"D2","level":"warning","message":{"text":"CriteriaFactory.createCriteria (cognitive 20): CriteriaFactory.createCriteria has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, if/else 4, match/switch 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":"spring-data-relational/src/main/java/org/springframework/data/relational/repository/query/CriteriaFactory.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5c92771689d3345e33df3ae3fb2f2bbb5b6e0a817926244c75887b2d6014c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ResolvingRelationalPropertyValueProvider.getPropertyValue (cognitive 18): ResolvingRelationalPropertyValueProvider.getPropertyValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, ternaries 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/MappingJdbcConverter.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83834cd8b9b34953c98e869dc11283c79022d44d50cc70e9c46278e47692842"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBlockBuilder.buildQuery (cognitive 18): QueryBlockBuilder.buildQuery has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 1, ternaries 1 (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, 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/JdbcCodeBlocks.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e752e69c6f9575572282523de88a6d4d30a05ff17edb6d2e34a998c2c03cbdfb"}},{"ruleId":"D2","level":"warning","message":{"text":"WritingContext.createNodes (cognitive 18): WritingContext.createNodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, loops 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/WritingContext.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdb711ecb0f67108b5e43a4037a8e983ece43dcc4290affa4e0d3ed85804952"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingJdbcConverter.requireObjectArray (cognitive 17): MappingJdbcConverter.requireObjectArray has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/MappingJdbcConverter.java"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7d70e4228924c21a9cf630b40aa549537eafa9615f22f9af37d272cae6152b"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingR2dbcConverter.writeProperties (cognitive 17): MappingR2dbcConverter.writeProperties has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/convert/MappingR2dbcConverter.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5721d7ed7627f42abf507f7c4c7cb0422572dce57b824b2331b69afb2585e1"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionEvaluatingParameterBinder.bindParameters (cognitive 17): ExpressionEvaluatingParameterBinder.bindParameters has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/query/ExpressionEvaluatingParameterBinder.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"60eb19f6dbcee65bbfb22eadeabdb1d1e60a1abe1b036b276d88552dc3d4c47c"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectValidator.enter (cognitive 17): SelectValidator.enter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/SelectValidator.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"51565bf07f2c7c980a1688756e9ac8b6c236eac9c16aa49280428ec45d344bb9"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationalExampleMapper.getMappedExample (cognitive 17): RelationalExampleMapper.getMappedExample has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8, if/else 6, boolean chains 1, loops 1, match/switch 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":"spring-data-relational/src/main/java/org/springframework/data/relational/repository/query/RelationalExampleMapper.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a70bf46a696f91dee67660d8e622a281e8b731407a03a3f395426e2bc92b7fd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlGenerator: TooManyMethods \u2014 96 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/SqlGenerator.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc52867afe984ac68625ae1d95f866a30cca389fe8d711b5cb5bf57559ea6cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JdbcAggregateTemplate: TooManyMethods \u2014 63 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateTemplate.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"21322e8c0ca0a170cd3c63ec8cd73580e6c5edee44bdd4f60f3ea0dedfaf69a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: R2dbcEntityTemplate: TooManyMethods \u2014 60 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/R2dbcEntityTemplate.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"534a89339ef6b88796e08fe5c1b909a778eb1656c230c300e1010e0910b74705"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EmbeddedRelationalPersistentProperty: 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/EmbeddedRelationalPersistentProperty.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdde9efab737762eafb7588de8ae004385c2bd8cb7f61652f22ee3aa711d2f8a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MyBatisDataAccessStrategy: TooManyMethods \u2014 42 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/mybatis/MyBatisDataAccessStrategy.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3ec3f28315c9d363013ecfa756ae76cea404f7bf4b2551d81219eddf174d37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultDataAccessStrategy: 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/DefaultDataAccessStrategy.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"752736a911123c82b1b915646e1cfe31cf753032070293ff604be62205fa5b12"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EmbeddedRelationalPersistentEntity: 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/EmbeddedRelationalPersistentEntity.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e3a2f87b080c4c6461ad629bc5ff3afd41a2e30345593e65910df387df9683"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MappingRelationalConverter: 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/MappingRelationalConverter.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"54df8b8418051211746b59a4c3bcbf8b6eb6cab669776cd27b2263887ffdfdad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: convert/SqlGenerator.java: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: SqlGenerator (76-1471). 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/SqlGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d36bb92a2735e11cfc838c47ba70841cc5a662f588ca13db286ef7632bfc478"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: conversion/MappingRelationalConverter.java: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: MappingRelationalConverter (98-1369). 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/MappingRelationalConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfb9a4201a240828b0df8c6e72c39a2a1c03ada8bbc0afb6c48951097a3594a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CascadingDataAccessStrategy: 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/CascadingDataAccessStrategy.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"521a873759a9dfc359d5bcb2c6e6ea327af8c6e48374bb33014e6eb3aadb3fb0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DelegatingDataAccessStrategy: 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/DelegatingDataAccessStrategy.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed741aaac77eecfb013ee8ac4b4bcbf4384dd6651384138c81818277edbbcd2e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Criteria: 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/query/Criteria.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"165ef57b73b20948738b78fac684d5666680abb352acf3595e0703f96355ce5a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RowDocument: 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":"spring-data-relational/src/main/java/org/springframework/data/relational/domain/RowDocument.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e526cc8c75fb2bafd2c3ff8beedd0a5a8c1960956ea4b53ab0fc9eb9c433fe5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/R2dbcEntityTemplate.java: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: R2dbcEntityTemplate (106-1034). 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/R2dbcEntityTemplate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9dbd6cfdcd2039e970d68dcfd104de65b0a4d82837ce87183a49c3ac584990"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Column: 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/Column.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bb0136bc54821f2e56e709d866f93ae7850a84e44b98e2b65b4d237778c92f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiquibaseChangeSetWriter: 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/mapping/schema/LiquibaseChangeSetWriter.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b386c0cd34f5b4d0479d93007f422f12eeeff75f491312737053d738c8727d8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aot/JdbcCodeBlocks.java: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: JdbcCodeBlocks (74-879). 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/JdbcCodeBlocks.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf35ccb4556a3e842ccc1df7d0e760860eb27999697056135d38ba9a7710d6f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: convert/QueryMapper.java: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: QueryMapper (62-997). 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91691bd33759cc0ec4ecf26e0b2b861aa910c6d7d27684efb16d7342442f31ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: query/QueryMapper.java: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: QueryMapper (65-1012). 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceab7b0530d836d0f89f1616fe7ec8ac206d2e070cf7ecbf9ff56296ad70a7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:316-333 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:377-394 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:316\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edb17562aec3c2e819418d4c9065889b41eadb198910de5352dcd13de8ecc85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:483-499 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:414-430 \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. 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ce8757c1b87dd62575459e6825e1330433220e66735d4d2b5e519611dbfa48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:901-917 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:844-860 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:901\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dc9b59b53a622a9652acc5f58a98a11d01f19b0802be75698f68107b79e6da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:219-233 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:286-300 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:219\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c9b81877c25ee717cde851b357b825853f29dab7d71e7ebd79d5336bfae5d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/dialect/OracleDialect.java:48-61 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/dialect/SqlServerDialect.java:44-57 \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 \u0060spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/dialect/OracleDialect.java:48\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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/dialect/OracleDialect.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1964cbf1b82fe4ea2b0829e5d6e01d5da6f9a500297dcde38cd29f02d6e088fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.java:112-125 | spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.java:245-258 \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 \u0060spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.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. 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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9713e0fe53c515f986455c40898cc607b58fffda64cfafabab8bbd2d248b5dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/StringBasedJdbcQuery.java:125-137 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/query/StringBasedR2dbcQuery.java:107-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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/StringBasedJdbcQuery.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/StringBasedJdbcQuery.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f7197d5a7e572de8ba88468a457398b0d4db89c85ab33c5bbf16416cf63e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/FilteredSingleConditionRenderSupport.java:55-67 | spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/TypedSingleConditionRenderSupport.java:51-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/FilteredSingleConditionRenderSupport.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce167e8a47064588f6dd1969eeed068df00a455e2b55be0118792b138879a0e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/MappingJdbcConverter.java:508-519 | spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/MappingJdbcConverter.java:534-545 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/MappingJdbcConverter.java:508\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/MappingJdbcConverter.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae9d906bc1a3b19287cc388f018b547a89059802037b933be409121a7c87d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:119-130 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:142-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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.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. 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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3667e7ca9b079abbf4f56b148ca006454e2a78972e5c50707a282929e01cb41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/AotRepositoryFragmentSupport.java:183-194 | spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/StringBasedJdbcQuery.java:209-220 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/AotRepositoryFragmentSupport.java:183\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/AotRepositoryFragmentSupport.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7491aab4bf7a626782c513d6f5659ad23723adcee97f375c084fdb748a7979fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:89-99 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:112-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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:89\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc19f4743e5928418d145d971c97d942b9c382274cc8e5e5adb9efa97086469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:512-522 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:532-542 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:512\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e75b9027bd13c9d12d65e2e1d2e80ee9b732e04c79d2d6912e660042a11c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:588-598 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:598-608 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:588\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9ef75af5b4a8d3f78da8a9e213699122463733752e524c0722f065ee785c2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/SqlGenerator.java:298-308 | spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/SqlGenerator.java:1299-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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/SqlGenerator.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/SqlGenerator.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb5430eba9e83f3fd7ec5e9ab85fddcd7c431cbf186bc6fee97303bb32fec19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/DataAccessStrategyFactory.java:73-82 | spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryCreator.java:132-142 \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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/DataAccessStrategyFactory.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd241d08a71e347d136404b220b40d7af567f9156347c7d0d9576cc1be0aec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:261-271 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:327-336 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:261\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"46624bfb9d8cd887af3a53f49acf39d7ee743af071a1c156a9cb092ae669d744"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:527-536 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:547-556 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:527\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c91c1d24bcbc53132a1854af1907908dab33ea3c19165e6f3f8923ca16ce71f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryCreator.java:128-137 | spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQuery.java:136-145 \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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryCreator.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff5d1c168394ee9bc98c4d20b9b1aa56cd006efdd657ed908b8a7dc78efe73e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryMethod.java:93-102 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/query/R2dbcQueryMethod.java:181-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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryMethod.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcQueryMethod.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43e45e4ecf868d26e1e02ebf5c676c28d926da6c40108d46b461fd5bb2061bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:282-290 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:347-355 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:282\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d840258b54017c7ba613a4b91510181bb40e7e7759198b94da382df5fb1bbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:967-975 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java:906-914 \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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java:967\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/QueryMapper.java"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d13d787b30671aa66397f46bb401cb3c51d4784a303fd0c8841d3aaf6eb42cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateTemplate.java:280-289 | spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateTemplate.java:298-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateTemplate.java:280\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateTemplate.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf82b63977cc6be6c7d7f34189c5f64242d3adce8704fffce061207df2524777"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/R2dbcEntityTemplate.java:299-307 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/R2dbcEntityTemplate.java:328-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. 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/R2dbcEntityTemplate.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"032c78d60f9af9df259e11e62d52eb3ba87c14c267e4d959cd7b5f0769684b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/support/SimpleR2dbcRepository.java:194-202 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/support/SimpleR2dbcRepository.java:224-232 \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 \u0060spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/support/SimpleR2dbcRepository.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. 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/support/SimpleR2dbcRepository.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c46cb5ee76c827f3602d7453661bb99fd03ad1b17c819424d95cabd1fe4e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-relational/src/main/java/org/springframework/data/relational/core/query/Criteria.java:748-756 | spring-data-relational/src/main/java/org/springframework/data/relational/core/query/Criteria.java:771-779 \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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/query/Criteria.java"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cc46085a44639fe0e9788e617557a4d080c3ed1245182f92ed951ebe42087e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/R2dbcEntityTemplate.java:422-428 | spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/R2dbcEntityTemplate.java:447-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. 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":"spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/core/R2dbcEntityTemplate.java"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddffcf860678f9ebde64c959c90141287dfd9ed0360b43c4165a6404a5c91a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/EmbeddedRelationalPersistentEntity.java:225-231 | spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/EmbeddedRelationalPersistentEntity.java:237-243 \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 \u0060spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/EmbeddedRelationalPersistentEntity.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/EmbeddedRelationalPersistentEntity.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b547f3fbff61c4aa74d0428a2665c1cd7111ee39280e5d1040550a98bb96de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.java:103-108 | spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.java:155-160 | spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.java:235-240 \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 \u0060spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.java:235\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":"spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/render/UpsertStatementRenderers.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"903d1e2b023a7cc208f2ee41e34f64d8b7ec81ef984c1beb267f297bf6f3b055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateChangeExecutionContext.java:97-101 | spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateChangeExecutionContext.java:118-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 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateChangeExecutionContext.java:97\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":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateChangeExecutionContext.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5606704a2b4aa60ee5ee4a6c071c838ff3a0c224532468141b66f2b4ea2d7f72"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 11 significant file(s) lose their only recent owner: spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/QueriesFactory.java, spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/StatementFactory.java, spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/query/StringBasedR2dbcQuery.java, spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/convert/R2dbcCustomConversions.java, spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/config/JdbcRepositoryConfigExtension.java, spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/JdbcRepositoryContributor.java, spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/dialect/JdbcPostgresDialect.java, spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/InfixOperation.java (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"544f7f2e8846cac93c49310bcc57d4059198a989ead72902b9d2da6e70cfe925"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 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 (13 single-owned of 272 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 #2 (1 file(s)), anonymized user #3 (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 Getting Started section is cut at the Per interface example, leaving the reader unable to run the code shown in the teaser.: After the clip marker, add a sentence noting that the full starter code and its output are shown so readers can follow along."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.adoc"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"889983b4c82cbeb90827dc29007f7f437fa37459947a67001735ea667785214f"}},{"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":"464094caaa2ae2bbbb51d7e323976813586959824e1e7f80a1a24d4889653a5f"},"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":"79e98e61b8a14b754f4bb461758fa1ff2524e949b2cd3f370026c6ea576f33e9"},"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":"cc7c4de14d25b7886667fcd6424e622b0c8b47fd2f9a106de780f27241e286d8"},"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":"ac516d91ca632bcc29bf763391c1c86d6af93b89b1dc98c592c703e074982fcd"},"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":"98fec5503ebd625b94a4b918ef2ee80d5050a239cf002dd92cf5836053e33fbb"},"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":"1c79afdb57944220757997b2e55b01e3128730bd64fb98b624ea4a33d9bf9130"},"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":"869bc08adc9a18ad52246bb034eaee122a55d50a1c26655d45f60ba889ba4cb7"},"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":"72542e0ad6cea2707da191bd794f181b34421ead507f66ab246812d8aa1339dd"},"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":"40685912c1ac70217ce810bf7019b755cf495192352e224b0cdb683eddd27b95"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 8 of 272 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: spring-data-relational/src/main/java/org/springframework/data/relational/repository/query/CriteriaFactory.java, spring-data-relational/src/main/java/org/springframework/data/relational/repository/query/RelationalQueryCreator.java, spring-data-relational/src/main/java/org/springframework/data/relational/repository/query/ParameterMetadataProvider.java (and 5 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: CascadingDataAccessStrategy.java, DefaultDataAccessStrategy.java, DelegatingDataAccessStrategy.java: 3 files \u2014 \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/CascadingDataAccessStrategy.java\u0060, \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/DefaultDataAccessStrategy.java\u0060, \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/DelegatingDataAccessStrategy.java\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/CascadingDataAccessStrategy.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"807bdb40f22a3724256be53fa22db94d29b5b55d69e5b53ecd07afa9633a2f43"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EntityRowMapper.java \u2194 MapEntityRowMapper.java: \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/EntityRowMapper.java\u0060 and \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/MapEntityRowMapper.java\u0060 change together 50% of the time (11 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/EntityRowMapper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07ecf340116bb3ad69f766bb3e71089252831ed98fbaab1bec344f9dd6806b4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: IdGeneratingBatchInsertStrategy.java \u2194 IdGeneratingInsertStrategy.java: \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/IdGeneratingBatchInsertStrategy.java\u0060 and \u0060spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/IdGeneratingInsertStrategy.java\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/IdGeneratingBatchInsertStrategy.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d82056079663ac0640a63f1b8f31ef85d5ebf423fe04ba82fd973a7efe9371a"}}],"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-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-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-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-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-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":10,"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."]}]}