{"$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":"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":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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":"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":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"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":"AbstractJsonLexer.consumeNumericLiteral (cyclomatic 36): AbstractJsonLexer.consumeNumericLiteral has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8c7c4eeeb64db08519cdb7c51cc5799faf3446c9b5e57d8875a54f97092b56"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractJsonLexer.consumeNumericLiteral (cognitive 56): AbstractJsonLexer.consumeNumericLiteral has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (45 pts), boolean chains 8, match/switch 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt holds 2 of the 12 methods over the threshold \u2014 including the worst \u2014 and 45 of the 95 points over it (47%), 4.5\u00D7 the next-largest file (formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/schema/ProtoBufSchemaGenerator.kt at 10). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f9e283d2626b06c983fcf86d35c80b0164c54a4c88f6f0741dfae4adb95dab"}},{"ruleId":"D2","level":"warning","message":{"text":"ProtoBufSchemaGenerator.generateMessageField (cognitive 25): ProtoBufSchemaGenerator.generateMessageField has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/schema/ProtoBufSchemaGenerator.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"77978a906f95f82b8532be14d8218fe468370bbc3c4be9d9c721e47cea962eee"}},{"ruleId":"D2","level":"warning","message":{"text":"CharsetReader.doRead (cognitive 23): CharsetReader.doRead has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json/jvmMain/src/kotlinx/serialization/json/internal/CharsetReader.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3770f1cd199929cc443aaade3e4bbc09737849537a8a15ea0b1acc9c89e395"}},{"ruleId":"D2","level":"warning","message":{"text":"OutputStreamJsonWriter.writeUtf8 (cognitive 21): OutputStreamJsonWriter.writeUtf8 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json/jvmMain/src/kotlinx/serialization/json/internal/JvmJsonStreams.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b31e000ab203839b4e1371f86713e6cbebba513039c4778bf84c325a3fec13d"}},{"ruleId":"D2","level":"warning","message":{"text":"KxIoReader.read (cognitive 20): KxIoReader.read has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json-io/commonMain/src/kotlinx/serialization/json/io/internal/IoJsonStreams.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4078546bc0eb9f8a3278bf65952dc44a7e5920613b2ac936cbdf7625749abab"}},{"ruleId":"D2","level":"warning","message":{"text":"OkioReader.read (cognitive 20): OkioReader.read has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json-okio/commonMain/src/kotlinx/serialization/json/okio/internal/OkioJsonStreams.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bb2771e29015ca81d99f4ffe64ab8f89c3b31e16d88ec31ec16989603db808"}},{"ruleId":"D2","level":"warning","message":{"text":"StringJsonLexerWithComments.skipWhitespaces (cognitive 20): StringJsonLexerWithComments.skipWhitespaces has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1de520ce22be1eec685b51a45ad5d0e34ba107ef5844c8fe070fe55effca87"}},{"ruleId":"D2","level":"warning","message":{"text":"CborParser.skipElement (cognitive 19): CborParser.skipElement has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Decoder.kt"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"acef00f22b61d556750de1cb2a843ea84fe56eb1c62b692928718bd6dcc85892"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractJsonLexer.skipElement (cognitive 19): AbstractJsonLexer.skipElement has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt holds 2 of the 12 methods over the threshold \u2014 including the worst \u2014 and 45 of the 95 points over it (47%), 4.5\u00D7 the next-largest file (formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/schema/ProtoBufSchemaGenerator.kt at 10). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3230b87d75802c42557f0dda62cdf8bac226761adf155fe308464f1982d68b1"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferedJsonLexerWithComments.handleComment (cognitive 18): BufferedJsonLexerWithComments.handleComment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), match/switch 1 (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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc293d7393153eed859b5afd8e3e2852aa6edaeeac7fbc7fc7103bbeee84d80"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingJsonEncoder.encodeElement (cognitive 17): StreamingJsonEncoder.encodeElement has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 1 (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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonEncoder.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8085f7a7d69080eef6bdc744b21725e203237ae8532f7aec4d292eb6a7315f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProtobufDecoder.decodeSerializableValue (cognitive 17): ProtobufDecoder.decodeSerializableValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, error handling 1, match/switch 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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufDecoding.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2286175d6670e58a016dd05312b5fd1f3352a2b59507a8a3e07d66844c77f4d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractJsonLexer: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b1b0aabea2dfdbf1135a370d8510a31b73f1076b1e8f0b53b1742646b80b67"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaggedDecoder: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. This type is on a published API surface \u2014 the Kotlin binary-compatibility validator (build.gradle.kts) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/commonMain/src/kotlinx/serialization/internal/Tagged.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb08d6c47c8b6047908d30bc31b31b6762ebafbf93bf8534a65668272a9ba02"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaggedEncoder: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. This type is on a published API surface \u2014 the Kotlin binary-compatibility validator (build.gradle.kts) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/commonMain/src/kotlinx/serialization/internal/Tagged.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4239c148c8e01cc1765e19ecce5bb44b0617e4d20075eadde4999462e537edd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProtobufTaggedDecoder: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufTaggedDecoder.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d39512a298a8c34cb51e262bfa070f646a8d8faec3869af6e318420c7bed45"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProtobufTaggedEncoder: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufTaggedEncoder.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd808e95bf459576c1729b4eadf01110a0d78df34f6474cab084aeb928dba7cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CborParser: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Decoder.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"885c664d26bb69cf73be230be03a3b63854b979a8deb8c8409d429c72e03cd40"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProtobufDecoder: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufDecoding.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"62aac94d14580c40decfd81392fa89380c75e772157b2e96598bb8467152cb00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): formats/json-io/commonMain/src/kotlinx/serialization/json/io/internal/IoJsonStreams.kt:49-94 | formats/json-okio/commonMain/src/kotlinx/serialization/json/okio/internal/OkioJsonStreams.kt:47-95 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"formats/json-io/commonMain/src/kotlinx/serialization/json/io/internal/IoJsonStreams.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0df6e9c0a2d5fb4ac9e5310573f1e0470a112e3ace6dab6f58c43bb562b9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): formats/json/jvmMain/src/kotlinx/serialization/json/internal/JvmJsonStreams.kt:51-94 | formats/json/jvmMain/src/kotlinx/serialization/json/internal/StringJsonWriter.kt:72-114 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"formats/json/jvmMain/src/kotlinx/serialization/json/internal/JvmJsonStreams.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c4046ce5e8340dfa61dd1c05ed8b817c3bf39c6088e7a26a47357f60b6c713"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/Streams.kt:54-74 | formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/Streams.kt:76-97 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/Streams.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49e85cfb61187653bb2b283b27af1497085c387929a0bf4002352ec8625da12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Encoder.kt:315-325 | formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Encoder.kt:328-334 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Encoder.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"67631db98036b9fe00b006f194bd2cd215eb899997a4b1e4e563b2b4680a3f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/Hocon.kt:243-249 | formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/Hocon.kt:284-290 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/Hocon.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e1a6f03d8cca09e86ce4e19c9edf25a4cfc09d138f3ef54b51e3f6819109bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt:171-197 | formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/StringJsonLexer.kt:87-111 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a197725937b4b166749316169635c3579985a4675a0301773b4c7798fe071baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): formats/json/jvmMain/src/kotlinx/serialization/json/internal/JvmJsonStreams.kt:28-49 | formats/json/jvmMain/src/kotlinx/serialization/json/internal/StringJsonWriter.kt:50-70 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \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":"formats/json/jvmMain/src/kotlinx/serialization/json/internal/JvmJsonStreams.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64cfc2671bca5da2601d4eac210e236b51044adfe3613123a1160c873e81a45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufTaggedEncoder.kt:137-153 | formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufTaggedEncoder.kt:160-175 \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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufTaggedEncoder.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12328dab58bcafe389f62a048f5bf0f76e98945947edc641c471404b45a4496"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): core/commonMain/src/kotlinx/serialization/internal/Enums.kt:66-77 | core/commonMain/src/kotlinx/serialization/internal/Enums.kt:86-100 \u2014 These two members are one piece of code written twice and then edited apart: 12 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":"core/commonMain/src/kotlinx/serialization/internal/Enums.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e351ad852a2606fef0a4580cf215ac27dd8277dd2ee628dbafb8cfd06db9ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/schema/ProtoBufSchemaGenerator.kt:540-559 | formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/schema/ProtoBufSchemaGenerator.kt:566-583 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/schema/ProtoBufSchemaGenerator.kt"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"8affb9ad9d180cc8d4ef0d4f10d5738a034e78b21ff75187baa631f0827fe084"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt:38-49 | formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt:99-112 \u2014 These two members are one piece of code written twice and then edited apart: 12 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c28059b36e353a65ceb0fe9ef0d39ecd245f0b05224cf81332b9669d4fac716"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt:59-76 | formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt:126-141 \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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d977fb63b65ed0b540dbf0a5827eef33b3924650feb78ee42d211c86a791d5f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Decoder.kt:111-121 | formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Encoder.kt:46-56 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Decoder.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43c75d8100ba43b45e6a758a02207917e6efb9058629bbb8db25a980d3cb9ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): core/nativeMain/src/kotlinx/serialization/internal/Platform.kt:37-41 | core/wasmMain/src/kotlinx/serialization/internal/Platform.kt:36-40 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"core/nativeMain/src/kotlinx/serialization/internal/Platform.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e367571099b6adbf106fefad8fb566caf74677fa81fab38f9d2bf3bcdfec48de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): formats/json/commonMain/src/kotlinx/serialization/json/JsonElement.kt:171-178 | integration-test/src/commonMain/kotlin/sample/Data.kt:148-157 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"formats/json/commonMain/src/kotlinx/serialization/json/JsonElement.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f316c4e44ad6897f85cb4e9ceb3d1b057f746a8340e9bca5227e28ee53d39592"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): formats/json/commonMain/src/kotlinx/serialization/json/Json.kt:146-152 | formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonStreams.kt:55-65 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"formats/json/commonMain/src/kotlinx/serialization/json/Json.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c29c8c2dfc9e98129965f4ed808dc0e5329ab058076a5afe17bb999fbee14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt:98-104 | formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt:190-196 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8796357d979ee0bac7aa0b7f7a0a9aa0f4183a49dd081e8dfa96c36b968b2f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufDecoding.kt:484-485 | formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufEncoding.kt:285-286 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufDecoding.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac30dac83fbec328197cc144b2307bc116d8bcf2383e7f600c2f2f59ec9da4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): core/jsMain/src/kotlinx/serialization/internal/Platform.kt:87-118 | core/nativeMain/src/kotlinx/serialization/internal/Platform.kt:79-110 | core/wasmMain/src/kotlinx/serialization/internal/Platform.kt:69-100 \u2014 before extracting anything, compare \u0060core/jsMain/src/kotlinx/serialization/internal/Platform.kt\u0060 and \u0060core/nativeMain/src/kotlinx/serialization/internal/Platform.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/jsMain/src/kotlinx/serialization/internal/Platform.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2cb73bd02a2db8c2665619e9d71fb6c624d56afbe8caf005929d8c7dacef07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): formats/json-io/commonMain/src/kotlinx/serialization/json/io/internal/IoJsonStreams.kt:80-94 | formats/json-okio/commonMain/src/kotlinx/serialization/json/okio/internal/OkioJsonStreams.kt:81-95 \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 \u0060formats/json-io/commonMain/src/kotlinx/serialization/json/io/internal/IoJsonStreams.kt:80\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":"formats/json-io/commonMain/src/kotlinx/serialization/json/io/internal/IoJsonStreams.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"17208a61b8b129e13b4f391d6e73b61bfe3534f51ea9b68b1d0f7685c574da51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt:39-49 | formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt:101-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 \u0060formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt:101\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 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e1c84c55cda9b47e87943ed6d3d7d3f9474481b774024b11d6f61f52d6a054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): formats/protobuf/jsMain/src/kotlinx/serialization/protobuf/internal/Bytes.kt:7-14 | formats/protobuf/nativeMain/src/kotlinx/serialization/protobuf/internal/Bytes.kt:7-14 | formats/protobuf/wasmMain/src/kotlinx/serialization/protobuf/internal/Bytes.kt:7-14 \u2014 before extracting anything, compare \u0060formats/protobuf/jsMain/src/kotlinx/serialization/protobuf/internal/Bytes.kt\u0060 and \u0060formats/protobuf/nativeMain/src/kotlinx/serialization/protobuf/internal/Bytes.kt\u0060 as WHOLE FILES: 100% 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/protobuf/jsMain/src/kotlinx/serialization/protobuf/internal/Bytes.kt"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8c9dd57cce123e96d06d5b5efc983beb105f6c824d977c93bdffff0d2686d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/jsMain/src/kotlinx/serialization/internal/Platform.kt:31-37 | core/nativeMain/src/kotlinx/serialization/internal/Platform.kt:49-55 | core/wasmMain/src/kotlinx/serialization/internal/Platform.kt:48-54 \u2014 before extracting anything, compare \u0060core/jsMain/src/kotlinx/serialization/internal/Platform.kt\u0060 and \u0060core/nativeMain/src/kotlinx/serialization/internal/Platform.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/jsMain/src/kotlinx/serialization/internal/Platform.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"007349cdbd962c6149d87be24ed6a672e8007d5d06035e9cdd80b6c4073f34f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/jsMain/src/kotlinx/serialization/internal/Platform.kt:39-45 | core/nativeMain/src/kotlinx/serialization/internal/Platform.kt:57-63 | core/wasmMain/src/kotlinx/serialization/internal/Platform.kt:56-62 \u2014 before extracting anything, compare \u0060core/jsMain/src/kotlinx/serialization/internal/Platform.kt\u0060 and \u0060core/nativeMain/src/kotlinx/serialization/internal/Platform.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/jsMain/src/kotlinx/serialization/internal/Platform.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6443448075dfe22b350183ab5e3d392c595757b0f0603a97b4866cfeaba0ab95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Streams.kt:45-52 | formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/Streams.kt:161-168 \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":"formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Streams.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3cff970d074367dd10de8a4c71a6babbd558dac295239204860acde163b99a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): formats/json-io/commonMain/src/kotlinx/serialization/json/io/IoStreams.kt:27-34 | formats/json-okio/commonMain/src/kotlinx/serialization/json/okio/OkioStreams.kt:27-34 | formats/json/jvmMain/src/kotlinx/serialization/json/JvmStreams.kt:22-29 \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 \u0060formats/json-io/commonMain/src/kotlinx/serialization/json/io/IoStreams.kt:27\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":"formats/json-io/commonMain/src/kotlinx/serialization/json/io/IoStreams.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b820857cb83012c2608b9e0a0998a27ad0965c37d20d18f1cf9836a75a15845c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): formats/json-io/commonMain/src/kotlinx/serialization/json/io/internal/IoJsonStreams.kt:27-31 | formats/json-okio/commonMain/src/kotlinx/serialization/json/okio/internal/OkioJsonStreams.kt:25-29 \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":"formats/json-io/commonMain/src/kotlinx/serialization/json/io/internal/IoJsonStreams.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd8e73a085c124fd0979dd26b368150c5b1542aba739c8c843d0fd55bb6cb7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): formats/json/jvmMain/src/kotlinx/serialization/json/internal/JvmJsonStreams.kt:97-103 | formats/json/jvmMain/src/kotlinx/serialization/json/internal/StringJsonWriter.kt:130-136 \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":"formats/json/jvmMain/src/kotlinx/serialization/json/internal/JvmJsonStreams.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba00179b4625a3f845b3b0608e39c3a9b4697872f87f3c38a0a73349a360c4c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: R8Tests (LCOM4 4): R8Tests\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rules/rules-integration-tests/src/shared/kotlinx/serialization/r8/R8Tests.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"702cb7710594f2ebaf51ced37bc5c71076e35ef8dd7028153f883401a677aa66"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: org.openjdk.jmh:jmh-core: \u0060org.openjdk.jmh:jmh-core\u0060 1.37 is published on Maven Central under \u0060GPL-2.0\u0060, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact\u0027s POM \u0060\u003Clicenses\u003E\u0060 block \u2014 following \u0060\u003Cparent\u003E\u0060 where the POM inherits them \u2014 and normalised to SPDX before it was judged, because Maven publishes the name as free text (\u0060GNU Affero General Public License v3\u0060 is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven\u0027s own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"01583a0c194289959e71817aaeaf053fd4437f5c0bc5d638a8da404c8765d84b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 8 significant file(s) lose their only recent owner: core/commonMain/src/kotlinx/serialization/descriptors/SerialDescriptor.kt, core/commonMain/src/kotlinx/serialization/Annotations.kt, core/commonMain/src/kotlinx/serialization/descriptors/SerialDescriptors.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonNamesMap.kt, formats/json/commonMain/src/kotlinx/serialization/json/JsonConfiguration.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/Polymorphic.kt, core/commonMain/src/kotlinx/serialization/internal/CollectionDescriptors.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonExceptions.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"560a939b1510fd393c1249d0cf53e76a786348c412007f168a25054136656a06"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 6 significant file(s) lose their only recent owner: formats/json/jvmMain/src/kotlinx/serialization/json/JvmStreams.kt, formats/json-okio/commonMain/src/kotlinx/serialization/json/okio/OkioStreams.kt, formats/json-io/commonMain/src/kotlinx/serialization/json/io/IoStreams.kt, formats/json/jvmMain/src/kotlinx/serialization/json/internal/StringJsonWriter.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonIterator.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonStreams.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c539db4c001deef1ca25f109509020fec8b8c0e265fafc41ebe528c186205b7e"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (16 single-owned of 134 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 134 of the 276 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Decoder.kt, formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/schema/ProtoBufSchemaGenerator.kt."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // fixme when compiled on windows, the file contains line \\r\\n breaks \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":"formats/protobuf/jvmTest/src/kotlinx/serialization/protobuf/schema/GenerationTest.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f4b8ece543b6e8bd9d79f367bf36d8330d608f9591886c7866c4e6a112dfa1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this is exactly the lookahead scenario \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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufEncoding.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fa86c07e07ce29853f054aa450303af3473e37925b9c49b05da9cbe9cd821c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this could be optimized by extracting method to the IS \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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufReader.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce538573cd647bd41d0f7aee5a616a9942a5dcf681b517651c427273e700dc09"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this could be optimized by extracting method to the IS \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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufReader.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3395bfcf0044447f9816b87aad93303c1c225f0c80ba1050c567b2d5aa117f44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move to common tests after https://youtrack.jetbrains.com/issue/KT-28927 is fixed"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json-tests/jvmTest/src/kotlinx/serialization/features/ContextualSerializationOnFileTest.kt"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"456b111bb21ac728a43339765c1c68eac9f27d09ecb53cf4b91b79765b41265e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // iso8601Serialization(serializer())  TODO: uncomment when the compiler adds KT-75759"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json-tests/commonTest/src/kotlinx/serialization/InstantSerializationTest.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4f3b36bf3c9c19515afceec66b9c91925bd5b153f1f2ae53e288a7fb6a55c9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO sandwwraith moving this class to the corresponding tests breaks runtime in unexpected ways \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":"formats/json-tests/commonTest/src/kotlinx/serialization/PolymorphismTestData.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2f6b34697707873a823e6c56f8d44995ea0a16363caf8f96e6d3ce8df202f0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME? When we are reading Json in \u0027raw tree\u0027 (parseToJsonElement) mode, lexer does not provide path information on syntax errors because there are no descriptors. \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":"formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonDecodingErrorMessagesTest.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2db1d080962fdc2e4c5c5e4e52bc385d0c2f77d9779997573bfe0c31d9671ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO in builder is not suitable for recursive descriptors \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":"formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonEncoderDecoderRecursiveTest.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"03718fd98f945faf71538e50e26af142ccbcb6c2dd2a8bd6056fc396d3ea812a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME change to \u0060noLegacyJs\u0060 when lookup of \u0060ClassCustomSerializer\u0060 will work on Native and JS/IR \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":"formats/json-tests/commonTest/src/kotlinx/serialization/features/LocalClassesTest.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d7807de3449dd100e9f58bb97093256764a2e227f934c51b864569460f01ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: shall it be driven by isLenient or another configuration key? \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":"formats/json/jsMain/src/kotlinx/serialization/json/internal/DynamicEncoders.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb4740422594d116156efff0c92bdc8e99b92bf327f4056e83821b99e33e279"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: shall it be driven by isLenient or another configuration key? \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":"formats/json/jsMain/src/kotlinx/serialization/json/internal/DynamicEncoders.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c226b0bf00554d503b321f76b6e34100ea094a35d7b71c593940a10dd112a65"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider merging comma consumption and this check \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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonDecoder.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b187ddaf6c91b80b3bcea79c5180f2d3f97f77606142c4ecf98311788d1c805"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pass e as cause? (may conflict with #2590)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"formats/json/commonMain/src/kotlinx/serialization/json/internal/TreeJsonDecoder.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0762e38070208710159f8abc7aa60d249af5756e72609213942bd3dabe655c04"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO consider replacing usages of this method in JsonParser with char overload \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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4083764b773cf3219ba493df7771354e0542d41511809218cea9dc5905f0465e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: how do we handle undefined values? \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":"formats/cbor/commonTest/src/kotlinx/serialization/cbor/CborParserTest.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"090d8d77b7a3d4f22f1f64d92c7d2443dea81b748ce4277987554e07c4bcf8e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should it be an error? \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":"formats/cbor/commonTest/src/kotlinx/serialization/cbor/CborParserTest.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0b15e33140ba011ba8247440256a39474e532d94b86a48ebf3fd85260ebe66"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: what should it be? \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":"formats/cbor/commonTest/src/kotlinx/serialization/cbor/CborParserTest.kt"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43c600da49e994018cbcdb8755d9394a3b18a18ea39f95135a923bd04b3a63d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO discuss on serializers equality \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":"core/jvmTest/src/kotlinx/serialization/features/SerializerJvmSpecificTest.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9138675b648a60006d6d25b9743f15a28d600687bd423286f1b6ab3e775fb4bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: not working because (see #1207, plugin does not produce companion object for interfaces)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/commonTest/src/kotlinx/serialization/SerializersLookupInterfaceTest.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6358c688b11bb16fd44b6d3bb6460b3ce50b69e1300361ac12868ddd63e769ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO tech debt: it\u0027s used in ProtoBuf \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":"core/commonMain/src/kotlinx/serialization/internal/CollectionSerializers.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b53a043a3d809216efc5145aced0729471fe51fa51405be371a18555b8c75d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: can be more efficient when array size is know in advance, this one always uses temporary ArrayList as builder \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":"core/commonMain/src/kotlinx/serialization/internal/CollectionSerializers.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ca834cdfb794e1841dd71c6be6256819c12868326098d0a1daf9995f9a6c1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this method should be overridden by any sane format that supports top-level nulls \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":"core/commonMain/src/kotlinx/serialization/internal/Tagged.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b0dd680e5f9cc6cdf6502046e798fc4219e561c6194789a99ff3042a24d319"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 10 project(s) overshoot their size bounds, lowering Project Cohesion to 7.0/10. The most over is \u0060core\u0060 (8676 LoC, 203 module-visible types across 14 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":"99ee3415ad864c3078eff062622aad13206ee1dfce450b3e5be443f0c8c8048e"},"properties":{"commitSha":"4a0338ef5093d765138151bc30282e909ca459e4"}},{"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":"6dcbe1ef514a0c0ae1f50856d2d2d7cf09d2d1aa4c3394761e2d6df3f78971a6"},"properties":{"commitSha":"321c434fb19f06a55f58735ca53452055fbf84a3"}},{"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":"efb4804ac2ba86f6c84dcbcd77bc0ec86e12fe01593c9a6ca12e75d31037de44"},"properties":{"commitSha":"321c434fb19f06a55f58735ca53452055fbf84a3"}},{"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":"e76d567497236d8650a2317b97d3def18fc165adcc0efda1484a6943794d5a42"},"properties":{"commitSha":"321c434fb19f06a55f58735ca53452055fbf84a3"}},{"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":"5751964fdb0d43c8604e1353ddd285d9d9d6b9e4fade1b717bca6a0e346a4d5a"},"properties":{"commitSha":"321c434fb19f06a55f58735ca53452055fbf84a3"}},{"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":"71a15c7749163795168ba31650b584ff59ef2650346b7c9218f5ea9202de77f2"},"properties":{"commitSha":"321c434fb19f06a55f58735ca53452055fbf84a3"}},{"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":"8e7cdd9bdaa52fa2fc9a30e3668f198e258eb59bcb02646e97120c06198071d3"},"properties":{"commitSha":"321c434fb19f06a55f58735ca53452055fbf84a3"}},{"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":"D30","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":"bd0e2c2c20a3823c2643d4ce3c8a2fd826ced4aff639c8b4af4d796b0c442026"},"properties":{"dependency":{"package":"brace-expansion","version":"2.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"8e708ca4c98dc77df55e85ffe9101e3de1688c3d105f6f213858485f7566ca3e"},"properties":{"dependency":{"package":"glob","version":"10.4.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"094a5ad27afb3798ffaf2d91ab48f2acfb0f08efb997dafcbbd9600cb15cdf67"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"28214516d72c1d4cc7aae1475b3fd3530b8dc40aee3fbce2a29eaa7d41036d1b"},"properties":{"dependency":{"package":"minimatch","version":"9.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"10e1e4f82a9508ae69e75968a8fa02c448af5d4192445e9aa3873b32aa01e6f0"},"properties":{"dependency":{"package":"serialize-javascript","version":"6.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"9c8b24b9032d61c6f95823555671ecea49732783a59ed4f22d060ef0aa72eb06"},"properties":{"dependency":{"package":"diff","version":"7.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 5 of 135 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; 135 of the 276 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: formats/cbor/commonMain/src/kotlinx/serialization/cbor/CborConfiguration.kt, formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/HoconEncoders.kt, formats/cbor/commonMain/src/kotlinx/serialization/cbor/Tags.kt, core/commonTest/src/kotlinx/serialization/internal/DummySequentialDecoder.kt, formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/serializers/ConfigMemorySizeSerializer.kt. 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":"formats/cbor/commonMain/src/kotlinx/serialization/cbor/CborConfiguration.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0247a37f87b3ea16fcd41a8ec374cd8c03cd52d36b1cd377e617cb9d3adcd0a"}},{"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":"formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/HoconEncoders.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fa2d72bd86bba2cb8710bd94192ef0b1440aa35a015792b34d6785e209e175"}},{"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":"formats/cbor/commonMain/src/kotlinx/serialization/cbor/Tags.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf17bcd5a12e6502526ed1c2a9f5c885f0b8dbeb4b75cf9124613eca8173848"}},{"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":"core/commonTest/src/kotlinx/serialization/internal/DummySequentialDecoder.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed485311a73e3786b80e0edaebaf033da8100b0bcb7cfba5c51e06061c960cc"}},{"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":"formats/hocon/src/main/kotlin/kotlinx/serialization/hocon/serializers/ConfigMemorySizeSerializer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"503e1d5d04b9f34905c5bdb244f05a8ad96ff473d954796b88b8502615c76e07"}},{"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 26 public types in \u0060kotlinx.serialization.internal\u0060 are marked as implementation by their own namespace, folder or name: \u0060AbstractPolymorphicSerializerKt\u0060 (core/commonMain/src/kotlinx/serialization/internal/AbstractPolymorphicSerializer.kt:1, \u0060internal\u0060), \u0060AbstractPolymorphicSerializer\u0060 (core/commonMain/src/kotlinx/serialization/internal/AbstractPolymorphicSerializer.kt:25, \u0060internal\u0060), \u0060CollectionDescriptorsKt\u0060 (core/commonMain/src/kotlinx/serialization/internal/CollectionDescriptors.kt:1, \u0060internal\u0060), \u0060CollectionSerializersKt\u0060 (core/commonMain/src/kotlinx/serialization/internal/CollectionSerializers.kt:1, \u0060internal\u0060), \u0060AbstractCollectionSerializer\u0060 (core/commonMain/src/kotlinx/serialization/internal/CollectionSerializers.kt:14, \u0060internal\u0060), \u0060MapLikeSerializer\u0060 (core/commonMain/src/kotlinx/serialization/internal/CollectionSerializers.kt:85, \u0060internal\u0060), \u0060ElementMarker\u0060 (core/commonMain/src/kotlinx/serialization/internal/ElementMarker.kt:13, \u0060internal\u0060), \u0060EnumsKt\u0060 (core/commonMain/src/kotlinx/serialization/internal/Enums.kt:1, \u0060internal\u0060), and 18 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/commonMain/src/kotlinx/serialization/internal/AbstractPolymorphicSerializer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"383ee90ac65901d2b4dfca5a4e8b9e4280b6b3fe722c58c7e8db18abc681c4d6"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 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":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"PF1","level":"note","message":{"text":"Benchmarks don\u0027t track allocations: A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement \u2014 allocations (the main way hot code pressures a garbage collector or allocator) aren\u0027t being measured."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmark/src/jmh/kotlin/kotlinx/benchmarks/protobuf/ProtoBaseline.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea9a8aa68065934200cd5daf9c0fba8c2260751566b1302e1a15b8202012caf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!configuration.allowSpecialFloatingPointValues \u0026\u0026 !value.isFinite()\u0060 appears character-identically in 2 files \u2014 formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonEncoder.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/TreeJsonEncoder.kt. 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonEncoder.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e638bd6b0915f70fef344137adca5fa4cb52f9e0637de7caefd7402e3dbed8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c \u003C ESCAPE_STRINGS.size \u0026\u0026 ESCAPE_STRINGS[c] != null\u0060 appears character-identically in 2 files \u2014 formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonStreams.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/StringOps.kt. 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonStreams.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0986bfd858e54f430344e5508ae50aab600edde7984ace1540e5a439652fbd89"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current \u003E= source.length || current == -1\u0060 appears character-identically in 2 files \u2014 formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt. 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/AbstractJsonLexer.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d83683114786bc065474d3ce554edf0957c1ede2c638e3bfb1e6870e7cebc80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentPosition != 0 || source.isEmpty()\u0060 appears character-identically in 2 files \u2014 formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/CommentLexers.kt. 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/lexer/BufferedJsonLexer.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abb9926f109f9fabbcb297b5981aa7d0b41c510e3a0ca70befcb880a5292af9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060other == null || this::class != other::class\u0060 appears character-identically in 3 files \u2014 core/commonMain/src/kotlinx/serialization/internal/NullableSerializer.kt, formats/json/commonMain/src/kotlinx/serialization/json/JsonElement.kt, formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/ProtoUnknownFieldHolder.kt. 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":"core/commonMain/src/kotlinx/serialization/internal/NullableSerializer.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee01c0c80e59ba4b1c7f91ccd52e4fde4745611b459369aaef7940611e403536"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060polymorphicDiscriminator != null \u0026\u0026 element !is JsonObject\u0060 appears character-identically in 3 files \u2014 formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonEncoder.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/TreeJsonEncoder.kt, formats/json/jsMain/src/kotlinx/serialization/json/internal/DynamicEncoders.kt. 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonEncoder.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"16aef5db197c80ab99f71182ca7450685830c88d36dd4a23de3860f16492c5ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.descriptor.kind == StructureKind.LIST \u0026\u0026 tag != MISSING_TAG \u0026\u0026 this.descriptor != descriptor\u0060 appears character-identically in 2 files \u2014 formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufDecoding.kt, formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufEncoding.kt. 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":"formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/ProtobufDecoding.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a728d924d10a9c964b6881055e293459cd1d1b86afaca8671080c41a9d7d114b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value != null || configuration.explicitNulls\u0060 appears character-identically in 2 files \u2014 formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonEncoder.kt, formats/json/commonMain/src/kotlinx/serialization/json/internal/TreeJsonEncoder.kt. 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":"formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonEncoder.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1da8870da5d7f0e77643e072115b28204e83e3f979e46be82ef72523fed7d1d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: 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":"core/jvmMain/src/kotlinx/serialization/internal/Caching.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c193cd3d74ed3bb5770e1baa8676281cb77cffcb38bcfaced52dc09c927ab59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"core/jvmMain/src/kotlinx/serialization/internal/Platform.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc5646b792621b0a95fd35b39c4d73ae16880686a9a79eab3ce1604c664c5b3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"core/jvmMain/src/kotlinx/serialization/internal/Platform.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae113a69ef139384ab3ef3a7214543d412d99429915b83a6ef472a9440c504e"}}],"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-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-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/"}]}],"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":14,"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."]}]}