{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"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":"D18","name":"Solution Shape","shortDescription":{"text":"Solution Shape"},"helpUri":"https://codehealth.canine.dev/dimensions/D18"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ImapEngine.ProcessCapabilityToken (cyclomatic 73): ImapEngine.ProcessCapabilityToken has cyclomatic complexity 73 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"750623b28deca64e0c3051d39665ab441becea8cb01cae6a99f8280a083c7901"}},{"ruleId":"D1","level":"warning","message":{"text":"SaslMechanism.IsProhibited (cyclomatic 70): SaslMechanism.IsProhibited has cyclomatic complexity 70 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SaslMechanism.cs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e30565b1d31e1d28e8b46311f96ac35d16a0d9b5b7d3356d27519ccb820aca"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.BuildQuery (cyclomatic 66): ImapFolder.BuildQuery has cyclomatic complexity 66 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1eda40b45c23484e4a3a5ec703df393ea17e749a2eba1241151e2dfc053fa93"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapEngine.GetResponseCodeType (cyclomatic 58): ImapEngine.GetResponseCodeType has cyclomatic complexity 58 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeaa41bcd09a6eb1dacc47ad80abccdb98d3051fc6fc7be5b41f084af7c33b3c"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.FormatSummaryItems (cyclomatic 45): ImapFolder.FormatSummaryItems has cyclomatic complexity 45 (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":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9f47612820735b00b312a40d2cd42a38eaec4389305c6e57f9d83b8cf5c134"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapEngine.ParseResponseCode (cyclomatic 43): ImapEngine.ParseResponseCode has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fa121b15adb66ab279f77c44f9a988c2ac0ab45c6b9f32342fb0549b260200"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapEngine.ParseResponseCodeAsync (cyclomatic 43): ImapEngine.ParseResponseCodeAsync has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"59515847268fe6974954ec3e599c1149c9f62d88823fe42657fe36d431077908"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.ParseSummaryItems (cyclomatic 41): ImapFolder.ParseSummaryItems has cyclomatic complexity 41 (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":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"88279917be71a4c59ca8e16f038df4fce1f76b73626fbc37fcd51f1915089008"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.ParseSummaryItemsAsync (cyclomatic 41): ImapFolder.ParseSummaryItemsAsync has cyclomatic complexity 41 (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":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d125a74b9a84cf5c5734ed69e3b3f6a2b22ec5facfd9279d5cba778ef337dc54"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.FetchStream (cyclomatic 38): ImapFolder.FetchStream has cyclomatic complexity 38 (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":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"004a543d2609204a88346485ed1b551f8f7472fc3f5a8ef3cbc894c565980d18"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.FetchStreamAsync (cyclomatic 38): ImapFolder.FetchStreamAsync has cyclomatic complexity 38 (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":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49fc37b7cce9b8469892c7e8d09f9a683d4571480e4b8f41f0b4135c9a5404d"}},{"ruleId":"D1","level":"warning","message":{"text":"BodyPart.TryParse (cyclomatic 36): BodyPart.TryParse 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":"MailKit/BodyPart.cs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"c265e8439f1dfce413e1fa6b60ecd4591b15c547763d087ce6be13eb1f669dd0"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapEngine.ProcessUntaggedResponse (cyclomatic 32): ImapEngine.ProcessUntaggedResponse has cyclomatic complexity 32 (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":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":2798}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fbf46a9b30fdcda00d9767f07aff7c3e47133a5accddb4894891890785b549"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapEngine.ProcessUntaggedResponseAsync (cyclomatic 32): ImapEngine.ProcessUntaggedResponseAsync has cyclomatic complexity 32 (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":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":2952}}}],"partialFingerprints":{"codehealthFindingId/v1":"62084e3737bceab23f3002f1d99528e8b48156194d5ba6b3911cacca281ad3e6"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationEntry.Parse (cyclomatic 30): AnnotationEntry.Parse has cyclomatic complexity 30 (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":"MailKit/AnnotationEntry.cs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fe3049493c8246d6785dba26e277dc1095809df13e9c19c19f4369f8f6b35e"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapCommand.Step (cyclomatic 26): ImapCommand.Step has cyclomatic complexity 26 (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":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aef87fd7c5bce4e4b7ef3d8b4c341d88edb763c88bc54eb4002d35dfb6fdf2a"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapCommand.StepAsync (cyclomatic 26): ImapCommand.StepAsync has cyclomatic complexity 26 (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":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"022ea629e8847e1fcea6d7ea33efee93d994b7ece38f65a589586de4d2b5ec4a"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapUtils.ParseInternalDate (cyclomatic 26): ImapUtils.ParseInternalDate has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff48a88578af33a9672b361d44ec97805f97760ec2b939557027b6369853f07e"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.ParseESearchResults (cyclomatic 25): ImapFolder.ParseESearchResults has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"373905cc1322ed8baee1eac8587b5cafd1197795c45203c80cf993f0546eb862"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.ParseESearchResultsAsync (cyclomatic 25): ImapFolder.ParseESearchResultsAsync has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"e395928753dc4334204886a413114637572c9ef4ffa407f669f9ae5a23c552a3"}},{"ruleId":"D1","level":"warning","message":{"text":"DigestChallenge.Parse (cyclomatic 25): DigestChallenge.Parse has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SaslMechanismDigestMd5.cs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0140c0bd269a06a2bbd04c58ae766e5d88e049dfef1c45d998359c2790143e8"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageThreader.GetThreadableSubject (cyclomatic 25): MessageThreader.GetThreadableSubject has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MessageThreader.cs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"5790708977f5266110216acc315075c6608f397f2df6dd9b95d2581dd0f79d95"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.DetectAuthSecrets (cyclomatic 23): ImapAuthenticationSecretDetector.DetectAuthSecrets has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a123c515ed5c633e8a7e9b0b57c8fa919e06ca0d247d9e0c48a1701b7c03b7"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapSearchQueryOptimizer.Reduce (cyclomatic 23): ImapSearchQueryOptimizer.Reduce has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapSearchQueryOptimizer.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec56f509fc533717abdda07df83a89ec46c37fc3e78bdad7c40406c75d3db28"}},{"ruleId":"D1","level":"warning","message":{"text":"Envelope.TryParse (cyclomatic 23): Envelope.TryParse has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Envelope.cs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"335acb7459d5c942cb7e0e39b687cd276982ca399559643ac74ce8063e6b122e"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapToken.Create (cyclomatic 22): ImapToken.Create has cyclomatic complexity 22 (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":"MailKit/Net/Imap/ImapToken.cs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecec4e9c8ba38a5792d82bbf9ea4a75a397178aea5d6639b20d85cf9f01ed31"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapUtils.AddFolderAttribute (cyclomatic 22): ImapUtils.AddFolderAttribute has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"c265d26a1d2635142ac1b0f421dc4dfdd93662068be6d246e28a79bf6f94cc10"}},{"ruleId":"D1","level":"warning","message":{"text":"SaslMechanismScramBase.Challenge (cyclomatic 22): SaslMechanismScramBase.Challenge has cyclomatic complexity 22 (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":"MailKit/Security/SaslMechanismScramBase.cs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb02d39ce04bc8cc904680da09118801a887afaa3c5f9f86a23f905018b5fee"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationEntry.ValidatePath (cyclomatic 22): AnnotationEntry.ValidatePath has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/AnnotationEntry.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dd84b1bb0cecb28367f5c635398bfdc2bd52025733ce8338787b0eb75b411f"}},{"ruleId":"D1","level":"warning","message":{"text":"UniqueIdSet.TryParse (cyclomatic 22): UniqueIdSet.TryParse has cyclomatic complexity 22 (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":"MailKit/UniqueIdSet.cs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13b1f295244e94e83a71f818e40d8ac3d2fe40af57138ae175e6cb8dd3e5544"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapEventGroup.Format (cyclomatic 21): ImapEventGroup.Format has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEventGroup.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6295f5482ecb71637b97a35ae2541c7a4378d1c5e451428c309c5bf56fc63a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.ProcessResponseCodes (cyclomatic 21): ImapFolder.ProcessResponseCodes has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef70798db930e19784053da4aa0ba69d4a4b55d3ef59cda9fd387921af978fc"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.QueueCreateCommand (cyclomatic 21): ImapFolder.QueueCreateCommand has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7b70340a03df42a390b2bfea649be62e9b83b44dc788fed0ec3cc05718d6cf"}},{"ruleId":"D1","level":"warning","message":{"text":"SslHandshakeException.Create (cyclomatic 21): SslHandshakeException.Create has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SslHandshakeException.cs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"730b68f54b241399f04ef98f0c727ad31753950a2a8555b1b46e85dc53482cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapCommand.ImapCommand.ctor (cyclomatic 20): ImapCommand.ImapCommand.ctor has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a288dcc2d624390bed6fb201a9285b84d44201faeea5b5471aff32c2c8e543c"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageThreader.GroupBySubject (cyclomatic 20): MessageThreader.GroupBySubject has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MessageThreader.cs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f1fc99f3da25dd34ba6e9686eb4adcd404af7dfabef51b05e7b88637397c0a"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.SkipLoginToken (cyclomatic 19): ImapAuthenticationSecretDetector.SkipLoginToken has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"91560d78392497e79f2d804ac0ed88e8051fd0dfa721f4b6c9d3c745da66015e"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.QueueStoreCommands (cyclomatic 19): ImapFolder.QueueStoreCommands has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFlags.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba71992bb84d67a2f709f55cb0d23956f684ad4427baf502f6e689427cec645c"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.TryQueueStoreCommand (cyclomatic 19): ImapFolder.TryQueueStoreCommand has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFlags.cs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca54645497560292900ae8e58af503671c2bbdb8c269c3476b91e6f2fcfd6d43"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageThreader.CreateIdTable (cyclomatic 19): MessageThreader.CreateIdTable has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MessageThreader.cs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a76342cc795dbba315afe1e1cd73668641cb301795d3269feaff89c21ef641"}},{"ruleId":"D1","level":"warning","message":{"text":"UniqueIdSet.EnumerateSerializedSubsets (cyclomatic 19): UniqueIdSet.EnumerateSerializedSubsets has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"3715527880a388d33643312837fe122731d24dc01bde594448224098473b79eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.SkipLiteralToken (cyclomatic 17): ImapAuthenticationSecretDetector.SkipLiteralToken has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0949e22b90acc58ac49fd63c17bd94020a94fe1e106e390e6064d8dc119e17"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.BuildSortOrder (cyclomatic 17): ImapFolder.BuildSortOrder has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9019f1d371d3ab88889407012416ae27f8750f95806ced0a6d7b6e866f045246"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapUtils.FormatIndexSet (cyclomatic 17): ImapUtils.FormatIndexSet has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d92e11a3296b2058d0babcab8d64917b5f69fd41ebe67e0649dd96f9ac2363"}},{"ruleId":"D1","level":"warning","message":{"text":"Envelope.Encode (cyclomatic 17): Envelope.Encode has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Envelope.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1aa43089263c20b04d3d8e5262986a2bd1d44291e096fbc33bb49fda109352f"}},{"ruleId":"D1","level":"warning","message":{"text":"Envelope.TryParse (cyclomatic 17): Envelope.TryParse has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Envelope.cs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2517411e4c8180e7049cd234dd2a627b4bba988d5b17990e769ee908937d14"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.DetectSecrets (cyclomatic 16): ImapAuthenticationSecretDetector.DetectSecrets has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ce94b549a668171bebc8ff8291cb46451fbcc935a9872cbdde39748b8694ef"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapEngine.DetectQuirksMode (cyclomatic 16): ImapEngine.DetectQuirksMode has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f484904128294c516cae446934e94766c05a75599bb44c48cd684c9ab0bf1d"}},{"ruleId":"D1","level":"warning","message":{"text":"ImapFolder.QueueSearchCommand (cyclomatic 16): ImapFolder.QueueSearchCommand has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d281707a7c88de74da1d9b4ce7dd277ec96ff1e45f3fc6fa6618167d023c1c9"}},{"ruleId":"D1","level":"warning","message":{"text":"EnvelopeAddress.ToMailboxAddress (cyclomatic 16): EnvelopeAddress.ToMailboxAddress has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea81f85b84d8ced5001fa93596c56c85ca7f6a6d7b9ab7a617f4651fdcbee2c"}},{"ruleId":"D1","level":"warning","message":{"text":"BodyPart.TryParse (cyclomatic 16): BodyPart.TryParse has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/BodyPart.cs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0e1b6cbe1f313de2625e57ac04d573f2c079637950f8d26aefa22f9008d231"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.ParseSummaryItems (cognitive 105): ImapFolder.ParseSummaryItems has cognitive complexity 105 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b635a56cca0964899755166f4ba66abc96215edf4cab1c1bb9d52284fab3b1c5"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.ParseSummaryItemsAsync (cognitive 105): ImapFolder.ParseSummaryItemsAsync has cognitive complexity 105 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da74ddf80a6cd8957b7fda106340de6e5a469b14aa10ea83c17afa77cad8c29"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.FetchStream (cognitive 90): ImapFolder.FetchStream has cognitive complexity 90 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"08969b36129c260913c152449e816d139a9002da68a512019f6bd36420c0f07d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.FetchStreamAsync (cognitive 90): ImapFolder.FetchStreamAsync has cognitive complexity 90 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe8aad07e18cae091d1f031adb4fcc42fb511e519cb5a20844f4378354fbac2"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.ProcessCapabilityToken (cognitive 77): ImapEngine.ProcessCapabilityToken has cognitive complexity 77 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cebb2dc009d174d00060f6835d100f01b675b71226d7dd38d3f7effff76b931"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.FormatSummaryItems (cognitive 68): ImapFolder.FormatSummaryItems has cognitive complexity 68 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd2217645fa3f4fff0df93f87a33ba6f973da0d072b9f2b0160f94f6597ea0f"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyPart.TryParse (cognitive 66): BodyPart.TryParse has cognitive complexity 66 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/BodyPart.cs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d0cc7cc93d289783bb3b28314a03295d70741776d4ccfafd28dad739c74424"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.GetResponseCodeType (cognitive 57): ImapEngine.GetResponseCodeType has cognitive complexity 57 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"796a8bf7a1b32c9c7ccab48d02ab959f153eff259e1fc1cb400f3d5a73bd781c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.ProcessUntaggedResponse (cognitive 55): ImapEngine.ProcessUntaggedResponse has cognitive complexity 55 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":2798}}}],"partialFingerprints":{"codehealthFindingId/v1":"9756e4cccba9835858c73417139bb28d6795d750e78faadf1556d2cd8028012b"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.ProcessUntaggedResponseAsync (cognitive 55): ImapEngine.ProcessUntaggedResponseAsync has cognitive complexity 55 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":2952}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dc36af6d59261496c65f317a3f3057806963a106f36f8de37ad324fede856f"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationEntry.Parse (cognitive 52): AnnotationEntry.Parse has cognitive complexity 52 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/AnnotationEntry.cs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc7a342ab7ee16bb2d8d421989f118f800be080580d2aa666c69a837bdf27b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.ParseESearchResults (cognitive 49): ImapFolder.ParseESearchResults has cognitive complexity 49 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"1856d3541b306b79cc42b9c7db0b3c067ab5a4319a1a960bcc8166bccf255ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.ParseESearchResultsAsync (cognitive 49): ImapFolder.ParseESearchResultsAsync has cognitive complexity 49 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b194a56e5b5f5ea641818e50878b0e9e726d5e835b1d5a657e032d6df976b27"}},{"ruleId":"D2","level":"warning","message":{"text":"SslHandshakeException.Create (cognitive 49): SslHandshakeException.Create has cognitive complexity 49 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SslHandshakeException.cs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca0e766ac5e13d4e22f0867756ee6a8895cb7bf87a74af905bd149e302b3e9e"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapCommand.Step (cognitive 44): ImapCommand.Step has cognitive complexity 44 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cb3c429334d9d7e74e663bfe74808b71299687bc88814d948d27be023b2fc6"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapCommand.StepAsync (cognitive 44): ImapCommand.StepAsync has cognitive complexity 44 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"2773abd2dc83e55a2f825970958ae06b7d166c4d015ae1fd33b02e63b36d4705"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapToken.Create (cognitive 44): ImapToken.Create has cognitive complexity 44 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapToken.cs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3747f38c647780e8d6a640a49e663ac8cb86ae175a3666d6b7a6a29d9b37e6f"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueIdSet.TryParse (cognitive 44): UniqueIdSet.TryParse has cognitive complexity 44 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ebbef0f3901a49891087a7124a3ca57eeb6e5ab798f6247eadb7b1a1c5cd37"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.ParseResponseCode (cognitive 42): ImapEngine.ParseResponseCode has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85db74feda3d8a26865899ad1c2efd93b4f701de3f1a89e260fe0e32c524a00"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.ParseResponseCodeAsync (cognitive 42): ImapEngine.ParseResponseCodeAsync has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"489e9c39f6ea4e4dfd04c84ce18b352966392657b6966e5f5d335470511b8f2d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.UpdateNamespaces (cognitive 41): ImapEngine.UpdateNamespaces has cognitive complexity 41 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b31adf76b7a4f7e5ce829a9163385e864b9c5044cc3e143022a6d2f1e47b37d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.UpdateNamespacesAsync (cognitive 41): ImapEngine.UpdateNamespacesAsync has cognitive complexity 41 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd99cf8f0ba0bfbb58b3360fe5c9bea058e1ddd1ccd9dcbf8b59325fd336343d"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageThreader.GetThreadableSubject (cognitive 41): MessageThreader.GetThreadableSubject has cognitive complexity 41 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MessageThreader.cs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6d64c086330347be65484cdbc57592095ea1953448b3af15a1dd1009233f73"}},{"ruleId":"D2","level":"warning","message":{"text":"SaslMechanismScramBase.Challenge (cognitive 37): SaslMechanismScramBase.Challenge has cognitive complexity 37 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SaslMechanismScramBase.cs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9379645caa19753fc380bd508aa4a2e9c3559292185191b4ca39c3a100956160"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.DetectAuthSecrets (cognitive 36): ImapAuthenticationSecretDetector.DetectAuthSecrets has cognitive complexity 36 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2da31d95567a456f736b8acf85f2e1b9f93741dfe7867434d71eabe67773ec"}},{"ruleId":"D2","level":"warning","message":{"text":"DigestChallenge.Parse (cognitive 36): DigestChallenge.Parse has cognitive complexity 36 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SaslMechanismDigestMd5.cs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff4f1442e04303af3d13bf15dc78ff6e3adda3bbd5b05d970ea884d78c7f7a8"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageThreader.CreateIdTable (cognitive 35): MessageThreader.CreateIdTable has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MessageThreader.cs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"804acdf32c8ac26fa564d9f6122c4028c5a8c560838214dff426efb69b1d4472"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueIdSet.EnumerateSerializedSubsets (cognitive 35): UniqueIdSet.EnumerateSerializedSubsets has cognitive complexity 35 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"432e17339430dc3bd977b0aaedb98a881237a4d3bafae76bee114e0925d5ff92"}},{"ruleId":"D2","level":"warning","message":{"text":"SaslMechanism.IsProhibited (cognitive 34): SaslMechanism.IsProhibited has cognitive complexity 34 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SaslMechanism.cs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee5fc783c7ad22de42063b1e30f705edc606d1306c02c967ff060fe42433b1a"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.SkipLoginToken (cognitive 32): ImapAuthenticationSecretDetector.SkipLoginToken has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73f8afe349545417604e0694ab49a2f793afeb304178ff53e8c5083616dc71f"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapCommand.ImapCommand.ctor (cognitive 32): ImapCommand.ImapCommand.ctor has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3013094318e075121f4d3f94f7e2f149628704600bd7b9dc1d43ca8a8695bf"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.BuildQuery (cognitive 31): ImapFolder.BuildQuery has cognitive complexity 31 (threshold 15). 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":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4115c892299ea11c7a85d98d1149711f0f642f539f9de6be85673f9075d1773c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEventGroup.Format (cognitive 30): ImapEventGroup.Format has cognitive complexity 30 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEventGroup.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c73cbfacc2328f76d958df59416513ff0ca1bd0ea3afb63514fb583234594ce"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyPartCollection.IndexOf (cognitive 29): BodyPartCollection.IndexOf has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/BodyPartCollection.cs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e4ece0751983c5ebf086424a7ecbeab751d22e6fb4f46c7369be609499507d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.FormatIndexSet (cognitive 28): ImapUtils.FormatIndexSet has cognitive complexity 28 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f497e3374699bb99a6af097a3f454c4641d3d2db98bc4755da2506941dea34d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Envelope.Encode (cognitive 28): Envelope.Encode has cognitive complexity 28 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Envelope.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6f4efa1ebbf898013768cc51748fc516bd46aad7e1690e8181a9b059a403ec"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.QueueSortCommand (cognitive 27): ImapFolder.QueueSortCommand has cognitive complexity 27 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"915776e833a0ab4f42ee9a7559a5ebe39773d7af756fe9747dc5704de3d20c2e"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageSummary.TryGetMessageBody (cognitive 27): MessageSummary.TryGetMessageBody has cognitive complexity 27 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MessageSummary.cs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d44043705d04507ae4f463b28899b7bfb9469c22df9888223954e954f27bb70"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.TryQueueGetSubfoldersCommand (cognitive 26): ImapFolder.TryQueueGetSubfoldersCommand has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b119648029243ca9a939c0f6cd850675723025410243aa738f3c5c03781d5b"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.QueueSearchCommand (cognitive 26): ImapFolder.QueueSearchCommand has cognitive complexity 26 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3746a823a1a5c8434bf82ddbe13a3e0de5dddfbd5d2cdb155f0869e7a5dfe3"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteArrayBuilder.Equals (cognitive 26): ByteArrayBuilder.Equals has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/ByteArrayBuilder.cs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c5ea21b49d32d6ac98dc3f6d8e8a5bca9997c97b4ef635c361c53bf50d751d"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueIdSet.BinaryInsertAscending (cognitive 25): UniqueIdSet.BinaryInsertAscending has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b5e3d5ed601bba60dfb0b8879a87675896b7e858183483e96c9e81eaf14a65"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueIdSet.BinaryInsertDescending (cognitive 25): UniqueIdSet.BinaryInsertDescending has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"472d6823de1acf61445f7c4fa5df581b055c5b1cb5c2ac6c72b3f63154d40498"}},{"ruleId":"D2","level":"warning","message":{"text":"Envelope.TryParse (cognitive 24): Envelope.TryParse has cognitive complexity 24 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Envelope.cs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea6c0e13e09e96f9d7e2b42efd12b0a2639324d0bfbaec0598f4a4bdabd15b5"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEncoding.Decode (cognitive 23): ImapEncoding.Decode has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEncoding.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f9cd70fef28631d51f657d86d07e84974e807826aa0670f2ad10f79194e80c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.QueueGetFoldersCommand (cognitive 23): ImapEngine.QueueGetFoldersCommand has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":4033}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8af470a5484869b634eecb15cd7c3f90c728df2aff30012eddd79505a6a877"}},{"ruleId":"D2","level":"warning","message":{"text":"Envelope.TryParse (cognitive 23): Envelope.TryParse has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Envelope.cs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"257687070b37b428f1dbb17fd69f62ac742d01e9b2bc4e7a5eb1bacfbec33f70"}},{"ruleId":"D2","level":"warning","message":{"text":"ProtocolLogger.Log (cognitive 23): ProtocolLogger.Log has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/ProtocolLogger.cs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"162cb33882d54085a1799dfda94e0be242f74b7610e1afaec2cc10d0b93c3642"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapClient.AuthenticateAsync (cognitive 22): ImapClient.AuthenticateAsync has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/AsyncImapClient.cs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f27ea7e6eafecd570840564164c352f0418f95905655368317aa8c2ec17ad7e"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.SkipLiteralToken (cognitive 22): ImapAuthenticationSecretDetector.SkipLiteralToken has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea0ccb315d16e2d20a7d7dcd9b32ce30689a4d4c94b8ccb315cc043d900fc32"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapClient.Authenticate (cognitive 22): ImapClient.Authenticate has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f34d26810f5877a9e43726f02abf26feec5cdc4fe32e8d6ba204a1de7bcb7d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.ProcessResponseCodes (cognitive 22): ImapFolder.ProcessResponseCodes has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a794feb68b0b65e3c978bf5c742740e78bfa706c3520b9f796b188d04437d46"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.QueueStoreCommands (cognitive 22): ImapFolder.QueueStoreCommands has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFlags.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5659d790404ac6b5e049b2f318ae86f859cdcb81fd37d6e12b75ca060f116564"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.TryQueueStoreCommand (cognitive 22): ImapFolder.TryQueueStoreCommand has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFlags.cs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"9796e25a8e1e6e9cae8ad46128ce7e93fdf17efb06268877c07dcd1a887f4948"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageThreader.GroupBySubject (cognitive 22): MessageThreader.GroupBySubject has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MessageThreader.cs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a8a9ee7bf77df25c02b98e7d71fd7809e6e8a702d6de335bb2f3a4edf06dac"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.AddFolderAttribute (cognitive 21): ImapUtils.AddFolderAttribute has cognitive complexity 21 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb2d68cb3bef86c99ec9e7e36316fd1acfa89ab664c4653d3ec9b03e0a3f638"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketUtils.Connect (cognitive 21): SocketUtils.Connect has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/SocketUtils.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21bae546206e7a9fb419321f2f4ee6217c9813de59597d8746126bd29403424"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationEntry.ValidatePath (cognitive 21): AnnotationEntry.ValidatePath has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/AnnotationEntry.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f58d3a8cd2790cc0ed3e04e327281ec1636d8c196cd7a9f65e67954e6de7fa6"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueIdSet.BinarySearch (cognitive 21): UniqueIdSet.BinarySearch has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15ba71778d9d69a3104fcd0c88e2471e4b7babae52d071f6169844d46f59ce6"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEncoding.Encode (cognitive 19): ImapEncoding.Encode has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEncoding.cs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9c1c868fefd14a1f17f3e0300ca5e1235092f172f7385fa204916c39df39d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.QueueCreateCommand (cognitive 19): ImapFolder.QueueCreateCommand has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede279d247a1d8e419a0a25de8d115aad946c21fc1133ee3b45395b5e576669d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.QueueMultiAppendCommand (cognitive 19): ImapFolder.QueueMultiAppendCommand has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":4617}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6eb543873c086495641245bf94fe26eac0d718b945c32e06ed24bf709d4877c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.ParseInternalDate (cognitive 19): ImapUtils.ParseInternalDate has cognitive complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1641a6608021fa51b1ebc30db71e6714fe05eb5e3e3e432e9112888aa1537df"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.ParseBody (cognitive 19): ImapUtils.ParseBody has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"c423a6ccf67216f8f39f61d14b7538498f1b8b0e7f85083199e84c17288f232a"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.ParseBodyAsync (cognitive 19): ImapUtils.ParseBodyAsync has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5b550c7f6d45b9aef5988715e1d5b1bd3c243984e1e8551e89e7520373f5fa"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyPart.TryParse (cognitive 19): BodyPart.TryParse has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/BodyPart.cs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"8415de664d4f84c4fa9fdd5274ac8b1eb3dde5dfa48d13450290c7baa86d62e3"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapClient.PostConnectAsync (cognitive 18): ImapClient.PostConnectAsync has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/AsyncImapClient.cs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac54bd1a6c535f4c1fbb1a4183f683c73b14e0c7504ee943704a24b4ff171912"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.DetectSecrets (cognitive 18): ImapAuthenticationSecretDetector.DetectSecrets has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a087146f75d8aeeb623c2fe984d4196db1951116f4a1e985ec5db2605ed6f2"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapClient.PostConnect (cognitive 18): ImapClient.PostConnect has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aebdfab167f4833144c5c77364afc3b8e049a2085dc197c9fa52bfd96c393d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapEngine.GetStatusQuery (cognitive 18): ImapEngine.GetStatusQuery has cognitive complexity 18 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":3993}}}],"partialFingerprints":{"codehealthFindingId/v1":"7735ac104e8e1c5affafb40ee68eaa0554e245fc29cc18a5e9f5f32cc753215b"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.QueueStoreCommands (cognitive 18): ImapFolder.QueueStoreCommands has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFlags.cs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa96b274ff41a78e408ae4965c032bc903600c768f16aef4df9dea126934949"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.TryQueueStoreCommand (cognitive 18): ImapFolder.TryQueueStoreCommand has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFlags.cs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"468b9dbb33c1b3ad33273d09c7270161f369ca3e138a05a1ad8eb29bb2b43a97"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.ParseFolderList (cognitive 18): ImapUtils.ParseFolderList has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"648550d53ca3865aed913a4feed3c413826ef0538be7789dcda1d69edea520ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.ParseFolderListAsync (cognitive 18): ImapUtils.ParseFolderListAsync has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0888b2590ad6ed8b393bcdd386aea6ea853cc1eca923df78bcfb1abbc705cb5"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.ParseMultipart (cognitive 18): ImapUtils.ParseMultipart has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"342bf85fe763ec956a181536a06ddc637833279c5ca5dfc53532a250969c9724"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapUtils.ParseMultipartAsync (cognitive 18): ImapUtils.ParseMultipartAsync has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa597ef0f4c7d5a08d076beb8cbee5d7cd0b8a1ce8ccf5df3b1bb000c9dbee6b"}},{"ruleId":"D2","level":"warning","message":{"text":"SaslMechanismDigestMd5.Challenge (cognitive 18): SaslMechanismDigestMd5.Challenge has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SaslMechanismDigestMd5.cs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3da0d48afa4d09bc0606ce7bb7d17f28e59f20edc60e9a012cf35efb4df448"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapSearchQueryOptimizer.Reduce (cognitive 17): ImapSearchQueryOptimizer.Reduce has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapSearchQueryOptimizer.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c38c0504963ecd2f973f0033d75290ce7b4e69d2adf166b96b3f5b660adcb9"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapStream.TryReadQuotedString (cognitive 17): ImapStream.TryReadQuotedString has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapStream.cs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabe1983af312015d2c0e7afd9570ba24d4ef6e0b3de1eba728d4faa3beba214"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyPart.TryParse (cognitive 17): BodyPart.TryParse has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/BodyPart.cs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"991eec4103aabf3e83cbd8cf8ce5bd880027d18f341d5fc09779483e42991b1e"}},{"ruleId":"D2","level":"warning","message":{"text":"Envelope.TryParse (cognitive 17): Envelope.TryParse has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Envelope.cs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"c136d37b21a44a34b933cb0aa0ca3003a492e5fdab3259ed23209791195d3959"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapAuthenticationSecretDetector.DetectLoginSecrets (cognitive 16): ImapAuthenticationSecretDetector.DetectLoginSecrets has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapAuthenticationSecretDetector.cs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b50936a919b97774c24818a23c5f06cf26d76abe6e8c98606a68259ef45c51a"}},{"ruleId":"D2","level":"warning","message":{"text":"ImapFolder.BuildSortOrder (cognitive 16): ImapFolder.BuildSortOrder has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b721d20e29f247106bbceb477a98ad414ea366b80ed2a1ed85d7284ecfc29ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyPart.TryParse (cognitive 16): BodyPart.TryParse has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/BodyPart.cs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5feda73bbf3cb8a7e42d18cb7d6d5da79462eba84f514ce68119ef8a119dedd"}},{"ruleId":"D2","level":"warning","message":{"text":"Envelope.TryParse (cognitive 16): Envelope.TryParse has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Envelope.cs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dac2444cb401ca5447615d7bf890bec2daeec120680d5f7ba0e2f4fe95b5a0"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueIdSet.Append (cognitive 16): UniqueIdSet.Append has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bd6e28ec196cf4ddb3eb17b71de2e707bc71e48f1d7fb8111e7a9c630cb4dd"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueIdSet.Remove (cognitive 16): UniqueIdSet.Remove has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c7e1488a229633259c51b2098e98d050e9f81348083f701d0b3976e6ee1603"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImapFolder: TooManyMethods \u2014 4808 significant lines (blank, comment-only and punctuation-only lines excluded), 397 methods, declared across 5 files: Imap/ImapFolder.cs (199), Imap/ImapFolderFetch.cs (120), Imap/ImapFolderSearch.cs (51), Imap/ImapFolderFlags.cs (16), \u002B1 more file(s). 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":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d94cfc14bd83ec8876a431510f947a4c3b600d2c5913adbd59dbceaaaa09b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MailFolder: TooManyMethods \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), 217 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MailFolder.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"441a810b637b3d1ab71f76f5fdafc8ead2a129ef38d0c29239ab123a3d9485ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Imap/ImapEngine.cs: FileTooLong \u2014 2165 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd054946b027e9cf0ecf8631d38daa45cf5fc7ab7758ed8a4e328658593d794"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImapEngine: TooManyMethods \u2014 2104 significant lines (blank, comment-only and punctuation-only lines excluded), 117 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21919dbf5d90398994c6eec8a8758af1576bc694087cead8b2988527a193f41a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Imap/ImapFolderFetch.cs: FileTooLong \u2014 1927 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a5fca289fb10ef527f7dbfde6bffd491ebb7a4ecf1572d29ea162d52fb04e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Imap/ImapFolder.cs: FileTooLong \u2014 1831 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c05c1f8d9178c69d9432a10abecbb6a58fe33f00bca3b291fe59f6e7e43b17"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImapClient: TooManyMethods \u2014 1142 significant lines (blank, comment-only and punctuation-only lines excluded), 100 methods, declared across 2 files: Imap/ImapClient.cs (78), Imap/AsyncImapClient.cs (22). 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":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"079f781f07421e4e473c7f5e6c2a640361bb94f3a220ea41a12d2cabf60f2a15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Imap/ImapUtils.cs: FileTooLong \u2014 1542 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b04dd3b58e48d892ab4d6d05e2dca2082eb793297a35f14b0a267fe064c2864"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImapUtils: TooManyMethods \u2014 1486 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15db28c87d1acb9b5911d4a96b41602cc9e8ceda2ccfd274ae9a2d8e6990e8db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Imap/ImapFolderSearch.cs: FileTooLong \u2014 925 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderSearch.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bd0f81ddae3a51333f02a720403ea554aec842754841c6f89da57f3037a4f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Imap/ImapClient.cs: FileTooLong \u2014 881 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13764ab9085cf8904399c95937ff48a3103caaabfaea9803e3dd28ee1b9ff54"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImapStream: TooManyMethods \u2014 468 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapStream.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"060ac0b3a4f2ec3d81960bf69340e57194b1c148af386f96bd1297589d5ec24a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MailSpool: TooManyMethods \u2014 47 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MailSpool.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce11aad96a8ca952ad1a6819a824b433a1c09c8324c83bc7fcc6a98c5534044a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MailService: TooManyMethods \u2014 178 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MailService.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed95c4d6ebecb7f878bd3a54c93b8b93d41afb419beeae4a4d3dc1632b8e91c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MailKit/MailFolder.cs: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MailFolder.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b96badcb7bfd163d5cad243ae52e1a4bc9b05923b46255bc2bbfabba88ed8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): MailKit/Net/Imap/ImapClient.cs:262-280 | MailKit/Net/Pop3/Pop3Client.cs:261-279 | MailKit/Net/Smtp/SmtpClient.cs:628-646 \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 \u0060MailKit/Net/Imap/ImapClient.cs:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a49531bfbdb0ac80aba617c14acfa9a6a2a44fad541048abf6d7cc833f668c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): MailKit/BodyPart.cs:328-346 | MailKit/Envelope.cs:380-398 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060MailKit/BodyPart.cs:328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/BodyPart.cs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5813a487e008e9ea071caac093d7a784308d0b89593d1a0f8f55f9e1eca51831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): MailKit/UniqueIdSet.cs:307-324 | MailKit/UniqueIdSet.cs:364-381 \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 \u0060MailKit/UniqueIdSet.cs:307\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":"MailKit/UniqueIdSet.cs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"5085f5c7be6a86a0b180d34a2325ff1bc04e80298f5c47f0340761b48056a047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): MailKit/Net/Imap/ImapClient.cs:1328-1344 | MailKit/Net/Imap/ImapClient.cs:1361-1380 \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 \u0060MailKit/Net/Imap/ImapClient.cs:1328\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":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b333c098731c348b34ead884de8441200e2371db554e617d8945dca12df9bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): MailKit/Net/Imap/ImapClient.cs:1789-1804 | MailKit/Net/Pop3/Pop3Client.cs:1433-1448 \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 \u0060MailKit/Net/Imap/ImapClient.cs:1789\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":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e46efae0fe7013300003dea1001ab76f3ffdda4fba38986dd7dad505c37afeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): MailKit/Net/Imap/ImapStream.cs:956-970 | MailKit/Net/Pop3/Pop3Stream.cs:610-624 \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 \u0060MailKit/Net/Imap/ImapStream.cs:956\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapStream.cs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb4e159451d271bafd722f655454e2309613ec9d5594dc5916674977b457ddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): MailKit/UniqueIdSet.cs:284-298 | MailKit/UniqueIdSet.cs:341-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060MailKit/UniqueIdSet.cs:284\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/UniqueIdSet.cs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4479e1dd8aff41fdbb178bb1d353a0fa28f3e2efad2ebeb00821c96facf944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): MailKit/Net/Imap/ImapClient.cs:1394-1407 | MailKit/Net/Pop3/Pop3Client.cs:1051-1064 | MailKit/Net/Smtp/SmtpClient.cs:1291-1304 \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 \u0060MailKit/Net/Imap/ImapClient.cs:1394\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":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19c5a034e74af96658cacc320b35936e906087e2ef3e076ac28725ace99635f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): MailKit/Net/Imap/ImapStream.cs:1261-1274 | MailKit/Net/Pop3/Pop3Stream.cs:1014-1027 | MailKit/Net/Smtp/SmtpStream.cs:987-1000 \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 \u0060MailKit/Net/Imap/ImapStream.cs:1261\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapStream.cs"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"40258ed078868ee24594f6ef1f9d84bb83fee5204fb7afe88913238a590d557a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): MailKit/Net/Imap/ImapClient.cs:1592-1605 | MailKit/Net/Pop3/Pop3Client.cs:1230-1243 \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 \u0060MailKit/Net/Imap/ImapClient.cs:1592\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfc027599846820e577027c8c1a6bfabd4d74539f01c4bd9ebb854a7b287a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): MailKit/Net/Imap/ImapStream.cs:1117-1131 | MailKit/Net/Smtp/SmtpStream.cs:836-849 \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 \u0060MailKit/Net/Imap/ImapStream.cs:1117\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":"MailKit/Net/Imap/ImapStream.cs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"281fae36ef13532c9c53811b70c4d17f66d35bbb06c5a3a2b78363f3c7053d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): MailKit/BodyPart.cs:607-620 | MailKit/BodyPart.cs:664-677 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/BodyPart.cs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d4bff7d44f1ea9e89e19b5f57a85ba938172b7a0fda723733419b6c4f37bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): MailKit/Net/Imap/ImapEngine.cs:3429-3441 | MailKit/Net/Imap/ImapEngine.cs:3911-3922 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":3429}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce13a7078784a18775e84dc65acbcfa85395ace59534defc448ec69dab4add6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): MailKit/Security/SaslMechanismOAuth2.cs:143-152 | MailKit/Security/SaslMechanismOAuthBearer.cs:194-203 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060MailKit/Security/SaslMechanismOAuth2.cs:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SaslMechanismOAuth2.cs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddde909c4f7ff85e4014a0bf498e8fb30119e81faf424ea06d2139f8befbce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): MailKit/Net/Imap/ImapFolderFetch.cs:370-377 | MailKit/Net/Imap/ImapFolderFetch.cs:402-409 \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 \u0060MailKit/Net/Imap/ImapFolderFetch.cs:370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc728007e972cae8bdeed9fd856af1b6aa0ce6cf3a2b21161a115df93950d62"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ImapFolder (LCOM4 14): ImapFolder\u0027s methods form 14 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"de087fb99bd4fc363627401e15b6e53b29bec489d3c3fd27f07ffe80f5772034"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MailService (LCOM4 7): MailService\u0027s methods form 7 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MailService.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1911c0ac39ccff61bfeea72d56e46c712cf38386780bf5cc6f9e0994092f922b"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 test suite did not build: Coverage NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code \u2014 a repository written for an older SDK band can compile for you and not for us. Run \u0060dotnet build\u0060 on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D11","level":"warning","message":{"text":"Test reliability not measured \u2014 test suite did not build: Test reliability NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no test ever ran and flakiness could not be exercised. It is excluded from the score rather than counted as a defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code \u2014 a repository written for an older SDK band can compile for you and not for us. Run \u0060dotnet build\u0060 on this commit: if it succeeds, the gap is ours and nothing here is a defect in your code."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"daf09aaa4e14533ca5ff2442790c6867a248b3a07dae410d48e7d6405d6fec30"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MailKit/Net/Imap/ImapCommand.cs: MailKit/Net/Imap/ImapCommand.cs changed 2 times in last 90 days, max complexity 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40e7bed7f980d8bde597c3c96672ea059c119db9583a6b894da519829249731"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MailKit/Net/Imap/ImapFolder.cs: MailKit/Net/Imap/ImapFolder.cs changed 2 times in last 90 days, max complexity 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b810fc0a1dfadda6bb2b1a4bd301621baa91b2a08e215c686c9d6a4616dbef7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MailKit/Net/Smtp/SmtpClient.cs: MailKit/Net/Smtp/SmtpClient.cs changed 2 times in last 90 days, max complexity 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Smtp/SmtpClient.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0be956449660f1f115cda8392e9189e9b795c49933232adc9bd9260708e47f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MailKit/Net/Smtp/SmtpStream.cs: MailKit/Net/Smtp/SmtpStream.cs changed 2 times in last 90 days, max complexity 18. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Smtp/SmtpStream.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea55d9051e0a4c4a4133cec3634ec1b186f1afae28968955a8be0975ea74b26"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MailKit/Security/SaslMechanismNegotiateBase.cs: MailKit/Security/SaslMechanismNegotiateBase.cs changed 2 times in last 90 days, max complexity 15. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Security/SaslMechanismNegotiateBase.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9223a0952f92a0371daff61a84341186c7963020cbf6f23fc473112d427f44"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 42 significant file(s) lose their only recent owner: MailKit/MailFolder.cs, MailKit/IMailFolder.cs, MailKit/Net/Imap/ImapFolder.cs, MailKit/Net/Imap/ImapFolderFetch.cs, MailKit/Net/Imap/ImapEngine.cs, MailKit/Net/Imap/ImapUtils.cs, MailKit/Net/Smtp/SmtpClient.cs, MailKit/Net/Imap/ImapClient.cs (\u002B34 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"181125d33a85d1034f88126e5c5b31115f210110822f8fcbed8bb8e33b6c6020"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj \u2014 17 warning codes suppressed in one element: A single \u003CNoWarn\u003E suppresses 17 warning codes (1701;1702;CA1068;CA1510;CA1512;CA1513;CA1835;CA2012;IDE0016;IDE0056;IDE0057;IDE0060;IDE0063;IDE0066;IDE0090;IDE0180;IDE0251) in one stroke \u2014 one team-wide decision, not 17 independent debts. Review the set centrally rather than code-by-code; each code you can re-enable is one less blanket suppression. (Every code still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MailKitLite.csproj"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca31db19e461e32b4937bb794873ae3bd6fdc8b27c20b96ec93b7551fb89ed9"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj \u2014 17 warning codes suppressed in one element: A single \u003CNoWarn\u003E suppresses 17 warning codes (1701;1702;CA1068;CA1510;CA1512;CA1513;CA1835;CA2012;IDE0016;IDE0056;IDE0057;IDE0060;IDE0063;IDE0066;IDE0090;IDE0180;IDE0251) in one stroke \u2014 one team-wide decision, not 17 independent debts. Review the set centrally rather than code-by-code; each code you can re-enable is one less blanket suppression. (Every code still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/MailKit.csproj"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ff747959718317b15b16d78dc66180ba0e170c4cdbbccee1f814d5af82e2cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: improve validation \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":"MailKit/AnnotationAttribute.cs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca6c484241909f84493ae1792117f569a7371720abe275aed33417ade96d8c6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be moved somewhere else... \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":"MailKit/ByteArrayBuilder.cs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab1c84757f00c9ae25b7427813a42b799de8c61f71e6f8af3abd766061821db"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Does this make sense to have here? Or should I have an extensions class for byte[] that has this? \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":"MailKit/ByteArrayBuilder.cs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56cb950d9a410c119e2033504611b66853b9ffcdd05e14b6ca28de60aa34f6f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Move this to the MailKit namespace. It wasn\u0027t ever supposed to be in MailKit.Net.Smtp! \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":"MailKit/DeliveryStatusNotificationType.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4c4960e3ee7cfc151ba5786edb22fc49c24244ebf77ee69e24f40153e6b376"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this shouldn\u0027t be a nullable since we can just use UniqueId.Invalid \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":"MailKit/MessageThread.cs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1ca74f64086c41292f11ab177ad1fcd83794cec6d55af841e73224cd90a4b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: rfc9208 and rfc9394"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCapabilities.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8157348654915294cd215d06f6c0facd48fbf46173c5d9f3a4dabff4b9d4a03d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should this take a ParserOptions argument? \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":"MailKit/Net/Imap/ImapClient.cs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"352dd11f6e8736f23e244b2a7d3a14abbb9ceefe3f38bfcd46afae2e1ea14011"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"685a62f03b399a6aab4c70cf78d80e8ff1b13d55a053ed6b8eb3deddfe94b9b3"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e773d899269733041378e72c0f4482e5d01cb841a5ea7c46f61a68c22371066"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"245f7689f4ca5821004b7f0af999418c8903437a625966bff7803120711ad280"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 8 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapCommand.cs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9d633626c41ef1f14e5bbd3543468c0ddc2cdd5761c81a505fed63cc5e790d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: All callers expect CRLF to be trimmed, but many also want all trailing whitespace trimmed. \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":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf8286f2b825b3c18be4cb79a12c87ddca637a1daeb5ed28577e30c1ab858d4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: All callers expect CRLF to be trimmed, but many also want all trailing whitespace trimmed. \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":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"75918cd8c5814bcc0d5034e65a8df090fe01da008db3e6d0639d77cd1dbac57d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should this search EncodedName instead of FullName? \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":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":3405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c293a6f60cf599eed67171cad44cc9ba5cb18caff32d2e86eb5bf887a601f379"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbadb19ea4ae9952b4dd85efd906ab3d24833c1efe1cf57c9c053afe31aa0e2d"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapEngine.cs"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6118a2c2475c735c9648bab2f21a4d4beca5d3a973bb751acd1be04831bdd0"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/Net/Imap/ImapUtils.cs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d49e584b7c94ba5e2eeee23a666d739d721953deac2ec58ffba37527a7e130"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should we verify that each ImapFolder belongs to this ImapEngine? \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":"MailKit/Net/Imap/ImapEventGroup.cs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"413f281aee453beb36fccd9444a01e685b25bd80102575691fb0f32f605b2753"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: use an aggregate progress reporter \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":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":4753}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d70a53fa73e92842df8dfb777aa52861c515fa49c1912cbffa8bd06aa55418d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: use an aggregate progress reporter \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":"MailKit/Net/Imap/ImapFolder.cs"},"region":{"startLine":4835}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d17c586211faaa16aecb5c9a3b376484ac7b1db9e19ae2d124ae8536539c035"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Do something with the AnnotateResponseCode if it exists?? \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":"MailKit/Net/Imap/ImapFolderAnnotations.cs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf94644cffb20b05e951fa961a87d291e31767306193dd28740614855fea9213"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: if the IMAP server supports the CONVERT extension, we could possibly use the \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":"MailKit/Net/Imap/ImapFolderFetch.cs"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03837cacbb31d7044ad36c755b019f281e23fb10eea6a3dbd84699ad4eda328"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: use SIMD to optimize this \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":"MailKit/Net/Imap/ImapStream.cs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a4979d576831627cb3e902b298a1622248ed3b4c62c07581cb85115fb82eb6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This API should throw NotSupportedException rather than returning null if the mechanism is not supported. \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":"MailKit/Security/SaslMechanism.cs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"119861fa47c62474a139c58b3b22bc0c81f466897f3eea6db1a3ad7ae828eff8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: make sure this is supported \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":"MailKit/Security/SaslMechanismDigestMd5.cs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37283cd28a7a07ad5a95ce244d2eab9f76ac9b4998948c2bc430a00e94694e5"}},{"ruleId":"D18","level":"warning","message":{"text":"Monorepo: only 1 of 6 solutions was scored: This repository contains 6 .NET solutions, but a scan analyzes ONE. Every score, lens, and finding here reflects only \u0060MailKit.sln\u0060 \u2014 the other 5 (\u0060MailKitLite.sln\u0060, \u0060samples/ImapClientDemo.Android/ImapClientDemo.Android.sln\u0060, \u0060samples/ImapClientDemo.iOS/ImapClientDemo.iOS.sln\u0060, \u0060samples/ImapClientDemo/ImapClientDemo.sln\u0060, \u0060samples/ImapIdle/ImapIdle.sln\u0060) were not analyzed and are not represented in the headline. To cover them, scan each solution as its own target and group them in a Solution or Product for a portfolio roll-up. If a secondary solution is an archived or vendored tree, declare it \u2014 \u0060.gitattributes\u0060 (\u0060path/** linguist-vendored\u0060) or \u0060.editorconfig\u0060 (\u0060[path/**] generated_code = true\u0060) \u2014 to exclude it from discovery the same way generated code is."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9820d63ad953a490cc55d49a4e9b151f9620059ccf07407771ad51beb70154c"}},{"ruleId":"D18","level":"warning","message":{"text":"Solution references a project that does not exist: \u0060MailKit.sln\u0060 declares 1 project file(s) that are missing from the tree (\u0060submodules/MimeKit/MimeKit/MimeKit.csproj\u0060). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit.sln"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"109af4776d8d5d69c50176428c54690a5048ff7d12245a0eaa4a544c63e933dd"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found at common paths; consider documenting architectural decisions in Docs/ADL/ or similar."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D23","level":"note","message":{"text":"Bounded contexts not declared: At 106k LoC across 8 projects the codebase is large and multi-module, so explicit bounded contexts are needed. Name this codebase\u0027s bounded contexts (\u22652 module groups, e.g. per subsystem) so cross-boundary type coupling can be assessed. Declare them in \u0060.codehealth/config.yaml\u0060 at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it \u2014 e.g. \u0060architecture:\u0060 \u2192 \u0060contexts:\u0060 \u2192 \u0060Billing: [\u0022src/billing\u0022, \u0022Acme.Billing\u0022]\u0060, \u0060Catalog: [\u0022src/catalog\u0022, \u0022Acme.Catalog\u0022]\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1c7e276c9c682731f01819ed5378b90ca320cde1b583c90920172911598362b3"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022THE SOFTWARE IS PROVIDED \u0022AS IS\u0022, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\u0022 \u2014 "},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/AccessControlList.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c960724bcd093cd1ea57f4c50973882743dae7a85eee5b99a143b9cb0c620671"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022COPYRIGHT (c) 2013-2026 .NET Foundation and Contributors\u0022 \u2014 "},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MailKit/DuplexStream.cs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2cabad20f21c9e4be7059b9ffef59cc7e1d9f02e0b58e6fce6defea3d1fa17"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060MailKit(netstandard2.0)\u0060 (106065 LoC, 176 public types across 7 namespaces). Review these for cohesion \u2014 split a project that spans unrelated responsibilities."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31b774f54fb8e68ed25cc8ba2bb1b7a6c3092474253918a30f9244a060a2f885"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"884b5993296b8af577e9bb3f8f62141ffbfcc410fd2908838b176e376c29723e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"453bd1e22a2ed89ee0baf797a2bfbadd7f419ff8fc2da44585ad843c68d731c1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bddbca9c804db274cab60d4e7683499ab56a35eafecf2d57c041bec73838e45c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c730a413e06e31e38b9ce0614b4c1d4ecab89394ada4ef2802711e4baa76ec61"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fef619f91c5faf1a613330588a66207696827c9b7efcd6ebbc0ab5e65ada51f3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d68f7101d68f81a416c587fc75c184582e6f28ddb6e0d8e7a2fea42efc952904"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa84aa04c795491fd1a99a92067abcc66187a7900ca26052880e505993fd14f0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9b844b6c8c1cd10c637ec0a93e254d503dd4fd0ae1081566e79ce9e5ec0ef8e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"43b8b9a99d4467ac226addbcecf55934ce57e0ae0a930e02d9c37bc412849f86"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4642dd55dc3bb4a6567207f90bcd79bef31f9280d0913ee9f753e5b4b1909943"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":17,"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."]}]}