{"$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":"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":"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":"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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Parser.Parse (cyclomatic 160): Parser.Parse has cyclomatic complexity 160 (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":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe814f246e89ff034e714627446b38a052fefc8086b1e6ab1fba19b98efb0492"}},{"ruleId":"D1","level":"warning","message":{"text":"MPDParser.Parse (cyclomatic 93): MPDParser.Parse has cyclomatic complexity 93 (threshold 15). Of this number, 88 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. 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":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"366376de250e2be0c66c95ba4844bed1bcecf8fa7cdfef579054d89e5f2154f1"}},{"ruleId":"D1","level":"warning","message":{"text":"Global.HttpDownloadFile (cyclomatic 52): Global.HttpDownloadFile has cyclomatic complexity 52 (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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3cc23f985a0729d5090b51728df923bc417c83accb54d4f5cb04fdfff8449d"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.DoWork (cyclomatic 48): Program.DoWork has cyclomatic complexity 48 (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":"N_m3u8DL-CLI/Program.cs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9920e155956ce1731ea33ca68479ded6714df94221709e690a2268278358f5a"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadManager.IsComplete (cyclomatic 46): DownloadManager.IsComplete has cyclomatic complexity 46 (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":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9927c6f9114d95d575f74db305511eb52055224a05276599ba2d246278029ea5"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadManager.DoDownload (cyclomatic 43): DownloadManager.DoDownload has cyclomatic complexity 43 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 10 belong to one function literal inside it that branches. 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":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb716dc55fc7e81562c7c36353de60295bad8cf9e6bc774bd09e68fb69c70681"}},{"ruleId":"D1","level":"warning","message":{"text":"Global.TrySkipPngHeader (cyclomatic 39): Global.TrySkipPngHeader has cyclomatic complexity 39 (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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"2664cf792278a3385ee5c8203591e8a5385777f97bb162c468d41f37e96142e7"}},{"ruleId":"D1","level":"warning","message":{"text":"Downloader.Down (cyclomatic 30): Downloader.Down 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":"N_m3u8DL-CLI/Downloader.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4fcaadb62ef07b6b9880b487bfdfdb07a5ba6668511240482d588a805b4455"}},{"ruleId":"D1","level":"warning","message":{"text":"Global.GetVideoInfo (cyclomatic 29): Global.GetVideoInfo has cyclomatic complexity 29 (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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4739cfd75f6978c4de0bcd4e2c8a06494bb43f3a29f04b1fde9b0d2251b6f0d"}},{"ruleId":"D1","level":"warning","message":{"text":"FFmpeg.Merge (cyclomatic 27): FFmpeg.Merge has cyclomatic complexity 27 (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":"N_m3u8DL-CLI/FFmpeg.cs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"381a1602900ee98fe6bd62c9a88dbf737db938a3c1877dfc4072975a07b55ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.Main (cyclomatic 27): Program.Main has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Program.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9753c6c45a9147460e1edf297312be15ea385ed185a193572f7a6991550cb68"}},{"ruleId":"D1","level":"warning","message":{"text":"MPDParser.GenerateM3u8 (cyclomatic 25): MPDParser.GenerateM3u8 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":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"9212530b099ea3e09157386a2e69df40c484d3626fe381bfdb40c2539159a2db"}},{"ruleId":"D1","level":"warning","message":{"text":"Global.GetWebSource (cyclomatic 24): Global.GetWebSource has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"740d1dd88b5400b548bbacb9b9c1beed5819e92864709d789e8d4f1501c7ab59"}},{"ruleId":"D1","level":"warning","message":{"text":"Global.HttpDownloadFileToBytes (cyclomatic 17): Global.HttpDownloadFileToBytes 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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aacfc917713db0eae5186cfacb1ce300e819efd38beb79c29e1f8f3ad9d5df9"}},{"ruleId":"D1","level":"warning","message":{"text":"MPDParser.ExtractMultisegmentInfo (cyclomatic 17): MPDParser.ExtractMultisegmentInfo 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":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aac86a4f597bdefa717dfcf293dc7b727b0e67f9c99fdeb463aefd68356aa72"}},{"ruleId":"D2","level":"warning","message":{"text":"MPDParser.Parse (cognitive 363): MPDParser.Parse has cognitive complexity 363 (threshold 15). Of this number, 359 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. 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":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6474884c96b20ac1faf267ef81d30c47c254e0f6632e07edc0228af75d04ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.Parse (cognitive 276): Parser.Parse has cognitive complexity 276 (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":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce35e035efb9e3e7b5dc62b905e6f921dc4f7b417afe1bf79bd85eeddd92844"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.IsComplete (cognitive 168): DownloadManager.IsComplete has cognitive complexity 168 (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":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"af243a23e38af3d3fe60ac1cb2d71c64fc0bb6bbc2dab1bc9a2a136d5465368e"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.DoWork (cognitive 74): Program.DoWork has cognitive complexity 74 (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":"N_m3u8DL-CLI/Program.cs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d64a94ce4ea447805ac00a50d69adb01af5c94f786677e2dd5bd4a5acc37497"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.DoDownload (cognitive 68): DownloadManager.DoDownload has cognitive complexity 68 (threshold 15). Of this number, 50 points are the body\u0027s own statements and 18 belong to one function literal inside it that branches. 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":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"097f1e49c2b2cc009ff0e57f9895e946323cb2a40d3e4aaf4bfd3942489ccd60"}},{"ruleId":"D2","level":"warning","message":{"text":"Downloader.Down (cognitive 54): Downloader.Down has cognitive complexity 54 (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":"N_m3u8DL-CLI/Downloader.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4b9a7f5b45b6e5218e09ffb78c1edd9af71a9a2d0bb03116bce98f4d314ae8"}},{"ruleId":"D2","level":"warning","message":{"text":"Global.HttpDownloadFile (cognitive 53): Global.HttpDownloadFile has cognitive complexity 53 (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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d27bbb3288943f0cfa2e48772595be743bdfd9e470845fb6c48169ce412a785"}},{"ruleId":"D2","level":"warning","message":{"text":"Global.GetWebSource (cognitive 44): Global.GetWebSource 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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e301dbcc8a308364ff678429cd7c53ac5c78d9389756fe60e95a1865db91d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.Main (cognitive 42): Program.Main has cognitive complexity 42 (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":"N_m3u8DL-CLI/Program.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3333d0c42ccb578c6254c118223434b9542653be288a075c45d902d926ea693"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.ParseKey (cognitive 41): Parser.ParseKey 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":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"675dc3e99ec15624710758965fbdad416a735702ebb2603dcb8862772196d173"}},{"ruleId":"D2","level":"warning","message":{"text":"MPDParser.GenerateM3u8 (cognitive 39): MPDParser.GenerateM3u8 has cognitive complexity 39 (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":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e2b38de5bba34dc0750f5d7c5d81814fd7c0517e9422ce8e7cef150cb888e1"}},{"ruleId":"D2","level":"warning","message":{"text":"MPDParser.ExtractMultisegmentInfo (cognitive 37): MPDParser.ExtractMultisegmentInfo has cognitive complexity 37 (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":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeca30ebf1974b7a5079a698051f8297c8d9a8f42acc566fbd6fa42c6e1461b5"}},{"ruleId":"D2","level":"warning","message":{"text":"Global.GetVideoInfo (cognitive 35): Global.GetVideoInfo 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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"7233ced6f4f0a0594444bf6a5c637773e4a5ee18ad7484287b6fc5063a1f3f77"}},{"ruleId":"D2","level":"warning","message":{"text":"Global.HttpDownloadFileToBytes (cognitive 26): Global.HttpDownloadFileToBytes has cognitive complexity 26 (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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc87573cb6d403ada0a1cb4fe4f6c8df75e0f8fb0937197b406dd969c26cea2"}},{"ruleId":"D2","level":"warning","message":{"text":"ChaCha20.WorkBytes (cognitive 20): ChaCha20.WorkBytes has cognitive complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/CSChaCha20.cs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"7840b6426646196f95b12068c0db53afab2d99ef656d54977d6656a30df4d435"}},{"ruleId":"D2","level":"warning","message":{"text":"Global.TrySkipPngHeader (cognitive 17): Global.TrySkipPngHeader has cognitive complexity 17 (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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae671d2110947754638c414bcfccdf26ef42ece7e5b95bf40c19baf761fc12b6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Parser: ClassTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), 6 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":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3f46c71b2c127db20480a3524f1dee1ec1e2b751134b9568a44d8eb34c9543"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: N_m3u8DL-CLI/Global.cs: FileTooLong \u2014 682 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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f223eb67c47d9b2363ba4d7af8aa7bce2c844f710409c517f3ad045b55a0b0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MPDParser: ClassTooLong \u2014 472 significant lines (blank, comment-only and punctuation-only lines excluded), 9 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":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab716d6ba16653e1a323769f37a2dfa5c391046f0c16a965c28412e9f1b1e2d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: N_m3u8DL-CLI/Parser.cs: FileTooLong \u2014 589 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":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"127ab427c3626cfec4e8347ebfbb5bebe380cc01f9add60eb72701a577017c4c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Global: TooManyMethods \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded), 34 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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"854baede58b81d689696f4326b1f0a72eb9b7d8adf000b1077301aafb24e5156"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DownloadManager: ClassTooLong \u2014 444 significant lines (blank, comment-only and punctuation-only lines excluded), 3 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":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b130db1e46b4c0689963d2a98089fe9b6008f1b739ec2dc3d968f2b53aaf98a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): N_m3u8DL-CLI/DownloadManager.cs:451-468 | N_m3u8DL-CLI/DownloadManager.cs:594-611 \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 \u0060N_m3u8DL-CLI/DownloadManager.cs:451\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":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9097b919e68fdc9817c0606f3aadb913dee77dd290f4380c9e1d3a86dac1dea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): N_m3u8DL-CLI/Global.cs:546-556 | N_m3u8DL-CLI/Global.cs:567-577 \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 \u0060N_m3u8DL-CLI/Global.cs:546\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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"0522b76ebef46c88943a0b5ee0481fa587d9a651bc473c11e620074f51f812e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): N_m3u8DL-CLI/Watcher.cs:54-63 | N_m3u8DL-CLI/Watcher.cs:94-103 \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":"N_m3u8DL-CLI/Watcher.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee7795e6dd4d62e918b05b7cd44dccac8643fb280a4f0cd03b1a636d22f229b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): N_m3u8DL-CLI/Decode51CtoKey.cs:292-299 | N_m3u8DL-CLI/DecodeDdyun.cs:29-36 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Decode51CtoKey.cs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fabd2b5d61a6fad2a4790991e00282d17946ecc4e5bb958744076d14a6d3c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): N_m3u8DL-CLI/IqJsonParser.cs:31-38 | N_m3u8DL-CLI/IqJsonParser.cs:60-67 \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":"N_m3u8DL-CLI/IqJsonParser.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"169204f6749e3522fa3c2e7415224321a29655eb4949a9ab77c3e15aa5ed9339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): N_m3u8DL-CLI/DownloadManager.cs:193-200 | N_m3u8DL-CLI/DownloadManager.cs:277-284 \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":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"125da474ad6d3a36102e7ca350befe8e1efb608446156a143bfd2def3f58a338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): N_m3u8DL-CLI/FFmpeg.cs:100-106 | N_m3u8DL-CLI/FFmpeg.cs:112-118 \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 \u0060N_m3u8DL-CLI/FFmpeg.cs:100\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":"N_m3u8DL-CLI/FFmpeg.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cebe6f0853a2acd3643cd3b82463aab2ce73e0064d44c9058f24efead760d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): N_m3u8DL-CLI/DownloadManager.cs:423-429 | N_m3u8DL-CLI/DownloadManager.cs:569-575 \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 \u0060N_m3u8DL-CLI/DownloadManager.cs:423\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":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8982520f939348816780f230919eed54bfe40a8669c336da91047cd33fe9241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): N_m3u8DL-CLI/MPDParser.cs:704-710 | N_m3u8DL-CLI/MPDParser.cs:767-773 \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 \u0060N_m3u8DL-CLI/MPDParser.cs:704\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":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0d75dbcd3100b7480aad3bde4d448212003c48d1690b66441136a20f98308f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): N_m3u8DL-CLI/CSChaCha20.cs:504-508 | N_m3u8DL-CLI/CSChaCha20.cs:510-514 \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":"N_m3u8DL-CLI/CSChaCha20.cs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"498f007eaad3f4150de38a424c754316088c918a5f56fc69c71ff4169b15a088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): N_m3u8DL-CLI/Global.cs:749-753 | N_m3u8DL-CLI/Global.cs:757-761 \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 \u0060N_m3u8DL-CLI/Global.cs:749\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":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3e73747e74678ca6413b007881a4ed1edafd446a15bbece676721f7b056d88"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test suite could be collected \u2014 nothing here references a test framework (xUnit, NUnit or MSTest), so there were no discoverable tests to count. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 15 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"32774f44846a54268547357c1316d20fd1453ed53a73d8e3179d2df7f91642e6"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64c1909400435e3b4d839e1abcd3574645bd1bc5b037d90830e0a8c66f235ad"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78e032ae108b9671a259caa3a263eac98cc53c2ccb57daeaa97441001897c94"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"f368d4bbc5230c3be3e5357f25f0df6a1297d5b3d49700e3a4c6fa345c8b73da"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"479453c85579404a5e28898a2a39b6afc576d41c9294ec098448d136a5160ae5"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"c620a55d8f1be7ea3708307c2ca91ac44e77b465fe1aeff0a48cbb247159b60c"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"276a704c8e1d73b00397ef214d13269b5d372bfcc5228c16c4819c9119acf34a"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"508fe85597607ad74e91898b706137551b24f5a2d19d33e5f0eb947770c353c0"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b450667e35ceb10c627291c716c269c259196d7c786841e15534784ff680b5"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/LOGGER.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"654d8d961a5269ca11775dee7682de7282d939c4f5dd23b6a70fd2c475832a7b"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/LOGGER.cs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b378a492e5ea3f17956c80624de75e7f9db153e0e72e596c62c331a469a91f42"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/LOGGER.cs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e98b2621e0be9ec5a990801960b2da5c346753c2c3aae3fc328f2af4d385bfc"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"932e48cfbb3bb28eca8a91f5683fdb600671357ddb5792e8817008139bdb6fda"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/ProgressReporter.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5385e0c1b298ef959f4ca7638a9e151f2a98ae51688cb9403ae0c6d978f1b468"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 10 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Downloader.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"692bf41994f372cd79084cbb264d323d71766faa97ae393ef37e54306b1c8d73"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 14 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/HLSLiveDownloader.cs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cd4f67e147338f50c6ff86bd189bd8808b6de36c8090906f071cb35764f0af"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33f8af352e0e66950b90feab6cbdd7f134484402b03b8e4680b797d2684d88c"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 5 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3285fc794e6d951151668a971e99b45ea6612b553334b7cdf430a10d26ffee1"}},{"ruleId":"D19","level":"note","message":{"text":"The README claims a simple CLI but gives no usage example or command-line option list for the actual tool.: Add a short one-line goal and an example of how to invoke the CLI with at least one known option (e.g. --decrypt AES-128-CBC)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a92cf5470a92eaca15c9c5ccb7af2da964890f7a2f6c02b03973b856f9e852"}},{"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":"D21","level":"note","message":{"text":"Typo in resource string keys: \u0027Verison\u0027 is used instead of \u0027Version\u0027.: Rename to \u0027newerVersionDownloaded\u0027 and \u0027newerVersionDownloadFailed\u0027. (symbols: N_m3u8DL_CLI.strings.newerVerisonDownloaded, N_m3u8DL_CLI.strings.newerVerisonDownloadFailed)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"00e3ac19efd5ebd03875ecbaf34147dc3872f8ad059f8e9a17cd7a06bf309328"}},{"ruleId":"D21","level":"note","message":{"text":"Inconsistent naming for download-related properties in the DownloadManager class. Some use \u0027Download\u0027 prefix (e.g. DownDir, DownName) while others use \u0027Download\u0027 or no prefix. Specifically, \u0027TimeOut\u0027 is inconsistent with \u0027Timeout\u0027 (common spelling) and \u0027ToDO\u0027 vs \u0027ToDo\u0027 casing.: Standardize to \u0027Timeout\u0027 and \u0027ToDo\u0027 or \u0027ToDos\u0027. (symbols: N_m3u8DL_CLI.DownloadManager.TimeOut, N_m3u8DL_CLI.DownloadManager.ToDoSize, N_m3u8DL_CLI.DownloadManager.MuxFormat, N_m3u8DL_CLI.DownloadManager.DisableIntegrityCheck, N_m3u8DL_CLI.DownloadManager.Headers)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"55e475ae1e50bd6ecd44aec29744e2be873b7ab3e4f6c9159d87c02af7778327"}},{"ruleId":"D21","level":"note","message":{"text":"The concept of disabling integrity checks is named \u0027DisableIntegrityCheck\u0027 in MyOptions and DownloadManager, but \u0027disableIntegrityCheck\u0027 (lowercase d) in strings. While casing differences are often intentional (properties vs fields/strings), the inconsistency in the string resource key casing compared to the property name is notable.: Ensure string keys match the property name casing or use a consistent convention for string resource keys. (symbols: N_m3u8DL_CLI.strings.disableIntegrityCheck, N_m3u8DL_CLI.MyOptions.DisableIntegrityCheck, N_m3u8DL_CLI.DownloadManager.DisableIntegrityCheck)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6bd8ce4527561a7191ef09fc1652984481cfb83c16727ba759b8e15e12f335f5"}},{"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":"8e09e9497635a426aeef256c702c21f268a21cc442df410c506198c87d3b0e0f"},"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":"7cd8cc46373f29e9253af577ef6f5c2ee1ba2bfa889091c4172d8495e7b09207"},"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":"53d64500c6c351df39cad50e8311e44d6209feaa044ad19a3865769f8b89743d"},"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":"90e6ab307ed75ca43a2a21147d53596f1ed9f478c709df6e2f968556c7c4a605"},"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":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Global.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3c20d795ffc7a0ebc965149d93518a2c8328d7f1e60fc256ba9fa0a0b42ed5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Parser.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"461254e20a10e2c985e772859b3cc9c2ba1dbc73c4b8bad1b6fe25499b58178a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/MPDParser.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37cac3ab0fedbb6d7540c5e403208fed792060a42e0a7b7667c489d67c029aa"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/DownloadManager.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0220b30f499db239b2e3fea47441c8b8728d6754e7086f77d3eecb74163b6c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/CSChaCha20.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a377fd2221ccf6492d7ae51e1652e76b3159ee41605ab19f36e7b804ddd1df"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"N_m3u8DL-CLI/Program.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ee94db94786edf648d7797b73365bb37622a4fdd02848486c532073382664f"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 11 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (17 orphaned of 17 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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":4,"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."]}]}