{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"CobolParametersParser.validateSparkCobolOptions (cyclomatic 80): CobolParametersParser.validateSparkCobolOptions has cyclomatic complexity 80 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b8a7992393470fc2aae8531b4cc4550968e1290158714192b955ddb4530cb8"}},{"ruleId":"D1","level":"warning","message":{"text":"copybookParser.pic (cyclomatic 58): copybookParser.pic has cyclomatic complexity 58 (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. This is NOT this file\u0027s highest cyclomatic complexity: copybookParser.identifier (cyclomatic 84) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":3095}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b74e70f3c1192f3a369b8572eabd198480f7b9dce830bb30a06a0d210fe0d31"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parse (cyclomatic 53): Parser.parse has cyclomatic complexity 53 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/expression/parser/Parser.scala"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3172e3a4b9fcbd8b52f578af00caf3bab766de7d7115b68e7e75a1b522e25f5"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordExtractors.extractRecord (cyclomatic 43): RecordExtractors.extractRecord has cyclomatic complexity 43 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db454371ce4b08ca69600bbe2e96fc90563cf6da74d9c9e05f8b29b097f63a0"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordExtractors.extractHierarchicalRecord (cyclomatic 39): RecordExtractors.extractHierarchicalRecord has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1db5f5377d0a79064895b2fe1b5d37257d37d208eb325591cc38da2bd1c53a"}},{"ruleId":"D1","level":"warning","message":{"text":"Copybook.extractExpressionVariablesFromRecord (cyclomatic 35): Copybook.extractExpressionVariablesFromRecord has cyclomatic complexity 35 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4901aec9738092f29d376d04d8bdb53daa131a1b3138fb7359d484a721eb5346"}},{"ruleId":"D1","level":"warning","message":{"text":"StringDecoders.decodeEbcdicNumber (cyclomatic 31): StringDecoders.decodeEbcdicNumber has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde99ac8353d61918e9da522f507544a133a5c8af81bf29a92821a4f6f778771"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexGenerator.sparseIndexGenerator (cyclomatic 28): IndexGenerator.sparseIndexGenerator has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/index/IndexGenerator.scala"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac5e2264279f681ea192c97f64450bbd491a5fca15d553086c90eecb8c379e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionBuilderImpl.eval (cyclomatic 27): ExpressionBuilderImpl.eval has cyclomatic complexity 27 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/expression/parser/ExpressionBuilderImpl.scala"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfa3fbf324452946f49cbe2bec4d4e51d78fdac3eb809085b04430a35c6b141"}},{"ruleId":"D1","level":"warning","message":{"text":"DecoderSelector.getIntegralDecoder (cyclomatic 25): DecoderSelector.getIntegralDecoder has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/DecoderSelector.scala"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"91eeaca57f9c177e3e41a5dbb981102de32ba9cba8f5b075baae68afc6da0af0"}},{"ruleId":"D1","level":"warning","message":{"text":"SegmentRedefinesMarker.transform (cyclomatic 24): SegmentRedefinesMarker.transform has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/SegmentRedefinesMarker.scala"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c4e15dc10764d389431e6cd8ae36f24dc01f717d1383a24df6f8540a96c511"}},{"ruleId":"D1","level":"warning","message":{"text":"CobolParametersValidator.validateOrThrow (cyclomatic 24): CobolParametersValidator.validateOrThrow has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/parameters/CobolParametersValidator.scala"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a6a47424d29b5189d3eb0fa23a08618214baa4622582bfda1ab59de94d4602"}},{"ruleId":"D1","level":"warning","message":{"text":"VarOccursRecordExtractor.extractVarOccursRecordBytes (cyclomatic 23): VarOccursRecordExtractor.extractVarOccursRecordBytes 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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/VarOccursRecordExtractor.scala"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7893bd89904830ea8e749f474b7c1af569f135688a35a4a28d72090fabbb1b30"}},{"ruleId":"D1","level":"warning","message":{"text":"Copybook.merge (cyclomatic 21): Copybook.merge has cyclomatic complexity 21 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93241f500f035bbe2b4d6355c77d55ae7d9b1918a1b2e1700d2ca1035f9f19a"}},{"ruleId":"D1","level":"warning","message":{"text":"BCDNumberDecoders.decodeBigBCDNumber (cyclomatic 21): BCDNumberDecoders.decodeBigBCDNumber has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BCDNumberDecoders.scala"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"393a88bb19bb4969fe6e1d63d59f941a4881f59620fa865fdb05d708342e72ad"}},{"ruleId":"D1","level":"warning","message":{"text":"CobolSchema.parsePrimitive (cyclomatic 21): CobolSchema.parsePrimitive has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/schema/CobolSchema.scala"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9de0d1c61549c42ce2a4236fd71fcc7a107ec3bb6de4f549ceff2e129b2ef49"}},{"ruleId":"D1","level":"warning","message":{"text":"NestedRecordCombiner.writeToBytes (cyclomatic 21): NestedRecordCombiner.writeToBytes has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f45a5d1600fc6ed8abaf76fb1424e3889ab665874fa227f1b4089b7c338b49b"}},{"ruleId":"D1","level":"warning","message":{"text":"VarLenNestedReader.recordExtractor (cyclomatic 20): VarLenNestedReader.recordExtractor has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/VarLenNestedReader.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"553cbd918ddda158c9ba556cf7a039fb758cd933b40c32b26548fddefb71f5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"ParserVisitor.checkBounds (cyclomatic 19): ParserVisitor.checkBounds has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b73ae564ca648e3939def3c88817f051fb541480e59d3b8e9e314c8bfbe9cc"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryUtils.getBytesCount (cyclomatic 19): BinaryUtils.getBytesCount has cyclomatic complexity 19 (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. This is NOT this file\u0027s highest cyclomatic complexity: BinaryUtils.decodeBinaryNumber (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BinaryUtils.scala"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e81bfb5f6e4dff7418479a586d8047dc6939af3571800039598b65ea5944ca7"}},{"ruleId":"D1","level":"warning","message":{"text":"BCDNumberEncoders.encodeBCDNumber (cyclomatic 19): BCDNumberEncoders.encodeBCDNumber has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/BCDNumberEncoders.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3bcbec38f5beaa1ccdba3c90dbc6c8e2a86d4eef799299d9155b80624146c2"}},{"ruleId":"D1","level":"warning","message":{"text":"DependencyMarker.transform (cyclomatic 18): DependencyMarker.transform has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/DependencyMarker.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2140a60d819db86346599e8bf8534429a2a0846a1fb0c2c1039633551b74d0e7"}},{"ruleId":"D1","level":"warning","message":{"text":"StringDecoders.decodeAsciiNumber (cyclomatic 18): StringDecoders.decodeAsciiNumber has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0a793a3be3abb7ea42935adcf91d49629d9570b974d8bc06fceaa7a0751670"}},{"ruleId":"D1","level":"warning","message":{"text":"ParserVisitor.visitPrimitive (cyclomatic 17): ParserVisitor.visitPrimitive has cyclomatic complexity 17 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"e562c6f1fb48147a406ea2c186d73dc8361f24a1e60e169ee4ed8419686699dd"}},{"ruleId":"D1","level":"warning","message":{"text":"DecoderSelector.getDecimalDecoder (cyclomatic 17): DecoderSelector.getDecimalDecoder 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. This is NOT this file\u0027s highest cyclomatic complexity: DecoderSelector.getBinaryEncodedIntegralDecoder (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/DecoderSelector.scala"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5748c869a0eb698aec5bea8440a27be9021550cecd0bf32d4ecd064defe8dd59"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionBuilderImpl.evalIfFunction (cyclomatic 17): ExpressionBuilderImpl.evalIfFunction has cyclomatic complexity 17 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/expression/parser/ExpressionBuilderImpl.scala"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"46842d4f29b42fbdd4c8ac1d7f936a9f297102ebb1a85143e74b80bd240ae2fc"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionBuilderImpl.getTwoComparableValues (cyclomatic 17): ExpressionBuilderImpl.getTwoComparableValues has cyclomatic complexity 17 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/expression/parser/ExpressionBuilderImpl.scala"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfb094d10ad1acf21361426ddb504ddf3451ebea81dd0be1ad84a27c8b165b7"}},{"ruleId":"D1","level":"warning","message":{"text":"SparkUtils.flattenSchema (cyclomatic 17): SparkUtils.flattenSchema has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/SparkUtils.scala"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"15906b9bd64b5bf04c28b6c59e06bc4cac93384bfd11b0809dbee9a7ff817510"}},{"ruleId":"D1","level":"warning","message":{"text":"Copybook.getFieldByName (cyclomatic 16): Copybook.getFieldByName 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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"236315cd40eaab9cf42966d938ac1c9a19b560d9a9e315d667384a99b7d7d245"}},{"ruleId":"D1","level":"warning","message":{"text":"GroupFillersRenamer.transform (cyclomatic 16): GroupFillersRenamer.transform 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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/GroupFillersRenamer.scala"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6e5ec9f208e85c2e7e3ad4a6bcf37e9693707f59ded729ec865a759a579586"}},{"ruleId":"D2","level":"warning","message":{"text":"CobolParametersParser.validateSparkCobolOptions (cognitive 127): CobolParametersParser.validateSparkCobolOptions has cognitive complexity 127 (threshold 15). Drivers by points: if/else 66 (110 pts), boolean chains 17 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c106ded75eb6db4ff5bc3d18d2ec9f487df18768f38f5b235df8ff235dca7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordExtractors.extractRecord (cognitive 78): RecordExtractors.extractRecord has cognitive complexity 78 (threshold 15). Drivers by points: if/else 28 (54 pts), match/switch 6 (10 pts), loops 5 (9 pts), boolean chains 5 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ece5e84500b579228477b59ed439caad604ea5ddcdd68ea83568ba0076cb6a"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordExtractors.extractHierarchicalRecord (cognitive 73): RecordExtractors.extractHierarchicalRecord has cognitive complexity 73 (threshold 15). Drivers by points: if/else 29 (50 pts), match/switch 7 (12 pts), loops 4 (6 pts), boolean chains 5 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f8f6b0191e866116affdb36a105c7e59e73c0eb07d9f371fe81ae3c9d11bbb"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexGenerator.sparseIndexGenerator (cognitive 61): IndexGenerator.sparseIndexGenerator has cognitive complexity 61 (threshold 15). Drivers by points: if/else 16 (47 pts), boolean chains 11, match/switch 1 (2 pts), loops 1 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/index/IndexGenerator.scala"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c14593e34a00487353f9928e10e38cfa5e459854c2277c5d79c4e956ec8bfb"}},{"ruleId":"D2","level":"warning","message":{"text":"Copybook.extractExpressionVariablesFromRecord (cognitive 58): Copybook.extractExpressionVariablesFromRecord has cognitive complexity 58 (threshold 15). Drivers by points: if/else 21 (41 pts), match/switch 6 (11 pts), boolean chains 5, loops 1 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbced950fdbec9899e6e96ea65cae1ca98e11adcb59b38c687897abb9d0712ec"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parse (cognitive 43): Parser.parse has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (28 pts), match/switch 4 (12 pts), boolean chains 2, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/expression/parser/Parser.scala"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea2388477449d294400969e584ef27277cf7081967fd52961e31dbac77f0ed1"}},{"ruleId":"D2","level":"warning","message":{"text":"NestedRecordCombiner.writeToBytes (cognitive 43): NestedRecordCombiner.writeToBytes has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (34 pts), loops 2 (6 pts), match/switch 2 (3 pts) (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"242239010a68bbc815eb3c6b18f797df4f3f246062488d2ea8f9bdbe99915ab4"}},{"ruleId":"D2","level":"warning","message":{"text":"StringDecoders.decodeAsciiNumber (cognitive 40): StringDecoders.decodeAsciiNumber has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 6, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff78793d0d7a90f1b904d7ec60756b267d4638d765b202066f218e5af80488d"}},{"ruleId":"D2","level":"warning","message":{"text":"StringDecoders.decodeEbcdicNumber (cognitive 39): StringDecoders.decodeEbcdicNumber has cognitive complexity 39 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 13, loops 1 (nesting depth added 5). 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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab65e12adf27b0ea6c6f8dd311ad6f51c0a8ad9b43abe17f0b1940a4efc2a08"}},{"ruleId":"D2","level":"warning","message":{"text":"SegmentRedefinesMarker.transform (cognitive 38): SegmentRedefinesMarker.transform has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 7, match/switch 3 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/SegmentRedefinesMarker.scala"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef674e2da8908af8c2953f8204af936d58a18c258d4d1dcbdb8df12220fa7775"}},{"ruleId":"D2","level":"warning","message":{"text":"BCDNumberDecoders.decodeBigBCDNumber (cognitive 35): BCDNumberDecoders.decodeBigBCDNumber has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 4, match/switch 1 (3 pts), loops 2 (nesting depth added 8). 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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BCDNumberDecoders.scala"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"57de6cc8363ee67ec2055c2933241ab5e3b5c9b14c38f981b40c244d6c0599b7"}},{"ruleId":"D2","level":"warning","message":{"text":"DependencyMarker.transform (cognitive 34): DependencyMarker.transform has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 6 (12 pts), loops 3 (7 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/DependencyMarker.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"285726299300307814dcf9f9fb546250986269960073a29c0fb529352853fd1b"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryUtils.addDecimalPoint (cognitive 34): BinaryUtils.addDecimalPoint has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BinaryUtils.scala"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e84e05130c1e74742a306ad6a2ced3146aa3598600a87b494b610277afaccf1"}},{"ruleId":"D2","level":"warning","message":{"text":"VarOccursRecordExtractor.extractVarOccursRecordBytes (cognitive 34): VarOccursRecordExtractor.extractVarOccursRecordBytes has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 5 (9 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/VarOccursRecordExtractor.scala"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef09cd9a8c27cbd9e929bda17da6dbd32a712d091ad4c4743a827080f631c91d"}},{"ruleId":"D2","level":"warning","message":{"text":"DecoderSelector.getIntegralDecoder (cognitive 33): DecoderSelector.getIntegralDecoder has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 8, match/switch 2 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/DecoderSelector.scala"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbabf3d464b7e6a6484bb90dd9afd34c8d50bc6f9b6be99338f60fc0f1621eb"}},{"ruleId":"D2","level":"warning","message":{"text":"BCDNumberEncoders.encodeBCDNumber (cognitive 32): BCDNumberEncoders.encodeBCDNumber has cognitive complexity 32 (threshold 15). Drivers by points: if/else 23 (28 pts), boolean chains 3, loops 1 (nesting depth added 5). 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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/BCDNumberEncoders.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"496a5767897a1755e7f91a23f6c620934c0dbbe665b3dbb8fe2e20bb4b52f48b"}},{"ruleId":"D2","level":"warning","message":{"text":"Copybook.getFieldByName (cognitive 31): Copybook.getFieldByName has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (28 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e09281c0ed81360a71600b6b198320724793d246b0f31b66d6c140b6c99bb8"}},{"ruleId":"D2","level":"warning","message":{"text":"VarLenHierarchicalIterator.fetchNext (cognitive 30): VarLenHierarchicalIterator.fetchNext has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/VarLenHierarchicalIterator.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"217fc01cd6a746ed03e60911c14b95cf6643f13994adc4249a1b713a0813c354"}},{"ruleId":"D2","level":"warning","message":{"text":"CobolParametersValidator.validateOrThrow (cognitive 27): CobolParametersValidator.validateOrThrow has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 3, loops 1 (2 pts), 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":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/parameters/CobolParametersValidator.scala"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f86a4a944d722b6c24e457c029608252d22918e3bc34b4abfd6b4a7e5dfff41"}},{"ruleId":"D2","level":"warning","message":{"text":"copybookParser.pic (cognitive 27): copybookParser.pic has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 4 (10 pts), boolean chains 2, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":3095}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34a141594add09e475096679cdb54fd9bf079876826fb9253ae914539830556"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayEncoders.setPaddedEbcdicNumberWithSignSeparate (cognitive 26): DisplayEncoders.setPaddedEbcdicNumberWithSignSeparate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5209989785e8b67f8e329c4fa5f21e2ea077271782bac6f905773ac30572fa7"}},{"ruleId":"D2","level":"warning","message":{"text":"CobolSchema.parsePrimitive (cognitive 26): CobolSchema.parsePrimitive has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 3 (5 pts), boolean chains 3 (nesting depth added 6). 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":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/schema/CobolSchema.scala"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a01500aa9f5aed55b32bddd54156a49f9e6816dcb3130363e1a8e1de924c00"}},{"ruleId":"D2","level":"warning","message":{"text":"SparkUtils.flattenSchema (cognitive 26): SparkUtils.flattenSchema has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (15 pts), match/switch 5 (7 pts), loops 3, boolean chains 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":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/SparkUtils.scala"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"157efe191e0ea30aec7a07520aa90399fde10618bc1138c6c98f0375a813ba18"}},{"ruleId":"D2","level":"warning","message":{"text":"ParserVisitor.checkBounds (cognitive 25): ParserVisitor.checkBounds has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ccc41e706c3312d6268cebf534f32c75ff17ee85022dd97efc242bfa5540ab"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferedFSDataInputStream.readFully (cognitive 25): BufferedFSDataInputStream.readFully has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming/BufferedFSDataInputStream.scala"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a987c0c28d826302f09777544f6e1344ea60db6f391cb114927b7aed0b3feab"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayEncoders.encodeDisplayNumberSignSeparate (cognitive 24): DisplayEncoders.encodeDisplayNumberSignSeparate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 6 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2c1d4a955cf96026c881ada12affd43846cd31522c33c6dfed4c531c99f4df"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryEncoders.encodeBinaryNumber (cognitive 23): BinaryEncoders.encodeBinaryNumber has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/BinaryEncoders.scala"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0893531a969b996fa7d383dc26638ac741cfc852723b63b5d5a64ab36736783"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupFillersRenamer.transform (cognitive 22): GroupFillersRenamer.transform has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/GroupFillersRenamer.scala"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f52c8a19f54d2c37d566ee753d3c0e5b300bc7935295898416434ea3ef03d5"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayEncoders.encodeDisplayNumberSignOverpunched (cognitive 22): DisplayEncoders.encodeDisplayNumberSignOverpunched has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 6 (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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c246bb842a9d8da096faa6ea4a85cbe369beb635121d88977e339c0f44c1ef7b"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferedFSDataInputStream.openStream (cognitive 22): BufferedFSDataInputStream.openStream has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 2 (4 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming/BufferedFSDataInputStream.scala"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"94daac4e619626d3cfdb5d0f21965f11b4247fd7e3a7add4c4b5f0e9a14fa692"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordHeaderParserRDW.processRdwHeader (cognitive 21): RecordHeaderParserRDW.processRdwHeader has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/headerparsers/RecordHeaderParserRDW.scala"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"668345916a41acd9550ea02e7cea03610142f9c0d826af6495b79618b33fcb57"}},{"ruleId":"D2","level":"warning","message":{"text":"SparkUtils.copyMetadata (cognitive 21): SparkUtils.copyMetadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 3 (4 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/SparkUtils.scala"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b3e24d3da9c839f33b9834883489b5c20f5dcc577b79b8f9af68c236c99dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"Copybook.generateRecordLayoutPositions (cognitive 20): Copybook.generateRecordLayoutPositions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2ebceb285bbcc5b0ca9bdaacef002fcf32aff81044b9d2c1881b65e20e8c72"}},{"ruleId":"D2","level":"warning","message":{"text":"Copybook.merge (cognitive 20): Copybook.merge has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 5 (6 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c0e863fa9be51805d1adc2c0bf9c69fdcbee84ef8f7281bb4edb64e30c156c"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayEncoders.setPaddedEbcdicNumberWithSignOverpunched (cognitive 20): DisplayEncoders.setPaddedEbcdicNumberWithSignOverpunched has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5294e1b57234977c19909e25951754aea6a2a04ef9b3906e4e52b8b749f88b58"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultSource.resolveHeaderTrailerOffsets (cognitive 20): DefaultSource.resolveHeaderTrailerOffsets has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, match/switch 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/DefaultSource.scala"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3211eff96c478e0a43cb742d64d0c468dbb49500f2f57578f401130953ddf9"}},{"ruleId":"D2","level":"warning","message":{"text":"BCDNumberDecoders.decodeBCDIntegralNumber (cognitive 19): BCDNumberDecoders.decodeBCDIntegralNumber has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BCDNumberDecoders.scala"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0419da3f4bf1774a96030729c9426657f4797a53d51c7302a3bc0867c7f08cc1"}},{"ruleId":"D2","level":"warning","message":{"text":"DecoderSelector.getDecimalDecoder (cognitive 19): DecoderSelector.getDecimalDecoder has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, match/switch 2 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/DecoderSelector.scala"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af52e7933b21a1ac06ca75439dac6416e4d9b7eb2839cb28dabc535b86018db"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingPointDecoders.decodeIbmSingleBigEndian (cognitive 19): FloatingPointDecoders.decodeIbmSingleBigEndian has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/FloatingPointDecoders.scala"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee9a366bbe1af20da88322601ea18d5671167c7db08a16ad58f11e06cd74e41"}},{"ruleId":"D2","level":"warning","message":{"text":"TwoByteCodePage.convert (cognitive 19): TwoByteCodePage.convert has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteCodePage.scala"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"338ea21b4e822202c381228a165c5f9d3f3bd29b94ba6eaaa4aea9efea36694d"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionBuilderImpl.eval (cognitive 19): ExpressionBuilderImpl.eval has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 6 (7 pts), boolean chains 3 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/expression/parser/ExpressionBuilderImpl.scala"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbac7cd044692199045a3d8b9ea205c88a664dc945333d81215312eb68476aa"}},{"ruleId":"D2","level":"warning","message":{"text":"VarLenNestedReader.generateIndex (cognitive 19): VarLenNestedReader.generateIndex has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, match/switch 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/VarLenNestedReader.scala"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1f8215b188d5715a460dff3fd4e6466fede67d59b6482294ac07f5396f8800"}},{"ruleId":"D2","level":"warning","message":{"text":"CobolSchema.createSparkSchema (cognitive 19): CobolSchema.createSparkSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/schema/CobolSchema.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dadd1db33504ea7ba84c0ec885f4b323f9f1a488d1b4be0ca99bfef56fb6455"}},{"ruleId":"D2","level":"warning","message":{"text":"VarLenNestedIterator.fetchNext (cognitive 18): VarLenNestedIterator.fetchNext has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/VarLenNestedIterator.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55c54ce21b52829cac50cc1b7b2a743c8d114a3240ac10927bdcc852a6845c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ParserVisitor.visitPrimitive (cognitive 17): ParserVisitor.visitPrimitive has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, match/switch 4, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"073fbe8ea5532cf80da8cea6565c815c6e7399cddab230520fc6cbb02101fb3b"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryPropertiesAdder.calculateSchemaSizes (cognitive 17): BinaryPropertiesAdder.calculateSchemaSizes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (5 pts), match/switch 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/BinaryPropertiesAdder.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa42452c4239677e448ede85512c90213a7e29888a7ad70b76a20db65fc7cd98"}},{"ruleId":"D2","level":"warning","message":{"text":"SparkUtils.splitFieldPath (cognitive 17): SparkUtils.splitFieldPath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/SparkUtils.scala"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e57c4ce1cd80cfe3931c4137574575a27bb2fe4df7c64b7788228ccf2cda7c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ParserVisitor.replaceUsage (cognitive 16): ParserVisitor.replaceUsage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7c6588396ddc47a34464f30421378f1cf2f41a1873a830919f141c2b42c484"}},{"ruleId":"D2","level":"warning","message":{"text":"ParserVisitor.fromNumericZPicRegexDecimalScaled (cognitive 16): ParserVisitor.fromNumericZPicRegexDecimalScaled has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, match/switch 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6444f2356a297495a772ca5a0b3d166a6821fbc17a866f76fff189098283f4c"}},{"ruleId":"D2","level":"warning","message":{"text":"SegmentParentsSetter.transform (cognitive 16): SegmentParentsSetter.transform has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/SegmentParentsSetter.scala"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed807ed156973d49b136fd20502aa27a4beb18d3139ffcb6395ae35cb6b1af87"}},{"ruleId":"D2","level":"warning","message":{"text":"FileStreamer.next (cognitive 16): FileStreamer.next has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming/FileStreamer.scala"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ba3e90365ea74e2e6a22aa24bf531ef9c5278d441bb341d231cb8ea3d87e25"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: copybookParser: ClassTooLong \u2014 2761 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 2361 over it, 6.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad925c3c68fcd7a0b5761bf090701b8f3f1e718630ea6325aa680afbcfeb9b06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: antlr/copybookParser.java: FileTooLong \u2014 2771 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: copybookParser (29-4076). The bar is 500 significant lines; this is 2271 over it, 5.54\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37102087fa2543a86c0e28b8a5f11d371b8474fc9e087d1019205930c897a004"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: copybookParser.identifier: MethodTooLong \u2014 identifier runs 422 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 322 over it, 4.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b352b701cf7cc6c22b03af451d233146c51cd84874e5263bd57df233ac953ed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: copybookParserBaseVisitor: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. Most of these members implement antlr.copybookParserVisitor (55 of 55 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserBaseVisitor.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c009463be7988f667d122ce7de0a22b91eca0fc3d8aea781684d00920ce8e6d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: copybookParser: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c129e480657530079be6925018f1c57c95bd227783da497115ad7fe74ea895"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parameters/CobolParametersParser.scala: FileTooLong \u2014 803 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 303 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1605deacd76eddfd3b8c3203f7144fddf4fbb32382557c2a511db958a200fd07"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ParserVisitor: ClassTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 209 over it, 1.52\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8304fae7b935fdf856dfd5c617613ba3bfeb9e60200241ec3d32d60175020136"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: copybookParser.pic: MethodTooLong \u2014 pic runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":3095}}}],"partialFingerprints":{"codehealthFindingId/v1":"4251e13d73960cd3500104910bad42342d17d2e604dc1c870b2c69e016dd0b80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: antlr/ParserVisitor.scala: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ParserVisitor (43-884). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3d0102bf0d8f16de8bdf778da4f626355df6bb25a042eda535406ea4b52e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookLexer.java:99-114 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:85-100 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookLexer.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aebac8cb3c965d5d7afb0128d3ff74f57134773908de3fc7ce4ef10a1c1ca4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:436-464 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:480-508 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2093-2121 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2152-2180 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2899-2927 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2943-2971 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2987-3015 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3031-3059 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3294-3322 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3339-3367 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1a442dc178735b544ae0d209d96873888509876e37b3583c2de36b2f322faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala:146-263 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/VarOccursRecordExtractor.scala:53-138 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:79-252 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:296-487 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1795b5d1a4515b1ca919aaac724dd078de201300a66f3e4124e687fef272c6af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:34-54 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:90-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:33\u0060 calls \u0060contains\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:89\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"289ddd3742b049d17c6f9eb6162035c243daaae836a1e354b4348ec390ffff01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala:991-1013 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala:1036-1058 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala:991\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a842e75d45566ac39e4b82f42105f0339ea97d56738c413c7475730bc007093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:87-108 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:303-324 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:87\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03068a19bea0a55130e527a31e5727cc7d4864571371450ce1c1e4355259a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala:148-166 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala:121-139 \u2014 before extracting anything, compare \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala:168\u0060 calls \u0060findNextLineBreak\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala:140\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9b9c85834b02b0c2ab049b475a3ccbc0b5b08beea41e1ca084837187df10f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala:99-116 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala:99-116 \u2014 before extracting anything, compare \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"55570a15301502be77503fbc0a533eacd471c67baa8478fb23fb6e263a44e3b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/schema/CobolSchema.scala:107-123 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/schema/CobolSchema.scala:134-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/schema/CobolSchema.scala"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3869d9dd6ebbe0789389c6581f40af01e8c4c1719cd926313131d2c2f56942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala:608-624 | spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala:644-660 \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 \u0060spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala:608\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":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d82b6336038b557de79ce8b1d335c6b69eb009c348895e47d776c9a11a5a730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:58-70 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:114-127 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8a9b0afb36043d3b723bfb99890c60600e26bc4e30b731a8d738b9b1a4ffdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/FloatingPointEncoders.scala:105-118 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/FloatingPointEncoders.scala:162-175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/FloatingPointEncoders.scala"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ecdb5853c5c3bbb71c9b62e9f37e01b74de283b37ad188fc60cf32824dcff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala:172-184 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/VarOccursRecordExtractor.scala:57-69 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:88-100 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:304-316 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5acf54a68551eb6870e0f14964654619b6be416ce69a0007b9111a7ca372e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:168-180 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:370-382 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:168\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"10904e5ea864f1676c9de9f2a5e842131148a999f97bb178d1267ce75cfa8c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:357-368 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:397-408 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:357\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"952edb83bcddf4f27a1063c3d5ffca72760c5041fc9b99545ff8537ab06b6494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:110-121 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:326-337 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:122\u0060 calls \u0060isEmpty\u0060, \u0060CorruptField\u0060, \u0060getRawValue\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:338\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6410921927e27b1a2178d4acefb806a48f76c4d6ce0b8382ff7096051b88802f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:214-225 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:459-470 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:214\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb4763c408f4990f240aaaec15b3719ed219064a859525cdebfeede732d6eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala:73-81 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala:73-81 \u2014 before extracting anything, compare \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bd4283ad5352c090b6fe48ce3bd8f43d46e1e4dbd03913f0078ba3558f1bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala:594-602 | spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala:628-636 \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 \u0060spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala:594\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":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b82eb3bc5054b2057091b0f0c60725cdc8a9e5b0bf15ff45535f94fcee4116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala:217-224 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/VarOccursRecordExtractor.scala:94-101 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:167-174 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala:369-376 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala:217\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae38e28fd5c7affcad91cef5d6a52fce7f886e1153099886b0767312213932f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:515-522 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:810-817 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:515\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:805\u0060 calls \u0060require\u0060, \u0060size\u0060, \u0060Option\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:512\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3167814ac7e5aed1e0cb36f304118abf9dfe810d2ee6d90b3a6b0f91ff1946d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:503-509 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:793-799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0da1498affb8eb71213dacde3f733b4386e5234a2375578be15c8d2cd120ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:165-171 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:191-198 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/DisplayEncoders.scala"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f010464598069818da0a929898891e3884846d93e75e60684924ece20d9aec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/EncoderSelector.scala:92-97 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/EncoderSelector.scala:114-119 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/EncoderSelector.scala:136-141 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/EncoderSelector.scala:92\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/EncoderSelector.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2ab6c737a130994fb1a1e3373a75bc21c4fb44bf299fdd282f6e98d1e0ec0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala:499-504 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala:513-518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a6eaa1efcdaa4351f23829b16ca7dfe4ccbc840f0c60f25893ea3e6557fb4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/SparkCobolProcessor.scala:229-234 | spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/scanners/CobolScanners.scala:43-48 \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 \u0060spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/SparkCobolProcessor.scala:229\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":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/SparkCobolProcessor.scala"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be8fc164291705c446e258ac1363331ef7a6935d8fb11b5f138e9fc0beffe89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:654-658 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:662-666 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala:654\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserVisitor.scala"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f12d88b57a35d2b7e8e21f4b41571e2b544adedae79fdefb8ee2845df3ea50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BinaryNumberDecoders.scala:64-68 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BinaryNumberDecoders.scala:71-75 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BinaryNumberDecoders.scala"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"91629363ee74b371f70d5ba04ffbd60f9a8f162c76d70ac74200c69f8f58bf48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/VarLenNestedReader.scala:218-225 | spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/reader/FixedLenTextReader.scala:55-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/VarLenNestedReader.scala"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad08745d39aea74fcebc9e48f8ae823f3aa726787a6c3a808ae33ba92c828eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala:84-93 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala:84-93 \u2014 before extracting anything, compare \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1ae66977919446b5bbc7fe97299ac4ded7016fb90c128acabbab84587f19b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala:188-195 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala:159-166 \u2014 before extracting anything, compare \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"256917559c7b1fd15cb35e9b096872c34e27f12a4c1fc04c46f2a713a1554cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/SampleApp.scala:59-65 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/StreamingExample.scala:77-83 | spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/replication/CobolBinaryFilesReplicator.scala:70-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/SampleApp.scala"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"682aa635ac888fbe8f3b5179c7be4a6c8c0f0159791f76adef0157013325d1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BinaryNumberDecoders.scala:86-90 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BinaryNumberDecoders.scala:101-105 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BinaryNumberDecoders.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f923e537859eb347117a46647693e587cefb32d74c115510d489999a0ee46b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3212-3236 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3239-3263 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3212\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":3212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2708f8e9812d0032bf908d16eb053bacca85f83e3757ee6f21dc9080b044d7ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2204-2226 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2263-2285 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3214-3236 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3241-3263 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2204\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48bb72476dfc9b7704ba9ffece4778f9cde1db5d5a792f5f0ada3203c7b414e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 10): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:446-464 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:490-508 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2103-2121 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2162-2180 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2909-2927 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2953-2971 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2997-3015 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3041-3059 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3304-3322 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3349-3367 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:446\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"5971e55d5bd1ff16bfcee7d1ca4b9372d5934535089a135e0a2209fa9ef1a4f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:1322-1337 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:1843-1858 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:1322\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f911398cf951e47c6a3c85e616feb3a8704bd352202c55c6b191e8b31c30c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:346-359 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:370-383 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:387-400 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:346\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc48a2cc770172a449bc711fc9a299c7aebf859467aa66fae3de4a5eb30f5d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3417-3427 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3567-3577 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3417\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":3417}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d8c4a5abedcbf3d7ff1b8840f19e8024345efdb0f81cb984d0ea146a7379a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2340-2349 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2405-2414 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2340\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":2340}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc7d636dce335e5275dd156c184f11a4e2e0eb3bf78476cd66e1307326cda7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables1364.java:27-33 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables1364.java:38-44 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables1364.java:27\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables1364.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccb6b778b4ebc978210685a21e0151357b71f0202aa1f38d151620408acb3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2096-2101 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2155-2160 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:3342-3347 \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 \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:2096\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1a918bb99db82918ce12d034b298c282345c75bbf9ba8042a35b3b5b02e741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (106 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserBaseVisitor.java:1-414 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonBaseVisitor.java:1-106 \u2014 before extracting anything, compare \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserBaseVisitor.java\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonBaseVisitor.java\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserBaseVisitor.java:1\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserBaseVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddae8b1eda2caa242caa24fdaed2aca3e40d6f5086bf92648d113ecfd2d30d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (983 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables1388.java:1-983 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables300.java:1-997 \u2014 before extracting anything, compare \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables1388.java\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables300.java\u0060 as WHOLE FILES: 99% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables1388.java:1\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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables1388.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac8e1d5308516ec9f893107a6424490ee94651a77043bd97c3e7840b28a83bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonLexer.java:60-65 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonParser.java:52-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonLexer.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9c3a64587de30904392c3709f5446d3276d044a86da17d28551eaeee88c3df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookLexer.java:106-114 | cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParser.java:92-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookLexer.java:106\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookLexer.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d200f24d28d419981bdcb490bb2ad9d50367db8617996b83a2c93d0948ecb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 38 shared lines): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala:62-156 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:63-152 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:61-143 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala:61-143 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen4CompaniesWide.scala:66-158 \u2014 These 5 members are variants of one another: a block of 38 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"598508ae2a7bf0f445a26ea0887a2c0f3a9dd0a8327755bb58fb3873849a148a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:51-100 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen18EbcdicTransactions.scala:50-101 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen19WideTransactions.scala:69-137 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:49-91 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen7Fillers.scala:58-94 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen8NonPrintableNames.scala:49-90 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen9CodePages.scala:47-88 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c5b18a21566a14dbb97cf237db6fe95c4a2002b6440adb6f16a9ddd1d3bc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:103-120 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:125-142 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:171-188 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:194-214 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8af5cce6a16ee85cd6e46c084ead139c460786da2a92f42a749e5de78a1fd27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample2.scala:31-62 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample3.scala:32-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample2.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"377afbf9d55000c1e641613e9a3a10c6052f71086a01412c28d769221fdf9adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201328 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample3.scala:81-99 | examples/spark-cobol-app/src/main/scala/com/example/spark/cobol/app/SparkCobolApp.scala:124-151 \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 \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample3.scala:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample3.scala"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"258c750c2ace558c65fc24b7d64679fac6fe7ecfaf0f7250dda12936db4ea865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:112-138 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala:104-130 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b01d3e855abea71d0ba7babb0f5d0cdbc14ffdd149834b8799230327f6453a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:66-89 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen4CompaniesWide.scala:71-95 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen4CompaniesWide.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:66\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":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e7008deea53533022d56e3c4f58688de40b0d07a34541df8a791608ab0dba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:77-100 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala:69-92 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:77\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":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82accf7f213f1019b6b1c70a4d3efe4af3fc6be6356fef5b2393374cd9168ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala:91-113 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:93-115 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:85-107 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala:85-107 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen4CompaniesWide.scala:91-113 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala:88\u0060 calls \u0060putShortToArray\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:90\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ed0c33dfd1ce24fef06d097620409f35e00f5a7f5a0e5c47a4cda86466bdf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:109-129 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen4CompaniesWide.scala:124-144 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen4CompaniesWide.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:109\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":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32fbfe1b6fd42d59c80db75cee7f969fdaa12ae7d3772a8724eac91cdda81d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 4): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:79-97 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:71-89 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen8NonPrintableNames.scala:71-88 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen9CodePages.scala:69-86 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:98\u0060 calls \u0060write\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:90\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f5e65c1a767769b7937d5c3d2fd89a86f1b1be817216051052ea42435823d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 5): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala:132-146 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:133-149 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:125-141 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala:125-141 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen4CompaniesWide.scala:140-156 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala:129\u0060 calls \u0060putShortToArray\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13bCompaniesFileHeaders.scala:130\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen11CustomRDW.scala"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dbbf33a1bf21ef5ccb7886381cf57b3e2518bcfee038d0957c1090ca3b17ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:63-77 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala:63-77 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen4CompaniesWide.scala:68-83 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:63\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3CompaniesBigEndian.scala:80\u0060 calls \u0060putShortToArrayBigEndian\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala:80\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen3Companies.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2694c465f47c1217fb951cf8351ba9e23dfa82a7e014d0b86220b58115c21d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:106-120 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:128-142 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:174-188 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:200-214 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala:106\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/utils/GeneratorTools.scala"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3212897abc47db9849df33a96bdc1de5bba89d6cf1901f1ee87c5393133535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen18EbcdicTransactions.scala:78-91 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen19WideTransactions.scala:101-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen18EbcdicTransactions.scala"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8044a8aa759a8fa7bf9e4c58364a7a59b4491818bcaf9c0dd14965970fdaaa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:66-78 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:58-70 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:66\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:61\u0060 calls \u0060fill\u0060, \u0060write\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:57\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"612ad5351acab569a31ddc75d9d14464d1a649a6186018a02903e8b9044d695e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:51-63 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen8NonPrintableNames.scala:51-63 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen8NonPrintableNames.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:51\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":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"710845c7d18c358edf8df8da58fd2595a25f50c8f2995c99d4abd2438780ea99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:76-87 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:68-79 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen7Fillers.scala:76-87 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen8NonPrintableNames.scala:68-79 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen9CodePages.scala:66-77 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen7Fillers.scala:73\u0060 calls \u0060names\u0060, \u0060nextInt\u0060, \u0060putStringToArray\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:74\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e02bc0d084df12385bb9960f77e81edb7ba5eee65aca2e619b15fdedebe92c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample3.scala:58-68 | examples/spark-cobol-app/src/main/scala/com/example/spark/cobol/app/SparkCobolHierarchical.scala:81-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample3.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f39f1059396427217ecdd44f3b2dd2766383c8e5605907e3a4e1bf54c184c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen17Hierarchical.scala:162-171 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen17Hierarchical.scala:252-261 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen17Hierarchical.scala:172\u0060 calls \u0060roles\u0060, \u0060nextInt\u0060, \u0060companies\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen17Hierarchical.scala:262\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen17Hierarchical.scala"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed52eae150fcd99f9c9d1f1ddb5f775133869506e8d0fb8927648ee93c36b40c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:76-83 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen18EbcdicTransactions.scala:78-85 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:68-75 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen7Fillers.scala:76-83 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen8NonPrintableNames.scala:68-75 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen9CodePages.scala:66-73 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen7Fillers.scala:73\u0060 calls \u0060names\u0060, \u0060nextInt\u0060, \u0060putStringToArray\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala:74\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen13aFileHeaderAndFooter.scala"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1cdda929221dc3dd24f563e54bd8cb0fab1ff11defbfb209c63f2aa2afcdda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample2.scala:73-80 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample3.scala:80-87 | examples/spark-cobol-app/src/main/scala/com/example/spark/cobol/app/SparkCobolApp.scala:123-132 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample2.scala:73\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":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/apps/CobolSparkExample2.scala"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8a6bd59fdea0680841ef83737992be2044e99c7747e2fcaacf95d17a0b2040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:54-59 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen8NonPrintableNames.scala:54-59 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen9CodePages.scala:51-56 \u2014 before extracting anything, compare \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala\u0060 and \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen8NonPrintableNames.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen1Transactions.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"192bc382dc7888c42f79639adb2f394014d6e3d2e9e0da4c95bcce58b603ecc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen6TypeVariety.scala:414-419 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen6TypeVariety.scala:440-445 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen6TypeVariety.scala"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7acb380edca5a09a9d0ae295063db0f7d823e83ff4c330b2a6ae62c163fc6bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen6TypeVariety.scala:469-474 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen6TypeVariety.scala:496-501 | examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen6TypeVariety.scala:531-536 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/examples-collection/src/main/scala/com/example/spark/cobol/examples/parser/generators/TestDataGen6TypeVariety.scala"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9a092354395ffd52ef507381f2951cabb030f0110f32a94bb7e8c81a95b037"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala: cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in Copybook.extractExpressionVariablesFromRecord at line 144. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 13:45:48 \u002B01:00\u0027 --until=\u00272026-11-06 13:45:48 \u002B01:00\u0027 --full-history --no-merges -- cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fab0cddd71be5b3bf8cf2ae8b292ac3b6a82d0818c6b7b7d9299b379123aa81"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/SegmentRedefinesMarker.scala: cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/SegmentRedefinesMarker.scala changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in SegmentRedefinesMarker.transform at line 43. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 13:45:48 \u002B01:00\u0027 --until=\u00272026-11-06 13:45:48 \u002B01:00\u0027 --full-history --no-merges -- cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/SegmentRedefinesMarker.scala\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/asttransform/SegmentRedefinesMarker.scala"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff18e057b964b8b1a6c20ee7e172a8b9f15db16ad2f9267ecf48f9590e40718"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // ToDo convert array\u0027s inner struct fields to Strings. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/SparkUtils.scala"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcaf3d9c42930f13ee671066afecf0d76ee4d48282ad2c4951b79f25c1a2eb9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO fix with the correct implementation once the correct Reader hierarchy is put in place. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/DefaultSource.scala"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f3a2835447f5e993aa62499a9b900b19ee7f2b193ecd426cd32f50129c2dcb"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.3/10. The most over is \u0060cobol-parser\u0060 (26564 LoC, 390 module-visible types across 34 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c040bd138d7f21e2decf67329e4c3c135220050896da088746992c844ebed56f"},"properties":{"commitSha":"6999a8fb5f692b3af845ac2b433c2a5010a7cbae"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"356d9ad633d7369a96114a6f01f1bfe0ad89437144aceb5505700cfa408ebbdb"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"60ff13006ff8a39cc5b05a057e59865d7f1dd94049f2abbb6ac0649ae1c1ba56"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f81e73e0b28aceb229e7464f6759d71237b5807c00dfe2bfb00c245bb4110c93"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a49f08934a036ab217a1db890e36617b9caa738fdc9ec47acfe1e79b1475cb13"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e7eb369b68fb509c74a56acc6fa09342d0a985e875fe22c5ff7536254835d00b"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"abd22c38e1c53d1a8ca5585bf933a743505af5b83bab1cb34e0789e2fabd57b3"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e74998e73b5c435452e9c18eebbe8cfe9fa987cfa7bf8bd538f7d1881f395184"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8192715b3a3f24bee634ac669ec56ecc627d4dba353ea335bf776fda9705829b"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8d0eabc778f495a0125f843d525886cb6b1784051ecd009b4d4a3c1f7fd19e72"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4eb75a08650945709f64fac6c217941e893348c149514233a102bea199e384a3"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 10 of 144 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 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 144 of the 239 production source files in this repository met that bar). 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 most significant first: cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserBaseVisitor.java, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonParser.java, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserVisitor.java, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonLexer.java, spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/LocationBalancer.scala, spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/replication/CobolBinaryFilesReplicator.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserJson.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonBaseVisitor.java (and 2 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":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserBaseVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e23a027c512415c4d7560e91c0e98d43c2215fc6e42b86ec8b5a2b329e920c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ed5804d1423593c477e2a39d47897dfed761ac6d794b4052713422ad955ad0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dbab173f2294fb25491c769179443ed998a3457363dd2c1fc04c916bfacea7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonLexer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ae62c0222735384cf96ee1f142c3ac9bf8d7d9f1b3e105b75e4957bed38ebe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/LocationBalancer.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df680c0c6eb8966ef2d192f4bb03ce5528dcb6bbbbc4155f1ce1821cbfeba617"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/replication/CobolBinaryFilesReplicator.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6ae77ac2351ce9d0076dc6dc9a7143c36cf417aa843056e75b6975ad03d5b9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserJson.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcefbc1f80ff62b90552bee2945705ebefd7c2b63402227001df524a572c702"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonBaseVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65369d5db6f6999759edf180e61e9d58116270f0680739d35ac0cb5a19dc5946"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/jsonVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d711db5ae030cf3480aecc949eea7768f4826bdfecca5b0f43b3ce9f22f0ee9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/replication/files/destination/generation/HDFSFileWriter.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"274573f5e8d918c38a9235bb771549521807faf7378a8b82a8f67ee47275f4a8"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: CobolParametersParser.scala \u2194 SparkCobolOptionsBuilder.scala: \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala\u0060 (context cobol-parser) and \u0060spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/builder/SparkCobolOptionsBuilder.scala\u0060 (context spark-cobol) sit in DIFFERENT parts of the tree yet change together 85% of the time (11 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00601f61ae93\u0060 #838 Add new mode for variable size occurs - when records are padded \u2026; \u0060027e9f14\u0060 feat: add header trailer removal for multisegment definition function\u2026; \u0060b12f6419\u0060 #822 Allow \u0027_corrupt_records\u0027 to extract data in HEX instead of binar\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad85af020442f12fbca705e9ba54c9927852a0efe14f66ec1a5c9146e49173b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: FSStream.scala \u2194 FileStreamer.scala: \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/stream/FSStream.scala\u0060 (context cobol-parser) and \u0060spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming/FileStreamer.scala\u0060 (context spark-cobol) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00602a361961\u0060 #845 Retain start and end file offsets when converting mainframe file\u2026; \u00609193a161\u0060 #845 Retain start and end file offsets when converting mainframe file\u2026; \u0060770d1db7\u0060 #769 Add library methods to implement ebcdic to ebcdic file processor. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/stream/FSStream.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08a7eda6de1f85497941ca989d76450a3bd05b845f5209996561ac0bcdc69bb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DefaultSource.scala \u2194 CobolStreamer.scala: \u0060spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/DefaultSource.scala\u0060 and \u0060spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming/CobolStreamer.scala\u0060 change together 75% of the time (12 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060a94c353b\u0060 Add \u0060Cobrix.validateOptions()\u0060 builder for validating spark-cobol opt\u2026; \u0060b2a54346\u0060 #672 Tidy up the code, remove a few instances of code duplications.; \u0060bfe201c9\u0060 #542 Implement filler naming strategies and previous fields based str\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/DefaultSource.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"334c08f7849c313b9f9d4dc7bb0ff26374711ced1bf6331f7449d609c5365291"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CobolParameters.scala \u2194 ReaderParameters.scala: \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParameters.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/ReaderParameters.scala\u0060 change together 70% of the time (47 of the 67 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \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. You can check this without leaving the row: of the 47 shared commits counted here, the most recent 3 are \u0060a8461cb0\u0060 #757 Add \u0060gpg_private_key\u0060 and \u0060gpg_private_key_passphrase\u0060 options t\u2026; \u00607d66bffb\u0060 #863 Add support for custom AST transformers via the \u0060ast_transformer\u2026; \u0060948cec63\u0060 #857 Disable indexes when record_limit is below threshold and pass re\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParameters.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c2637db74da36fdcc58ac104fea8123971409b5da8940116d5128b6597f14f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CobolParametersParser.scala \u2194 CobolSchema.scala: \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/schema/CobolSchema.scala\u0060 change together 67% of the time (14 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u00607d66bffb\u0060 #863 Add support for custom AST transformers via the \u0060ast_transformer\u2026; \u0060df99fd52\u0060 #850 Add minimum implementation of redefine rules based on numeric di\u2026; \u0060027e9f14\u0060 feat: add header trailer removal for multisegment definition function\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e635f05729deac0ce2df040b7a1170a4e6bdfa86d4c11433f5737a9ea766531e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FixedLenNestedReader.scala \u2194 CobolParameters.scala: \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/FixedLenNestedReader.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParameters.scala\u0060 change together 58% of the time (28 of the 48 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 28 shared commits counted here, the most recent 3 are \u0060b2a54346\u0060 #672 Tidy up the code, remove a few instances of code duplications.; \u0060c9df7de1\u0060 #624 Add \u0027binary_as_hex\u0027 option that alows extracting binary fields a\u2026; \u00601fcf087d\u0060 #593 Add the ability to generate \u0027Record_Bytes\u0027 field that contains r\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/FixedLenNestedReader.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff0dca9b78c02e939c168b239d767903a97c6d4412b83b9962e2c41b051f3f6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FixedLenNestedRowIterator.scala \u2194 VarLenNestedIterator.scala: \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/FixedLenNestedRowIterator.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/VarLenNestedIterator.scala\u0060 change together 50% of the time (14 of the 28 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \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. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u00601f61ae93\u0060 #838 Add new mode for variable size occurs - when records are padded \u2026; \u0060027e9f14\u0060 feat: add header trailer removal for multisegment definition function\u2026; \u0060b12f6419\u0060 #822 Allow \u0027_corrupt_records\u0027 to extract data in HEX instead of binar\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/FixedLenNestedRowIterator.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6548e51aa5ae485245d333eab0e25771ab1a13425cc9a5a3644ffc2940b422d6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: VarLenHierarchicalIterator.scala \u2194 VarLenNestedIterator.scala: \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/VarLenHierarchicalIterator.scala\u0060 and \u0060cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/VarLenNestedIterator.scala\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \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. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060948cec63\u0060 #857 Disable indexes when record_limit is below threshold and pass re\u2026; \u00601f61ae93\u0060 #838 Add new mode for variable size occurs - when records are padded \u2026; \u0060027e9f14\u0060 feat: add header trailer removal for multisegment definition function\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/VarLenHierarchicalIterator.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55604687f442d7c83d5320a2864f6ba1a10f519b283fbf8c53048b76277f98b3"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"171a5915161e926e35d9f9302156f7a2c57d16c96d5bdd1af3f21e2d4308269b"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fded4186b0bd45718fbc3a478506bf774def6c01a12fcdec03c6f96f0325582"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3d83b62cd55fc4d42dbb24816c38ce1a73cd550e3adcf8454b0a0cf00bc3138"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa704d87d3a54ee8f9602e897f9959cae44793f66341b12c09c3d47ac909e9ee"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: copybookParserVisitor\u003CT\u003E (55 abstract methods): \u0060copybookParserVisitor\u003CT\u003E\u0060 declares 55 abstract methods: \u0060visitAlphaA\u0060, \u0060visitAlphaN\u0060, \u0060visitAlphaX\u0060, \u0060visitBooleanLiteral\u0060, \u0060visitDependingOn\u0060, \u0060visitGroup\u0060, \u0060visitGroupUsageLiteral\u0060, \u0060visitIdentifier\u0060, \u0060visitIndexedBy\u0060, \u0060visitIntegerLiteral\u0060, \u0060visitItem\u0060, \u0060visitJustified\u0060, \u0060visitLeadingSign\u0060, \u0060visitLevel66statement\u0060, \u0060visitLevel88statement\u0060, \u0060visitLiteral\u0060, \u0060visitMain\u0060, \u0060visitMinus\u0060, \u0060visitNumericLiteral\u0060, \u0060visitOccurs\u0060, \u0060visitOccursTo\u0060, \u0060visitPic\u0060, \u0060visitPictureLiteral\u0060, \u0060visitPlus\u0060, \u0060visitPrecision9DecimalScaled\u0060, \u0060visitPrecision9DecimalScaledWithV\u0060, \u0060visitPrecision9ExplicitDot\u0060, \u0060visitPrecision9Nines\u0060, \u0060visitPrecision9Ps\u0060, \u0060visitPrecision9Scaled\u0060, \u0060visitPrecision9ScaledLead\u0060, \u0060visitPrecision9Ss\u0060, \u0060visitPrecision9Vs\u0060, \u0060visitPrecision9Zs\u0060, \u0060visitPrecisionZDecimalScaled\u0060, \u0060visitPrecisionZExplicitDot\u0060, \u0060visitPrecisionZScaled\u0060, \u0060visitPrimitive\u0060, \u0060visitRedefines\u0060, \u0060visitRenames\u0060, and 15 more. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/copybookParserVisitor.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c2b9ce7bb6b2870e20c792558cd77516ce8fa878d02a4ddf47b16c9098b2bc"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Statement (19 abstract members): \u0060Statement\u0060 declares 19 abstract members: \u0060level\u0060, \u0060name\u0060, \u0060originalName\u0060, \u0060lineNumber\u0060, \u0060parent\u0060, \u0060redefines\u0060, \u0060occurs\u0060, \u0060to\u0060, \u0060dependingOn\u0060, \u0060dependingOnHandlers\u0060, \u0060isRedefined\u0060, \u0060isFiller\u0060, \u0060isChildSegment\u0060, \u0060ruleExpression\u0060, \u0060enabledForRecord\u0060, \u0060binaryProperties\u0060, \u0060withUpdatedBinaryProperties\u0060, \u0060withUpdatedIsRedefined\u0060, \u0060withUpdatedDependingOnHandlers\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/ast/Statement.scala"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca5ee7cc2f1a51c9487481046e6b454fa9591f8327eb9056430beed0e3fe7b6"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ExpressionBuilder (23 abstract members): \u0060ExpressionBuilder\u0060 declares 23 abstract members: \u0060openParen\u0060, \u0060closeParen\u0060, \u0060addComma\u0060, \u0060addOperationPlus\u0060, \u0060addOperationMinus\u0060, \u0060addOperationMultiply\u0060, \u0060addOperationDivide\u0060, \u0060addOperationEquals\u0060, \u0060addOperationGreaterThan\u0060, \u0060addOperationLessThan\u0060, \u0060addOperationGreaterThanOrEqual\u0060, \u0060addOperationLessThanOrEqual\u0060, \u0060addOperationNotEqual\u0060, \u0060addOperationAnd\u0060, \u0060addOperationOr\u0060, \u0060addOperationNot\u0060, \u0060addVariable\u0060, \u0060addFunction\u0060, \u0060addNumLiteral\u0060, \u0060addStringLiteral\u0060, \u0060addNullLiteral\u0060, \u0060addTrueLiteral\u0060, \u0060addFalseLiteral\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/expression/parser/ExpressionBuilder.scala"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f874ffe35fc79450acce9d873bfc33f130e6b0ac44be1ede4e7814b22c7fe73"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/test/scala/za/co/absa/cobrix/spark/cobol/source/regression/Test15AsciiNumberOverflow.scala"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b007d2499d262b96eb5cd16e0102b38acf6c147955a538f6475e2f1b0006ca"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/test/scala/za/co/absa/cobrix/spark/cobol/source/regression/Test15AsciiNumberOverflow.scala"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b8890bc835afa296d020a2135a9c867d8622d6435846926bc4967b59c3d2b1"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P10","level":"note","message":{"text":"Large public API surface: 81/81 types (100%) declared in the published library are public. For a library, every public type is a stability contract \u2014 keep implementation types off the surface and expose only the intended API."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed2ba843444ae377c17142f58f714e281e4bd3f183ab100ee1fbef389875d3e6"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add scalafix or scapegoat (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 8849 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/build.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dependValue \u003E= field.arrayMinSize \u0026\u0026 dependValue \u003C= arraySize\u0060 appears character-identically in 3 files \u2014 cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/VarOccursRecordExtractor.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/record/RecordExtractors.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/Copybook.scala"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb289eb59e678fd0c6d1d69b2ff7b79dd16612af9baa7a2fd4ee183d3df95bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fileSize \u003E 0L \u0026\u0026 fileFooterBytes \u003E 0 \u0026\u0026 fileSize - fileOffset \u003C= fileFooterBytes\u0060 appears character-identically in 2 files \u2014 cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/headerparsers/RecordHeaderParserFixedLen.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/headerparsers/RecordHeaderParserRDW.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/headerparsers/RecordHeaderParserFixedLen.scala"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"17142bfaa64536d6181cb8161ea93882667233e11946e2cc03d8e87986c7d20b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasGpg || filesList.exists(_.isCompressed)\u0060 appears character-identically in 2 files \u2014 spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/builder/ValidatorBuilder.scala, spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/DefaultSource.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/builder/ValidatorBuilder.scala"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"defd291cd39a8771c1fe53fae20115d2646affd6414faa032bd61c871573ddfd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i \u002B 1 \u003C maxRecordSize \u0026\u0026 pendingBytes(i \u002B 1) == 0x0A\u0060 appears character-identically in 2 files \u2014 cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8eeab75beb46df383e9691d38a45f847fa4e85e85883ddb283c90bce267f03f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i \u003C pendingBytesSize \u0026\u0026 (pendingBytes(i) == 0x0D || pendingBytes(i) == 0x0A)\u0060 appears character-identically in 2 files \u2014 cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acf1d3e92c11290a09a5f32c5192993b5181b04d15ef1a368152e09a0b37277"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060improvedNullDetection \u0026\u0026 isArrayNull(bytes)\u0060 appears character-identically in 2 files \u2014 cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/AsciiStringDecoderWrapper.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/AsciiStringDecoderWrapper.scala"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"617a787fca02b663030cf5871e618217a877d8f3a5b0146cd39a80d5d61b26ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pendingBytesSize \u003C= recordSize \u0026\u0026 ctx.inputStream.isEndOfStream\u0060 appears character-identically in 2 files \u2014 cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28c6400de3dc12312cd051c2bf39a6fdef80f41f9bedef90c156d03901d0a10"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060recordLength == 0 \u0026\u0026 i \u003C pendingBytesSize\u0060 appears character-identically in 2 files \u2014 cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextRecordExtractor.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/TextFullRecordExtractor.scala"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"12405701247c97b54d616f629140854e7c7fce22fd40529e2e71d4f102ef0a70"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmingType == TrimNone || trimmingType == KeepAll\u0060 appears character-identically in 2 files \u2014 cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/AsciiStringDecoderWrapper.scala, cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/AsciiStringDecoderWrapper.scala"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"147cd1c53ea95267449164dca31d8c15c1710cbd3f6146ec0f2c006c1faa3967"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/BCDNumberDecoders.scala"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a82f16b1d6089677b7fb9caceadd73b3d252e4b290b5bf15df9bd2d5588c813"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/DecoderSelector.scala"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"0003712031bc442a185a57cc8f27e1b536e812e3a7fda519c67d692b2e07add0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/FloatingPointDecoders.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fb899bbe010d28266eeb8402eea124c93b219f931cadaaceebf4b84d173662"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/FloatingPointDecoders.scala"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2a0db78eeb5683aaf4d8b7dcaf73c65c3d7841c444f55b211a649730600864"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/FloatingPointDecoders.scala"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c84f2103844d27c9f02cb95a7096a0526607a4d6837c3441df454f7d021fb8f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/FloatingPointDecoders.scala"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0695c8efb47ac551cac906934befe795e7ddd9df1ae6acc0ca525d7dee1f22c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/FloatingPointDecoders.scala"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"3446a5f86bbe4675bcf0627c8c14ac37114728a1e3ca125d6a8748627441b51d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/FloatingPointDecoders.scala"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae39b7a46a0e593469186ed1dede7bb799e07e7e7ab45911bf29689b64c8f06"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0244844710eb6f275062f143937d21b4957a01f471ee5758f166e53475f192c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e3a389a8fd6b3fd69c799f8b34f0ac4ee77388940345922d99b9f96fc5ef08"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cefd35c2f0b0810dac1910b076e06a51782eb68610ccdb927abcfc2df894178"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67a15a0097db1634098953e38510e1384c5800663ffd3380d2f9bc714ea1f35"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17cacf04f0d0fd9dc4636ed4eb7bde9c9a6da27770e066581c9798775206f17"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f6ed9ccbc25c37d02b85e51050ae0b325a6451f231b4207a6cb414e15a6a57"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8330bf59053700ca610f6c00b1313fb47ee3730cd59c7f51aa4fee54c46573f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case NonFatal(_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/StringDecoders.scala"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1927c4dce87b859771150536d4259291eab14e5fb9c1ad362abd1cd52c027dc9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/antlr/ParserJson.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6001056faa4c643d900f339b3e364deb91bd2e015be06bad3111c0beecd5e59e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 168 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/SparkCobolProcessor.scala"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e77c00f0a763fd409d5446a02a44fb117bfe8c0244d6dc68bda678da0f8814"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 236 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/SparkCobolProcessor.scala"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e31ce3837165d11cc0efe29d5ba9fe0aeb12d6c5dca51336021cd467fc16973"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 245 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/SparkCobolProcessor.scala"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54bc18198e77c77c74fc22c2dbcbfb5df84ab34bce4342ea8a184597e802bec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 269 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/SparkCobolProcessor.scala"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96762493275dea6ede1fd67101ddbc473d79ee957fc3cb7a399f5851647d484"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 302 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/SparkCobolProcessor.scala"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59d45cb2a9c61dcd79c862fc74ccfd52fad52abd00e4c9b119f6e7740480da5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 418 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c38637080b91bdf32041ebf946f58cc51f2ea6f8b42737ca3da70b2898d582"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 479 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2bba9af97116edf6b8d0ba13d2789e0c3b879deae3bf5628d598222ed883e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 530 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/writer/NestedRecordCombiner.scala"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8438ff8478a5e3748b0e57148609de05e1321e930d97b8971d873becd5f3d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 197 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.error(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/FileUtils.scala"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52d2b5bd20334a2779bf8c4adcbc022fda8cc15aa3d543999d942ef337feb72"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 213 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.error(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/FileUtils.scala"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a3848d35639c13f9e5b50c7fdecc1328b0f82a1c6408a6cfe0535cf3ada05e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 229 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/FileUtils.scala"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaac6d318d55ac02f77459f67add1224af9ea31c61cb3e90ecfeb382fe38d59f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 252 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/FileUtils.scala"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"4768383aac56c8b0068d05875bd36b32a4fb15aba82b958761086f85e1e4122c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 92 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.debug(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/HadoopFsUtils.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5723037154ccdc14a60a07c050f44895c9730e864a192b99b1b1144ec04cf9d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 47 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/SparkUtils.scala"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1bea8e6e01cc9b288b437291884e40923c0511ee85fab0c32fdf2502d02f7d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 517 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/SparkUtils.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f92ab05bc3f4a536f6cc26546125fde7fd29d7f24e12631d6cf742f993be3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 518 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/utils/SparkUtils.scala"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"87079beaaa1465f0b076168bebaea0af3272595424ce69f732f2945a43655214"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 60 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/DefaultSource.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09ddf79579ecde64389afbcb3cc647f3e3ec0b36092af52f933c8ba5bbd9531"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 167 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/DefaultSource.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1a0c16c6071dc8190d2e5ce85bbbfe1268fa8c446a05c04862d500d42ef8e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 102 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming/FileStreamer.scala"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b98a5cc5d557d747ba2639310bae2d419ac7aa8a5f29cf1fe280e3d3f142584"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 117 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming/FileStreamer.scala"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"df134757fb028582438c872873594c3f0660aa4fa9be0e0a91c27db1d6b6a4be"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 50 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/scanners/CobolScanners.scala"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b690cac1da4c0ebd3d5992dc29dc14d1ff227945f68841b7db82642db28b1872"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 70 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/scanners/CobolScanners.scala"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"631e8b9edcd24e9d4d2f74bf5ac3636554f494152d740afaf3658bdda847d57c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 107 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/IndexBuilder.scala"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3723b2b2fbf75786f7aa513577ae32522c333c4a7094d4509bda16fa89cc7249"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 161 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/IndexBuilder.scala"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8760d8641d14d9c1db413bf38762b039a4d4bf6a8611601a3c9d46fccc1c2256"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 206 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/IndexBuilder.scala"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c5a454737f42ec3408275d9aa93de62d1eaa71ad47a84091616b2bf2a6ffa8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 304 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/IndexBuilder.scala"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64e7da732ffe9f452d2b8287b4b1451f52c5e5ace6f8e2c19bd66496a61123f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 349 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/IndexBuilder.scala"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bbf9de1778ae9668578411fc96552f5cd7d30629c1e69399f7561416c2e359"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 377 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/IndexBuilder.scala"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5862d642fbbe86389359e1d445d04ea8b05c376905d0ef2dbb980aa46dfafafc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 385 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/index/IndexBuilder.scala"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"716a1ac19ba2b133b0d43b620ac5e8fb37e55408f6fc069f9274db7c8a4990cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 162 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/VarLenNestedReader.scala"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b466ad97fa1810c0250c05585d24f9ca69844c731c4eeeef704fb5b08f9256"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 169 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/VarLenNestedReader.scala"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"612fc76172cf66a6e547de71830ba14a0ee694d384e4e5766dfa66c7799d9397"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 54 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/validator/ReaderParametersValidator.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc2ccc6efea0bc40735a096d3e869db16e07e8ebb440a8d83be4203b694e2ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 401 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbed4bb915f73d50404ea27a35bdd2f806763c643a8970782f8387dbacdd6b5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 428 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"5840f508f9c044ade1800c9fe352c684650fab6a69ae2ad2d050b5285b96fcaf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 592 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"8729485c1ec9f4a1e66c960dcd19e6a092da588e588ac983cc0233f0dd586b1d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 676 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"006c29ef32d56e1d6dc4d71ceba3bbe7619f1584a10f9a2b2389ddfec29bfa4c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 680 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/parameters/CobolParametersParser.scala"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"966a5eae9fe3a75e81784292e856f4a268132fe41a1eed0f7d5e32f4e9d7004f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 116 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.error(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/FixedLenNestedRowIterator.scala"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb844a427551d7d76811ba25b6c2558159eb269676733b17b10658860cf532c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 156 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.error(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/iterator/VRLRecordReader.scala"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b4b7a9bcb2a90c9d4dabafdd9ec203a356dff03a9a834f3e7949a1f010fb2d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 136 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.error(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/index/IndexGenerator.scala"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca4d722b8d43c17c8ff508ec6959dd818c3d0bee814266331384c0b967dc5cf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 138 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.error(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/index/IndexGenerator.scala"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7bbacbedada8edaea32a9717283576c005829447c4b33b371aa7f233c11b55"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 225 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.error(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/reader/extractors/raw/FixedWithRecordLengthExprRawRecordExtractor.scala"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"559c9c72d2194d6e5504af2a254252d2e444c5d040b3e6856bb6561766f84c49"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 38 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/headerparsers/RecordHeaderParserFactory.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23b58f04f9b84d85b88eceded18cb648c614e055e384e4c3abdfd51148ceef9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 100 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.info(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/CodePage.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d895faca344c9822cd98c95eb7af73bdd9b0b6eea4ea08a119da16c8d534d2f5"}},{"ruleId":"X5","level":"note","message":{"text":"Scala\u0027s null is not held to the type system everywhere: No build over this repository\u0027s 222 Scala product file(s) passes \u0060-Yexplicit-nulls\u0060, enables WartRemover\u0027s \u0060Null\u0060 wart or runs Scalafix\u0027s \u0060DisableSyntax.noNulls\u0060, so every reference type admits null and nothing reports a \u0060null\u0060 written into the code or returned from a Java API \u2014 the first one to reach a method call is a \u0060NullPointerException\u0060. \u0060Option\u0060 by convention is a habit no tool here holds the code to."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"23e7c3c6da50151f07723c64ca4f881fd5903e713d143161a7c0594ad7ba29cc"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-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":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"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":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":20,"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."]}]}