{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"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":"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"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"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Text.apart (cyclomatic 169): Text.apart has cyclomatic complexity 169 (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":"src/Grace.Shared/Resources/Text/Languages.Resources.fs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bc5c8e0e13636cee6dad9056386771829c6748e45f05b3fcbb89dd866f3b22"}},{"ruleId":"D1","level":"warning","message":{"text":"Doctor.resultForCheck (cyclomatic 146): Doctor.resultForCheck has cyclomatic complexity 146 (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":"src/Grace.CLI/Command/Doctor.CLI.fs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8ab49588ccf1faecef172c3b541146b0b8eefe2c0deab852069d9b1bee236c"}},{"ruleId":"D1","level":"warning","message":{"text":"Text.ago (cyclomatic 145): Text.ago has cyclomatic complexity 145 (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":"src/Grace.Shared/Resources/Text/Languages.Resources.fs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3848ea9762bcdc07a2d58c9770f55e15e47e8655b09114947386faf333c3b1"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionDiagnosis.diagnoseWith (cyclomatic 144): ManifestContributionDiagnosis.diagnoseWith has cyclomatic complexity 144 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/ManifestContributionDiagnosis.Server.fs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e251c65c4e5597bdfe2ec9972b22dee628ec3925aaf0b6e20ce326c2d787f4c"}},{"ruleId":"D1","level":"warning","message":{"text":"BranchActor.Grace.Actors.Interfaces.IBranchActor.Handle (cyclomatic 102): BranchActor.Grace.Actors.Interfaces.IBranchActor.Handle has cyclomatic complexity 102 (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":"src/Grace.Actors/Branch.Actor.fs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b1d336a17d2c302fa171264b8d5f652406c20106865a983fee9f61b4d6dddd"}},{"ruleId":"D1","level":"warning","message":{"text":"GraceCommand.main (cyclomatic 92): GraceCommand.main has cyclomatic complexity 92 (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":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"e849ee57d574836a9650fe4b37be6ddbdb0f544b9e1fb3d11e0f917f246a3de6"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.processChangedFilesWithClients (cyclomatic 84): Watch.processChangedFilesWithClients has cyclomatic complexity 84 (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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":8335}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc030063d9b901bc1531e9a66070bfd17bd08a153689ac53fa59a99021b73bf"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionSetActor.ComputeAppliedDirectoryVersionForStep (cyclomatic 75): PromotionSetActor.ComputeAppliedDirectoryVersionForStep has cyclomatic complexity 75 (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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c09b0a3902598bd9fe63ea83ca23e3b67c09502ac7771c9319e33f4c7896ad"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.processCurrentBranchMaterializationNotification (cyclomatic 59): Watch.processCurrentBranchMaterializationNotification has cyclomatic complexity 59 (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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":6430}}}],"partialFingerprints":{"codehealthFindingId/v1":"9baeab7b1c1cf0ffdb1541abb340cc33707ea59e91e45594915ec7942db5b667"}},{"ruleId":"D1","level":"warning","message":{"text":"Subscriber.handleEvent (cyclomatic 53): Subscriber.handleEvent has cyclomatic complexity 53 (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":"src/Grace.Server/Notification.Server.fs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"3448b8473ad05160713ee23f0ae7c6834e18538ec1b92c69b7e8c6cbe1fec864"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryVersionActor.Grace.Actors.Interfaces.IDirectoryVersionActor.Handle (cyclomatic 50): DirectoryVersionActor.Grace.Actors.Interfaces.IDirectoryVersionActor.Handle has cyclomatic complexity 50 (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":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef6841d2b1d8759a6590ea375d41e89b5327d025d4684373e75bcee17c0b6b6"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadSession.decideCommand (cyclomatic 44): UploadSession.decideCommand has cyclomatic complexity 44 (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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab41b85909886b0492ddc380d4ef4f6ff4bb6424c88c2d4dc03fa4d52d81d1b0"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryActor.Grace.Actors.Interfaces.IRepositoryActor.Handle (cyclomatic 43): RepositoryActor.Grace.Actors.Interfaces.IRepositoryActor.Handle has cyclomatic complexity 43 (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":"src/Grace.Actors/Repository.Actor.fs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f434c25b2a7f53e1f2d951f5ab9cbfa116f60ff9c49480f05be3b6516d46a1"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionRepairMeasurementTests.repair republication restores only the missing Reference root (cyclomatic 43): ManifestContributionRepairMeasurementTests.repair republication restores only the missing Reference root has cyclomatic complexity 43 (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":"src/Grace.Server.Tests/ManifestContributionRepair.Measurement.Tests.fs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"088dc335da4f17765b11ea6f87ec996df3c6855201a6f4cfe903a484ebf2f96d"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.hasRequiredWatchJournalShape (cyclomatic 42): LocalStateDb.hasRequiredWatchJournalShape has cyclomatic complexity 42 (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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcec76f7003cd582558cfd9b0475f15b63dd4ee4133f78340f808d39bf8a9dfd"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.hasRequiredWatchLifecycleEventShape (cyclomatic 41): LocalStateDb.hasRequiredWatchLifecycleEventShape has cyclomatic complexity 41 (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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c530d47b7aa5f83fc090789f9ebc3446876973604b1153410fe969bb59a3edc"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionRepair.buildPlan (cyclomatic 40): ManifestContributionRepair.buildPlan has cyclomatic complexity 40 (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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00fb7e0273b6c16f4fff9b693e34cf7f5ff43897fffb80737e2fd933b6cbd24"}},{"ruleId":"D1","level":"warning","message":{"text":"Maintenance.updateIndexHandler (cyclomatic 40): Maintenance.updateIndexHandler has cyclomatic complexity 40 (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":"src/Grace.CLI/Command/Maintenance.CLI.fs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"869dc931de20e2c297bf45c7869f1f8a499af604fa1d4d84c11f119b1fcd2d15"}},{"ruleId":"D1","level":"warning","message":{"text":"AspireTestHost.startNewHostAsync (cyclomatic 40): AspireTestHost.startNewHostAsync has cyclomatic complexity 40 (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":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeff56e423016694666b4b7e8180b842fad69dafc33fbb7cecd2a90c949a8eeb"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.Main (cyclomatic 39): Program.Main has cyclomatic complexity 39 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 2 belong to 2 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":"src/Grace.Aspire.AppHost/Program.Aspire.AppHost.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa84c1c93b5e8bda1dedd6bbfb2bbaf097b760e44da9a359c2fe6fe1b2fd714"}},{"ruleId":"D1","level":"warning","message":{"text":"ValidateIdsMiddleware.Invoke (cyclomatic 39): ValidateIdsMiddleware.Invoke has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Middleware/ValidateIds.Middleware.fs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"748e7727f122164277c46f1cc2481a89b70f2c21d013f9d1fb0ce58a7c4768f5"}},{"ruleId":"D1","level":"warning","message":{"text":"Reference.createReferenceHandler (cyclomatic 38): Reference.createReferenceHandler has cyclomatic complexity 38 (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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"b490bb3597646c91d629a698a4fc5ca6cfcfdc216d7b450dc5a18a87ca288bd2"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionRepair.reconcileCounterWith (cyclomatic 37): ManifestContributionRepair.reconcileCounterWith has cyclomatic complexity 37 (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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7aa17ff40324aba776eaae9f065eb08401916e5a4fe9f02f13d1985cbd2ada"}},{"ruleId":"D1","level":"warning","message":{"text":"Diff.diffToReferenceType (cyclomatic 36): Diff.diffToReferenceType has cyclomatic complexity 36 (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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fbf98fa5af6bce5ff2ffb6696e89d8aa081418704f5c5c307e4af2a68868a3"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkItemActor.Grace.Actors.Interfaces.IWorkItemActor.Handle (cyclomatic 35): WorkItemActor.Grace.Actors.Interfaces.IWorkItemActor.Handle has cyclomatic complexity 35 (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":"src/Grace.Actors/WorkItem.Actor.fs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1367ac248eaebc97e3bf3cf3f707b1f0e78b183679b12eb0398778a422b2b0"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.uploadPendingWatchFilesForStatusRetry (cyclomatic 34): Watch.uploadPendingWatchFilesForStatusRetry has cyclomatic complexity 34 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":8089}}}],"partialFingerprints":{"codehealthFindingId/v1":"51265610bc2be1bbf7e5f6cffd4ec3d0bfb5760ed58af152e5fe20f7721ea8d7"}},{"ruleId":"D1","level":"warning","message":{"text":"Branch.rebaseHandler (cyclomatic 34): Branch.rebaseHandler has cyclomatic complexity 34 (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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":4073}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d370b29575364483d2521a8dec94a7053492dd5ac172e1505e3a9fc678ebb13"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestUpload.uploadFileWithClient (cyclomatic 34): ManifestUpload.uploadFileWithClient has cyclomatic complexity 34 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.SDK/ManifestUpload.SDK.fs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e8e915d6717454097ac58deaa6d0e0e4166e7bd45aa7d06784c9bd7a8f17f7"}},{"ruleId":"D1","level":"warning","message":{"text":"ApprovalRequest.decideCommand (cyclomatic 33): ApprovalRequest.decideCommand has cyclomatic complexity 33 (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":"src/Grace.Actors/ApprovalRequest.Actor.fs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"087f10a0f90fe466a197a55ee5a8d8589656ef7b2de14dd9e6d206d2c0ec47c4"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionSetActor.ApplyPromotionSet (cyclomatic 33): PromotionSetActor.ApplyPromotionSet has cyclomatic complexity 33 (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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"446b7fde91c498e9a59d8db90a2145a4b03e137151126bfe87e23764c75f6222"}},{"ruleId":"D1","level":"warning","message":{"text":"ReferenceActor.Grace.Actors.Interfaces.IReferenceActor.Handle (cyclomatic 33): ReferenceActor.Grace.Actors.Interfaces.IReferenceActor.Handle has cyclomatic complexity 33 (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":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcb1127e492f2661e439f16d0bbd573012e3c31619967c2c0a79924a2bc3df5"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionAccounting.handleReferenceCreatedWith (cyclomatic 33): ManifestContributionAccounting.handleReferenceCreatedWith has cyclomatic complexity 33 (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":"src/Grace.Server/ManifestContributionAccounting.Server.fs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b628c130f569b2424ad362002f1700014821253794b62bcefcfce52646d2f7"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.applyCurrentBranchMaterializationTargets (cyclomatic 33): Watch.applyCurrentBranchMaterializationTargets has cyclomatic complexity 33 (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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":5925}}}],"partialFingerprints":{"codehealthFindingId/v1":"542ed7647e67167f5183e6d769b8bef0e5a879d58bca0218d9f6e5b027611541"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionRepair.removeStaleRelationshipWith (cyclomatic 32): ManifestContributionRepair.removeStaleRelationshipWith has cyclomatic complexity 32 (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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"8695e6fe791aafdf4f3a039b666ac00561d6b709cfebd76fd7d3469042eb1c97"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionRedisRestartMeasurementTests.hot manifest converges one Reference after Redis restart (cyclomatic 32): ManifestContributionRedisRestartMeasurementTests.hot manifest converges one Reference after Redis restart has cyclomatic complexity 32 (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":"src/Grace.Server.Tests/ManifestContributionRedisRestart.Measurement.Tests.fs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cd33d1c30ac53c4deddc319d141852ffe8e7fcf73999b353a20bbe6e727cc2"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionSetActor.RecomputeSteps (cyclomatic 31): PromotionSetActor.RecomputeSteps has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aea8c67c9b4e8acd24cbcef0b5a3e72338258470360b8b4ef49ec8e2b2e410a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.workStopWith (cyclomatic 31): AgentCommand.workStopWith has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad13f6e6d248462e2e1bace5fdbdf653434d4ebf14851d35e4ce392c28dfe39"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.tryFindWatchJournalReplayIncompatibility (cyclomatic 31): LocalStateDb.tryFindWatchJournalReplayIncompatibility has cyclomatic complexity 31 (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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d23a114945e16ad8c50d66a3afd2984953f939d44cf67ee02c9b926085c7cd5"}},{"ruleId":"D1","level":"warning","message":{"text":"DeadLetterRuntime.fixtureOwnsEvent (cyclomatic 31): DeadLetterRuntime.fixtureOwnsEvent has cyclomatic complexity 31 (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":"src/Grace.Server.Tests/ManifestContributionDeadLetter.Measurement.Tests.fs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cec913c2c05dbcadb363cfee92272849a96ac89f7030fc20b6ad9591178d5ec"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlockMetadata.mergeRanges (cyclomatic 30): ContentBlockMetadata.mergeRanges 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":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"404eb2a07669aab103fd83e12b576898d2e96918067769303e3aa9dd6c5f081f"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlockMetadata.decideCommand (cyclomatic 30): ContentBlockMetadata.decideCommand has cyclomatic complexity 30 (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":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53b28a8e5dc20918a084e625a51741666a352cc36d8123aa273baefaba87412"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.ConfirmContentBlockUpload (cyclomatic 29): Storage.ConfirmContentBlockUpload has cyclomatic complexity 29 (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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"585a44b3cd68cc6b0d14a97382658c44b4a815999d3e62c219b1627e4f0328e7"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.workStatusWith (cyclomatic 29): AgentCommand.workStatusWith 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f34a335f25c6ea65465adb87a09e2fbb8031ed07dffce277f20bd57745f878"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.InvokeAsync (cyclomatic 29): Watch.InvokeAsync 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":9290}}}],"partialFingerprints":{"codehealthFindingId/v1":"7280530cdb216b18396267db5cea17ce64e7daf0d9ceb9eeb07020a74a334891"}},{"ruleId":"D1","level":"warning","message":{"text":"Repository.initHandler (cyclomatic 29): Repository.initHandler 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":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e436f0c984e4249b4566f0319f2b3fdb94d8a86fd4bfa75268bb2ad461f7a1"}},{"ruleId":"D1","level":"warning","message":{"text":"Load.main (cyclomatic 29): Load.main has cyclomatic complexity 29 (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":"src/Grace.Load/Program.Load.fs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8353432e3e1bb10288e5dfaef87b7af165380d5da9a649acb938cb96b15556"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionRepair.repairWith (cyclomatic 28): ManifestContributionRepair.repairWith has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18056c7ec3c96ae0a985f3e96a7d698f5f7f0684927ef163c9766e74b9bbeca"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.workStartWith (cyclomatic 28): AgentCommand.workStartWith has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"171a351f182e1a567cab0212a135036238699f684d5719712065e873220304a2"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.getNormalizedIdsAndNames (cyclomatic 28): Services.getNormalizedIdsAndNames has cyclomatic complexity 28 (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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e0ebd21f26c70802f5c548d4f2e49c8e0d50557df5d65c3073fcb77194bfbb"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionWorkflow.decideCommandForKey (cyclomatic 27): ManifestContributionWorkflow.decideCommandForKey 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":"src/Grace.Actors/ManifestContributionWorkflow.Actor.fs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78a03d46eb53037cadb8c354641d88abe42abc2d18b4f383685698a2c603e52"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionSetActor.MaterializeMergedDirectoryVersion (cyclomatic 27): PromotionSetActor.MaterializeMergedDirectoryVersion has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba698a06f2baff14876474c83b227f5a2a8c9a03af812c70e62eb49f52866d69"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationLineCore.buildAnnotationWithTraversalBoundary (cyclomatic 27): AnnotationLineCore.buildAnnotationWithTraversalBoundary has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/AnnotationLineCore.Shared.fs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"61296736fb1edbfc7e95afa8dc27d59fd868fdb07b19ccbafaa5b6ede34e5465"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.addSummaryHandler (cyclomatic 27): AgentCommand.addSummaryHandler 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"90af69a3fc8b43201d75c8f7754088e3c058d5089022c7113f251724fb6c5f50"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.updateGraceStatusFromDifferences (cyclomatic 27): Watch.updateGraceStatusFromDifferences 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":7708}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb2de26b93ff77df460a28ce7083a0ab997767a83b6b0dc40aa8215a06c8637"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadSession.trySelectActiveContiguousRangeChain (cyclomatic 26): UploadSession.trySelectActiveContiguousRangeChain 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d5353a9d9be6e0cb0d08e649f64fd4e407e4196442a308ee9ccdb7680039c8"}},{"ruleId":"D1","level":"warning","message":{"text":"Access.parseResource (cyclomatic 26): Access.parseResource has cyclomatic complexity 26 (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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2f8a3c808f0f4ae13a6340d2fcb67f0f3ab22206b5e71cbdfe12f6bb5877d0"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryRun.InvokeAsync (cyclomatic 26): HistoryRun.InvokeAsync 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":"src/Grace.CLI/Command/History.CLI.fs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb62e9b04287ab8b99ac4490a76f3ccc3ef7ec27c6779acb9931a7e21369fbf"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.ensureDbInitialized (cyclomatic 26): LocalStateDb.ensureDbInitialized 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8e38d92c8e0d120699cb1f9021c7eb594f81373102a380dccc50daa4979ee4"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionDuplicateBacklogMeasurementTests.isolated duplicate backlog completes exactly and preserves durable state (cyclomatic 26): ManifestContributionDuplicateBacklogMeasurementTests.isolated duplicate backlog completes exactly and preserves durable state has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionDuplicateBacklog.Measurement.Tests.fs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5162607139902a84ffa9c2fe2698fb00e5ed5fc436915c91e3e4efa8ec9a6ce"}},{"ruleId":"D1","level":"warning","message":{"text":"OrganizationActor.Grace.Actors.Interfaces.IOrganizationActor.Handle (cyclomatic 25): OrganizationActor.Grace.Actors.Interfaces.IOrganizationActor.Handle has cyclomatic complexity 25 (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":"src/Grace.Actors/Organization.Actor.fs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2457226eece3ec39ebe83a12c6c4a0a27c96cdb3ad7ff30deee96b38ae6fed75"}},{"ruleId":"D1","level":"warning","message":{"text":"OwnerActor.Grace.Actors.Interfaces.IOwnerActor.Handle (cyclomatic 25): OwnerActor.Grace.Actors.Interfaces.IOwnerActor.Handle has cyclomatic complexity 25 (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":"src/Grace.Actors/Owner.Actor.fs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd77d4a21ca7dffe14b59fd8c5bb425d200d44a10cc094f81dd33e98c53a3cd"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.hydrateFinalizeEvidenceFromClaimedMetadata (cyclomatic 25): Storage.hydrateFinalizeEvidenceFromClaimedMetadata has cyclomatic complexity 25 (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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"0968db480277b0b4f4c722c125ad925fe4ef786b2f5eb54999302d79d579addc"}},{"ruleId":"D1","level":"warning","message":{"text":"ValidateIdsDecisions.getEntityValidationErrorMessage (cyclomatic 25): ValidateIdsDecisions.getEntityValidationErrorMessage has cyclomatic complexity 25 (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":"src/Grace.Server/Middleware/ValidateIds.Decisions.fs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b7cac933700917667237947fd2556d979debfe0551ea3ae06a5059af48b6d0"}},{"ruleId":"D1","level":"warning","message":{"text":"Branch.createReferenceHandler (cyclomatic 25): Branch.createReferenceHandler has cyclomatic complexity 25 (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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a0480b4f1c12221af23161d82bbaade7db6611a0a0352e35c412cb3735c368"}},{"ruleId":"D1","level":"warning","message":{"text":"Status.InvokeAsync (cyclomatic 25): Status.InvokeAsync has cyclomatic complexity 25 (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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"a031126edf9ad21adf0528853a39c857d9f9267fa8765ca80a149c9576c7bd4a"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadSession.tryCreateContentBlockMetadataMergeCommandsForFinalizedBlocks (cyclomatic 24): UploadSession.tryCreateContentBlockMetadataMergeCommandsForFinalizedBlocks has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"966b29ea6a1d15331e0c4eab5686526645001e72811e657ffec589612dc53c95"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.processDueLocalObservationCandidates (cyclomatic 24): Watch.processDueLocalObservationCandidates 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":3907}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ad0a142a1af9d1e352adcc7329bc1ef46d18306315e377c98fde69f71c3de2"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlockMetadata.trySelectContiguousRangeEvidence (cyclomatic 23): ContentBlockMetadata.trySelectContiguousRangeEvidence 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":"src/Grace.Types/ContentBlockMetadata.Types.fs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdeb30ea8e65d0e90e9add62b5c66f9e0b10cfe686877252c4b2f7afe376190"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionRepair.repairMissingRelationshipWith (cyclomatic 23): ManifestContributionRepair.repairMissingRelationshipWith has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc69efd99cd35ffb6d2edc38bea08cf66b444ffb3b051f737a3e699f22930d41"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionDiagnosis.validateParameters (cyclomatic 23): ManifestContributionDiagnosis.validateParameters has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/ManifestContributionDiagnosis.Server.fs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28dd24ff2c3cacb561a4ca7f92e7a248a4caba8cb6d3ce4b2583b0fa3a764c0"}},{"ruleId":"D1","level":"warning","message":{"text":"Create.InvokeAsync (cyclomatic 23): Create.InvokeAsync 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8979b1d575937ea46beb7a9c0e6ec06d4277161d6c0f67851b41d15247e5a25"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.readWatchJournalSnapshot (cyclomatic 23): LocalStateDb.readWatchJournalSnapshot 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b73e0c8eb6077e477eb1dda4a64a9dd161139c3cd5441f170412e516576285"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.readStatusSnapshotReadOnly (cyclomatic 23): LocalStateDb.readStatusSnapshotReadOnly 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":3532}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41a59316b9d2b379dbabb0a3dffe1cf24bf3843929d6bb13d8d3ff380d67dbf"}},{"ruleId":"D1","level":"warning","message":{"text":"Repair.validateExecute (cyclomatic 23): Repair.validateExecute 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":"src/Grace.Server.Unit.Tests/ManifestContributionMeasurement.fs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"973f95fba846939c92880e127b7e1fc8efb1faf48a0d49b4411aabc42252c673"}},{"ruleId":"D1","level":"warning","message":{"text":"DeadLetterRuntime.inventoryDefaultReferenceProducerAsync (cyclomatic 23): DeadLetterRuntime.inventoryDefaultReferenceProducerAsync has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionDeadLetter.Measurement.Tests.fs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"282209a57f76ee15d93e3e84c4c5c5d4b751d63c54861cf545918b2e1a7fd4b4"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadSessionActor.Grace.Actors.Interfaces.IUploadSessionActor.Handle (cyclomatic 22): UploadSessionActor.Grace.Actors.Interfaces.IUploadSessionActor.Handle 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ccbcd7dfad29d7a6b6dbd8968194717fedcb0220f17d07ae88726a5edad1f9"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadSessionActor.PrevalidateFinalizedContentBlockMetadata (cyclomatic 22): UploadSessionActor.PrevalidateFinalizedContentBlockMetadata has cyclomatic complexity 22 (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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"38525abe8314ee42627f128ce3393cfb0db461cbd97d7dd12950241f4d39efe3"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionSetActor.EnsureApprovalAllowsApply (cyclomatic 22): PromotionSetActor.EnsureApprovalAllowsApply has cyclomatic complexity 22 (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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":1985}}}],"partialFingerprints":{"codehealthFindingId/v1":"3103627216577df5f13d12aeb64f900b2c4b2bee2d64466a54bc013cb0864963"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.createHostBuilder (cyclomatic 22): Program.createHostBuilder 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":"src/Grace.Server/Program.Server.fs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6959e087c22353a7330c6089ccdff3ba649aa8678d255365a47eb8605bb7031"}},{"ruleId":"D1","level":"warning","message":{"text":"EventingPublisher.tryCreateEnvelope (cyclomatic 22): EventingPublisher.tryCreateEnvelope has cyclomatic complexity 22 (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":"src/Grace.Server/Eventing.Server.fs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67f297ae7315fa606aa875a8746453f4f8d64547641eb0863a55ba89f4cdd55"}},{"ruleId":"D1","level":"warning","message":{"text":"History.filterEntries (cyclomatic 22): History.filterEntries has cyclomatic complexity 22 (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":"src/Grace.CLI/Command/History.CLI.fs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1ef49c90acf18384f6e3dd5e3332f51da942006bd7ea8542ac21fe3b191e35"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionServerRestartMeasurementTests.isolated persisted envelope completes after Grace Server restart (cyclomatic 22): ManifestContributionServerRestartMeasurementTests.isolated persisted envelope completes after Grace Server restart has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionServerRestart.Measurement.Tests.fs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"58343af397edd731c286d02893af6e7e7ceb10cafd60c1fe78b6913a32c4407a"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.getReminders (cyclomatic 21): Services.getReminders 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":3579}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32d124a79f047c2a9c43d3e29727b869c22424849ab74778218d7d703874e82"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionSetConflictModel.tryParseModelResponse (cyclomatic 21): PromotionSetConflictModel.tryParseModelResponse has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/PromotionSet.Types.fs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"c462c60fd1143aed34e9dd174f09f16571542b852557c8dc97cd26ab053b997d"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlockMetadata.findRangeEvidence (cyclomatic 21): ContentBlockMetadata.findRangeEvidence 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":"src/Grace.Types/ContentBlockMetadata.Types.fs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbc9faad6754f18b27ae893e495bc358f65e6ce4836d5a01512b62c9942fb69"}},{"ruleId":"D1","level":"warning","message":{"text":"Access.parseScope (cyclomatic 21): Access.parseScope has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da7fc9face2597fbfacf2bb91a8519dfa4252e1b726ad9b60c8115f06349b32"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.FinalizeManifestUpload (cyclomatic 21): Storage.FinalizeManifestUpload has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbae4d66bf3d901d7d24b9296bf924c050519bbff7507de651833c0bae41b6b8"}},{"ruleId":"D1","level":"warning","message":{"text":"Branch.buildEffectiveHistory (cyclomatic 21): Branch.buildEffectiveHistory has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"46940339e149d416603c3303ed2116e6ab2af92428a30442debff6563bfef887"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.validateCurrentBranchMaterializationAcceptedMetadata (cyclomatic 21): Watch.validateCurrentBranchMaterializationAcceptedMetadata has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":5077}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b1c53e9c39668493cbdf0ce689f25453abb84664fb0fb60287f87427106bad"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.currentBranchMaterializationStatusGate (cyclomatic 21): Watch.currentBranchMaterializationStatusGate has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":6348}}}],"partialFingerprints":{"codehealthFindingId/v1":"4220bcbec6c252c66daf514f095a399c96a0409f2cb8346e7c2b9260590e1c2a"}},{"ruleId":"D1","level":"warning","message":{"text":"Branch.branchSwitchWatchCleanPreflightRefusalReason (cyclomatic 21): Branch.branchSwitchWatchCleanPreflightRefusalReason has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":2909}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f90a4e74adc68fd4827994f41beb0144f42b1e6d11193e6690c2c89f40c5d3"}},{"ruleId":"D1","level":"warning","message":{"text":"Auth.buildAuthStatus (cyclomatic 21): Auth.buildAuthStatus has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb0b9dce74c3e4b10c31a0fbef331ffc8a521431c6e6398e23faeaeb73a5dd8"}},{"ruleId":"D1","level":"warning","message":{"text":"Common.renderOutput (cyclomatic 21): Common.renderOutput has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Common.CLI.fs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0f953267175804ac4009d7916d62b9fc868fbeeb70566226a98c5fdedc9d79"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionGroupedMeasurementTests.grouped exact head run composes every accepted leaf (cyclomatic 21): ManifestContributionGroupedMeasurementTests.grouped exact head run composes every accepted leaf has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionGrouped.Measurement.Tests.fs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cad1249ff7e5253f59c9b725698c04ce3c724e70f3a2f1446a12e20dbdd745"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionBaselineMeasurementTests.isolated Baseline emits truthful completed evidence (cyclomatic 21): ManifestContributionBaselineMeasurementTests.isolated Baseline emits truthful completed evidence has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionBaseline.Measurement.Tests.fs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"5238c3d1e71b5dbb437a663f8113605c67ed21f0941d718f0bac1d6c65a7afc8"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryContentCounter.decideRepairForKey (cyclomatic 20): RepositoryContentCounter.decideRepairForKey has cyclomatic complexity 20 (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":"src/Grace.Actors/RepositoryContentCounter.Actor.fs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"33414f73e79bdf65020ee86a095d93eaa1dc111669fe3e4f788858c3d7caaaa7"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryContentCounter.handleWithRecentResult (cyclomatic 20): RepositoryContentCounter.handleWithRecentResult has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/RepositoryContentCounter.Actor.fs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddbd046c68bd455fe6c0edda17a1c89ca8ac445193f9a13afa0deef7ac92640"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.loadClaimedMetadataForFinalizeWith (cyclomatic 20): Storage.loadClaimedMetadataForFinalizeWith has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"078d068174d510d38cc95e1b1ab6b9336ad4772d33df8eb43eaa556a2552cc5d"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.ClaimReuseRanges (cyclomatic 20): Storage.ClaimReuseRanges has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e240f0f72be3abeff87ac2cdba5b77bfe232491f9a3d1fa2a898927afb20630"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalFileMaterialization.manifestPayloads (cyclomatic 20): NormalFileMaterialization.manifestPayloads has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/NormalFileMaterialization.Server.fs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cd8c541afed3a7569dea20a56d9de12b161ed0e61ec9896c478fcbf9840362"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkItem.AddSummary (cyclomatic 20): WorkItem.AddSummary has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4c45c7b93254813ecf5f6f0308ff14821549cf76dc5b18a7399427c42bc51c"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationContext.configurePubSubSettings (cyclomatic 20): ApplicationContext.configurePubSubSettings 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":"src/Grace.Server/ApplicationContext.Server.fs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aefbf6932e4f2a32f840ac3996aa1461e46d438fe165a7a6092c9a31a6c35a5"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.tryStartupReplayRetirementReason (cyclomatic 20): Watch.tryStartupReplayRetirementReason 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":9002}}}],"partialFingerprints":{"codehealthFindingId/v1":"96525a0545f46f42dac59dfb14a60d1fab9ad6e5026c6e3c163dc1a0c6b31ff2"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.recoverStartupWatchJournalAfterReconciliation (cyclomatic 20): Watch.recoverStartupWatchJournalAfterReconciliation has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":9065}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54bf5974d583a48f02b326fb3284b582d32b99c994f584f88dc6cfe224c2907"}},{"ruleId":"D1","level":"warning","message":{"text":"ShaHandler.InvokeAsync (cyclomatic 20): ShaHandler.InvokeAsync has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f631c73e1c548000f5e795252a8b217211fb43f97559f535c92d6491083a86"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.resolveCliCurrentStateTargetReference (cyclomatic 20): Services.resolveCliCurrentStateTargetReference has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3544}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b017b5507da09b372e6a43141276dfc613b36a9acc83a9ffc7c7ddbad3edfb"}},{"ruleId":"D1","level":"warning","message":{"text":"DuplicateBacklogRuntime.readSnapshotAsync (cyclomatic 20): DuplicateBacklogRuntime.readSnapshotAsync has cyclomatic complexity 20 (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":"src/Grace.Server.Tests/ManifestContributionDuplicateBacklog.Measurement.Tests.fs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d511ef782fbc2cc667377c76a4eccd5073949e2fc6c573f7328b6ae62b6ce7e1"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffActor.Grace.Actors.Interfaces.IDiffActor.Compute (cyclomatic 19): DiffActor.Grace.Actors.Interfaces.IDiffActor.Compute 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":"src/Grace.Actors/Diff.Actor.fs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4b0ad0698991711faae6c870ed1a586b698693490992fd8e1929de1f5d278e"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionQueueActor.Grace.Actors.Interfaces.IPromotionQueueActor.Handle (cyclomatic 19): PromotionQueueActor.Grace.Actors.Interfaces.IPromotionQueueActor.Handle 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":"src/Grace.Actors/PromotionQueue.Actor.fs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f873881f9ea26f98a38d181f3cad7c9150889a6f77bb07eee2a3984392b9afdc"}},{"ruleId":"D1","level":"warning","message":{"text":"ExactRelationshipKeyModule.validate (cyclomatic 19): ExactRelationshipKeyModule.validate 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":"src/Grace.Types/ManifestContributionAccounting.Types.fs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"688edc6d70c01555cbbf0b52229df425811f23e8478dddfecb441e76dcebbb21"}},{"ruleId":"D1","level":"warning","message":{"text":"Annotation.validateLinkIntegrity (cyclomatic 19): Annotation.validateLinkIntegrity has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/Annotation.Types.fs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a91f2bf62ad5feceef4998d1fd471503d4cde7c59d49f936aeee4482a032d35"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlockFormat.decode (cyclomatic 19): ContentBlockFormat.decode 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":"src/Grace.Shared/ContentBlockFormat.Shared.fs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd26168bcbab716b015ce94d888be4003ac9b8d29012e5a9c8ac2b00030f2e3"}},{"ruleId":"D1","level":"warning","message":{"text":"Access.tryParseCurrentContextResource (cyclomatic 19): Access.tryParseCurrentContextResource 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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"bceba7d430543ea28963f5e82368b7cc4d5764bde4c9eeb7a9411af3516c983e"}},{"ruleId":"D1","level":"warning","message":{"text":"Branch.buildAnnotationForRequest (cyclomatic 19): Branch.buildAnnotationForRequest has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd84e73862fbe8e18607c4f6db2550d82658b9a1023720b97dd2651e10e4ca1"}},{"ruleId":"D1","level":"warning","message":{"text":"Branch.branchAllowsReferenceType (cyclomatic 19): Branch.branchAllowsReferenceType 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":"src/Grace.Server/Validations.Server.fs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a5acb26150f5aeade3749eee1a48984d2340b95bb91592a5be011d624a649c"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewCommand.reportExportHandler (cyclomatic 19): ReviewCommand.reportExportHandler has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Review.CLI.fs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f3a46ba6d9ab8fb9c6aa41074f64d2edbe7b240bda70120cdd28d337d03d88"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.updateWorkingDirectory (cyclomatic 19): Services.updateWorkingDirectory 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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ffe41743047be09998fe29883c8e08f2f833cb5e784f04a50ead1712209118"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.tryReadLeadingSqlIdentifier (cyclomatic 19): LocalStateDb.tryReadLeadingSqlIdentifier 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf899690b8a0c97f3daee91d9c89a6e6306320e785d459eb56bff83247730f0"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestDownload.writeManifestToStream (cyclomatic 19): ManifestDownload.writeManifestToStream has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.SDK/ManifestDownload.SDK.fs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4a4df3c6acc4d4021ae17a16c20bc31cc03eb55c459119ecb875b3e0f5c6ff"}},{"ruleId":"D1","level":"warning","message":{"text":"AspireTestHost.restartGraceServerWithEvidenceAsync (cyclomatic 19): AspireTestHost.restartGraceServerWithEvidenceAsync 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":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e76ba757ddf367f13c504ea49f23e3f0a489b451b1dc07a1e54049fc92d2210"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerRestartRuntime.readSnapshotAsync (cyclomatic 19): ServerRestartRuntime.readSnapshotAsync has cyclomatic 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":"src/Grace.Server.Tests/ManifestContributionServerRestart.Measurement.Tests.fs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2ff193e04b5038bfe4fd813022a675a47c6b01bd353a1eafe874f25c365016"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.resolveOrganizationId (cyclomatic 18): Services.resolveOrganizationId has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd24cbf5159fb6946ac57af2add7998b9b42f22c87e11330adac6c1c30ae85c1"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.resolveRepositoryId (cyclomatic 18): Services.resolveRepositoryId has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6875437a3988f3469e34ef039d347d68281e9dec98da8de2ebac1f459f32b5"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.resolveBranchId (cyclomatic 18): Services.resolveBranchId has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"777dfc59e89a6d73feece4409ba199c30f12bb23cfdf24c60c3d4e416c58ae72"}},{"ruleId":"D1","level":"warning","message":{"text":"DedupeIndex.contiguousActiveRanges (cyclomatic 18): DedupeIndex.contiguousActiveRanges has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"777f99efe081e30a1cb295f93299cb6dbbc5e9ebc9181f91280bdfe7698710b5"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.validateFinalizeReplayManifestBeforeHydration (cyclomatic 18): Storage.validateFinalizeReplayManifestBeforeHydration has cyclomatic complexity 18 (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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bea2cc6a86b9214079a66cba5bd89fb141ac288e46767d6760d9554fcce7ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.validateCurrentBranchMaterializationDirectoryClosureAndHashes (cyclomatic 18): Watch.validateCurrentBranchMaterializationDirectoryClosureAndHashes has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":5727}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c08f7c59e0ac1f576c6d9a4eeadc157fba1a56b1a6a1569931114dab0c91c4d"}},{"ruleId":"D1","level":"warning","message":{"text":"Reference.promotionHandler (cyclomatic 18): Reference.promotionHandler has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"5683a617dee1fbfed2cadc349709190ed821b893288efacc3cf337e7264576f2"}},{"ruleId":"D1","level":"warning","message":{"text":"Branch.promotionHandler (cyclomatic 18): Branch.promotionHandler has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7b2ccec27f9dff8555e3368203588e52b7df4d20bb984769a86f627d4911db"}},{"ruleId":"D1","level":"warning","message":{"text":"Branch.renderBranchStatus (cyclomatic 18): Branch.renderBranchStatus has cyclomatic complexity 18 (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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":4539}}}],"partialFingerprints":{"codehealthFindingId/v1":"98727921c6388963c1a3986bad2e46c1a52cc03a437a0023b26055c9d506998d"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.applyUploadedFileVersionsToDirectoryVersionsWithSavedDirectoryVersions (cyclomatic 18): Services.applyUploadedFileVersionsToDirectoryVersionsWithSavedDirectoryVersions has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"3378d52b6320b5c1350cdd90fd073021946b0bc1e4724fa85d7177b139343df2"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.tryGetCreateTableColumnList (cyclomatic 18): LocalStateDb.tryGetCreateTableColumnList has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed7a692a8f6fe71abc18f37387883a732693f23efa877657ee8b599864f4658"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.contentBlockPlacementFromUriUsingConfiguredEndpoint (cyclomatic 18): Storage.contentBlockPlacementFromUriUsingConfiguredEndpoint has cyclomatic complexity 18 (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":"src/Grace.SDK/Storage.SDK.fs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ba5c235d3a6a0cc188fd43bbec272a74e433cb73932475c9acca77055c8c98"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryActor.ApplyEvent (cyclomatic 17): RepositoryActor.ApplyEvent has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Repository.Actor.fs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ecb0def7e2c8b72087a5e2204d3ff4fc3a5c0587b09d116670a70c4ec155c6"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadSession.createRevalidatedClaimedMetadataMergeCommand (cyclomatic 17): UploadSession.createRevalidatedClaimedMetadataMergeCommand has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"225c72b1ff75998981bb742c2c5102ca6488124f1bd6c323265da08d9cacad52"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlockMetadata.createMergedMetadata (cyclomatic 17): ContentBlockMetadata.createMergedMetadata has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"024d7f5664f6df074bc2507afa1f37d24ab374f068189698239c192d4cd14843"}},{"ruleId":"D1","level":"warning","message":{"text":"Startup.ConfigureServices (cyclomatic 17): Startup.ConfigureServices 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":"src/Grace.Server/Startup.Server.fs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae33fa528113cab4e97fd2ee45dbdfa40e16b338a8c6b59a40c4be02075a478a"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaimMapping.mapClaims (cyclomatic 17): ClaimMapping.mapClaims 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":"src/Grace.Server/Security/ClaimMapping.Server.fs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d4dc14f22fd31c3c0c99405878a29247c118a1df8f6f134cb80de175db067d"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.shouldIgnoreDeletedPath (cyclomatic 17): Watch.shouldIgnoreDeletedPath has cyclomatic complexity 17 (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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"72105bd4570f3a54e7a57740f9bceaf1cfee652a5640a862fe54c639a1547c92"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.quarantinePendingWatchWork (cyclomatic 17): Watch.quarantinePendingWatchWork 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb709b1ea2b1d3498e675a7866ec9114ad9c2a48239ed572a42d1f26fc21a8"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.verifyCurrentBranchMaterializationTargetsUnchanged (cyclomatic 17): Watch.verifyCurrentBranchMaterializationTargetsUnchanged 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":5661}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7b1b8dbc1a99d6579a58d1b6dbbd2fb6cd2dd4a44b916be1dcce785adedf33"}},{"ruleId":"D1","level":"warning","message":{"text":"Login.InvokeAsync (cyclomatic 17): Login.InvokeAsync has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd895b26c3058d5e8cbd60d7b6b5c844862804887bf0d12358b06bf082ec453"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.scanForDifferences (cyclomatic 17): Services.scanForDifferences 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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"43822bf59e96709169a36f7efef9ea1822487f6e90110f2205e3b09364601bbc"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.downloadFilesFromObjectStorageWithClients (cyclomatic 17): Services.downloadFilesFromObjectStorageWithClients has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"f254aeb94072de68e1047a6528478a96af78f9810a83d3a6ee723f8e276aa399"}},{"ruleId":"D1","level":"warning","message":{"text":"BaselineRuntime.observeReferenceEnvelopesAsync (cyclomatic 17): BaselineRuntime.observeReferenceEnvelopesAsync has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionBaseline.Measurement.Tests.fs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5368308a7cb6aefeafe95565cc2cf6e38b2b8bd06f554a4d458911a42a04cdc"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentBlockMetadata.adjustActiveManifestCount (cyclomatic 16): ContentBlockMetadata.adjustActiveManifestCount has cyclomatic complexity 16 (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":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6bb981951e6f0b5e0f8dd24361c3e3482b3782233e88f1c7df154936fdffc2"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionSetActor.ResolveConflictWithModel (cyclomatic 16): PromotionSetActor.ResolveConflictWithModel has cyclomatic complexity 16 (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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e385b87376260f7a2705cfac363a4886dd5461e22343f445b5940aff634e44"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryVersion.convergePhysicalDeletionWith (cyclomatic 16): DirectoryVersion.convergePhysicalDeletionWith has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"925838ed068545f3137dc4a28830c313c909305aae1d10a307ed839e7bc7c179"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageFact.Validate (cyclomatic 16): UsageFact.Validate 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":"src/Grace.Types/Usage.Types.fs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a42083c2440943675bbfef5a2d9fc48cdd2f8bf1d092d3c755dd049021fc143"}},{"ruleId":"D1","level":"warning","message":{"text":"DedupeIndex.splitRangeIntoDedupeWindows (cyclomatic 16): DedupeIndex.splitRangeIntoDedupeWindows 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":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c83c72e325f6a44b47e5b97878bcf1d43ee637e2c4e1a8d209f6bb7bc6d5c9"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationLineCore.buildLineAlignmentRange (cyclomatic 16): AnnotationLineCore.buildLineAlignmentRange has cyclomatic complexity 16 (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":"src/Grace.Shared/AnnotationLineCore.Shared.fs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"25009b3c819e9dc563e0caf28458ff94271ea2e039c5739de503ca66a7436a38"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.bootstrapHandler (cyclomatic 16): AgentCommand.bootstrapHandler 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"af76723b6f6f043d14bf0bf77cfb251147564def644a88f17a9ffd8cceb87d15"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionSetCommand.resolveConflictsHandler (cyclomatic 16): PromotionSetCommand.resolveConflictsHandler has cyclomatic complexity 16 (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":"src/Grace.CLI/Command/PromotionSet.CLI.fs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc4739464ecab9a8cdca14f0b88f31bda25f342aefdcabb1968cea38d842911"}},{"ruleId":"D1","level":"warning","message":{"text":"Watch.deriveDeleteDifferences (cyclomatic 16): Watch.deriveDeleteDifferences has cyclomatic complexity 16 (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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd990a4c9a5f2b59631e56d848925d5b603ee03a42e585c61e5fedbcf47b4cf"}},{"ruleId":"D1","level":"warning","message":{"text":"Auth.tryGetAccessToken (cyclomatic 16): Auth.tryGetAccessToken has cyclomatic complexity 16 (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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc042f21bb44005bc2e94a055c2fd3c212543663405de60dbdd38ee86e938de"}},{"ruleId":"D1","level":"warning","message":{"text":"Services.getNewGraceStatusAndDirectoryVersions (cyclomatic 16): Services.getNewGraceStatusAndDirectoryVersions has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2500}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc42ae485fd80f943b9183a658f5f4b8bbd29a808099b1d4bf78adee530b3d9d"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalStateDb.recoverWatchJournalForStartup (cyclomatic 16): LocalStateDb.recoverWatchJournalForStartup has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2345}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcb5964a6cbcfb6665d30eecd0e71cae706b1df8857e4651c93e5c8395dfee8"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestContributionDeadLetterMeasurementTests.isolated broker witness reaches dead-letter delivery eleven (cyclomatic 16): ManifestContributionDeadLetterMeasurementTests.isolated broker witness reaches dead-letter delivery eleven has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionDeadLetter.Measurement.Tests.fs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c121060c40a7bb1a98485de88b9bf851351f6e218e264d0ea282b51bfb19dbe4"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.processChangedFilesWithClients (cognitive 293): Watch.processChangedFilesWithClients has cognitive complexity 293 (threshold 15). Drivers by points: if/else 209, error handling 37, match/switch 27, loops 11, boolean chains 9 (nesting depth added 196). 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":8335}}}],"partialFingerprints":{"codehealthFindingId/v1":"874b24c03308a385642a2843837927928eaed0150230b073e24431a6b06acce5"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.ComputeAppliedDirectoryVersionForStep (cognitive 291): PromotionSetActor.ComputeAppliedDirectoryVersionForStep has cognitive complexity 291 (threshold 15). Drivers by points: match/switch 127, if/else 126, loops 29, boolean chains 9 (nesting depth added 230). 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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72cb2a5ef1b1f19f7baf94a84cfd19787ed908f7882c8e4775270fd1113864e"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionDiagnosis.diagnoseWith (cognitive 224): ManifestContributionDiagnosis.diagnoseWith has cognitive complexity 224 (threshold 15). Drivers by points: match/switch 83, if/else 77, loops 36, boolean chains 28 (nesting depth added 125). 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":"src/Grace.Server/ManifestContributionDiagnosis.Server.fs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3664a74039ce6feea14bea66072099015bbc9b2083b433ca3b23e57399f7689"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.processCurrentBranchMaterializationNotification (cognitive 220): Watch.processCurrentBranchMaterializationNotification has cognitive complexity 220 (threshold 15). Drivers by points: if/else 167, match/switch 37, error handling 13, boolean chains 2, loops 1 (nesting depth added 166). 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":6430}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa05486c9a05881560602b6236df5c8a021ee478f71ad405d46ae9734028049c"}},{"ruleId":"D2","level":"warning","message":{"text":"GraceCommand.main (cognitive 217): GraceCommand.main has cognitive complexity 217 (threshold 15). Drivers by points: if/else 142, match/switch 41, boolean chains 17, loops 15, error handling 2 (nesting depth added 118). 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":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aa16c5cf1c99ffcc76817017cb6d07824fe22c29e5b794ed4325318a69120e"}},{"ruleId":"D2","level":"warning","message":{"text":"Text.apart (cognitive 185): Text.apart has cognitive complexity 185 (threshold 15). Drivers by points: if/else 184, match/switch 1 (nesting depth added 14). 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":"src/Grace.Shared/Resources/Text/Languages.Resources.fs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daba5ec296a058e97c1af5f578f6c22337e2a2160f98215b93b5d8cfd3f2369"}},{"ruleId":"D2","level":"warning","message":{"text":"Doctor.resultForCheck (cognitive 161): Doctor.resultForCheck has cognitive complexity 161 (threshold 15). Drivers by points: if/else 97, match/switch 57, boolean chains 7 (nesting depth added 73). 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":"src/Grace.CLI/Command/Doctor.CLI.fs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e9648f385c369a45098f959536a13a927980ba6cc152356501eaef5bb0016a"}},{"ruleId":"D2","level":"warning","message":{"text":"Text.ago (cognitive 159): Text.ago has cognitive complexity 159 (threshold 15). Drivers by points: if/else 158, match/switch 1 (nesting depth added 12). 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":"src/Grace.Shared/Resources/Text/Languages.Resources.fs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"51feab33e4a2a71af285d079ce97b50e17ed9d7f72b7f68b96637234ca30668b"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.rebaseHandler (cognitive 148): Branch.rebaseHandler has cognitive complexity 148 (threshold 15). Drivers by points: if/else 86, match/switch 47, loops 13, boolean chains 2 (nesting depth added 116). 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":4073}}}],"partialFingerprints":{"codehealthFindingId/v1":"c361d253a71223cfff3fc76589902cc769efbea45dc8ff7d256c8943f35068d8"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.workStartWith (cognitive 144): AgentCommand.workStartWith has cognitive complexity 144 (threshold 15). Drivers by points: if/else 106, match/switch 38 (nesting depth added 114). 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"538b6d801b6452c9ebaf230982dc6ab47abb2bd085b48c4619455e39dc6eed84"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestUpload.uploadFileWithClient (cognitive 113): ManifestUpload.uploadFileWithClient has cognitive complexity 113 (threshold 15). Drivers by points: match/switch 69, if/else 30, loops 13, boolean chains 1 (nesting depth added 86). 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":"src/Grace.SDK/ManifestUpload.SDK.fs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b56bdb1c2615e009cdb6a398a20d29601c535391b82d1e3dd39fe4c6c5215c"}},{"ruleId":"D2","level":"warning","message":{"text":"Subscriber.handleEvent (cognitive 108): Subscriber.handleEvent has cognitive complexity 108 (threshold 15). Drivers by points: if/else 74, match/switch 34 (nesting depth added 77). 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":"src/Grace.Server/Notification.Server.fs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f2d6705cdd41fe1324832115a4a3eedbe338c0c4c7a77cf847c590fa50c5f0"}},{"ruleId":"D2","level":"warning","message":{"text":"Repository.initHandler (cognitive 103): Repository.initHandler has cognitive complexity 103 (threshold 15). Drivers by points: if/else 42, match/switch 34, loops 26, error handling 1 (nesting depth added 81). 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":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5b5c80471bfd67dcbd8cb373aff5b682d4ce0e9bf2a997e9db00cee3e782f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidateIdsMiddleware.Invoke (cognitive 95): ValidateIdsMiddleware.Invoke has cognitive complexity 95 (threshold 15). Drivers by points: if/else 50, match/switch 44, error handling 1 (nesting depth added 62). 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":"src/Grace.Server/Middleware/ValidateIds.Middleware.fs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d047262f63c99418b1bb2f687a7622f9f895dd64d052e76f1d0f35beace42f80"}},{"ruleId":"D2","level":"warning","message":{"text":"BranchActor.Grace.Actors.Interfaces.IBranchActor.Handle (cognitive 94): BranchActor.Grace.Actors.Interfaces.IBranchActor.Handle has cognitive complexity 94 (threshold 15). Drivers by points: match/switch 61, if/else 25, boolean chains 7, error handling 1 (nesting depth added 46). 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":"src/Grace.Actors/Branch.Actor.fs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"e446c1a02ccbacb99b396051236590681791adad395b80e608038ce9577bfb80"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionAccounting.handleReferenceCreatedWith (cognitive 90): ManifestContributionAccounting.handleReferenceCreatedWith has cognitive complexity 90 (threshold 15). Drivers by points: if/else 48, match/switch 21, loops 15, boolean chains 6 (nesting depth added 65). 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":"src/Grace.Server/ManifestContributionAccounting.Server.fs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"892332c2c92a8dc32f97555b474293a01c1d5691e8c6912c66c0d825aca73ad8"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.ConfirmContentBlockUpload (cognitive 87): Storage.ConfirmContentBlockUpload has cognitive complexity 87 (threshold 15). Drivers by points: match/switch 69, if/else 16, boolean chains 1, error handling 1 (nesting depth added 70). 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fc204fc7488e65faa35ef3dbc6eb0380ec2fa9dbb7374b9aec5f5065197540"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.Main (cognitive 86): Program.Main has cognitive complexity 86 (threshold 15). Of this number, 79 points are the body\u0027s own statements and 7 belong to 2 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":"src/Grace.Aspire.AppHost/Program.Aspire.AppHost.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"266301530f6612f260d47fd43bac83d2235dae049d703c19562fcad8629084c9"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryVersionActor.Grace.Actors.Interfaces.IDirectoryVersionActor.Handle (cognitive 85): DirectoryVersionActor.Grace.Actors.Interfaces.IDirectoryVersionActor.Handle has cognitive complexity 85 (threshold 15). Drivers by points: match/switch 61, if/else 18, loops 4, error handling 2 (nesting depth added 53). 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":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b039a921793d2684a622fdb7647e0342a48823d326f1ead1add5bf2c3f0b19"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.updateGraceStatusFromDifferences (cognitive 83): Watch.updateGraceStatusFromDifferences has cognitive complexity 83 (threshold 15). Drivers by points: if/else 42, loops 21, match/switch 18, boolean chains 2 (nesting depth added 54). 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":7708}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c08d9d36da1ff65a58d2f1a015aa85a0e232fc917f4e2e0b8a48d38580724f3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.workStatusWith (cognitive 81): AgentCommand.workStatusWith has cognitive complexity 81 (threshold 15). Drivers by points: match/switch 46, if/else 32, boolean chains 3 (nesting depth added 60). 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"9917ed83b1f6069ee807b542be6e7ebfb484a8d97454cddcbb68ae5e6f683bcf"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.RecomputeSteps (cognitive 80): PromotionSetActor.RecomputeSteps has cognitive complexity 80 (threshold 15). Drivers by points: match/switch 46, if/else 26, boolean chains 4, loops 4 (nesting depth added 57). 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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"d416ebf8e2eb51826e71453ebafe8c5861cfdab675febeb1dfe8d165e43c4f62"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.workStopWith (cognitive 79): AgentCommand.workStopWith has cognitive complexity 79 (threshold 15). Drivers by points: match/switch 42, if/else 34, boolean chains 3 (nesting depth added 57). 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a289ba9f24b21162eefeec3caf514112949db6c75883958cd3b61863429bde"}},{"ruleId":"D2","level":"warning","message":{"text":"Maintenance.updateIndexHandler (cognitive 79): Maintenance.updateIndexHandler has cognitive complexity 79 (threshold 15). Drivers by points: if/else 41, match/switch 21, loops 16, error handling 1 (nesting depth added 47). 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":"src/Grace.CLI/Command/Maintenance.CLI.fs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"921c11a30947675b427c46bebae6157c7de7a117fe701af21e7f99b6e6f9b97b"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.readStatusSnapshotReadOnly (cognitive 79): LocalStateDb.readStatusSnapshotReadOnly has cognitive complexity 79 (threshold 15). Drivers by points: if/else 61, loops 10, match/switch 4, error handling 3, boolean chains 1 (nesting depth added 50). 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":3532}}}],"partialFingerprints":{"codehealthFindingId/v1":"b195bac6e2bc8a4b19890a31886e98afe126deccc2aa70195977102275c64468"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRun.InvokeAsync (cognitive 78): HistoryRun.InvokeAsync has cognitive complexity 78 (threshold 15). Drivers by points: if/else 57, error handling 8, match/switch 7, boolean chains 6 (nesting depth added 49). 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":"src/Grace.CLI/Command/History.CLI.fs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3439fc32a85e8badec423ef5ef1f4b57f57fe1ecb4dcfb85358dfa1ea21943"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.addSummaryHandler (cognitive 76): AgentCommand.addSummaryHandler has cognitive complexity 76 (threshold 15). Drivers by points: match/switch 43, if/else 30, boolean chains 3 (nesting depth added 55). 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"362f985575ec49f88ec8f9cefc3cdfccbe5b4a3c8e12af90f9157f9b03afce2d"}},{"ruleId":"D2","level":"warning","message":{"text":"Reference.createReferenceHandler (cognitive 69): Reference.createReferenceHandler has cognitive complexity 69 (threshold 15). Drivers by points: match/switch 56, if/else 12, error handling 1 (nesting depth added 48). 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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38382894e46b68e2f41d88cb5bb8f03c9866044006368cad0ce1ffc9dc3aa40"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.ApplyPromotionSet (cognitive 68): PromotionSetActor.ApplyPromotionSet has cognitive complexity 68 (threshold 15). Drivers by points: match/switch 38, if/else 22, boolean chains 4, loops 4 (nesting depth added 43). 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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"49659dc4420b2c588b67bf26ba786931c8ac56e1f6871c4fb671a001433f57f6"}},{"ruleId":"D2","level":"warning","message":{"text":"Diff.diffToReferenceType (cognitive 67): Diff.diffToReferenceType has cognitive complexity 67 (threshold 15). Drivers by points: match/switch 36, if/else 26, loops 3, boolean chains 2 (nesting depth added 45). 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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5918ff2a2cf6e6ab367d7eb9989f8872463067d332026c18093370f721f991f"}},{"ruleId":"D2","level":"warning","message":{"text":"DeadLetterRuntime.inventoryDefaultReferenceProducerAsync (cognitive 64): DeadLetterRuntime.inventoryDefaultReferenceProducerAsync has cognitive complexity 64 (threshold 15). Drivers by points: match/switch 29, if/else 23, error handling 5, loops 5, boolean chains 2 (nesting depth added 44). 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":"src/Grace.Server.Tests/ManifestContributionDeadLetter.Measurement.Tests.fs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e47b6ded8f149a55f8449d6996545643b5e71ce8c7adf3de139e9e0b1769f0"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.ensureDbInitialized (cognitive 62): LocalStateDb.ensureDbInitialized has cognitive complexity 62 (threshold 15). Drivers by points: if/else 33, error handling 19, match/switch 6, boolean chains 4 (nesting depth added 39). 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a72f07dc025603e7314f3f0cecec7ab3651f17589a36ad30fe3c19b5dcda52a"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionRepair.repairWith (cognitive 61): ManifestContributionRepair.repairWith has cognitive complexity 61 (threshold 15). Drivers by points: if/else 31, error handling 12, match/switch 11, boolean chains 4, loops 3 (nesting depth added 34). 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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"7000a521d99ed18d39e99e9778ad8840ff3e9792fe33710dbb202059552856ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.uploadPendingWatchFilesForStatusRetry (cognitive 60): Watch.uploadPendingWatchFilesForStatusRetry has cognitive complexity 60 (threshold 15). Drivers by points: if/else 22, match/switch 17, error handling 12, boolean chains 8, loops 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":8089}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ad45c5a6e2ca256da889a646909b270244f1465bcb4c9d42648c3844e6d206"}},{"ruleId":"D2","level":"warning","message":{"text":"AspireTestHost.startNewHostAsync (cognitive 60): AspireTestHost.startNewHostAsync has cognitive complexity 60 (threshold 15). Drivers by points: if/else 34, match/switch 14, error handling 6, loops 4, boolean chains 2 (nesting depth added 14). 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":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a46f6a6481611b0bc8551a95349768fc619bcb5cc9db367cb150f6e3bc0bbf"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionRepair.buildPlan (cognitive 59): ManifestContributionRepair.buildPlan has cognitive complexity 59 (threshold 15). Drivers by points: if/else 28, match/switch 22, loops 6, boolean chains 3 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f25c735d8752132a96645c328d7692e6b00ff4e714c2abe9c4abd2f97a5b888"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSession.decideCommand (cognitive 56): UploadSession.decideCommand has cognitive complexity 56 (threshold 15). Drivers by points: match/switch 44, if/else 12 (nesting depth added 31). 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb60787538364fa943bc78811b26feaf8338032ad5e5d92745a01e069453751"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSessionActor.Grace.Actors.Interfaces.IUploadSessionActor.Handle (cognitive 55): UploadSessionActor.Grace.Actors.Interfaces.IUploadSessionActor.Handle has cognitive complexity 55 (threshold 15). Drivers by points: match/switch 30, if/else 25 (nesting depth added 40). 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba961692aadb2ea69f8a6ee1ee02d1fcab5ae682050b41d91d883f41fd75e68"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.processDueLocalObservationCandidates (cognitive 55): Watch.processDueLocalObservationCandidates has cognitive complexity 55 (threshold 15). Drivers by points: match/switch 28, if/else 22, boolean chains 4, loops 1 (nesting depth added 37). 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":3907}}}],"partialFingerprints":{"codehealthFindingId/v1":"67859e6898bf641672f9beb66f816630ec33a004cab3463246b9a7d5cbb57b33"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSession.tryCreateContentBlockMetadataMergeCommandsForFinalizedBlocks (cognitive 54): UploadSession.tryCreateContentBlockMetadataMergeCommandsForFinalizedBlocks has cognitive complexity 54 (threshold 15). Drivers by points: loops 21, match/switch 21, if/else 9, boolean chains 3 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"4390e7602b072f1f326b6891dabf7a0dde176f810d5b5e1bf29ccb6c395c808d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockFormat.decode (cognitive 54): ContentBlockFormat.decode has cognitive complexity 54 (threshold 15). Drivers by points: if/else 34, match/switch 11, loops 6, boolean chains 3 (nesting depth added 33). 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":"src/Grace.Shared/ContentBlockFormat.Shared.fs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2ca8ce6ea773fa08dcd98bb11606bd369283458614e799e0601a2dcf6c57ce"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionWorkflow.decideCommandForKey (cognitive 53): ManifestContributionWorkflow.decideCommandForKey has cognitive complexity 53 (threshold 15). Drivers by points: if/else 27, match/switch 25, boolean chains 1 (nesting depth added 33). 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":"src/Grace.Actors/ManifestContributionWorkflow.Actor.fs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc033d9cd7a8b1362bc7d72c457a1df07a40e895294d9108d5196521c5fc846"}},{"ruleId":"D2","level":"warning","message":{"text":"Reference.promotionHandler (cognitive 50): Reference.promotionHandler has cognitive complexity 50 (threshold 15). Drivers by points: match/switch 31, if/else 18, error handling 1 (nesting depth added 36). 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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"16739cb49c3059a04ce8fe1b4d6d7686b79f2b771c7cda1a4c7e038bd5983c67"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.promotionHandler (cognitive 50): Branch.promotionHandler has cognitive complexity 50 (threshold 15). Drivers by points: match/switch 31, if/else 18, error handling 1 (nesting depth added 36). 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36739bf15fef0dc3204391fd89edab5c5e1bbed14323924e1f047ab3b7073f1"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSessionActor.PrevalidateFinalizedContentBlockMetadata (cognitive 48): UploadSessionActor.PrevalidateFinalizedContentBlockMetadata has cognitive complexity 48 (threshold 15). Drivers by points: match/switch 45, loops 2, boolean chains 1 (nesting depth added 36). 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"83aa11f1db3bbfe626d441c557262694b4fd25794c2e9fe565361df4677c44e3"}},{"ruleId":"D2","level":"warning","message":{"text":"DedupeIndex.recordsAfterFinalize (cognitive 47): DedupeIndex.recordsAfterFinalize has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 20, if/else 15, loops 11, boolean chains 1 (nesting depth added 36). 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":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc626712bd32ae8b8a3d609ab1ea83420e351cc8acf0bad174076646d14ef33c"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.applyCurrentBranchMaterializationTargets (cognitive 47): Watch.applyCurrentBranchMaterializationTargets has cognitive complexity 47 (threshold 15). Drivers by points: if/else 30, error handling 7, loops 5, boolean chains 4, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":5925}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f8df260e1c5454bbd41878a580556e6d152f37e52aa508c9c47b0e6e8fbe68"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.resolveCliCurrentStateTargetReference (cognitive 47): Services.resolveCliCurrentStateTargetReference has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 41, if/else 6 (nesting depth added 35). 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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3544}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f7e9a53d7cf8fdd16ddff759b9479a1cda6044a47c485218b0272575a7571f"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkItem.AddSummary (cognitive 46): WorkItem.AddSummary has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 40, if/else 6 (nesting depth added 35). 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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a83c581be3ea56e3900133a739c3ce6eb5c848a0dbb1e32e164bf959c69794"}},{"ruleId":"D2","level":"warning","message":{"text":"BaselineRuntime.observeReferenceEnvelopesAsync (cognitive 46): BaselineRuntime.observeReferenceEnvelopesAsync has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17, match/switch 12, error handling 11, loops 5, boolean chains 1 (nesting depth added 29). 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":"src/Grace.Server.Tests/ManifestContributionBaseline.Measurement.Tests.fs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f5211619b0c0df49f401756ff486bede236908e4749fe98e74aa8e637f62c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.branchAllowsReferenceType (cognitive 45): Branch.branchAllowsReferenceType has cognitive complexity 45 (threshold 15). Drivers by points: if/else 41, match/switch 4 (nesting depth added 25). 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":"src/Grace.Server/Validations.Server.fs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"8217e9bce9926a8c38d2393ec57a9ddadb5daa597d3aed73afafc723b256406d"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.createReferenceHandler (cognitive 44): Branch.createReferenceHandler has cognitive complexity 44 (threshold 15). Drivers by points: match/switch 31, if/else 12, error handling 1 (nesting depth added 29). 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d762dfa451488ef59fad714282289e5b18c1012eac8d46a0554db2bc5c4a3f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestDownload.writeManifestToStream (cognitive 42): ManifestDownload.writeManifestToStream has cognitive complexity 42 (threshold 15). Drivers by points: match/switch 21, if/else 11, error handling 8, boolean chains 1, loops 1 (nesting depth added 29). 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":"src/Grace.SDK/ManifestDownload.SDK.fs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de5af294fda08f0256b6c62ea37ea46fb86a9e34f169c6558eb83476ab14358"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffActor.Grace.Actors.Interfaces.IDiffActor.Compute (cognitive 41): DiffActor.Grace.Actors.Interfaces.IDiffActor.Compute has cognitive complexity 41 (threshold 15). Drivers by points: if/else 29, match/switch 9, boolean chains 2, error handling 1 (nesting depth added 24). 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":"src/Grace.Actors/Diff.Actor.fs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f19dfad1902b77ad7a3cca246b0364041573b9928301eda187d51169d1b88b4"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.ResolveConflictWithModel (cognitive 41): PromotionSetActor.ResolveConflictWithModel has cognitive complexity 41 (threshold 15). Drivers by points: match/switch 28, if/else 13 (nesting depth added 30). 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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"59dbb0a297d31b559cefff27d4ed4570e9e1f0a62b94d27a7b2d354afbef4490"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.ClaimReuseRanges (cognitive 41): Storage.ClaimReuseRanges has cognitive complexity 41 (threshold 15). Drivers by points: match/switch 26, if/else 8, loops 5, boolean chains 1, error handling 1 (nesting depth added 25). 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"11898d1717a4e2d7d9a995e8a1e7923f61849aa47d1b16350f431d5de922074a"}},{"ruleId":"D2","level":"warning","message":{"text":"Create.InvokeAsync (cognitive 41): Create.InvokeAsync has cognitive complexity 41 (threshold 15). Drivers by points: if/else 27, match/switch 10, boolean chains 3, error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7fe2e4c402a6542958d4475c7aee60543846e27c963990f3f72c9d022eb040"}},{"ruleId":"D2","level":"warning","message":{"text":"ShaHandler.InvokeAsync (cognitive 41): ShaHandler.InvokeAsync has cognitive complexity 41 (threshold 15). Drivers by points: match/switch 26, if/else 12, loops 3 (nesting depth added 28). 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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"2742fdcccd0a500ed276eff894610f22f77f1b44cbc28b99b9b95b9325930554"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.MaterializeMergedDirectoryVersion (cognitive 40): PromotionSetActor.MaterializeMergedDirectoryVersion has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18, loops 11, match/switch 8, boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c52a7407230dda3d3e1f9cc7dfef19d48814fdb6f5753acd08ededff5a4da9"}},{"ruleId":"D2","level":"warning","message":{"text":"ReferenceActor.Grace.Actors.Interfaces.IReferenceActor.Handle (cognitive 40): ReferenceActor.Grace.Actors.Interfaces.IReferenceActor.Handle has cognitive complexity 40 (threshold 15). Drivers by points: match/switch 28, if/else 10, error handling 2 (nesting depth added 20). 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":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5297c97636d0ff88d5558a05b0e90fb3b7a5d9a5075ee44d70cdeda29c15edf"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCommand.reportExportHandler (cognitive 40): ReviewCommand.reportExportHandler has cognitive complexity 40 (threshold 15). Drivers by points: match/switch 25, if/else 13, boolean chains 1, error handling 1 (nesting depth added 27). 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":"src/Grace.CLI/Command/Review.CLI.fs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"a743bc0e8f4e1f37f65b7f87216c04c38ff7c2403f824b91957c8edccbd07b80"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.applyUploadedFileVersionsToDirectoryVersionsWithSavedDirectoryVersions (cognitive 40): Services.applyUploadedFileVersionsToDirectoryVersionsWithSavedDirectoryVersions has cognitive complexity 40 (threshold 15). Drivers by points: if/else 25, loops 10, match/switch 5 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"a939aa48bd6b1a29fce32400c38cadda8d7c05b74e438a6d09e705b9a9dc1f49"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.tryReadLeadingSqlIdentifier (cognitive 40): LocalStateDb.tryReadLeadingSqlIdentifier has cognitive complexity 40 (threshold 15). Drivers by points: if/else 28, loops 7, boolean chains 5 (nesting depth added 18). 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4412e33599ec3d4aaac16259bc2ab6a3ffabe2e0b17f82bc86f1f20641d272e"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationLineCore.buildAnnotationWithTraversalBoundary (cognitive 39): AnnotationLineCore.buildAnnotationWithTraversalBoundary has cognitive complexity 39 (threshold 15). Drivers by points: match/switch 19, if/else 17, boolean chains 2, loops 1 (nesting depth added 16). 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":"src/Grace.Shared/AnnotationLineCore.Shared.fs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fa764cdf0a09d2c2fb3115ec47738fcdcfb2d8840407cf258f91b1b3250caf"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.loadClaimedMetadataForFinalizeWith (cognitive 39): Storage.loadClaimedMetadataForFinalizeWith has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18, match/switch 14, loops 6, boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ecdc3b31c23536a929a5c11fe7bf46c64afdbbf732f08ca1a72c1460494ea8"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryContentCounter.handleWithRecentResult (cognitive 38): RepositoryContentCounter.handleWithRecentResult has cognitive complexity 38 (threshold 15). Drivers by points: match/switch 19, if/else 17, boolean chains 2 (nesting depth added 25). 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":"src/Grace.Actors/RepositoryContentCounter.Actor.fs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7785a97e8b8e413c29b1bb5b35250778636833fc7f19deb8a44b5c7c6798393"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSession.createRevalidatedClaimedMetadataMergeCommand (cognitive 38): UploadSession.createRevalidatedClaimedMetadataMergeCommand has cognitive complexity 38 (threshold 15). Drivers by points: loops 16, match/switch 12, if/else 9, boolean chains 1 (nesting depth added 24). 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01058e7895d55a82a84a35436180c0ba7176b64681a268ea0ccd9eaca308ba5"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.tryGetCreateTableColumnList (cognitive 38): LocalStateDb.tryGetCreateTableColumnList has cognitive complexity 38 (threshold 15). Drivers by points: if/else 31, boolean chains 3, match/switch 3, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"af28c064f3d23abbddfd91f4514ef190435df424a0bde66824df631c1ed04e89"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockMetadata.decideCommand (cognitive 37): ContentBlockMetadata.decideCommand has cognitive complexity 37 (threshold 15). Drivers by points: match/switch 29, if/else 8 (nesting depth added 22). 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":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"4024117a96c1a5ed8ea637d40a015d02e6d702b6043ff014eadd7e7d85477884"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.buildEffectiveHistory (cognitive 37): Branch.buildEffectiveHistory has cognitive complexity 37 (threshold 15). Drivers by points: match/switch 24, if/else 11, boolean chains 1, loops 1 (nesting depth added 24). 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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba3876aa687a5e912ab8a616a05fe397ed270870b1b649694d260b08433f981"}},{"ruleId":"D2","level":"warning","message":{"text":"GraceCommand.rewriteHelpDefaults (cognitive 37): GraceCommand.rewriteHelpDefaults has cognitive complexity 37 (threshold 15). Drivers by points: if/else 26, loops 5, match/switch 4, boolean chains 2 (nesting depth added 23). 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":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a736c3389b28903f2813d44a13509869236f96cb624d5d4a34e509f6b00395"}},{"ruleId":"D2","level":"warning","message":{"text":"GraceCommand.normalizeOutputArguments (cognitive 37): GraceCommand.normalizeOutputArguments has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23, match/switch 11, boolean chains 3 (nesting depth added 22). 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":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a068baa94fbca17cc29feb68d3634b959eb546aca0998f756e5ec86ae9ce0e"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.InvokeAsync (cognitive 37): Watch.InvokeAsync has cognitive complexity 37 (threshold 15). Drivers by points: if/else 24, error handling 4, match/switch 4, loops 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":9290}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa4843b52737f827e68aeca73fdf083e18edf2f5f15ef42bf42f02b193a5602"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.updateWorkingDirectory (cognitive 37): Services.updateWorkingDirectory has cognitive complexity 37 (threshold 15). Drivers by points: if/else 22, loops 7, boolean chains 4, match/switch 4 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bdc571aee72cbe45f47bbcf1e7151134bc091e904879a1671b7a0a478bd1d0"}},{"ruleId":"D2","level":"warning","message":{"text":"AspireTestHost.waitForCosmosReadyAsync (cognitive 37): AspireTestHost.waitForCosmosReadyAsync has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17, error handling 8, match/switch 7, loops 3, boolean chains 2 (nesting depth added 22). 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":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1add87b043be0ff007eb4f5a2a80fc4534f4150d80699805522c2dc7806b1e"}},{"ruleId":"D2","level":"warning","message":{"text":"ApprovalRequest.decideCommand (cognitive 36): ApprovalRequest.decideCommand has cognitive complexity 36 (threshold 15). Drivers by points: if/else 29, match/switch 4, boolean chains 3 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/ApprovalRequest.Actor.fs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"378e1d616e5f94dbf104c18cc7c29437de216980a188f8f646ee1fd2f89634e7"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageFact.Validate (cognitive 36): UsageFact.Validate has cognitive complexity 36 (threshold 15). Drivers by points: if/else 36 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/Usage.Types.fs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00af31572b09c6b96215519f35058e422cde678ebfbe266f8a2392b28f945fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.FinalizeManifestUpload (cognitive 36): Storage.FinalizeManifestUpload has cognitive complexity 36 (threshold 15). Drivers by points: match/switch 35, error handling 1 (nesting depth added 26). 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f2bbc96620e891108fbde06c55acc67f7c56e02f0d412f56d6c6581cfab499"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalFileMaterialization.manifestPayloads (cognitive 36): NormalFileMaterialization.manifestPayloads has cognitive complexity 36 (threshold 15). Drivers by points: match/switch 25, loops 5, if/else 4, boolean chains 2 (nesting depth added 23). 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":"src/Grace.Server/NormalFileMaterialization.Server.fs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e815b65105c80e35605aebc4c8ebc9219e8efb8be35ba06fe97bbfb0bf5b3c0b"}},{"ruleId":"D2","level":"warning","message":{"text":"GetBranches.InvokeAsync (cognitive 36): GetBranches.InvokeAsync has cognitive complexity 36 (threshold 15). Drivers by points: if/else 23, match/switch 8, loops 4, error handling 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a97b6e1f0da90ee2e555e2c9745e8a53baadc81db92e3ce186edd517d3aa2cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.resolveOrganizationId (cognitive 35): Services.resolveOrganizationId has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20, match/switch 14, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"18015d98e9eeeb7d61f433a1034c1eb82bccda28c2bc7b8b8fbbe1d7e7fab893"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.resolveRepositoryId (cognitive 35): Services.resolveRepositoryId has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20, match/switch 14, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff687dd5b0f09d5eaabd12726644e6337a7b0dd7e332c0be1dd2ac314c9f221e"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.resolveBranchId (cognitive 35): Services.resolveBranchId has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20, match/switch 14, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba4504ceb384a3ae9624ef2e27912c71e6d7d2dfcd6dffa5b6d95cb1503f7a9"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.hydrateFinalizeEvidenceFromClaimedMetadata (cognitive 35): Storage.hydrateFinalizeEvidenceFromClaimedMetadata has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 24, if/else 6, loops 3, boolean chains 2 (nesting depth added 20). 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fce090bf1ad11a8ed33fd3b72ac40f89986a851118151a86b9b5e8bc599a81c"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionDiagnosis.validateParameters (cognitive 35): ManifestContributionDiagnosis.validateParameters has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 17, if/else 14, boolean chains 4 (nesting depth added 18). 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":"src/Grace.Server/ManifestContributionDiagnosis.Server.fs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfef9921ee14d1cc079dc12c47402661b532e82846672b9f322cfb14fa3e0a0"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStorage.applyRegexRedactions (cognitive 35): HistoryStorage.applyRegexRedactions has cognitive complexity 35 (threshold 15). Drivers by points: if/else 27, loops 8 (nesting depth added 24). 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":"src/Grace.CLI/HistoryStorage.CLI.fs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e92eca6f8e1a626aefe29a6e5f0870af0489bf789be4f7a7f0c1034853fca7"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.scanForDifferences (cognitive 35): Services.scanForDifferences has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24, loops 5, match/switch 4, boolean chains 1, error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14f12448a051b1c2c8458caa24d1343b503aaf0fd4562277c2dfbf529711d29"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockMetadata.mergeRanges (cognitive 34): ContentBlockMetadata.mergeRanges has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24, match/switch 6, boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e44c63c45beef4f93dae266a55e2df254be6aa3f2286cd23c24648015e344ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.SaveFileToObjectStorageWithMetadata (cognitive 33): Storage.SaveFileToObjectStorageWithMetadata has cognitive complexity 33 (threshold 15). Drivers by points: if/else 29, error handling 3, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.SDK/Storage.SDK.fs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdbb8d1a13f2b853078892fa350ddf16f0226692d67c77052dadb6684f58dfe"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockMetadata.trySelectContiguousRangeEvidence (cognitive 32): ContentBlockMetadata.trySelectContiguousRangeEvidence has cognitive complexity 32 (threshold 15). Drivers by points: if/else 29, boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/ContentBlockMetadata.Types.fs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc545550407c0e77be4bf1542f301994c911ecfb06cb7842f6a57c9aae3b5dda"}},{"ruleId":"D2","level":"warning","message":{"text":"Access.tryParseCurrentContextResource (cognitive 32): Access.tryParseCurrentContextResource has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16, match/switch 14, boolean chains 2 (nesting depth added 18). 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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5e9fe4ec11bde6765457a194fe5203ae915fa2f9952a69185987103212502f"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetCommand.resolveConflictsHandler (cognitive 32): PromotionSetCommand.resolveConflictsHandler has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 16, if/else 14, boolean chains 1, error handling 1 (nesting depth added 21). 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":"src/Grace.CLI/Command/PromotionSet.CLI.fs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"180d31f7cd1b771d266bff4f3d1c557e569ec1e5aab5df379b3e87b193c7c03a"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.completeGraceUpdateTransitionAfterMarkerDeletion (cognitive 32): Watch.completeGraceUpdateTransitionAfterMarkerDeletion has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19, error handling 11, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":4391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8f9ac3e4490cdb62de7e8653a3f3476a999ab9197a54aae193cc89db66298a"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.validateCurrentBranchMaterializationDirectoryClosureAndHashes (cognitive 32): Watch.validateCurrentBranchMaterializationDirectoryClosureAndHashes has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, loops 7 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":5727}}}],"partialFingerprints":{"codehealthFindingId/v1":"c481454f8aa1fb4d4c88c2235c2348c822cda12d1e53e3b15f8887828a9e41fd"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.createHostBuilder (cognitive 31): Program.createHostBuilder has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22, boolean chains 4, match/switch 3, error handling 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Program.Server.fs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5719dff9a3ebb0a708ad5fb4111709fc261d33a5c617206d011a47e0420125"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.tryPublishPendingWatchWorkTransitionIfNeeded (cognitive 31): Watch.tryPublishPendingWatchWorkTransitionIfNeeded has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20, error handling 9, boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":3556}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f8467c3a29948e23bd45c323d835e6cfda7c7cd1dd81a6fa95b23814b899aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Get.InvokeAsync (cognitive 31): Get.InvokeAsync has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18, match/switch 7, loops 5, error handling 1 (nesting depth added 18). 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"a639702349fb4bb21fa62d2563c4611630dd4d05af3742b09ada96e13567db8c"}},{"ruleId":"D2","level":"warning","message":{"text":"Connect.connectImpl (cognitive 31): Connect.connectImpl has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16, match/switch 15 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Connect.CLI.fs"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0c258509414a338522d54f96405d72a308dc89838e1e24d0955707b09a819d"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.getNormalizedIdsAndNames (cognitive 31): Services.getNormalizedIdsAndNames has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22, boolean chains 9 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f4087d538f449ebb23d8d9cbe25786b667d3779ff6c96641ebbaea742cb025"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionQueueActor.Grace.Actors.Interfaces.IPromotionQueueActor.Handle (cognitive 30): PromotionQueueActor.Grace.Actors.Interfaces.IPromotionQueueActor.Handle has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, match/switch 8 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/PromotionQueue.Actor.fs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"08292fef3dc57446a94b3299c558c6f50438a8943bb96427fe075f65803daa47"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactRelationshipKeyModule.validate (cognitive 30): ExactRelationshipKeyModule.validate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, match/switch 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/ManifestContributionAccounting.Types.fs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e15a2db9bf2a08b446f956ca57a9a5f4284db92a713f75226ed14e54cd4ada"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkItem.RemoveArtifactTypeLinks (cognitive 30): WorkItem.RemoveArtifactTypeLinks has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 19, loops 8, if/else 2, boolean chains 1 (nesting depth added 20). 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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"d748cbee42f68495ced2afdd8cb919a2875597244b7815fd6599418348d56e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.buildAnnotationForRequest (cognitive 30): Branch.buildAnnotationForRequest has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 19, if/else 10, boolean chains 1 (nesting depth added 18). 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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"215751f84156d4b3eb2a4205710594f74c6662e2c18b0c8d2c6b71486c5fb1f6"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.inspectWatchJournalReadOnly (cognitive 30): LocalStateDb.inspectWatchJournalReadOnly has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 18, error handling 5, if/else 5, boolean chains 2 (nesting depth added 18). 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"398c8a83858ac28c7529b34a95d94f62fe57ac82799d1d29db71f1c2d7608655"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenMetrics.parseCompletedSettlementSamples (cognitive 30): OpenMetrics.parseCompletedSettlementSamples has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18, match/switch 9, boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Unit.Tests/ManifestContributionMeasurement.fs"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b6ce1618ebd459480b9645ecf400bb5a2320b19e211014845cb9f193f9e8a9"}},{"ruleId":"D2","level":"warning","message":{"text":"Access.parseResource (cognitive 29): Access.parseResource has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 24, if/else 5 (nesting depth added 16). 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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"71acace772ea706b46f7ec64ee040aa0c0aebddfd10cf12046116ac3db06ae08"}},{"ruleId":"D2","level":"warning","message":{"text":"Queue.Enqueue (cognitive 29): Queue.Enqueue has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 15, if/else 14 (nesting depth added 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. 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":"src/Grace.Server/Queue.Server.fs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb1916ce3d770839a530ad25be15a2e078eebcc92ebf295e38679bccfa1310a"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkItemCommand.attachmentsDownloadHandlerImpl (cognitive 29): WorkItemCommand.attachmentsDownloadHandlerImpl has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 15, if/else 13, boolean chains 1 (nesting depth added 20). 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":"src/Grace.CLI/Command/WorkItem.CLI.fs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"25660efd0a0d33c3569e4d6716477f64ac0248241b25a4c442c0b1eb00042c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"Blake3Handler.InvokeAsync (cognitive 29): Blake3Handler.InvokeAsync has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, loops 5, match/switch 4, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9d2643d1e024256963e0812e97b5a73e83e38a7ada0de859955e04abc2754a"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryVersion.convergePhysicalDeletionWith (cognitive 28): DirectoryVersion.convergePhysicalDeletionWith has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 13, loops 8, if/else 5, boolean chains 2 (nesting depth added 14). 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":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb718f35d3792216be46fbbddd6fa7754c6b4fc0c21d53ba566a6bddc52afc1a"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.getReminders (cognitive 28): Services.getReminders has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18, boolean chains 5, error handling 2, loops 2, match/switch 1 (nesting depth added 11). 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":3579}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dab4671698348d390b603fbf9e1dba013d9c892a7e20a752dffa75291ae5246"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockFormat.parseTrailer (cognitive 28): ContentBlockFormat.parseTrailer has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, loops 6 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/ContentBlockFormat.Shared.fs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29e82811ea521e8824fed181c3159b13caa2d2e6dcb70c873b18ff8c3706ccc"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.verifyCurrentBranchMaterializationTargetsUnchanged (cognitive 28): Watch.verifyCurrentBranchMaterializationTargetsUnchanged has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":5661}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6595c94341de3752ad4b2c2ad3c325addc369127b46215928ca2447dee23b4"}},{"ruleId":"D2","level":"warning","message":{"text":"Connect.extractZipEntries (cognitive 28): Connect.extractZipEntries has cognitive complexity 28 (threshold 15). Drivers by points: if/else 25, match/switch 2, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Connect.CLI.fs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0587b942b2fc6a93862cf5a22a6e418cdb4e2105d2b89ded25bdd4d5792d844"}},{"ruleId":"D2","level":"warning","message":{"text":"Common.printParseResultWithResolvedValues (cognitive 28): Common.printParseResultWithResolvedValues has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, match/switch 9, error handling 3, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Common.CLI.fs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"4677b00a04b1667f4b59b0f5306fa6bfe7a93e63f776de05943fb953fdfac64f"}},{"ruleId":"D2","level":"warning","message":{"text":"AspireTestHost.waitForOwnerCreatedEventAsync (cognitive 28): AspireTestHost.waitForOwnerCreatedEventAsync has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13, error handling 7, match/switch 6, boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"da59310bc26f88d9b07a8501e9e501d1382595f073281d4790aba14816555f50"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionGroupedMeasurementTests.grouped exact head run composes every accepted leaf (cognitive 28): ManifestContributionGroupedMeasurementTests.grouped exact head run composes every accepted leaf has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, error handling 6, match/switch 3, boolean chains 2 (nesting depth added 1). 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":"src/Grace.Server.Tests/ManifestContributionGrouped.Measurement.Tests.fs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"710ae60e25fd0b6b7786a6446fdef42be283f2587cc163c76919d847fa95188f"}},{"ruleId":"D2","level":"warning","message":{"text":"GraceCommand.isJsonOutputRequestedFromTokens (cognitive 27): GraceCommand.isJsonOutputRequestedFromTokens has cognitive complexity 27 (threshold 15). Drivers by points: if/else 23, boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e801966f12e17b8750268fdd7e540cfc7062e6bdc2d121a0c6620c7bea9527f"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.deriveDeleteDifferences (cognitive 27): Watch.deriveDeleteDifferences has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 15, if/else 11, loops 1 (nesting depth added 18). 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5528983a5061b05c338407ca8fdaaa1579c588cedee4a0e5303f19646c85779"}},{"ruleId":"D2","level":"warning","message":{"text":"Login.InvokeAsync (cognitive 27): Login.InvokeAsync has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, match/switch 13 (nesting depth added 16). 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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d840b3fda785935d681d6e9bb43291ac4129a05ee0fa239eccc7f2fc3bdc887"}},{"ruleId":"D2","level":"warning","message":{"text":"AspireTestHost.restartGraceServerWithEvidenceAsync (cognitive 27): AspireTestHost.restartGraceServerWithEvidenceAsync has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, boolean chains 5, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b6858ffc129ba87a55a7251074322504c7d6c2a46b3bf91e342fb8269af0fe"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionDuplicateBacklogMeasurementTests.isolated duplicate backlog completes exactly and preserves durable state (cognitive 27): ManifestContributionDuplicateBacklogMeasurementTests.isolated duplicate backlog completes exactly and preserves durable state has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9, error handling 8, boolean chains 6, loops 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionDuplicateBacklog.Measurement.Tests.fs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3c1583759dd12c18ee088a593a85706fbc0ac2a8fd85fddc6106435d7376aa"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetConflictModel.tryParseModelResponse (cognitive 26): PromotionSetConflictModel.tryParseModelResponse has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 11, if/else 10, boolean chains 3, error handling 2 (nesting depth added 10). 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":"src/Grace.Types/PromotionSet.Types.fs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"482fef7d39353822e3e3ccb3e63ac58afd54d490e8d25ee2597d5dd0f856b726"}},{"ruleId":"D2","level":"warning","message":{"text":"PersonalAccessToken.tryParseToken (cognitive 26): PersonalAccessToken.tryParseToken has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, match/switch 9, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/PersonalAccessToken.Types.fs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"351a27c4b6abae90b2a6faf47dd2204462da4928601131f0059c6c32ca2c75fd"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationLineCore.findLongestCommonBlock (cognitive 26): AnnotationLineCore.findLongestCommonBlock has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14, loops 9, boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/AnnotationLineCore.Shared.fs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f35a40e8984e74c09f529b86b026c6d4c08424a33c2c492ebe779492777c83"}},{"ruleId":"D2","level":"warning","message":{"text":"Review.executeCandidateRetry (cognitive 26): Review.executeCandidateRetry has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 18, if/else 8 (nesting depth added 17). 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":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d34c9dbc4738792cfd8056813d6cc18230b8344ea7e40e1bef1312ee0f633d"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.includeStoredBasedOnReferences (cognitive 26): Branch.includeStoredBasedOnReferences has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13, loops 9, boolean chains 2, match/switch 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44306616e44394c16cf98c6da738393f424f1966b4b8dce5377842ecab7c641"}},{"ruleId":"D2","level":"warning","message":{"text":"GraceCommand.rewriteHelpCommands (cognitive 26): GraceCommand.rewriteHelpCommands has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 2, match/switch 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e72c6c9aaba1d60a89e382f3cd3729700234373ecaf748065888af9b2b52ba2"}},{"ruleId":"D2","level":"warning","message":{"text":"Get.InvokeAsync (cognitive 26): Get.InvokeAsync has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13, match/switch 7, loops 5, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7deabdb1d7add8806932a6d26cbdafebe04126bb1071e227d9b80655e7d2ba"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStorage.readHistoryEntries (cognitive 26): HistoryStorage.readHistoryEntries has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12, error handling 8, loops 5, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/HistoryStorage.CLI.fs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14d8fc009f4c4fca20c133d4bc9c4a637bc0ce4e70862f2e2c8b379d503faab"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryActor.ApplyEvent (cognitive 25): RepositoryActor.ApplyEvent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12, match/switch 12, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Repository.Actor.fs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"388005351916f73e245e7d276657cdd74656826d626b1240c1bf23a5a104dc86"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSession.confirmBlockUpload (cognitive 25): UploadSession.confirmBlockUpload has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 14, if/else 11 (nesting depth added 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. 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13b56c740f78f619a9ea346ae016d8e51189fd116b115c8413e47de997a4864"}},{"ruleId":"D2","level":"warning","message":{"text":"GraceCommand.tryGetTopLevelCommandFromArgs (cognitive 25): GraceCommand.tryGetTopLevelCommandFromArgs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"28189ac075bca8156f8ef0f4ed0b8d13ac57b405b3d9e6d6a3e95c492c959d62"}},{"ruleId":"D2","level":"warning","message":{"text":"History.filterEntries (cognitive 25): History.filterEntries has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, match/switch 10, boolean chains 2 (nesting depth added 6). 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":"src/Grace.CLI/Command/History.CLI.fs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2139ea53272c65a08932c3e60b0af8514004aa26bb70957a03e926a24b3a03"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.bootstrapHandler (cognitive 25): AgentCommand.bootstrapHandler has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, match/switch 5, boolean chains 2 (nesting depth added 11). 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f8f3216d071e30ef2616b138f629a804cea68156a1780833335cc6361a1346"}},{"ruleId":"D2","level":"warning","message":{"text":"Connect.tryGetRepositoryShortcut (cognitive 25): Connect.tryGetRepositoryShortcut has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 15, if/else 9, boolean chains 1 (nesting depth added 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. 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":"src/Grace.CLI/Command/Connect.CLI.fs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b046eb1006a177ed0e630e8320f375c8bd391acb23023337943626b5311f16"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStorage.tryGetTopLevelCommand (cognitive 25): HistoryStorage.tryGetTopLevelCommand has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/HistoryStorage.CLI.fs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a053611ddeb4c2b8e373723ac622b8b37a49ae44a0f16472007ef6f74153ec9"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.updateGraceStatusWithNewDirectoryVersionsFromServer (cognitive 25): Services.updateGraceStatusWithNewDirectoryVersionsFromServer has cognitive complexity 25 (threshold 15). Drivers by points: if/else 22, loops 2, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3054}}}],"partialFingerprints":{"codehealthFindingId/v1":"270429a3dbe9decf26fe2aa80d657c4c42ff2ffcd8d7e30dec0193e9aafcdf2f"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.readWatchJournalSnapshot (cognitive 25): LocalStateDb.readWatchJournalSnapshot has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, match/switch 6, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc52dc98c48a0d4bc197dc2e1d83caefccab441f8562cff392364159c328385"}},{"ruleId":"D2","level":"warning","message":{"text":"Setup.Teardown (cognitive 25): Setup.Teardown has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, error handling 4, loops 4, match/switch 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/General.Server.Tests.fs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c421c6870b794f0d5cca3387d036aa83ce8ff8f6e149273d12c0771114be05cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AspireTestHost.tryGetDockerDiagnosticsAsync (cognitive 25): AspireTestHost.tryGetDockerDiagnosticsAsync has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"570181c19a56aeaa7cc804c58850ba352c8a70579282e5d67553d28e2ecc8ace"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockMetadata.createCompactedMetadata (cognitive 24): ContentBlockMetadata.createCompactedMetadata has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, match/switch 11 (nesting depth added 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":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce972c5b1f9e480985011c0f539d9c622954def2859b594c25ccbc84c93fc20c"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.resolveOwnerId (cognitive 24): Services.resolveOwnerId has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 15, if/else 8, boolean chains 1 (nesting depth added 13). 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e94f5c4491aa93ee7bd5027fe0db87f4bd4aca0dca0410b5a840c194b3a8af8"}},{"ruleId":"D2","level":"warning","message":{"text":"DedupeIndex.contiguousActiveRanges (cognitive 24): DedupeIndex.contiguousActiveRanges has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, loops 7, match/switch 5, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1c092ff7bc28382e4781eed3bed615d398d6311c3414ee66c58a2c8a7b7cdc"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationLineCore.buildLineAlignmentRange (cognitive 24): AnnotationLineCore.buildLineAlignmentRange has cognitive complexity 24 (threshold 15). Drivers by points: loops 12, if/else 5, boolean chains 4, match/switch 3 (nesting depth added 11). 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":"src/Grace.Shared/AnnotationLineCore.Shared.fs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b331cdca7e23d70a49cd5786ac457677fe28a933ceede54c862dac56a510075"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationLineCore.traceLineSource (cognitive 24): AnnotationLineCore.traceLineSource has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 15, if/else 6, loops 2, boolean chains 1 (nesting depth added 14). 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":"src/Grace.Shared/AnnotationLineCore.Shared.fs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"0274321a50f76a9eae6c5ba9c87dd3f944fd6ba3053a21ab977810f9ab35d84f"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.validateFinalizeReplayManifestBeforeHydration (cognitive 24): Storage.validateFinalizeReplayManifestBeforeHydration has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 2, loops 2, match/switch 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"223c97b3866cf73935b2623aa0d794f27ad250b4138192a1765965b0f2f834b2"}},{"ruleId":"D2","level":"warning","message":{"text":"Doctor.selectedCatalogEntries (cognitive 24): Doctor.selectedCatalogEntries has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, loops 6, boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Doctor.CLI.fs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fb31d31e7d39edb3087a87f35bcaa66e96177bba07e845a60a863999cb7a3d"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.reenqueueUploadsForResolvedDeletes (cognitive 24): Watch.reenqueueUploadsForResolvedDeletes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":2578}}}],"partialFingerprints":{"codehealthFindingId/v1":"3124d6eb6ceca82127c1869d38141f041881fd591f481b680245b7587a4a575e"}},{"ruleId":"D2","level":"warning","message":{"text":"Auth.tryGetAccessToken (cognitive 24): Auth.tryGetAccessToken has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 19, if/else 5 (nesting depth added 16). 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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61e84d416825910a62b14052572732ea2be392b78d2a937851dc616b0ebe122"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.downloadFilesFromObjectStorageWithClients (cognitive 24): Services.downloadFilesFromObjectStorageWithClients has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9, match/switch 9, error handling 6 (nesting depth added 13). 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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"11873298fef8ff25a891fd7ae5bd81fea3b34315e2641ec0011d025b83dd5f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSessionActor.MergePrevalidatedContentBlockMetadata (cognitive 23): UploadSessionActor.MergePrevalidatedContentBlockMetadata has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 12, if/else 8, boolean chains 2, loops 1 (nesting depth added 12). 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"767d5d4243b91e55fdc81a7b30cb6413eb40710e4506b686d3e0d1504e8b8f0a"}},{"ruleId":"D2","level":"warning","message":{"text":"Annotation.validateLinkIntegrity (cognitive 23): Annotation.validateLinkIntegrity has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, loops 9, boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/Annotation.Types.fs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc883ca5f9dd555eaef7a3d84980d04c30b1ad3d2a85d723bba6c73c7148db2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkItem.Update (cognitive 23): WorkItem.Update has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 11, if/else 8, loops 4 (nesting depth added 13). 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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"23db30d854ca7fc0cf26fca50ad82c3a3e4847393b2217be3ef6bb4c85420a08"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.applyDeletedLocalObservationCandidate (cognitive 23): Watch.applyDeletedLocalObservationCandidate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, match/switch 7, boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":3871}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d22cbe0314221ed3ccce81a985920c8369695de0d36a6176e2860bfb166d961"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.registerCurrentSignalRParentBranchWithClients (cognitive 23): Watch.registerCurrentSignalRParentBranchWithClients has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, error handling 5, match/switch 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":7385}}}],"partialFingerprints":{"codehealthFindingId/v1":"004a24c297570cd7e45912210856f29d4d37b19195dcbe01b2d97cdcc56d8ef2"}},{"ruleId":"D2","level":"warning","message":{"text":"Auth.tryAcquireTokenWithPkceAsync (cognitive 23): Auth.tryAcquireTokenWithPkceAsync has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, match/switch 6, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4a44248365878e01042ac98c57157dbfbb947f3572c41f8638afbf83d2c00f"}},{"ruleId":"D2","level":"warning","message":{"text":"Status.InvokeAsync (cognitive 23): Status.InvokeAsync has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 15, if/else 7, boolean chains 1 (nesting depth added 7). 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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"385b93f17b876d93ae3c54b3257b5ade2a95424960c187c1218c80c996961979"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.uploadFilesToObjectStorageWithClients (cognitive 23): Services.uploadFilesToObjectStorageWithClients has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9, loops 7, match/switch 7 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"702b49872649bc018aaa8042a6a579997df59f6a6a25c6aa713e804988d0c062"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.getNewGraceStatusAndDirectoryVersions (cognitive 23): Services.getNewGraceStatusAndDirectoryVersions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9, loops 7, match/switch 7 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2500}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4765db1af4eccddaf395917bcc6d7bf5fa189d3680df7c1a1f782258a02fae7"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionRepairMeasurementTests.repair republication restores only the missing Reference root (cognitive 23): ManifestContributionRepairMeasurementTests.repair republication restores only the missing Reference root has cognitive complexity 23 (threshold 15). Drivers by points: error handling 9, boolean chains 7, if/else 4, match/switch 3 (nesting depth added 3). 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":"src/Grace.Server.Tests/ManifestContributionRepair.Measurement.Tests.fs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9576a6d16b4684faf5a4f75d80c57ea098e5e8963533493430101fd4f38bd2b"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryContentCounter.decideCommandForKey (cognitive 22): RepositoryContentCounter.decideCommandForKey has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, match/switch 6 (nesting depth added 13). 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":"src/Grace.Actors/RepositoryContentCounter.Actor.fs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71f905addb1ccd3a820088cb3ab60ffd49f88f205e90d9381c2d9b870dcb43c"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockMetadata.createMergedMetadata (cognitive 22): ContentBlockMetadata.createMergedMetadata has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 15, if/else 7 (nesting depth added 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. 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":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fa0f07cea3fa926880ec144ed448dd6d12df7cfff7327a767d49188ad2582a"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryVersion.validateDirectoryVersionHashesWithChildrenAndPreviousFiles (cognitive 22): DirectoryVersion.validateDirectoryVersionHashesWithChildrenAndPreviousFiles has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, loops 4, boolean chains 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d157685f25dc5bcc81e6246575ede2bea287d83721f3c2685b14ceb6de1c24"}},{"ruleId":"D2","level":"warning","message":{"text":"Timing.reportTimings (cognitive 22): Timing.reportTimings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 3, match/switch 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Timing.Actor.fs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"645ed9c33d09d2168baa14d409b8d27e835de48b8e1dab0559f831fe8591777a"}},{"ruleId":"D2","level":"warning","message":{"text":"Startup.ConfigureServices (cognitive 22): Startup.ConfigureServices has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, match/switch 3, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Startup.Server.fs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"323282c1fd2343686cb1508ab66180fe85f77f8aa2b2c390b0e3a8ac58d3fa0c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCommand.renderReviewReportMarkdown (cognitive 22): ReviewCommand.renderReviewReportMarkdown has cognitive complexity 22 (threshold 15). Drivers by points: loops 13, if/else 9 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Review.CLI.fs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63d360cf1eac595d677a3ac903d9949ab31eca3a9d5fe8905c574dd4567e3f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ListContents.InvokeAsync (cognitive 22): ListContents.InvokeAsync has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Maintenance.CLI.fs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"8516fba04dc8ee4e96be4f7dd01df31ebf234a7cae5f3ed73824474751624c9f"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.quarantinePendingWatchWork (cognitive 22): Watch.quarantinePendingWatchWork has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, loops 6, boolean chains 2, error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d3d3672f3ed5fe66961923fe0fd2451e21ed1d00e0d7cdb04fdd08b9b7f549"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.OnGraceUpdateInProgressDeleted (cognitive 22): Watch.OnGraceUpdateInProgressDeleted has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 11, if/else 10, boolean chains 1 (nesting depth added 13). 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":7610}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eabfe123b73ed210a7c6b149a3d9790c87a7a085cd86127523e1f644076fd08"}},{"ruleId":"D2","level":"warning","message":{"text":"Auth.buildAuthStatus (cognitive 22): Auth.buildAuthStatus has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, match/switch 5 (nesting depth added 1). 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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c34a89513e6403502fb2af299a54b02ebf39b77bc8bbf342b11b02fe68427bb"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.splitTopLevelSqlDeclarations (cognitive 22): LocalStateDb.splitTopLevelSqlDeclarations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, match/switch 3, boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"62651767cc2cdd877711a4fe00d5db0bbedadf32d7c5e7296b8f92763640c572"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.tryReadWatchJournalSequenceBounds (cognitive 22): LocalStateDb.tryReadWatchJournalSequenceBounds has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 12, if/else 9, boolean chains 1 (nesting depth added 12). 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c014b97ab1c7bea4fc00ef63b461e8fd63f00ce4f7faf366df6427f4687457"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.contentBlockPlacementFromUriUsingConfiguredEndpoint (cognitive 22): Storage.contentBlockPlacementFromUriUsingConfiguredEndpoint has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 8 (nesting depth added 1). 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":"src/Grace.SDK/Storage.SDK.fs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0abad6107d9fcab19983ab37c2e3c6a8f9a10a1ecd33406a785925f73a80d60"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionAccountingAspireTestHelpers.readActorEventStreamsAsync (cognitive 22): ManifestContributionAccountingAspireTestHelpers.readActorEventStreamsAsync has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, match/switch 7, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionAccounting.Server.Tests.fs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51d79f6736fde1d888c7bb1eb532dd4c4fac90dde847d96fd90243c5cfb1191"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryActor.Grace.Actors.Interfaces.IRepositoryActor.Handle (cognitive 21): RepositoryActor.Grace.Actors.Interfaces.IRepositoryActor.Handle has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 13, if/else 5, boolean chains 2, error handling 1 (nesting depth added 8). 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":"src/Grace.Actors/Repository.Actor.fs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"19dce9c90cf39c44bd2fc5cab32048b977c0db327f09f3befbf70f32285c1892"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSession.trySelectActiveContiguousRangeChain (cognitive 21): UploadSession.trySelectActiveContiguousRangeChain has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9, boolean chains 6, match/switch 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa137f7433a6ff448c5eec8c51962024efb831cdebd22bc2d73d7e42367830fb"}},{"ruleId":"D2","level":"warning","message":{"text":"OrganizationActor.Grace.Actors.Interfaces.IOrganizationActor.Handle (cognitive 21): OrganizationActor.Grace.Actors.Interfaces.IOrganizationActor.Handle has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 14, if/else 5, boolean chains 1, error handling 1 (nesting depth added 8). 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":"src/Grace.Actors/Organization.Actor.fs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc05db9e9c4a6b33fdc194c0540e200191e53476a3227d27175bdcf71c78335"}},{"ruleId":"D2","level":"warning","message":{"text":"OwnerActor.Grace.Actors.Interfaces.IOwnerActor.Handle (cognitive 21): OwnerActor.Grace.Actors.Interfaces.IOwnerActor.Handle has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 14, if/else 5, boolean chains 1, error handling 1 (nesting depth added 8). 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":"src/Grace.Actors/Owner.Actor.fs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb66e096a206a7cb1d2530535628da0f36be91abde31edb20b63d7f38f177bc"}},{"ruleId":"D2","level":"warning","message":{"text":"DedupeIndex.tryCreateRuntimeRegistration (cognitive 21): DedupeIndex.tryCreateRuntimeRegistration has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11, if/else 6, loops 3, boolean chains 1 (nesting depth added 12). 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":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb28d800a20ce36e712be114e028daf3e46b896dc287689fa8e851bdd458ff8"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestValidation.decodePayloads (cognitive 21): ManifestValidation.decodePayloads has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11, if/else 7, loops 2, boolean chains 1 (nesting depth added 11). 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":"src/Grace.Shared/ManifestValidation.Shared.fs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ef88448a88605ae031924fda8d4bf0e36af4bd51968048867ce5147e484eba"}},{"ruleId":"D2","level":"warning","message":{"text":"Auth.TokenCreate (cognitive 21): Auth.TokenCreate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, match/switch 6 (nesting depth added 10). 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":"src/Grace.Server/Auth.Server.fs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6122c45a3e0e84e64191870229354d63edd6bab997ca8c98ccd25f06037ebfbd"}},{"ruleId":"D2","level":"warning","message":{"text":"Review.buildReviewReport (cognitive 21): Review.buildReviewReport has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, match/switch 3, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab14818c569d78117c60fc4260b76733b257cb504fbece16aad1ea5dc5ab105"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaimMapping.mapClaims (cognitive 21): ClaimMapping.mapClaims has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, loops 8, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Security/ClaimMapping.Server.fs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"07261d25258e4e4d9dfe9cbc65b62c4a6817c14a9a2229987243f152caff781a"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationContext.configurePubSubSettings (cognitive 21): ApplicationContext.configurePubSubSettings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, match/switch 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/ApplicationContext.Server.fs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f364670987143e4cf30a3c857c4b4a609810d5ea2e3c26d228459fe8bd3194"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.validateCurrentBranchMaterializationAcceptedMetadata (cognitive 21): Watch.validateCurrentBranchMaterializationAcceptedMetadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 4, loops 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":5077}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8ba0bbe96a40ff567f7881500238bad33ab5923b5c769678fc87d18fd130c3"}},{"ruleId":"D2","level":"warning","message":{"text":"Diff.printDiffResults (cognitive 21): Diff.printDiffResults has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 4, match/switch 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"74784d39115adaef8c390306d90c3c44e969b16d917ec309cc9db9ffc09dfd1b"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStorage.tryGetGitBranch (cognitive 21): HistoryStorage.tryGetGitBranch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, error handling 6, boolean chains 2, match/switch 1 (nesting depth added 10). 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":"src/Grace.CLI/HistoryStorage.CLI.fs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c4525a4e2a3d019753f61ec6c4aa782fdb46914b33192db041f71d83c8de1a"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStorage.redactOptions (cognitive 21): HistoryStorage.redactOptions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/HistoryStorage.CLI.fs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4429e12d4e36ad87ca20df2bb80c98df3d654fa9cd918e86cc8d5f2904edb7"}},{"ruleId":"D2","level":"warning","message":{"text":"Common.renderOutput (cognitive 21): Common.renderOutput has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, match/switch 8, error handling 3 (nesting depth added 10). 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":"src/Grace.CLI/Command/Common.CLI.fs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"501b2e1d04c3811e0ff543ff06e5855684b91feba51ee7207bb4259c34908551"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.recoverWatchJournalForStartup (cognitive 21): LocalStateDb.recoverWatchJournalForStartup has cognitive complexity 21 (threshold 15). Drivers by points: loops 6, match/switch 6, error handling 5, if/else 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2345}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a287507b79fe88a54535e9f3a409c5777e92e90e82f567c889eab38a91ecf7"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionRedisRestartMeasurementTests.hot manifest converges one Reference after Redis restart (cognitive 21): ManifestContributionRedisRestartMeasurementTests.hot manifest converges one Reference after Redis restart has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8, boolean chains 7, error handling 5, match/switch 1 (nesting depth added 2). 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":"src/Grace.Server.Tests/ManifestContributionRedisRestart.Measurement.Tests.fs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7001aecfb11a199c7abb9eb2fd19e0ba4c482585a61c53739f13b483594ed12"}},{"ruleId":"D2","level":"warning","message":{"text":"DeadLetterRuntime.fixtureOwnsEvent (cognitive 21): DeadLetterRuntime.fixtureOwnsEvent has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 15, boolean chains 6 (nesting depth added 7). 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":"src/Grace.Server.Tests/ManifestContributionDeadLetter.Measurement.Tests.fs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8063c2a8dc8883599a46228bc1fecf271896dc9dcf3d02a13bdeba93249c480c"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSession.validateClaimedRangeMetadata (cognitive 20): UploadSession.validateClaimedRangeMetadata has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 11, if/else 9 (nesting depth added 10). 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0917160183cd90f137b0446179d383018bd94abcea7792e5ec78d3d3673053"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.BuildConflictAnalyses (cognitive 20): PromotionSetActor.BuildConflictAnalyses has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, match/switch 4 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d842b50b0d72488858c7e0728689556d0fe1cb361a8d47765182dfa6b71802"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryVersionActor.Grace.Actors.Interfaces.IDirectoryVersionActor.GetRecursiveDirectoryVersions (cognitive 20): DirectoryVersionActor.Grace.Actors.Interfaces.IDirectoryVersionActor.GetRecursiveDirectoryVersions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, error handling 3, match/switch 3, loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2c00be66db13f086b6dde3eb9b47006da5ff0c5d8d032cc5b9bff77a6cc190"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessControlActor.OnActivateAsync (cognitive 20): AccessControlActor.OnActivateAsync has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/AccessControl.Actor.fs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c63de4fa5a18f4992ccf11dbb63c309fd5331843f35faaadf7d8ac9cd409064"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenRouterConflictResolutionModelProvider.Grace.Types.PromotionSetConflictModel.IConflictResolutionModelProvider.SuggestResolution (cognitive 20): OpenRouterConflictResolutionModelProvider.Grace.Types.PromotionSetConflictModel.IConflictResolutionModelProvider.SuggestResolution has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, error handling 5, match/switch 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/PromotionSet.Types.fs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07f41af5332a10fcd842a40315ef36d1fc618697ed35984c5a639c3321b4b85"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockMetadata.findRanges (cognitive 20): ContentBlockMetadata.findRanges has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, match/switch 7, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/ContentBlockMetadata.Types.fs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf196e9b5520c8118ed294933c2b892f64b942da5afe32858451c4233a64310"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockMetadata.findRangeEvidence (cognitive 20): ContentBlockMetadata.findRangeEvidence has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, match/switch 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/ContentBlockMetadata.Types.fs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4e0d51b4ee7b6f551ecdf774c03930bd4a54cab09da5b815e3bdf1c8c8c038"}},{"ruleId":"D2","level":"warning","message":{"text":"Diff.processDiffModel (cognitive 20): Diff.processDiffModel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/Diff.Shared.fs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"662236e90cc3966e6ba2cbd4c2a8270f4e799401258de054fa2cfaa6de16b945"}},{"ruleId":"D2","level":"warning","message":{"text":"Subscriber.processGraceEventWith (cognitive 20): Subscriber.processGraceEventWith has cognitive complexity 20 (threshold 15). Drivers by points: error handling 12, if/else 5, match/switch 3 (nesting depth added 10). 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":"src/Grace.Server/Notification.Server.fs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41376dddb59fd38ee873a90680f82eeafebbe37e80485c3cf9c854a1371e284"}},{"ruleId":"D2","level":"warning","message":{"text":"Subscriber.tryResolveAutomationBranchContext (cognitive 20): Subscriber.tryResolveAutomationBranchContext has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 20 (nesting depth added 12). 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":"src/Grace.Server/Notification.Server.fs"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"741c6c1885e263fbcb3f1b4c709a8a2a4eec396b1c73ac956e3fdc9f92e0ecb3"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.IssueDedupeDiscovery (cognitive 20): Storage.IssueDedupeDiscovery has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, match/switch 9, error handling 1 (nesting depth added 7). 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d25d6fcc9607155e0cb2ed40066f3511f068526027bbf16b0d4627c744251ad"}},{"ruleId":"D2","level":"warning","message":{"text":"History.parseReplacements (cognitive 20): History.parseReplacements has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/History.CLI.fs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"f503cee6157c93f7c5d45dffac420a6cb001761501e638ac3f243bd2494be332"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.tryPublishWatchIpcWithPendingWorkEvidenceProbeResult (cognitive 20): Watch.tryPublishWatchIpcWithPendingWorkEvidenceProbeResult has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, match/switch 4, error handling 2, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":3387}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdf1ca24826f5f698d3509db958109715e35aaa021e59b0d3bfbe8925a182c0"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.currentBranchMaterializationStatusGate (cognitive 20): Watch.currentBranchMaterializationStatusGate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, match/switch 5, boolean chains 2 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":6348}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd36e2cd806161805db7cffe833f091764774bc401d614d996a89400b1aa999e"}},{"ruleId":"D2","level":"warning","message":{"text":"Create.InvokeAsync (cognitive 20): Create.InvokeAsync has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, match/switch 7, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f6722f2509a4e4eb41e52cf38f1ac50ca54ae4fd8137955351978e53a3a496"}},{"ruleId":"D2","level":"warning","message":{"text":"Create.InvokeAsync (cognitive 20): Create.InvokeAsync has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, match/switch 7, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Organization.CLI.fs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e77381b56ab03e64151a508baf1307b00d11b9d20bee21e748ee7066b199744"}},{"ruleId":"D2","level":"warning","message":{"text":"Connect.collectFileConflicts (cognitive 20): Connect.collectFileConflicts has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, error handling 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Connect.CLI.fs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a85f6e0d8d73254bba457f08f6c3cba554bfba6f4676cd89b1fa021632327d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Create.InvokeAsync (cognitive 20): Create.InvokeAsync has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, match/switch 7, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"09dc507ba9cac9e435e6692236b989d6b49c807267ccb33420daa95f500e17e5"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.inspectReadOnly (cognitive 20): LocalStateDb.inspectReadOnly has cognitive complexity 20 (threshold 15). Drivers by points: error handling 12, if/else 5, boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7934fcc227f82c52906b5663251e803263ad019e9a58d1111bf6dd6714ce8cab"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.HydrateStepProvenance (cognitive 19): PromotionSetActor.HydrateStepProvenance has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, match/switch 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cec190a56a3ab29dbc7c41fd725d5f3d9d4d65fab4c899ff9623e1e51411c69"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.deleteUploadSessionStagingPayloadsForRoute (cognitive 19): Services.deleteUploadSessionStagingPayloadsForRoute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, match/switch 5, boolean chains 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e616b322f88e2a04a90b6a664dc50db32c7b544f8b1b575b1c60b4a0a82405"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.getLatestReferenceByReferenceTypes (cognitive 19): Services.getLatestReferenceByReferenceTypes has cognitive complexity 19 (threshold 15). Drivers by points: loops 9, if/else 6, boolean chains 3, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4623392cf5dea5cfb89c459d7e7110fe6983fd8d04285e8e3eb28a11db63738"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactRelationshipKeyModule.createPartitionKey (cognitive 19): ExactRelationshipKeyModule.createPartitionKey has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, match/switch 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/ManifestContributionAccounting.Types.fs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a41682795f9b5d7ccad52140d1a531b1533d651663f13df0bb61f9f15ac4a92"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactRelationshipKeyModule.tryParse (cognitive 19): ExactRelationshipKeyModule.tryParse has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 16, if/else 2, boolean chains 1 (nesting depth added 10). 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":"src/Grace.Types/ManifestContributionAccounting.Types.fs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2554c68d8c4c3115d0399866a50f469d6ceea2e15f574548615449481cd1e5df"}},{"ruleId":"D2","level":"warning","message":{"text":"DedupeIndex.splitRangeIntoDedupeWindows (cognitive 19): DedupeIndex.splitRangeIntoDedupeWindows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"843e5a5181e33c285a2009943e2f409a8e91657f64c94a0400483fd8d88a8ebe"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionRepair.validateRequest (cognitive 19): ManifestContributionRepair.validateRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, match/switch 7, error handling 2, boolean chains 1 (nesting depth added 7). 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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2179d436639685ce4bc94c07c9b5fb8c54d74d5e486ea4e4c1d6301098d08862"}},{"ruleId":"D2","level":"warning","message":{"text":"EventingPublisher.tryCreateEnvelope (cognitive 19): EventingPublisher.tryCreateEnvelope has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 15, if/else 4 (nesting depth added 10). 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":"src/Grace.Server/Eventing.Server.fs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b11f09252da20aa1ca08a0385b1cd4b542e2ec78fb5b6a1a6d87e5400bd185d"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidationResult.validationsForRecord (cognitive 19): ValidationResult.validationsForRecord has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, boolean chains 1 (nesting depth added 1). 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":"src/Grace.Server/ValidationResult.Server.fs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"337e960f04b5c009613209a161274fe0836e05eb4f860da403a97d88a14f9696"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetCommand.tryDeserializePromotionPointersFromFile (cognitive 19): PromotionSetCommand.tryDeserializePromotionPointersFromFile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 7, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/PromotionSet.CLI.fs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0960188ca755564515ac84bbf093c6aeb7fb38aa05770ffe63a89bcac8f03c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCommand.openHandler (cognitive 19): ReviewCommand.openHandler has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 9, if/else 8, boolean chains 1, error handling 1 (nesting depth added 10). 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":"src/Grace.CLI/Command/Review.CLI.fs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"5609caf21dee07f1421b0c7b415d66fdcec41ba71f3adb7a710793c163b34608"}},{"ruleId":"D2","level":"warning","message":{"text":"Doctor.workingTreeScanSummary (cognitive 19): Doctor.workingTreeScanSummary has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, match/switch 9 (nesting depth added 10). 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":"src/Grace.CLI/Command/Doctor.CLI.fs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5cca8e208dd50f94b6795489791bf4372a4c0872fa7fdbd01573456fa8d50f"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.tryPublishCurrentBranchMaterializationCleanStatus (cognitive 19): Watch.tryPublishCurrentBranchMaterializationCleanStatus has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 3, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":3713}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdf33a4623788d6635da0d0d956b9fc29b816e9611c344be22f3ae2c78f6988"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.applyCurrentBranchReferenceMaterializationWithAcceptedStatus (cognitive 19): Watch.applyCurrentBranchReferenceMaterializationWithAcceptedStatus has cognitive complexity 19 (threshold 15). Drivers by points: error handling 16, if/else 2, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":6096}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c40e7c8978dee7ee9234a71be131bad5af8022603974195bd97d1c806fdaf63"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.tryStartupReplayRetirementReason (cognitive 19): Watch.tryStartupReplayRetirementReason has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 2, match/switch 1 (nesting depth added 4). 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":9002}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4719bc249e80af79758b5dc1b779183152ff766a279fd86791b9f035e2d9c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.renderBranchStatus (cognitive 19): Branch.renderBranchStatus has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 2, match/switch 1. 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":4539}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abc0152797bb64a6e13aca5898c840ad1e6c14a858f897537d938f0b50a3951"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenCreate.InvokeAsync (cognitive 19): TokenCreate.InvokeAsync has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 10, if/else 9 (nesting depth added 11). 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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fbdb08327c8cd993c06b770de5ebc1f1f08f0fe05464ace369f6336c906ba7"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionBaselineMeasurementTests.isolated Baseline emits truthful completed evidence (cognitive 19): ManifestContributionBaselineMeasurementTests.isolated Baseline emits truthful completed evidence has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 5, error handling 5, if/else 5, loops 3, match/switch 1 (nesting depth added 2). 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":"src/Grace.Server.Tests/ManifestContributionBaseline.Measurement.Tests.fs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"61df73cf01cb0d9f3d123247ddeb6d69b18ea1d0809d137d566506c85d468685"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSession.claimReuseRange (cognitive 18): UploadSession.claimReuseRange has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, match/switch 6 (nesting depth added 6). 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f27aebe6b9b806a727858f4ea7b10db33d4385f7646c64ae487fda80f7f941"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.createAzureContentBlockSasUriForObjectKey (cognitive 18): Services.createAzureContentBlockSasUriForObjectKey has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, match/switch 7, boolean chains 1 (nesting depth added 10). 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a37d68465fc98a38ea1fa54846d2ee3c97116ccb431c8e2cf599860d4fe3de2"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetConflictModel.tryGetSettings (cognitive 18): PromotionSetConflictModel.tryGetSettings has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/PromotionSet.Types.fs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58a683bd940f71c4e162ece473294d250467d98676c38247f409e71a9173540"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.materializeValidatedContentBlock (cognitive 18): Storage.materializeValidatedContentBlock has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 12, error handling 6 (nesting depth added 12). 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1d35b00be51e2e9ef1719402da6cbc663e6bf7cf6926972a8e28622ef338af"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionRepair.repairMissingRelationshipWith (cognitive 18): ManifestContributionRepair.repairMissingRelationshipWith has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 5, match/switch 3 (nesting depth added 6). 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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a964f65d6d46288be5cbb2414c91c1b443c44a6fa8101b5f124f90f68bbfce9"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationMaterialization.manifestPayloads (cognitive 18): AnnotationMaterialization.manifestPayloads has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 10, if/else 5, boolean chains 2, loops 1 (nesting depth added 7). 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":"src/Grace.Server/AnnotationMaterialization.Server.fs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c3d160003f82299e6cefa63dce03cad92cd443b4439a78b2a55ce2874e0b80"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryShow.InvokeAsync (cognitive 18): HistoryShow.InvokeAsync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, match/switch 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/History.CLI.fs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"671463a04048e58c0cfc68b3eb8d6d4a7959cb5860225122d29981e95204ab8d"}},{"ruleId":"D2","level":"warning","message":{"text":"HistorySearch.InvokeAsync (cognitive 18): HistorySearch.InvokeAsync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, match/switch 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/History.CLI.fs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"24692c18f922a6164e27e83ab3829505072feda09f10d75c5f3c0b54b8fdabf7"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkItemCommand.attachHandler (cognitive 18): WorkItemCommand.attachHandler has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 10, if/else 6, boolean chains 1, error handling 1 (nesting depth added 10). 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":"src/Grace.CLI/Command/WorkItem.CLI.fs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"646c2f1fd3c05667dfa7c190b2881d63b26e53307d309b376fca154583ed2caa"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.tryDeriveDirectorySubtreeAddDifferences (cognitive 18): Watch.tryDeriveDirectorySubtreeAddDifferences has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, loops 4, boolean chains 3, error handling 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"8964427c862d52e581447afbf2b0ce3a277df878084042fba9e52b022bbce3f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.writeHandler (cognitive 18): Config.writeHandler has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Config.CLI.fs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d317702b4be34f98373697d86392a1874cdd3775dcf72b393dda6fbedbc62b1"}},{"ruleId":"D2","level":"warning","message":{"text":"Write.InvokeAsync (cognitive 18): Write.InvokeAsync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Config.CLI.fs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3d2f6141f876f55c2cd83d0b5a62048064171615eb999d433eadb2b38d51a6"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStorage.writeHistoryEntries (cognitive 18): HistoryStorage.writeHistoryEntries has cognitive complexity 18 (threshold 15). Drivers by points: error handling 7, if/else 6, loops 3, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/HistoryStorage.CLI.fs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"339f6a501d55debd421cb2ff1961c1b6963e381a39bbdfc5fd892fe40a911ba4"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.scanWorkingTreeForDifferencesReadOnly (cognitive 18): Services.scanWorkingTreeForDifferencesReadOnly has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, loops 5, match/switch 4, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf4417388d84bc3390841530618bce984e8c27d9813a11e72f60324fcde376c"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectProjection.tryParse (cognitive 18): SelectProjection.tryParse has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 12, if/else 6 (nesting depth added 10). 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":"src/Grace.CLI/SelectProjection.CLI.fs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b9a6b25edd0424802a0d6f4db2f210ae60ca4e414b750c2065ceda01cb21f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionServerRestartMeasurementTests.isolated persisted envelope completes after Grace Server restart (cognitive 18): ManifestContributionServerRestartMeasurementTests.isolated persisted envelope completes after Grace Server restart has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, boolean chains 5, error handling 5, match/switch 1 (nesting depth added 2). 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":"src/Grace.Server.Tests/ManifestContributionServerRestart.Measurement.Tests.fs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7612683e8ac86157c460e3901025c78f5b8d84fc4981d91c75fed36162b1da5c"}},{"ruleId":"D2","level":"warning","message":{"text":"DuplicateBacklogRuntime.readSnapshotAsync (cognitive 18): DuplicateBacklogRuntime.readSnapshotAsync has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 6, loops 1 (nesting depth added 2). 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":"src/Grace.Server.Tests/ManifestContributionDuplicateBacklog.Measurement.Tests.fs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b034dce11e6d81418de4a6e483584d1c3bbabfe26f2e8866b7c32732c80662b6"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryContentCounter.decideRepairForKey (cognitive 17): RepositoryContentCounter.decideRepairForKey has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 3, match/switch 2 (nesting depth added 3). 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":"src/Grace.Actors/RepositoryContentCounter.Actor.fs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2195df27d521f4481ae45ecc71b8219293d1b9aa7dca1ffdbea18473e4936530"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentBlockMetadata.adjustActiveManifestCount (cognitive 17): ContentBlockMetadata.adjustActiveManifestCount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, match/switch 6, boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e2f1f24052a9e81346fa776bfe1b7a5ea657883c92154261ce93a7d63fd847"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.ReadConflictTextPair (cognitive 17): PromotionSetActor.ReadConflictTextPair has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17 (nesting depth added 11). 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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"37aea2cdf5f152e6e5f210d74efddd56e9e854e27186fc957e5f3cdef2b62fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"Reference.applyManifestContributionBoundary (cognitive 17): Reference.applyManifestContributionBoundary has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 15, boolean chains 1, loops 1 (nesting depth added 10). 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":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5f380fc0324e1566f22dbc2230af3f106e7da536da223a0d57f27ce92d6cb5"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryVersion.getManifestReferencesForSaveBoundary (cognitive 17): DirectoryVersion.getManifestReferencesForSaveBoundary has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 8, if/else 7, boolean chains 1, loops 1 (nesting depth added 10). 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":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d2de2d7031c7834f600b3326cb25e224d956c76d9dfc8835047b1dcaaddbab"}},{"ruleId":"D2","level":"warning","message":{"text":"Evidence.buildEvidenceSet (cognitive 17): Evidence.buildEvidenceSet has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/Evidence.Shared.fs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f39804161f4fedbb38a28ca3a2bd666534dd27138df2fbcb5d40de7e43cb1a"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthorizationSemanticsTests.RoleCatalogMatrixMatchesPermissionChecks (cognitive 17): AuthorizationSemanticsTests.RoleCatalogMatrixMatchesPermissionChecks has cognitive complexity 17 (threshold 15). Drivers by points: loops 10, if/else 6, boolean chains 1 (nesting depth added 10). 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":"src/Grace.Authorization.Tests/AuthorizationSemantics.Tests.fs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76232fee99cc117e3aeb58be9b22768315538d853b99eef2241e03624cc23fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Access.parseScope (cognitive 17): Access.parseScope has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17 (nesting depth added 10). 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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da75f8666164229c158f10326f6316c72d02333d6572d7cb1e8696b80ebf07d"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.hydrateFinalizeReplayEvidenceFromCurrentMetadata (cognitive 17): Storage.hydrateFinalizeReplayEvidenceFromCurrentMetadata has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 13, if/else 2, boolean chains 1, loops 1 (nesting depth added 8). 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"50334b13d0bffd00fee1dace9cce5e76129ba5cd82bc198983e97c3aaa3bed8a"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.validateUploadSessionForContentBlockUpload (cognitive 17): Storage.validateUploadSessionForContentBlockUpload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, match/switch 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6baabda8b9b4e788ca434deaf76efd08eb9fe22f6831e1e80ee20b395aa1f376"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryVersion.SaveDirectoryVersions (cognitive 17): DirectoryVersion.SaveDirectoryVersions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, match/switch 5, loops 4, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/DirectoryVersion.Server.fs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5afa65200e0e1bc14b2e3ca77f2b2e108713b198a9a49ccacda458020f8c48"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkItem.DownloadAttachment (cognitive 17): WorkItem.DownloadAttachment has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 11, if/else 6 (nesting depth added 10). 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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f92188acb1afedc9b3c7ff65de2cc5999fa8e488f79f94108998441a2a3ef1"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidateIdsDecisions.getEntityValidationErrorMessage (cognitive 17): ValidateIdsDecisions.getEntityValidationErrorMessage has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17 (nesting depth added 8). 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":"src/Grace.Server/Middleware/ValidateIds.Decisions.fs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0dfd6c969fa983040e0b3385e7acc90b2dc86a603536a467772e49d33d06f6"}},{"ruleId":"D2","level":"warning","message":{"text":"QueueCommand.enqueueHandlerImpl (cognitive 17): QueueCommand.enqueueHandlerImpl has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 10, if/else 6, boolean chains 1 (nesting depth added 10). 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":"src/Grace.CLI/Command/Queue.CLI.fs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"564d254f0d21d5b9c369c513d9900af40c91230881cb1811ebc9ed9cbf705959"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.tryPublishWatchIpcForResyncRecovery (cognitive 17): Watch.tryPublishWatchIpcForResyncRecovery has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, match/switch 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":3512}}}],"partialFingerprints":{"codehealthFindingId/v1":"9334fa3c242d7d2b8511817c919a64be7c4f958668736c5e03afc3838d835e62"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.retryPendingDirectoryUploads (cognitive 17): Watch.retryPendingDirectoryUploads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":7524}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfa44b20eea168d4d3e2f085f12cbda1b7ad93c5def0dd1cf3689dd6c2fd578"}},{"ruleId":"D2","level":"warning","message":{"text":"Branch.listContentsImpl (cognitive 17): Branch.listContentsImpl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, match/switch 6 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5fcdf91f0731212c8fa0f06cfe2a2666c433bb771d7ac38b94e28f06f4969a"}},{"ruleId":"D2","level":"warning","message":{"text":"Common.tryBuildResolvedValuesText (cognitive 17): Common.tryBuildResolvedValuesText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Common.CLI.fs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4d99daa40480ad803b0d66e701c3ffc18b9214ea0b85f5d33d3699e3b3640b"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.GetFileFromObjectStorage (cognitive 17): Storage.GetFileFromObjectStorage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, match/switch 3, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.SDK/Storage.SDK.fs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4b0464d300fe83c54a8848b9f9eed1b0a01e088de332d8b0c162848390ddc5"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionAccountingAspireTestHelpers.readActorSnapshotsAsync (cognitive 17): ManifestContributionAccountingAspireTestHelpers.readActorSnapshotsAsync has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, match/switch 7, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionAccounting.Server.Tests.fs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0327add75b952069f71f83c00667d0b6a415ce2da758505a526a56958d73be"}},{"ruleId":"D2","level":"warning","message":{"text":"Repair.validateExecute (cognitive 17): Repair.validateExecute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 5. 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":"src/Grace.Server.Unit.Tests/ManifestContributionMeasurement.fs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"771d62dfb050e27397424165a3ab46a8fd24454312f3969a2777a8320dbf528d"}},{"ruleId":"D2","level":"warning","message":{"text":"AspireTestHost.cleanupDockerContainersAsync (cognitive 17): AspireTestHost.cleanupDockerContainersAsync has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 4, loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb07f123af86533e6fe243eddc2c09ac6ef21cfd397bc491a88e82def684a8fa"}},{"ruleId":"D2","level":"warning","message":{"text":"TopologyCardinalityRuntime.executeAsync (cognitive 17): TopologyCardinalityRuntime.executeAsync has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 5, if/else 4, loops 4, error handling 2, match/switch 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/ManifestContributionTopologyCardinality.Measurement.Tests.fs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"733910005c197e2de554abf27b90d3b077b5d68e5ed6907082667e998ac0aba8"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestContributionDeadLetterMeasurementTests.isolated broker witness reaches dead-letter delivery eleven (cognitive 17): ManifestContributionDeadLetterMeasurementTests.isolated broker witness reaches dead-letter delivery eleven has cognitive complexity 17 (threshold 15). Drivers by points: error handling 7, if/else 6, match/switch 3, boolean chains 1 (nesting depth added 3). 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":"src/Grace.Server.Tests/ManifestContributionDeadLetter.Measurement.Tests.fs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd03e9bacc17b3e61e66d29ae4821f2e8e9170a8e35fb505824c621a3e1fd87e"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadSession.claimReuseRanges (cognitive 16): UploadSession.claimReuseRanges has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8, if/else 3, loops 3, boolean chains 2 (nesting depth added 8). 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"e735d8e595b011530505fe03a22a5efed00a1589ec895852ac32053806f4439b"}},{"ruleId":"D2","level":"warning","message":{"text":"ApprovalRequestIndexActor.OnActivateAsync (cognitive 16): ApprovalRequestIndexActor.OnActivateAsync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/ApprovalRequest.Actor.fs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b409910c5150bb0336824945abbaf52b2d56a5d7a8d3a4e8f19013fa7c3610"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetActor.EnsureApprovalAllowsApply (cognitive 16): PromotionSetActor.EnsureApprovalAllowsApply has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 14, boolean chains 2 (nesting depth added 9). 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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":1985}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78ca777ed85a3006abe9bc9fcb0e79136878361814a02a31a1ee452b64243db"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.getLatestPromotion (cognitive 16): Services.getLatestPromotion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, loops 5, boolean chains 4, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b74a90a3c2bd95857a619c3e370a68aeb458341d11eb423ea525f4de6b135e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.getWorkItemIdByNumber (cognitive 16): Services.getWorkItemIdByNumber has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, error handling 2, boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":3518}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f38eac4f1977a20bd5e168122c3b0b7128b87f2403d154d6330339db6bc202"}},{"ruleId":"D2","level":"warning","message":{"text":"Subscriber.emitValidationRequestedEvents (cognitive 16): Subscriber.emitValidationRequestedEvents has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 10, loops 5, boolean chains 1 (nesting depth added 10). 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":"src/Grace.Server/Notification.Server.fs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9f137404062ee41bafdb1c5d7efbe9596070be9046700309be203c9d3ff67c"}},{"ruleId":"D2","level":"warning","message":{"text":"Access.tryBuildUpsertPathPermission (cognitive 16): Access.tryBuildUpsertPathPermission has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 11, if/else 5 (nesting depth added 10). 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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac03066af32b1ec1f5966fdf7bb19670de6dc717c142aeabdda16d91efb1d24"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.StartManifestUploadSession (cognitive 16): Storage.StartManifestUploadSession has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 15, error handling 1 (nesting depth added 10). 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"8819e2b305bb3d488a1cf005aac140adfdbb6d6103d1c7e8d00cb3a2cb13b684"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalFileMaterialization.hasActivePhysicalRangeCover (cognitive 16): NormalFileMaterialization.hasActivePhysicalRangeCover has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/NormalFileMaterialization.Server.fs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"4925acf5ba56d5d688dd6c1ee98adbf759439c1aae418dc5eff738739f7cc3d7"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionSetCommand.listPromotionSetsWith (cognitive 16): PromotionSetCommand.listPromotionSetsWith has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 10, if/else 5, error handling 1 (nesting depth added 8). 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":"src/Grace.CLI/Command/PromotionSet.CLI.fs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"2090af738ec20beddde75e3a7911a4d1282cb9a6280e3226bb0eecd41a8c9856"}},{"ruleId":"D2","level":"warning","message":{"text":"Watch.canonicalizeTrackedAncestorCasing (cognitive 16): Watch.canonicalizeTrackedAncestorCasing has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, match/switch 4, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"523820020bd633339341c1cbff79be7f2d541327e60a06ccddc1f725b05af171"}},{"ruleId":"D2","level":"warning","message":{"text":"Auth.parseDurationSeconds (cognitive 16): Auth.parseDurationSeconds has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 11, if/else 5 (nesting depth added 9). 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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"888770459fe724933ba47371ec8ef2507310ee995f0f9c5b7e1c1f104eee8b57"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.uploadWholeFilesToObjectStorage (cognitive 16): Services.uploadWholeFilesToObjectStorage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, match/switch 8 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a7c44d84437c994a480043e0b44dec3898190cfdc5d988407779edf214a148"}},{"ruleId":"D2","level":"warning","message":{"text":"Services.processChangedDirectoriesBottomUp (cognitive 16): Services.processChangedDirectoriesBottomUp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, match/switch 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2328}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ef5c827f031ac91707d54bb10b6c13bdcb444bac49c30455867911de97eaa3"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.tryFindWatchJournalRelativePathIncompatibility (cognitive 16): LocalStateDb.tryFindWatchJournalRelativePathIncompatibility has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, match/switch 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"da073d448d749f28ad7854fad63ceb7d7a295706f0c3784adebf42e5412b243b"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalStateDb.tryFindWatchJournalReplayIncompatibility (cognitive 16): LocalStateDb.tryFindWatchJournalReplayIncompatibility has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 12, if/else 4 (nesting depth added 2). 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe10fb526a852b88ed280e9a4164bd49ca547f66177ed6281e6b66641c494a6"}},{"ruleId":"D2","level":"warning","message":{"text":"AspireTestHost.tryWaitForGraceEventAsync (cognitive 16): AspireTestHost.tryWaitForGraceEventAsync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, error handling 3, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server.Tests/AspireTestHost.fs"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"be99608d9a8691e7d290383446982dbce1aaba08c3e69ca37b01640230d39dda"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Watch: TooManyMethods \u2014 528 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cc2b138b3450a4969751dc98ecfa12bdea31e12618f0e904079bb3417e22a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Watch.CLI.fs: FileTooLong \u2014 7109 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0359b271abbcb14da9cf609dfe877ef7e72fa5803b1c9a8ed3b495b374bd6a97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Branch.CLI.fs: FileTooLong \u2014 3904 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8620fd073537f7d40877e41ec5d7d7e451317903b530074191f862e541c5a4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Services.CLI.fs: FileTooLong \u2014 2924 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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04cccf7c43c9e8806946ea10a5e951de0aea0694930a70dba8c8eaded26289a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Services: TooManyMethods \u2014 173 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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"45048339f9c092b2c9e99ce3ae86b0833e897ce0bae4048aa4a57c5f75311de0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Actors/Services.Actor.fs: FileTooLong \u2014 2785 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fccc4d58eeb85adf86af1c371996becfe36ac1548af2f327d26a1b00088c467"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/Branch.Server.fs: FileTooLong \u2014 2153 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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8c7eaef840e94fa8097f21aa2af04d13a183b31825a07c299656a771aed333"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Services: TooManyMethods \u2014 125 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"358127c8cfcfde7331608b4afc2fc9b174986b23f07011b91586a23214572ba8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/Storage.Server.fs: FileTooLong \u2014 1884 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0279a6ce2fcab4aeb41b413b6a171a3b75c231f1b320f22d670889e0bf682c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Actors/PromotionSet.Actor.fs: FileTooLong \u2014 1781 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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c352008fe7ca1fb10984550d4279d9e2be4fc288d4bb2e005870cf60598a403e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/Startup.Server.fs: FileTooLong \u2014 1618 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":"src/Grace.Server/Startup.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86cc6fbf99b93b706d1ab5a5199f28a97d6f39e0a497593fd087de31ba5a6be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Actors/UploadSession.Actor.fs: FileTooLong \u2014 1601 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2790a2673ee1fbd1e22ef6e67dde8f7f565a5602ce20b0e237ce8df18aad50b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Repository.CLI.fs: FileTooLong \u2014 1587 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":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74b350b03978b004d1eedd7f406aa3c6fdce5a4ad310062835c6aa399bf20b8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Storage: TooManyMethods \u2014 92 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa490b3767507ad156f7064c4005a089bb519d11e1ed4dbeb479e7ab5b84c96b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Actors/DirectoryVersion.Actor.fs: FileTooLong \u2014 1377 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":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3451fa9828b85555079e6957040f8d8b95197997ff8739a46b38a10957d9ed5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/WorkItem.Server.fs: FileTooLong \u2014 1365 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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fb2af4ce27dd4b261c5fb747ef1d35b27751eb282ba35df75fd2c4f6dd642e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Auth.CLI.fs: FileTooLong \u2014 1341 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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7788061e501ff69b14fdc5924885438ceb9931cdd66314a53eec4ffc808ef35c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Branch: TooManyMethods \u2014 79 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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e92dc26242557e2a2d064d4cac3c9d861101fb49ae663442817b6bccd915fa8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.CLI/CommandOutputContract.CLI.fs: FileTooLong \u2014 1264 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":"src/Grace.CLI/CommandOutputContract.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b357acbd53a6925f5a48c93f128a32012a80d3fc366cf349ec607e24bcd3c65"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/Review.Server.fs: FileTooLong \u2014 1200 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":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b26e01e06123751f83421f347e135381ed24467fbd9c9a6cafa0a150d50510a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/Notification.Server.fs: FileTooLong \u2014 1175 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":"src/Grace.Server/Notification.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d016ffdddde0b2950bfac036dce0f0b5bc5a548d8e8b7b0a40938b47487c46d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Branch: TooManyMethods \u2014 70 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"328772b3ad2ad7f83e145fefb64b809b598be8d812f4116e43eb39f798abacde"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.CLI/Program.CLI.fs: FileTooLong \u2014 1102 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":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe6cb0a2b20951448b779f84eda06fb60f7059715e12184bb2b7819d156ed3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Doctor.CLI.fs: FileTooLong \u2014 1085 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":"src/Grace.CLI/Command/Doctor.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cba0e3fc68a66224d9c87a1a0275908097fc8a315578eec2a5f355124954d3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Reference.CLI.fs: FileTooLong \u2014 1070 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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7ed0eb00863936540037ce8010965a6f1da310d690dbedc54413ce8a1c03a9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UploadSession: TooManyMethods \u2014 64 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71130a61bf4f7894c5a7e1cff7d880c038b9cadcb431046d23ccd6476fef440"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/WorkItem.CLI.fs: FileTooLong \u2014 1016 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":"src/Grace.CLI/Command/WorkItem.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd4a2a787ae99206d8a2f99529d8242474f409e817f38b9a09cf478e0314787"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Actors/Branch.Actor.fs: FileTooLong \u2014 998 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":"src/Grace.Actors/Branch.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"037f9143e042e583f10308d57efb706b764c57607914d537b850f5179cd70356"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Access.CLI.fs: FileTooLong \u2014 979 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":"src/Grace.CLI/Command/Access.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"894330637825e740b1dc4b9e0cac7a07419acfd28c892cd26619a87ac725eb0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Agent.CLI.fs: FileTooLong \u2014 971 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":"src/Grace.CLI/Command/Agent.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"003fbb8a24b9b76bfe2ddc1e5aa5dfcf7ba162dc7fb959c8bd52072821be1e43"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Auth: TooManyMethods \u2014 58 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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde42e0300963bce12af03bee9186cf919bf0af942a6a4eb887912b4370555aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/PromotionSet.CLI.fs: FileTooLong \u2014 966 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":"src/Grace.CLI/Command/PromotionSet.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ab9add5cd3f3475d5a6c4316c4159f6100fd397bfb740acbb9d3679f5212ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkItem: TooManyMethods \u2014 56 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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d29d105abbadcfccc98ae284504afa3bbaf6efe48bf29ab220048fdcd9182f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Types/Common.Types.fs: FileTooLong \u2014 909 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":"src/Grace.Types/Common.Types.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ed1c51736b25080dc695d48a724912b36d8b6169def7af620a9a602692a3ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DedupeIndex: TooManyMethods \u2014 52 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":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c4be917e98b0c4a2389cd344a08aebad6ed9744a564b10a7ffb314d0ebcaae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Common.CLI.fs: FileTooLong \u2014 841 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":"src/Grace.CLI/Command/Common.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8b77b5a86541a3f4998fb01b5a76c4c9ca15c5446812928bed4eb7ba12f9cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/ManifestContributionRepair.Server.fs: FileTooLong \u2014 836 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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e755ab443112e54d272e67ee4c82dc42c5c3e36d825b766f83179ed7a0320a08"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Validation/Errors.Validation.fs: FileTooLong \u2014 830 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":"src/Grace.Shared/Validation/Errors.Validation.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba75430b16c66455a6f20823cd1b63b06b3b72fa895f5c3bcb3bf3539628497"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Utilities: TooManyMethods \u2014 49 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":"src/Grace.Shared/Utilities.Shared.fs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07f0f4b373f75f19a0bbca52e880e5e7470cb9458a3d556e9452b0ea6b1a41a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Actors/Reference.Actor.fs: FileTooLong \u2014 805 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":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"688b6d1ad1ecd006bc751a79137fd8fb6cd8fc43dc5e446c20a5cf247e6e9cef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/ManifestContributionDiagnosis.Server.fs: FileTooLong \u2014 805 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":"src/Grace.Server/ManifestContributionDiagnosis.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cdb130e422f1e322b8bcd44af39012e84f7e87416b1af14f36786ebd31cd68"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Maintenance.CLI.fs: FileTooLong \u2014 793 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":"src/Grace.CLI/Command/Maintenance.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfbc36b47f3cfd2067be8f54d2d3651e5d40b39ffffca920d60066d4ad4c67d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryCache: TooManyMethods \u2014 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":"src/Grace.Actors/Extensions/MemoryCache.Extensions.Actor.fs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"39558353004c6a440633a2492cc99c51ba7445c5d076abed6b8761fee80d636a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Doctor: TooManyMethods \u2014 46 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":"src/Grace.CLI/Command/Doctor.CLI.fs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14776fcb383bb2a698ecee54f51130e5a52e31ce79ed5dd06bed2556ed63a92"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Common: TooManyMethods \u2014 45 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":"src/Grace.CLI/Command/Common.CLI.fs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"772d00172aa55058f4dbb0c159a1a360feb9ae120a060cc2fd8f96bae6cf649f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Connect.CLI.fs: FileTooLong \u2014 727 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":"src/Grace.CLI/Command/Connect.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e150507f81e0c95558f7647d521cd9e5ecae87ebbc93ed83ad32dddaa19cd8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/Repository.Server.fs: FileTooLong \u2014 722 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":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"881e7ae45d9601dbc4b5bd737fed0088b8ef84ff85307d687bce72bf5081cc1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Diff.CLI.fs: FileTooLong \u2014 718 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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"835bccbb23de467c288187ba1799060325d3581d485de5cad27b38307a10edd7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Program: ClassTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), 11 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":"src/Grace.Aspire.AppHost/Program.Aspire.AppHost.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad65e15e5106ca089ef62277fc0cf682a68e3e0c48b2afdb4347aedb83eb5b7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PromotionSetActor: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e27ad92cb34ace385a3716d3aa5bbdedc4001c3afa5f75a20ff6408aeacc362"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Shared/DedupeIndex.Shared.fs: FileTooLong \u2014 700 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":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10276aaddf9ca8a4f3a4e343402f3ffb1f1a2abe036f54ab33dfb47fa7bc57aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/History.CLI.fs: FileTooLong \u2014 696 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":"src/Grace.CLI/Command/History.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90a2bb3a17b7b95a4b93d1c2bb0d97ad91ba357a2725e1c6f504d12cac1802e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Actors/ContentBlockMetadata.Actor.fs: FileTooLong \u2014 672 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":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec979e74094cf41c5e135abee0b4c65dd01588c5ce4c182e5523629d122c5634"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Branch: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.SDK/Branch.SDK.fs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeeb8524111d2f97966fe5a5ee624267272a05e3a1e6fbc54d60dad777b2a98f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Review: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b7958f875c451e6d815d3f54ddd0ddf631e6398da163f7b172cb3dce796064"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Approval.CLI.fs: FileTooLong \u2014 652 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":"src/Grace.CLI/Command/Approval.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc0f1b08766898047165b8e00a8437d9a5c49d61594a6348c89f1e0dce17ef5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AnnotationLineCore: TooManyMethods \u2014 38 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":"src/Grace.Shared/AnnotationLineCore.Shared.fs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd9e36a6ee2b7bbd8d38d8ac283ee46e9ffd034f70850712e42c3a7acc9c3b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Review.CLI.fs: FileTooLong \u2014 631 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":"src/Grace.CLI/Command/Review.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fced8f5a51231bce047d6209a9255a229ca36ad6b4f820194facab6df098ed43"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Text/Languages.Resources.fs: FileTooLong \u2014 612 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":"src/Grace.Shared/Resources/Text/Languages.Resources.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e763a0f4c64bd33e7b14e0c48d18f2c8b7d18c2b014b4a39395cb30774c7f947"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Aspire.AppHost/Program.Aspire.AppHost.cs: FileTooLong \u2014 580 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":"src/Grace.Aspire.AppHost/Program.Aspire.AppHost.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f415b13cb84d612d814bba1505dd9696ca1e4a26bbc6e808de5aa354a86e69"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Shared/AnnotationLineCore.Shared.fs: FileTooLong \u2014 574 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":"src/Grace.Shared/AnnotationLineCore.Shared.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9373fe8a775b7c9fe8508309c790469ed11505ec7895c742d1583c9ca8519e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Grace.Server/Access.Server.fs: FileTooLong \u2014 573 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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d4835d66814eada8f669bd7a75bae5de8702345807ad715c3c263d9a135468"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkItemCommand: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/WorkItem.CLI.fs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d98b13ebf130ce625465b1fda4130c08367c99ff9f282d9a5b3732371d1c45"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GraceCommand: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ca74b6d04aa024b4f50a23f9a39527d1993d92ccac2d3dd6e32798558fd805"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CommandOutputContract: TooManyMethods \u2014 32 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":"src/Grace.CLI/CommandOutputContract.CLI.fs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb3b490279086504cad4cd04662097bdf33262b8598283f332635e56ceb56a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Command/Admin.CLI.fs: FileTooLong \u2014 524 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":"src/Grace.CLI/Command/Admin.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b5e4bab0da6bd27472d877e956c7094d209e9565b901810078ffa667d53bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): src/Grace.Server/Branch.Server.fs:2075-2100 | src/Grace.Server/Branch.Server.fs:2534-2559 | src/Grace.Server/Branch.Server.fs:2648-2673 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Branch.Server.fs:2075\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":2075}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24c570c2de8918ccf9f0d35ec24dc257be1d1fa4001d5c1c9f72cca439ecc7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4): src/Grace.Server/Reminder.Server.fs:304-328 | src/Grace.Server/Reminder.Server.fs:366-390 | src/Grace.Server/Reminder.Server.fs:443-467 | src/Grace.Server/Reminder.Server.fs:546-570 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Reminder.Server.fs:304\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":"src/Grace.Server/Reminder.Server.fs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"963cc1762569130b90c59a7b6857eb423b566d41453dd03107158c06ce35a4dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 11): src/Grace.Server/Branch.Server.fs:1584-1607 | src/Grace.Server/Branch.Server.fs:1639-1662 | src/Grace.Server/Branch.Server.fs:1711-1734 | src/Grace.Server/Branch.Server.fs:1774-1797 | src/Grace.Server/Branch.Server.fs:1832-1855 | src/Grace.Server/Branch.Server.fs:2134-2157 | src/Grace.Server/Branch.Server.fs:2192-2215 | src/Grace.Server/Branch.Server.fs:2250-2273 | src/Grace.Server/Branch.Server.fs:2309-2332 | src/Grace.Server/Branch.Server.fs:2367-2390 | src/Grace.Server/Branch.Server.fs:2425-2448 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Branch.Server.fs:1584\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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"46242df931cdcfb8449a574e3fa2e64ad635423cf812d47a1f3e026101f248c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 7): src/Grace.Server/Repository.Server.fs:676-699 | src/Grace.Server/Repository.Server.fs:727-750 | src/Grace.Server/Repository.Server.fs:777-800 | src/Grace.Server/Repository.Server.fs:838-861 | src/Grace.Server/Repository.Server.fs:911-934 | src/Grace.Server/Branch.Server.fs:1970-1993 | src/Grace.Server/Reminder.Server.fs:242-265 \u2014 there are 7 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Repository.Server.fs:676\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":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"298c1e5232f7cfd39166e2c2e4895292acd66670e5c8c9932b83fa2e1810de0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:2304-2326 | src/Grace.Actors/Services.Actor.fs:2372-2394 \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 \u0060src/Grace.Actors/Services.Actor.fs:2304\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adee82a81e13e142a07430491107670cfb330044644b57b11e2704d33c4d7b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/Grace.Actors/ApprovalRequest.Actor.fs:273-295 | src/Grace.Actors/ApprovalRequest.Actor.fs:461-483 \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 \u0060src/Grace.Actors/ApprovalRequest.Actor.fs:273\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":"src/Grace.Actors/ApprovalRequest.Actor.fs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d1915c58d8373bcc6712eb7b329b75d70c493cc2e69a83baa438ef6b31e611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1583-1604 | src/Grace.CLI/Command/Reference.CLI.fs:1038-1059 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:1583\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bfc6a52c90cf0fd08d18650ca1b8d9b81d5be49e01633d81cc91636e70b5e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/Grace.Actors/Reference.Actor.fs:528-549 | src/Grace.Actors/Branch.Actor.fs:491-512 | src/Grace.Actors/Repository.Actor.fs:383-402 \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":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6615caa51785c17ea6356b00518302cdb5e9a5ffc625b9da015e6764a428ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:655-674 | src/Grace.Actors/Services.Actor.fs:740-759 \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 \u0060src/Grace.Actors/Services.Actor.fs:655\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"77dbc2ddbb3fa8ebcdd37f69b95c0c4a28dce707a972b6436a4c5110466b3159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1356-1375 | src/Grace.CLI/Command/Reference.CLI.fs:797-816 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:1356\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ad86de78b1a321b62083b05d6cd5a70002da3af68e8a5d5ae16471b3e78016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/Grace.CLI/Command/Watch.CLI.fs:6731-6750 | src/Grace.CLI/Command/Watch.CLI.fs:6836-6855 \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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":6731}}}],"partialFingerprints":{"codehealthFindingId/v1":"f697eb9264f0ecd6adb397b7be5729754c4eddb7befa9f33f4bdcdf63befbc74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1513-1531 | src/Grace.CLI/Command/Reference.CLI.fs:970-988 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:1513\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d2a6cd38215eb7d109ecbf1511f827ab64076653edfded305567a70940cdbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1654-1672 | src/Grace.CLI/Command/Reference.CLI.fs:1104-1122 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:1654\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b2f78bcf1ff97f8e1ea18c741b6c7e50d6c43f60801c914e4cb12d80fc62a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Grace.Actors/PromotionSet.Actor.fs:175-192 | src/Grace.Server/ApprovalPolicy.Server.fs:146-163 \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 \u0060src/Grace.Actors/PromotionSet.Actor.fs:175\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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4d15c64194aab5848f73c9c40daa8b68b6e7cb82cac54b922542ae16ea1aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Grace.Actors/UploadSession.Actor.fs:850-867 | src/Grace.Actors/UploadSession.Actor.fs:1035-1052 \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. 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"e957b24e26e2180793764acb313ff0f6cc3113b4f8a21b4bd083026e3a12a21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Grace.Server/Validations.Server.fs:304-321 | src/Grace.Server/Validations.Server.fs:421-438 \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 \u0060src/Grace.Server/Validations.Server.fs:304\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":"src/Grace.Server/Validations.Server.fs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead4c4658bf4a4c828def8f2ae74ea33674f0331187b761383287fdc53a1944f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Grace.CLI/Command/Diff.CLI.fs:399-416 | src/Grace.CLI/Command/Diff.CLI.fs:733-752 \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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"185734ffd862d423dc851a2890a891afde53016ab218929d08e91b92d7763773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:181-198 | src/Grace.CLI/Command/Reference.CLI.fs:145-162 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:181\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d20b6ed288cd3cd0b8a0f24a06a33519c505c10476358ec8d2e48c7c71830e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1260-1277 | src/Grace.CLI/Command/Reference.CLI.fs:685-702 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:1260\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"167a27299251d76f505c899dcc0144e5a13c828733100cd63da704d07890f23f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/Grace.Actors/Services.Actor.fs:2598-2614 | src/Grace.Actors/Services.Actor.fs:2711-2727 | src/Grace.Actors/Services.Actor.fs:2897-2913 | src/Grace.Actors/Services.Actor.fs:3024-3040 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"36169b03e7a9506f37c9ddcd4d2668b68eaf1f76acb521cb6e6763df83813f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.Server/Middleware/SdkLifecycle.Middleware.fs:133-149 | src/Grace.Server/Middleware/SdkLifecycle.Middleware.fs:155-171 \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 \u0060src/Grace.Server/Middleware/SdkLifecycle.Middleware.fs:133\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":"src/Grace.Server/Middleware/SdkLifecycle.Middleware.fs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"64122b6d9790e85cde726e4cee135a4c739997048483ff7cb7d39abe64d489eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.Server/Owner.Server.fs:114-131 | src/Grace.Server/Organization.Server.fs:92-108 \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 \u0060src/Grace.Server/Owner.Server.fs:114\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":"src/Grace.Server/Owner.Server.fs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cb9cc4f5167421a5b9722cb3c80b92cef3edc5243cf4f03e3ea23b9bb0193a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.Server/Diff.Server.fs:142-158 | src/Grace.Server/Diff.Server.fs:183-199 \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":"src/Grace.Server/Diff.Server.fs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b5fd67acf650766aa5ec63e288084ccc017c83e3a5b61c6fdb52387b59620f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.Server/Storage.Server.fs:1132-1148 | src/Grace.Server/Storage.Server.fs:1182-1198 \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 \u0060src/Grace.Server/Storage.Server.fs:1132\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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b93134cb4a922e904c5f5f9b2f6a8146df18d99708528b92e66a726d26c6ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.Server/Notification.Server.fs:1186-1202 | src/Grace.Server/Notification.Server.fs:1247-1263 \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":"src/Grace.Server/Notification.Server.fs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d196aebd720679f5d81c91ddccc4e0d0a2858bc38d427fbb9cbc4857fbf9db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:161-177 | src/Grace.CLI/Command/Organization.CLI.fs:197-213 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:161\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8972848c442d5b1a13c797b60bd7cab4c6e2f595efa64efbcffed4511792d6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:224-240 | src/Grace.CLI/Command/Organization.CLI.fs:262-278 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:224\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fcade47cfd7a3315b9a5f9354d7f56661d6959465b28a127956f9b5235360d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:342-358 | src/Grace.CLI/Command/Organization.CLI.fs:365-381 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:342\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ff0cbd65481914a95a1c6d865d4aa6cf3a5483650bfa7e6162b450a51f0e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:392-408 | src/Grace.CLI/Command/Organization.CLI.fs:417-433 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:392\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c6bc16f134396cc0a16a623f6e4c1399d6f34940015994fea79d4dd944fe35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:442-458 | src/Grace.CLI/Command/Organization.CLI.fs:469-485 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:442\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"429daffb3a72162cd06e08c2a9b882a14e5c1cc42b181acf0c0d6da269603b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:493-509 | src/Grace.CLI/Command/Organization.CLI.fs:522-538 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:493\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2d898061d241849e33379a01df7e16f302e3026d944e7b2f94440cb8209187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1440-1456 | src/Grace.CLI/Command/Branch.CLI.fs:3433-3449 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfb65aad018befde344e3c3d4960930e89fe92efab9061df9cd0dc983b4b2a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:5329-5345 | src/Grace.CLI/Command/Reference.CLI.fs:1507-1523 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":5329}}}],"partialFingerprints":{"codehealthFindingId/v1":"39023a5ea6fae0809a40b688bb65ed500dab83d9458a839b431e735d8bad8f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Grace.CLI/Command/Reference.CLI.fs:281-297 | src/Grace.CLI/Command/Reference.CLI.fs:359-375 \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 \u0060src/Grace.CLI/Command/Reference.CLI.fs:281\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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"772f6c27127b45965b98c188818ea6a74f605264e0974aab36da68df2573381b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/Grace.CLI/Command/Repository.CLI.fs:39-54 | src/Grace.CLI/Command/Branch.CLI.fs:85-100 | src/Grace.CLI/Command/Reference.CLI.fs:71-86 | src/Grace.CLI/Command/DirectoryVersion.CLI.fs:49-64 | src/Grace.CLI/Command/Watch.CLI.fs:363-378 \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 \u0060src/Grace.CLI/Command/Repository.CLI.fs:39\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":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6560486adb6bff9dcaa79a7041849774158210f8f63074e3565a64de2737a58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/Grace.Server/Branch.Server.fs:1134-1149 | src/Grace.Server/Branch.Server.fs:1179-1194 | src/Grace.Server/Branch.Server.fs:1222-1237 | src/Grace.Server/Branch.Server.fs:1265-1280 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Branch.Server.fs:1134\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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62d2eeb1d7f3599c523d652418c2ca6b3fb4f91980412ac0d732f307a236a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/Grace.Actors/DirectoryVersion.Actor.fs:850-865 | src/Grace.Actors/Reference.Actor.fs:539-554 | src/Grace.Actors/Diff.Actor.fs:177-192 \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 \u0060src/Grace.Actors/DirectoryVersion.Actor.fs:850\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":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbdc688c50322c37eabd6d5a127ca023b442128bffc51f43904365ab39197a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/Grace.Server/DirectoryVersion.Server.fs:184-199 | src/Grace.Server/DirectoryVersion.Server.fs:219-234 | src/Grace.Server/DirectoryVersion.Server.fs:443-458 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/DirectoryVersion.Server.fs:184\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":"src/Grace.Server/DirectoryVersion.Server.fs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba17bda4c5e9aa3a9bdf3d424a03b9497a42558fe619e71086b287c636cfb71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/Grace.CLI/Command/Diff.CLI.fs:91-106 | src/Grace.CLI/Command/Branch.CLI.fs:131-146 | src/Grace.CLI/Command/Watch.CLI.fs:409-424 \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 \u0060src/Grace.CLI/Command/Diff.CLI.fs:91\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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e12872a52e613aca204f923258a2b8798d236220a08c210f7feb62fe1563733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/Grace.CLI/Command/Branch.CLI.fs:140-155 | src/Grace.CLI/Command/Reference.CLI.fs:51-66 | src/Grace.CLI/Command/Watch.CLI.fs:418-433 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:140\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd28281e488bad95d3291b10b3a56212c294b0175ad6a24076f3ae43441571f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:623-639 | src/Grace.Actors/Services.Actor.fs:708-723 \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 \u0060src/Grace.Actors/Services.Actor.fs:623\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d11a5314b0bc4538d06a2d8005ac84bb00e1847f4a1495df80bdefe4ffb3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:2673-2688 | src/Grace.Actors/Services.Actor.fs:2980-2995 \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 \u0060src/Grace.Actors/Services.Actor.fs:2673\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2673}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf20da31a2b9aa672f1a5c762144517284669a783ec7d939593a0d169516765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.Actors/Owner.Actor.fs:186-201 | src/Grace.Actors/Organization.Actor.fs:159-174 \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 \u0060src/Grace.Actors/Owner.Actor.fs:186\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":"src/Grace.Actors/Owner.Actor.fs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e9fe1245557e4d87b7999f1d8dca2153c2f9d7826fac2b6eb9d0bc09380a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.Server/Review.Server.fs:1155-1170 | src/Grace.Server/Review.Server.fs:1295-1310 \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 \u0060src/Grace.Server/Review.Server.fs:1155\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":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b3b515af63c06289e542e33ae1b5651188038c8dd3f7eaf8282dd4375dff5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:3461-3476 | src/Grace.CLI/LocalStateDb.CLI.fs:3674-3689 \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 \u0060src/Grace.CLI/LocalStateDb.CLI.fs:3461\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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":3461}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65380d27239dc802343440cc5254ef9b6ac3ecb64f288b667a3cfbcd5691ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.CLI/Command/Organization.CLI.fs:514-529 | src/Grace.CLI/Command/Organization.CLI.fs:565-580 \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 \u0060src/Grace.CLI/Command/Organization.CLI.fs:514\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":"src/Grace.CLI/Command/Organization.CLI.fs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"1957b9d2674cc232c05c91428985795fa6b76e628e0b914e4e6e56ab5da2996f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.CLI/Command/Diff.CLI.fs:292-307 | src/Grace.CLI/Command/Diff.CLI.fs:630-645 \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 \u0060src/Grace.CLI/Command/Diff.CLI.fs:292\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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6798f86fca23c98cc0749db768e1472897d04c4511187f72182c3ef8447f07a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.CLI/Command/Diff.CLI.fs:330-345 | src/Grace.CLI/Command/Diff.CLI.fs:662-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac09792e4517cae5616a11ad49731b3575955198999164926b6f708caec600d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:852-867 | src/Grace.CLI/Command/Reference.CLI.fs:238-253 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:852\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71604e9f54bdd92ffab55f9bf42cd985b61d4007f28f43947aca6a4662fabf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1304-1319 | src/Grace.CLI/Command/Reference.CLI.fs:746-761 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:1304\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe68eaf17c2ca47628ed3cdae9db741a706c8e6f930e3e0536064160ff11def6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): src/Grace.Server/Branch.Server.fs:2106-2120 | src/Grace.Server/Branch.Server.fs:2164-2178 | src/Grace.Server/Branch.Server.fs:2222-2236 | src/Grace.Server/Branch.Server.fs:2280-2295 | src/Grace.Server/Branch.Server.fs:2339-2353 | src/Grace.Server/Branch.Server.fs:2397-2411 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Branch.Server.fs:2106\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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":2106}}}],"partialFingerprints":{"codehealthFindingId/v1":"908590c116d84bc25ec8f2a7b47b62855c7dffd92b646c9a472ab83e89f54a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Actors/Owner.Actor.fs:169-183 | src/Grace.Actors/Organization.Actor.fs:142-156 \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 \u0060src/Grace.Actors/Owner.Actor.fs:169\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":"src/Grace.Actors/Owner.Actor.fs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e62f7d34999b15ed504040568192e0513982fb3ed0efcdbb54e38e26a1cfae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Actors/Review.Actor.fs:64-78 | src/Grace.Actors/Review.Actor.fs:108-122 \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 \u0060src/Grace.Actors/Review.Actor.fs:64\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":"src/Grace.Actors/Review.Actor.fs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"20639218e76b3af33806f834e11cee5877cc002a1ba063505caca450d82ea667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Types/ContentBlockMetadata.Types.fs:371-385 | src/Grace.Types/ContentBlockMetadata.Types.fs:392-406 \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 \u0060src/Grace.Types/ContentBlockMetadata.Types.fs:371\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":"src/Grace.Types/ContentBlockMetadata.Types.fs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdf67b74f239c59fd1390c4897f7d192193a81d637f1a610e9ef37996729956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Shared/AzureEnvironment.Shared.fs:130-144 | src/Grace.Server/ApplicationContext.Server.fs:224-238 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/AzureEnvironment.Shared.fs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2358db94753a0103f7c383b24b0f8b6346e0a8250d2c22f3c2009c1ebccef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Server/Validations.Server.fs:159-173 | src/Grace.Server/Validations.Server.fs:226-240 \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":"src/Grace.Server/Validations.Server.fs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d9995f8d0a1106386feaf58e758a18b8fef0fa0ae17e4caed90f362f185146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Server/ApprovalPolicy.Server.fs:379-393 | src/Grace.Server/ApprovalPolicy.Server.fs:399-413 \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":"src/Grace.Server/ApprovalPolicy.Server.fs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8352bf45fb9702c7ccc1388d8161d8a436874141e72a6a118fb5445678a38ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Server/PromotionSet.Server.fs:359-373 | src/Grace.Server/PromotionSet.Server.fs:390-404 \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 \u0060src/Grace.Server/PromotionSet.Server.fs:359\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":"src/Grace.Server/PromotionSet.Server.fs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fdeada95d56f6bb2da60b8fdb258ba862a026785a5634795ff05c6eb53fbfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Server/Webhook.Server.fs:192-206 | src/Grace.Server/Webhook.Server.fs:210-224 \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":"src/Grace.Server/Webhook.Server.fs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b7c97e4afb57b81a822a221c3826856d04bbae5daae7806a0f81abb0f8b212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.Server/ManifestContributionAccounting.Server.fs:364-378 | src/Grace.Server/ManifestContributionAccounting.Server.fs:385-399 \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":"src/Grace.Server/ManifestContributionAccounting.Server.fs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"37df9faeb6468a6575e131b7160370d7f217f79ee67808bd80ece304fec69ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:2831-2845 | src/Grace.CLI/LocalStateDb.CLI.fs:3201-3215 \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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2831}}}],"partialFingerprints":{"codehealthFindingId/v1":"72451da500ede4ed77819eb552a1c81c31ec2e406cce197fe59c4ec20b9c1071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:2865-2879 | src/Grace.CLI/LocalStateDb.CLI.fs:3252-3266 \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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d488fda58c7824786996ef195a0ee565e90495a5580625045d04900790996b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:2925-2939 | src/Grace.CLI/LocalStateDb.CLI.fs:3098-3112 \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 \u0060src/Grace.CLI/LocalStateDb.CLI.fs:2925\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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2925}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a9d5fd5631629a5516ffb7f2a2d70782ab0407ec38451fcfc0bc92ebe6b982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/Command/Services.CLI.fs:2615-2629 | src/Grace.CLI/Command/Watch.CLI.fs:6228-6242 \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 \u0060src/Grace.CLI/Command/Services.CLI.fs:2615\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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cb7e375067bdc896d18b41cea33e2997c795803d706c5f84a5e3985b92fb95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:542-556 | src/Grace.CLI/Command/Organization.CLI.fs:573-587 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:542\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcacfc287c0782b08b9a2a1c9e2d3bd48a09969d6709c0313429016db725d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:737-751 | src/Grace.CLI/Command/Branch.CLI.fs:880-894 \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. 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"2464fed98c4437e5b7d8d90ef89056ac53f020f7dcba146cc023dc5a6d31c502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:2465-2479 | src/Grace.CLI/Command/Branch.CLI.fs:2501-2515 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:2465\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":2465}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e202f446b5e41d51898aeca269771a472b7f65c5ae81a6cffb2b75422427cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/Command/Reference.CLI.fs:772-788 | src/Grace.CLI/Command/Reference.CLI.fs:903-917 \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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"2979572e05fa14ab44669d9fa83508ebc3edbea04ea3096e87c82fd5ff00cec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Grace.CLI/Command/Reference.CLI.fs:1285-1299 | src/Grace.CLI/Command/Reference.CLI.fs:1320-1334 \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 \u0060src/Grace.CLI/Command/Reference.CLI.fs:1285\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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2754829b4306ab5166b616b602e00491cdd181c79e0bfa035fbf08569f0ca9c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): src/Grace.CLI/Command/Connect.CLI.fs:57-70 | src/Grace.CLI/Command/Repository.CLI.fs:73-86 | src/Grace.CLI/Command/Branch.CLI.fs:119-132 | src/Grace.CLI/Command/Reference.CLI.fs:105-118 | src/Grace.CLI/Command/DirectoryVersion.CLI.fs:83-96 | src/Grace.CLI/Command/Watch.CLI.fs:397-410 \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 \u0060src/Grace.CLI/Command/Connect.CLI.fs:57\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":"src/Grace.CLI/Command/Connect.CLI.fs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe45a12fff735fd274883747f0894477a567162a2cbe5a0f5bd8424cc052c1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/Grace.Actors/Services.Actor.fs:2172-2185 | src/Grace.Actors/Services.Actor.fs:2337-2350 | src/Grace.Actors/Services.Actor.fs:2405-2418 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2172}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadc5e3e03db545d8bf6f2d328bc78da28f0a9c1a98d5da58e9b1cb109111a7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/Grace.Actors/WorkItem.Actor.fs:181-194 | src/Grace.Actors/Policy.Actor.fs:200-213 | src/Grace.Actors/Review.Actor.fs:223-236 \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 \u0060src/Grace.Actors/WorkItem.Actor.fs:181\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":"src/Grace.Actors/WorkItem.Actor.fs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ef66aaa26fa768d748a0c320385eb9aa3f0b77df31ab43dfae27e844f6c9f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/Grace.Server/Policy.Server.fs:108-121 | src/Grace.Server/Queue.Server.fs:88-101 | src/Grace.Server/Queue.Server.fs:183-196 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Policy.Server.fs:108\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":"src/Grace.Server/Policy.Server.fs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1069fef7489a3e5da5771f2ef0882f09e4c4010cdb195e5e779c5a1b76c4f2f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Actors/Interfaces.Actor.fs:540-553 | src/Grace.Actors/Interfaces.Actor.fs:582-595 \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. 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":"src/Grace.Actors/Interfaces.Actor.fs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52df2cc18f74921e58a710803ef03d911f3913818e7ac4f81a2ce56a14938fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:2811-2824 | src/Grace.Actors/Services.Actor.fs:2891-2904 \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 \u0060src/Grace.Actors/Services.Actor.fs:2811\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9bbc5a17be5312286859c517700bc646d0b48cd48edc64bec990d16ced1d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Actors/UploadSession.Actor.fs:667-680 | src/Grace.Server/Storage.Server.fs:697-710 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4a8b1fee9b1d149080865447c7294301dfacbfae322d29ab31a5313b01740d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Actors/UploadSession.Actor.fs:683-696 | src/Grace.Server/Storage.Server.fs:713-726 \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 \u0060src/Grace.Actors/UploadSession.Actor.fs:683\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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e3d008d7801615aa590f9760f290bdcdff4220b080d161533eb0d9992fd635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Types/Artifact.Types.fs:178-191 | src/Grace.Types/Artifact.Types.fs:249-262 \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":"src/Grace.Types/Artifact.Types.fs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c7b45c385b47387466cf0f905ebefafcf4d91c92ed299371691c7cb295fd39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Server/Security/AuthorizationMiddleware.Server.fs:239-252 | src/Grace.Server/Security/AuthorizationMiddleware.Server.fs:270-283 \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 \u0060src/Grace.Server/Security/AuthorizationMiddleware.Server.fs:239\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":"src/Grace.Server/Security/AuthorizationMiddleware.Server.fs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6131d7fb8c9671272ac86901042fea9b3b5db2c5a9e25b3e5f53a777057e2fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Server/Branch.Server.fs:2468-2481 | src/Grace.Server/Branch.Server.fs:2578-2591 \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 \u0060src/Grace.Server/Branch.Server.fs:2468\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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":2468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6bf309700ffc4185b116aab4fd1e32d1aee8fd315eec2b488c100a78ce1185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Server/ApprovalPolicy.Server.fs:428-441 | src/Grace.Server/Webhook.Server.fs:236-249 \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":"src/Grace.Server/ApprovalPolicy.Server.fs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe45b27c59d13ac07b7776a9beca565000590e8f43595d93aa47ad84feacae65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Server/Review.Server.fs:1335-1348 | src/Grace.Server/Review.Server.fs:1373-1386 \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 \u0060src/Grace.Server/Review.Server.fs:1335\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":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3d19c0f96b570aa72486bc6fedb4003d72e792d43d75ec1ca27b197e6f2856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Server/ManifestContributionRepair.Server.fs:499-512 | src/Grace.Server/ManifestContributionRepair.Server.fs:605-618 \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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5964087a7764ee0da164cff31ffad6b7361f1cb86222c95686dbee6f4035f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.Server/Notification.Server.fs:405-418 | src/Grace.Server/Notification.Server.fs:768-781 \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":"src/Grace.Server/Notification.Server.fs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8212e79ec40af3a5e2c83864bf0b58828bcb728819f32d7e80a0c6e72477cb1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:803-816 | src/Grace.CLI/LocalStateDb.CLI.fs:895-908 \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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2fb4c706275d8556bf224352c270a7153f0320b42d4dc1f706441e8627fd25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.CLI/Command/Services.CLI.fs:105-118 | src/Grace.CLI/Command/Watch.CLI.fs:781-794 \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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a0c4926a40d0e8eea68c9101a8e43b25df0b99941ae1881f376072ba3b487a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.CLI/Command/Auth.CLI.fs:1363-1376 | src/Grace.CLI/Command/Auth.CLI.fs:1743-1756 \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 \u0060src/Grace.CLI/Command/Auth.CLI.fs:1363\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":"src/Grace.CLI/Command/Auth.CLI.fs"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4bd6000649dcee1048dd4940fed43dce310586e31aabaf45c0fbf67f513b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.CLI/Command/Config.CLI.fs:129-142 | src/Grace.CLI/Command/Config.CLI.fs:181-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Config.CLI.fs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9803ae1417f84d9a7d760b6904b3031b946068e1cd5235e5aca78ec0cad7082d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.CLI/Command/Repository.CLI.fs:810-823 | src/Grace.CLI/Command/Repository.CLI.fs:1788-1801 \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 \u0060src/Grace.CLI/Command/Repository.CLI.fs:810\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":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"6962604ee68868a375da23364c50d058424727dbf2aee1174348bd9b28b2034a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:211-224 | src/Grace.CLI/Command/Reference.CLI.fs:167-180 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4baa0faff878064043399460e354344e3e700a4cf2a4fc0b336bc2fb2c93009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1673-1686 | src/Grace.CLI/Command/Reference.CLI.fs:1123-1136 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:1673\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0460a81d0e72236d46957ef991082fe81009e3246a31f1cfa228a81f9d2fe35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:5038-5051 | src/Grace.CLI/Command/Reference.CLI.fs:1447-1460 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":5038}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d05bee2f7336b14baa2cbf2d0589f2b3640b49dd3c1408a276497a3997cbe92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 17): src/Grace.CLI/Command/Repository.CLI.fs:856-868 | src/Grace.CLI/Command/Repository.CLI.fs:998-1010 | src/Grace.CLI/Command/Repository.CLI.fs:1055-1067 | src/Grace.CLI/Command/Repository.CLI.fs:1110-1122 | src/Grace.CLI/Command/Repository.CLI.fs:1165-1177 | src/Grace.CLI/Command/Repository.CLI.fs:1220-1232 | src/Grace.CLI/Command/Repository.CLI.fs:1275-1287 | src/Grace.CLI/Command/Repository.CLI.fs:1330-1342 | src/Grace.CLI/Command/Repository.CLI.fs:1385-1397 | src/Grace.CLI/Command/Repository.CLI.fs:1497-1509 | src/Grace.CLI/Command/Repository.CLI.fs:1553-1565 | src/Grace.CLI/Command/Repository.CLI.fs:1608-1620 | src/Grace.CLI/Command/Repository.CLI.fs:1663-1675 | src/Grace.CLI/Command/Repository.CLI.fs:1719-1731 | src/Grace.CLI/Command/Repository.CLI.fs:1775-1787 | src/Grace.CLI/Command/Repository.CLI.fs:1829-1841 | src/Grace.CLI/Command/Repository.CLI.fs:1883-1895 \u2014 all 17 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.CLI/Command/Repository.CLI.fs:856\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":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"72aecb8cc2feb33c859f06cf5eb591f989e5b9902b970fcad00493c9be0a1bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): src/Grace.Server/Owner.Server.fs:196-209 | src/Grace.Server/Organization.Server.fs:179-192 | src/Grace.Server/Repository.Server.fs:202-215 | src/Grace.Server/Branch.Server.fs:759-773 | src/Grace.Server/Policy.Server.fs:160-172 | src/Grace.Server/Review.Server.fs:921-933 | src/Grace.Server/Queue.Server.fs:235-247 \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 \u0060src/Grace.Server/Owner.Server.fs:196\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Owner.Server.fs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafb7261e7ad411427a308695ed6135db1b5a90379af5132b320d6004370c718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/Grace.Actors/GrainRepository.Actor.fs:1-13 | src/Grace.Actors/GlobalLock.Actor.fs:1-13 | src/Grace.Actors/OwnerName.Actor.fs:1-13 | src/Grace.Actors/OrganizationName.Actor.fs:1-13 | src/Grace.Actors/BranchName.Actor.fs:1-13 | src/Grace.Actors/RepositoryName.Actor.fs:1-13 \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":"src/Grace.Actors/GrainRepository.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff6cdde311dc02e52f48ab1d7b710612efda85d3b9ade4b56ed29add5a5885d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): src/Grace.CLI/Command/Connect.CLI.fs:86-98 | src/Grace.CLI/Command/Branch.CLI.fs:100-112 | src/Grace.CLI/Command/Reference.CLI.fs:86-98 | src/Grace.CLI/Command/DirectoryVersion.CLI.fs:64-76 | src/Grace.CLI/Command/Watch.CLI.fs:378-390 \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 \u0060src/Grace.CLI/Command/Connect.CLI.fs:86\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":"src/Grace.CLI/Command/Connect.CLI.fs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9234210ef0d20c9ce7d0e702d39e984470734eb71b7f4424f8c87ef0dfd52b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:1460-1472 | src/Grace.Actors/Services.Actor.fs:1662-1674 \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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"34478a0f57c6c799c9f84fd9fe498f819b4dce7a8af2951146c6e7e411102684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:1846-1859 | src/Grace.Actors/Services.Actor.fs:2119-2131 \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 \u0060src/Grace.Actors/Services.Actor.fs:1846\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba22302cff30f11ced25834b948096814dd9d5c294d6fe293bace148b3ee9b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:1910-1925 | src/Grace.Actors/Services.Actor.fs:2100-2112 \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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dc826760d0665015d42ab7cddd5f8bfda7acee8cc66a8b6269edbb261e9668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:2762-2774 | src/Grace.Actors/Services.Actor.fs:3076-3088 \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 \u0060src/Grace.Actors/Services.Actor.fs:2762\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2762}}}],"partialFingerprints":{"codehealthFindingId/v1":"96800c488f1fa5567b226d86224a329110dcdce79f2ecc03095f7d4b49c240fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Actors/AccessControl.Actor.fs:1-13 | src/Grace.Actors/RepositoryPermission.Actor.fs:1-13 \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":"src/Grace.Actors/AccessControl.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8beb591d465e46e56d0841bca60dcd7b603e3d8733a0bb9db780f9389c26ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Actors/Reference.Actor.fs:967-979 | src/Grace.Actors/Branch.Actor.fs:1097-1109 \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 \u0060src/Grace.Actors/Reference.Actor.fs:967\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e3513a2ad5bb3971ce342646b18bdf4895c0da8e389c61a5b0f728e81ca9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Types/Artifact.Types.fs:223-235 | src/Grace.Types/Artifact.Types.fs:297-309 \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 \u0060src/Grace.Types/Artifact.Types.fs:223\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":"src/Grace.Types/Artifact.Types.fs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef10b7275b6192714c6a1c18f1a9e0c6f3b0590fe5538cea8e047a35f3a29ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Server/AnnotationMaterialization.Server.fs:48-60 | src/Grace.Server/NormalFileMaterialization.Server.fs:46-58 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/AnnotationMaterialization.Server.fs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"144970eb4128a25beb27912d7c3ba18c5f74283ef0d6a1d3e6b82c54f94a75a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Server/Queue.Server.fs:54-66 | src/Grace.Server/Queue.Server.fs:149-161 \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 \u0060src/Grace.Server/Queue.Server.fs:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Queue.Server.fs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0a2772e572dfb1e82babcc66975d4073352445bc34f8ce81de07df47eff801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.Server/Queue.Server.fs:329-341 | src/Grace.Server/Queue.Server.fs:362-374 \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 \u0060src/Grace.Server/Queue.Server.fs:329\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":"src/Grace.Server/Queue.Server.fs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6cc2552b07bfc9161fdd66707e7139d23e8426592b28359844e271efdd7f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:2969-2981 | src/Grace.CLI/LocalStateDb.CLI.fs:3023-3035 \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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2969}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f133a4eb76b590bd81dfef9681354a7dd5a972d025e50abfd4bc756f2184eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:190-202 | src/Grace.CLI/Command/Organization.CLI.fs:228-240 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:190\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8ea3c86bbb8ccdcd541a2c03db28834a1b3cbddeff2cfc54a3f319c5496920"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:253-265 | src/Grace.CLI/Command/Organization.CLI.fs:293-305 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:253\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bd02f97b80220663571a7e1c6886b41c10fb49cc69a6664eeae2f16b0ea70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:472-484 | src/Grace.CLI/Command/Organization.CLI.fs:501-513 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:472\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"9478af39e1e4b4c181a30d0e1069befa43c0ddba4e123a6e84176419c73b75ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Organization.CLI.fs:486-498 | src/Grace.CLI/Command/Organization.CLI.fs:539-551 \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 \u0060src/Grace.CLI/Command/Organization.CLI.fs:486\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":"src/Grace.CLI/Command/Organization.CLI.fs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30bb322959179f1b25d9969dc017d365e98e650d8c56f0ca1c404516c21d1cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:724-736 | src/Grace.CLI/Command/Reference.CLI.fs:441-453 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:724\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"c423a00f2bc387f60ebc60c52457872dfe07995eb5e46e46c0cf7cfe231edcf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1565-1581 | src/Grace.CLI/Command/Reference.CLI.fs:1024-1036 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4684bf5e748bf44864cd4c1c000dd1431cfbce66eb80c97c92a4fc3aa78bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:2491-2503 | src/Grace.CLI/Command/Reference.CLI.fs:1310-1322 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:2491\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":2491}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca794f493e88b4b2875ddd7c10541f4d83a9c0110935d053c2700b3689611f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:2510-2522 | src/Grace.CLI/Command/Reference.CLI.fs:1329-1341 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":2510}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e529803f77aeec2c78a27dcc0ae74027441f2fcb3cbdbae1c93a86beedd27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:4971-4983 | src/Grace.CLI/Command/Reference.CLI.fs:1428-1440 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":4971}}}],"partialFingerprints":{"codehealthFindingId/v1":"797e82038c07ea235af1bb224cda24395fa09791b7bfe8ef93ae99d3f661d240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:5221-5233 | src/Grace.CLI/Command/Reference.CLI.fs:1496-1508 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":5221}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc14c143b4b12d9e9d384bc9db49b4a538e6ed410929c72038fb0e5c66633b53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Grace.CLI/Command/Reference.CLI.fs:20-32 | src/Grace.CLI/Command/DirectoryVersion.CLI.fs:21-33 \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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab327f223bd20b5ac9dde1f5cdd315031ef6080cbbb3aae9072feddbf2350d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 19): src/Grace.CLI/Command/Repository.CLI.fs:753-765 | src/Grace.CLI/Command/Repository.CLI.fs:797-808 | src/Grace.CLI/Command/Repository.CLI.fs:856-867 | src/Grace.CLI/Command/Repository.CLI.fs:998-1009 | src/Grace.CLI/Command/Repository.CLI.fs:1055-1066 | src/Grace.CLI/Command/Repository.CLI.fs:1110-1121 | src/Grace.CLI/Command/Repository.CLI.fs:1165-1176 | src/Grace.CLI/Command/Repository.CLI.fs:1220-1231 | src/Grace.CLI/Command/Repository.CLI.fs:1275-1286 | src/Grace.CLI/Command/Repository.CLI.fs:1330-1341 | src/Grace.CLI/Command/Repository.CLI.fs:1385-1396 | src/Grace.CLI/Command/Repository.CLI.fs:1497-1508 | src/Grace.CLI/Command/Repository.CLI.fs:1553-1564 | src/Grace.CLI/Command/Repository.CLI.fs:1608-1619 | src/Grace.CLI/Command/Repository.CLI.fs:1663-1674 | src/Grace.CLI/Command/Repository.CLI.fs:1719-1730 | src/Grace.CLI/Command/Repository.CLI.fs:1775-1786 | src/Grace.CLI/Command/Repository.CLI.fs:1829-1840 | src/Grace.CLI/Command/Repository.CLI.fs:1883-1894 \u2014 all 19 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.CLI/Command/Repository.CLI.fs:753\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7f24c38b05ea7d700d086937cfe481af95180d8e5ae2e9d2004f1c75dbe098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): src/Grace.Actors/Organization.Actor.fs:42-54 | src/Grace.Actors/WorkItem.Actor.fs:44-56 | src/Grace.Actors/ValidationSet.Actor.fs:32-44 | src/Grace.Actors/ValidationResult.Actor.fs:88-100 | src/Grace.Actors/ContentBlockMetadata.Actor.fs:771-782 | src/Grace.Actors/UploadSession.Actor.fs:1478-1489 | src/Grace.Actors/PromotionQueue.Actor.fs:39-51 | src/Grace.Actors/Repository.Actor.fs:101-114 \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 \u0060src/Grace.Actors/Repository.Actor.fs:101\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Organization.Actor.fs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dc030cd917553628111bd81b148ba57501419700a35803b40d30dfbdfa7b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/Grace.Types/Artifact.Types.fs:207-218 | src/Grace.Types/Artifact.Types.fs:224-235 | src/Grace.Types/Artifact.Types.fs:280-291 | src/Grace.Types/Artifact.Types.fs:298-309 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Types/Artifact.Types.fs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c53e2a5eabc61a119393d2523d5ae061880205c50c81d8d469713cf4e2a182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/Grace.Server/WorkItem.Server.fs:1154-1165 | src/Grace.Server/WorkItem.Server.fs:1236-1247 | src/Grace.Server/WorkItem.Server.fs:1335-1346 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bc3018b5f4b81bd70714185593c16cba1a099d955b9276150feba2e5b75d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/Grace.Server/Policy.Server.fs:1-12 | src/Grace.Server/Review.Server.fs:1-12 | src/Grace.Server/Queue.Server.fs:1-12 \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":"src/Grace.Server/Policy.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1277ef3182e96e7da49de68b295e6d6f2f7d87525c767800aa0f5a68b0fe9389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/Grace.CLI/Command/Branch.CLI.fs:1720-1731 | src/Grace.CLI/Command/Branch.CLI.fs:1804-1815 | src/Grace.CLI/Command/Branch.CLI.fs:1832-1843 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.CLI/Command/Branch.CLI.fs:1720\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a852b29a7d75960790b3732ac26cac87b49ef6ff4252a55758a3f8b8830babd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:958-969 | src/Grace.Actors/Services.Actor.fs:1044-1055 \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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f0a6a5540aa7db5bc3b435bd3794b3370c0196a20eb5a7a9222df7d3fd387a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:1821-1832 | src/Grace.Actors/Services.Actor.fs:2169-2181 \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. 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"750b4ae15e85a55bfdcb9d49c9f3d4a582c4a2abf4dae515fe3d3f1b54bfdd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:1874-1885 | src/Grace.Actors/Services.Actor.fs:2061-2072 \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 \u0060src/Grace.Actors/Services.Actor.fs:1874\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"84021eb5ffe1e5badc3dc9f445f9d3b975202145162ef9fa4640f4c36c823d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Actors/DirectoryVersion.Actor.fs:87-99 | src/Grace.Actors/Reference.Actor.fs:269-280 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a14e795149dae7fd4e832ebf2e52efdaf6f647f3d3d8138d7bc00edb9957dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Actors/ValidationSet.Actor.fs:1-12 | src/Grace.Actors/ValidationResult.Actor.fs:1-12 \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":"src/Grace.Actors/ValidationSet.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5076e55f948b38c42593a15105e9970aa27315da1e3dba7b23c7e41efff478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Actors/ContentBlockMetadata.Actor.fs:120-131 | src/Grace.Actors/UploadSession.Actor.fs:205-216 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/ContentBlockMetadata.Actor.fs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f122f9cc59dfd58ea3e7bc14765a96767fff0517fef498c4d9a0ef7e39a6567a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Actors/UploadSession.Actor.fs:871-882 | src/Grace.Actors/UploadSession.Actor.fs:1055-1066 \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 \u0060src/Grace.Actors/UploadSession.Actor.fs:871\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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"129adfcffe800bb55fd04192e11dd2838bc433c09fb65223712f66a31e6fcb17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Types/ContentBlockMetadata.Types.fs:484-495 | src/Grace.Types/ContentBlockMetadata.Types.fs:523-534 \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":"src/Grace.Types/ContentBlockMetadata.Types.fs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1013dcfcfeae3dc5ba99e36250418157fe49b59f7719f6d9ab75012e0fc4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Server/Security/AuthorizationMiddleware.Server.fs:125-136 | src/Grace.Server/Security/AuthorizationMiddleware.Server.fs:203-214 \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 \u0060src/Grace.Server/Security/AuthorizationMiddleware.Server.fs:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/Grace.Server/Security/AuthorizationMiddleware.Server.fs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed9e03fb8ef414918cf5ed16a5d1dc10703635bfd766d22ce6b10853a9d1208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Server/Branch.Server.fs:2492-2503 | src/Grace.Server/Branch.Server.fs:2603-2615 \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. 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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f2ab441a10a69a0e503ffb7ba93fd49daa7769ba9b5e5c4ff2ba83061a6960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Server/ApprovalPolicy.Server.fs:214-225 | src/Grace.Server/ApprovalPolicy.Server.fs:272-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/ApprovalPolicy.Server.fs:272\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":"src/Grace.Server/ApprovalPolicy.Server.fs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df160d21a098511f00a00c4804b5eb52a08417a7cef39e216fb7dd6f65e246a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Server/PromotionSet.Server.fs:30-41 | src/Grace.Server/ValidationSet.Server.fs:42-53 \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":"src/Grace.Server/PromotionSet.Server.fs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55b579992080429377e3dc3d9478e1bead474ee23b4a2c1f3b285b7fb5a6cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.Server/WorkItem.Server.fs:1176-1187 | src/Grace.Server/WorkItem.Server.fs:1356-1367 \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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"e547689996905de21466fd0487856667fd1fd4c9b49f70bbed41bb984c5c4c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:550-561 | src/Grace.CLI/LocalStateDb.CLI.fs:592-604 \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 \u0060src/Grace.CLI/LocalStateDb.CLI.fs:550\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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"4540f3da3cce40bece9e45850009e9333b51170c0dac4309b4450b14284822f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.CLI/Command/Config.CLI.fs:16-27 | src/Grace.CLI/Command/Diff.CLI.fs:20-31 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.CLI/Command/Config.CLI.fs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6fe117f58f693a8049c8435acce9bbaf9bc1d4f7501fc872deddba38f4e60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:203-214 | src/Grace.CLI/Command/Organization.CLI.fs:241-252 \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 \u0060src/Grace.CLI/Command/Owner.CLI.fs:203\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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f406ef0f1395afca8d69b22cfb21e025218f59e1a7bc7d1e9ccdaaafc33c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.CLI/Command/Diff.CLI.fs:479-490 | src/Grace.CLI/Command/Branch.CLI.fs:4096-4107 \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 \u0060src/Grace.CLI/Command/Diff.CLI.fs:479\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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9990ebfbf01eafb23e39121e2959b7cae57c81272954e10d0b374629edb2b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:766-777 | src/Grace.CLI/Command/Branch.CLI.fs:910-921 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"10da6e418aa12691edeb233461563604afcf09b111194fb60123f5e360ebd926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:811-822 | src/Grace.CLI/Command/Branch.CLI.fs:1126-1137 \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. 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"02af5c659e30e1b44762d45805d1fef0f0f6e1039f4ebfd610e284491c8e901a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1748-1759 | src/Grace.CLI/Command/Branch.CLI.fs:1776-1787 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:1748\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e2181cc449f4a9ce714a7e0dfb5973c91ad337ce7dac14dcef4d67ced811a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Grace.CLI/Command/Reference.CLI.fs:734-745 | src/Grace.CLI/Command/Reference.CLI.fs:872-883 \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 \u0060src/Grace.CLI/Command/Reference.CLI.fs:734\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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8d7a1b9c3fe2756e49e3440e03a16a2aa819fb612c21145afe566768ac0d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/Grace.Actors/Organization.Actor.fs:1-11 | src/Grace.Actors/Branch.Actor.fs:1-11 | src/Grace.Actors/WorkItem.Actor.fs:1-11 | src/Grace.Actors/Policy.Actor.fs:1-11 | src/Grace.Actors/Review.Actor.fs:1-11 | src/Grace.Actors/PromotionQueue.Actor.fs:1-11 \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":"src/Grace.Actors/Organization.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5fa4051b2a76927dd206975b60daa5bc3c8862d1af73aa2edfae2038d57ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/Grace.Server/WorkItem.Server.fs:197-207 | src/Grace.Server/Policy.Server.fs:94-104 | src/Grace.Server/Review.Server.fs:855-865 | src/Grace.Server/Queue.Server.fs:74-84 | src/Grace.Server/Queue.Server.fs:169-179 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/WorkItem.Server.fs:197\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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c3941c00f285e0fd8ca0ead8b8d88e94f3b087500596b1ca03cc245efe4a8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/Grace.Server/WorkItem.Server.fs:233-243 | src/Grace.Server/Policy.Server.fs:139-149 | src/Grace.Server/Review.Server.fs:900-910 | src/Grace.Server/Queue.Server.fs:119-129 | src/Grace.Server/Queue.Server.fs:214-224 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/WorkItem.Server.fs:233\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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c493f6af838865d7a29b275246807d7583145fa3d95937905a6bb2a452cc0d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Grace.Actors/Services.Actor.fs:1738-1748 | src/Grace.Actors/Services.Actor.fs:2336-2347 | src/Grace.Actors/Services.Actor.fs:2404-2415 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e50239fd8067d501ef042408d5b840b07add587fd7e9ed7abc6c2172e6dc218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Grace.Server/Organization.Server.fs:71-81 | src/Grace.Server/Repository.Server.fs:82-92 | src/Grace.Server/Branch.Server.fs:552-562 \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 \u0060src/Grace.Server/Organization.Server.fs:71\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":"src/Grace.Server/Organization.Server.fs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93271d967e065e7d23a73d653ca3da09d933cdcd03fe0c862fd853dee9f5b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Grace.Server/Repository.Server.fs:247-257 | src/Grace.Server/Reminder.Server.fs:93-103 | src/Grace.Server/Reminder.Server.fs:167-177 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Repository.Server.fs:247\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":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"551c6b619de9ca37ab7f3c4cd51b3d9d4b09ac023e9f343e49862afd0fff8698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Grace.Server/Policy.Server.fs:71-81 | src/Grace.Server/Review.Server.fs:832-842 | src/Grace.Server/Queue.Server.fs:51-61 \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":"src/Grace.Server/Policy.Server.fs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4a43b91d2c53781b607031687a4218006bb4534745cde98ba845dc872fd231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Grace.CLI/Command/Services.CLI.fs:3769-3779 | src/Grace.CLI/Command/Reference.CLI.fs:712-722 | src/Grace.CLI/Command/Reference.CLI.fs:851-861 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.CLI/Command/Services.CLI.fs:3769\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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3769}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da9bd23df3e768bf1944935753690a0254eda4fb62c459ce304d56b75582372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:808-818 | src/Grace.Actors/Services.Actor.fs:820-830 \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 \u0060src/Grace.Actors/Services.Actor.fs:808\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e87a174c618e1a3a662cbf774d558d06681911a07bac4a2bd8fcb7e844e580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:1167-1177 | src/Grace.Actors/Services.Actor.fs:1290-1302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"023155c1018043dfb035b1c886d656d4bfb1f4530bd71393249285fcfbe51d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Actors/UploadSession.Actor.fs:430-440 | src/Grace.Server/Storage.Server.fs:607-617 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb15eb0882e96cb1f3e448219780aca57160e6f88e8e1cd1497777ca5e9d8276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Types/Common.Types.fs:740-750 | src/Grace.Types/Common.Types.fs:877-887 \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":"src/Grace.Types/Common.Types.fs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2ee3d6885c204295e05eb1abbb0051eb51222875759e6b43ed1d421a6c6cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/Security/OutboundUrlSafety.Server.fs:87-97 | src/Grace.Server/Security/OutboundUrlSafety.Server.fs:107-117 \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":"src/Grace.Server/Security/OutboundUrlSafety.Server.fs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6481f5121e5a8f355079dc47e95b523c5f23917aaaf030556225583e1502cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/Repository.Server.fs:182-192 | src/Grace.Server/Reminder.Server.fs:100-110 \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 \u0060src/Grace.Server/Repository.Server.fs:182\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":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede3a9b23c628797a94c5d4172f4de1f3351b9462414d42f7ef009e674cf2dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/Repository.Server.fs:654-664 | src/Grace.Server/Repository.Server.fs:705-715 \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 \u0060src/Grace.Server/Repository.Server.fs:654\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":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"824235a2cf9a85b7eb540b900f89834e040864184fbe8a8243e72ae86c208059"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/ApprovalRequest.Server.fs:51-61 | src/Grace.Server/ApprovalRequest.Server.fs:67-77 \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 \u0060src/Grace.Server/ApprovalRequest.Server.fs:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/Grace.Server/ApprovalRequest.Server.fs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad076c233538dec8724df712ba7dc308471fb4b4ecb7d9664540fedc39bf2712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/PromotionSet.Server.fs:245-255 | src/Grace.Server/Review.Server.fs:857-867 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/PromotionSet.Server.fs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"07db4d5837851a3ad6ce8055ecaf8168d68115e4108092b50b260d3ba0e84397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/WorkItem.Server.fs:168-178 | src/Grace.Server/WorkItem.Server.fs:262-272 \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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"641ee0d20f8e1d7f47a6e2694d0cc3bf297e7ba85c3be9b786ca80ad631cd212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/ValidationSet.Server.fs:1-11 | src/Grace.Server/ValidationResult.Server.fs:1-11 \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":"src/Grace.Server/ValidationSet.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3e74298b0d5842d9521a545fe32b87cca12b6fc37e5bb1978a83c3bc0b185e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/DirectoryVersion.Server.fs:126-136 | src/Grace.Server/DirectoryVersion.Server.fs:345-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 \u0060src/Grace.Server/DirectoryVersion.Server.fs:126\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":"src/Grace.Server/DirectoryVersion.Server.fs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd9cd334abbc6b81a3731187a80a83c9161dcd6ddf5b3165321fb84930fba5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.Server/Access.Server.fs:596-606 | src/Grace.Server/Access.Server.fs:626-636 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"256524348e7cc381134d792860acaa78371e380641d0c53e4776706d2edb909c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:1048-1058 | src/Grace.CLI/LocalStateDb.CLI.fs:1214-1224 \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. 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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"d095c94dc5191c39cd12fa3f50805f57ea4413eff197598040e7ca03de016dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.CLI/Command/Services.CLI.fs:3828-3838 | src/Grace.CLI/Command/Watch.CLI.fs:6907-6917 \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 \u0060src/Grace.CLI/Command/Services.CLI.fs:3828\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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":3828}}}],"partialFingerprints":{"codehealthFindingId/v1":"9672fe9e6998e34d515f1c3061eb1efc4a4e32d8d4b5e44f09a4a901878b7133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:569-579 | src/Grace.CLI/Command/Reference.CLI.fs:450-460 \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 \u0060src/Grace.CLI/Command/Reference.CLI.fs:450\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"95495a23760e680db6b97207cae3bf226590768d49b9e1c830fc2cf1c19cf59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:1086-1096 | src/Grace.CLI/Command/Reference.CLI.fs:484-494 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c876f2e79228619697c5dddf83df6460f42527231a4063ea35a5742958066d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Grace.CLI/Command/Watch.CLI.fs:2079-2089 | src/Grace.CLI/Command/Watch.CLI.fs:3311-3321 \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. 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cbf3ba709d880aa6e850d431652f104cb67731fb4485355ecb28a3566a6f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): src/Grace.CLI/Command/Organization.CLI.fs:214-223 | src/Grace.CLI/Command/Organization.CLI.fs:279-288 | src/Grace.CLI/Command/Organization.CLI.fs:330-339 | src/Grace.CLI/Command/Organization.CLI.fs:382-391 | src/Grace.CLI/Command/Organization.CLI.fs:434-443 | src/Grace.CLI/Command/Organization.CLI.fs:486-495 | src/Grace.CLI/Command/Organization.CLI.fs:539-548 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.CLI/Command/Organization.CLI.fs:214\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":"src/Grace.CLI/Command/Organization.CLI.fs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfab54993f3ff8bcca28b4b7bf6ab616955652c3fefb0d2a8fc0bbab14d20e82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): src/Grace.Server/Review.Server.fs:1134-1143 | src/Grace.Server/Review.Server.fs:1171-1180 | src/Grace.Server/Review.Server.fs:1214-1223 | src/Grace.Server/Review.Server.fs:1273-1282 | src/Grace.Server/Review.Server.fs:1311-1320 | src/Grace.Server/Review.Server.fs:1349-1358 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Review.Server.fs:1134\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":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b680b513f47b947fb882992302ba425c9121622fe9dbc298cb13b065501834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/Grace.Server/Branch.Server.fs:804-813 | src/Grace.Server/WorkItem.Server.fs:301-310 | src/Grace.Server/Policy.Server.fs:196-205 | src/Grace.Server/Review.Server.fs:957-966 | src/Grace.Server/Queue.Server.fs:271-280 \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 \u0060src/Grace.Server/Branch.Server.fs:804\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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"d411cc99a292dad29ec05bfe5a8b326efa6a569520b95ad253f7e4e85f7c04fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/Grace.Server/WorkItem.Server.fs:222-231 | src/Grace.Server/Policy.Server.fs:128-137 | src/Grace.Server/Review.Server.fs:889-898 | src/Grace.Server/Queue.Server.fs:108-117 | src/Grace.Server/Queue.Server.fs:203-212 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/WorkItem.Server.fs:222\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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c276c1f5c0103ea441583883327735afa09c8de414ecd6fbed02149e52507d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/Grace.Server/Repository.Server.fs:235-244 | src/Grace.Server/Reminder.Server.fs:81-90 | src/Grace.Server/Reminder.Server.fs:155-164 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Repository.Server.fs:235\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":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3794f66b01943cd779f39f1adadc909566a05e6cbda144723b6f57646d1c6d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/Grace.CLI/Command/Branch.CLI.fs:2585-2595 | src/Grace.CLI/Command/Branch.CLI.fs:4095-4104 | src/Grace.CLI/Command/Branch.CLI.fs:4708-4717 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.CLI/Command/Branch.CLI.fs:2585\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":2585}}}],"partialFingerprints":{"codehealthFindingId/v1":"646c15e156724cc439aa2de7f21d2ab7e6840208ca6de469141fbaf28c645934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:2882-2891 | src/Grace.Actors/Services.Actor.fs:3009-3018 \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 \u0060src/Grace.Actors/Services.Actor.fs:2882\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2882}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df26e9eb2b64faf85f74d7766f41359e480579f833dbc1ad49ad1e9ef1f7731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:3389-3398 | src/Grace.Actors/Services.Actor.fs:3464-3473 \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 \u0060src/Grace.Actors/Services.Actor.fs:3389\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":3389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2836e3ae0eb8cefa5ed5e4cd60a60da0e9c261947aaba9778728acd303ca0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Actors/Owner.Actor.fs:363-372 | src/Grace.Actors/Organization.Actor.fs:328-337 \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 \u0060src/Grace.Actors/Owner.Actor.fs:363\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":"src/Grace.Actors/Owner.Actor.fs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a22851b08ffde985cdbe76e84747dd7e1bedb2d7aa19f98e600fb059bd7446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Actors/Policy.Actor.fs:54-63 | src/Grace.Actors/Policy.Actor.fs:87-96 \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":"src/Grace.Actors/Policy.Actor.fs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"54478abbbdba451dcbfa3a71f56a7ee0a513138d50fa3d0f2c810638f6fb0c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Actors/UploadSession.Actor.fs:420-429 | src/Grace.Server/Storage.Server.fs:597-606 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15227e882b28faabf59139e2393fe046bad879789b53b011d7e012f9e0bde90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Shared/ManifestValidation.Shared.fs:106-115 | src/Grace.Server/Storage.Server.fs:1213-1222 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/ManifestValidation.Shared.fs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6e1c6ad1fcd919dbed112955ba2b0c8a14b4c8a743ed86bac013a21fb5f9d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Shared/Validation/Errors.Validation.fs:126-135 | src/Grace.Shared/Validation/Errors.Validation.fs:516-525 \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":"src/Grace.Shared/Validation/Errors.Validation.fs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf76cdf50dd8211da7abd0f2e1a2ee6043d02e746917976504e32e9caaf0874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Services.Server.fs:52-61 | src/Grace.Server/Middleware/SdkLifecycle.Middleware.fs:112-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Services.Server.fs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2140fa7806df3072c4af7bd897353324d78196d4c22136324d8046935cabf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Organization.Server.fs:4-13 | src/Grace.Server/Repository.Server.fs:6-15 \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":"src/Grace.Server/Organization.Server.fs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7586091bc4033c611ab10c2658858c771724b0433397a9d459446d21bf5e2ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Repository.Server.fs:18-27 | src/Grace.Server/Reminder.Server.fs:17-26 \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":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"eceb070efc27854588ee0d5a92905eb75442ae5f408e6ad2bfd08b9134410215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Repository.Server.fs:224-233 | src/Grace.Server/Reminder.Server.fs:70-79 \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 \u0060src/Grace.Server/Repository.Server.fs:224\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":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"369035f9f0019c4f169bfa937b51f3e1e3e8b4c003e34d01631ca6998ddb5d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/AnnotationMaterialization.Server.fs:274-283 | src/Grace.Server/NormalFileMaterialization.Server.fs:358-367 \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 \u0060src/Grace.Server/NormalFileMaterialization.Server.fs:358\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/AnnotationMaterialization.Server.fs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcaa2fb3e8e35b7180f5b6a6753edbbe2c8d06ed79ecb604b8e6de220e7ea02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Branch.Server.fs:647-656 | src/Grace.Server/Branch.Server.fs:813-822 \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 \u0060src/Grace.Server/Branch.Server.fs:647\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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"1253101fec65d92de5de5fca29aaec57488706228afe7fbfb46f790832553dfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/WorkItem.Server.fs:496-505 | src/Grace.Server/Artifact.Server.fs:39-48 \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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f83c5c8e4873f2b488b4b609695a00f8515e02aae26166827fd4fcd9da4766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Review.Server.fs:777-786 | src/Grace.Server/Review.Server.fs:792-801 \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 \u0060src/Grace.Server/Review.Server.fs:777\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":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb2fa2e1481177c2210d88e723a85b9e96070e7e9d90ae64a3cadea8ed055f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Review.Server.fs:881-890 | src/Grace.Server/Review.Server.fs:947-956 \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 \u0060src/Grace.Server/Review.Server.fs:881\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":"src/Grace.Server/Review.Server.fs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"409fc1150b4ba2ed2160a0c833fcfb5e3d90500b1b5ee8754d92406d1817030a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/ValidationSet.Server.fs:78-87 | src/Grace.Server/ValidationSet.Server.fs:89-98 \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":"src/Grace.Server/ValidationSet.Server.fs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4184c202d66c6223b9fb68b83c5a4ff31f65fde076e4cc11bb3ca707c065b736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Storage.Server.fs:639-648 | src/Grace.Server/Storage.Server.fs:658-667 \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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05e24ce28dde07ce01f2177ddbbc0dfd1fbdaa76fb96b4201c1e653b4b12848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.Server/Startup.Server.fs:360-369 | src/Grace.Server/Startup.Server.fs:384-393 \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":"src/Grace.Server/Startup.Server.fs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"8547c67a29c0cf359a5f2a911b88c8e9b0fe655949e54826e910d3bb172f6ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.CLI/Command/Services.CLI.fs:2865-2874 | src/Grace.CLI/Command/Services.CLI.fs:2937-2946 \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 \u0060src/Grace.CLI/Command/Services.CLI.fs:2865\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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6018870dc3e535a17552ef1e5ddba7c5cbb0292571db9c5922b6a7204c6c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Grace.CLI/Command/Reference.CLI.fs:352-361 | src/Grace.CLI/Command/Reference.CLI.fs:1377-1386 \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 \u0060src/Grace.CLI/Command/Reference.CLI.fs:352\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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41552cd8d16ee9d4925a327f3f16f56aa4718c36714c7e7afefac9b94c5d0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/Grace.Actors/Services.Actor.fs:1758-1766 | src/Grace.Actors/Services.Actor.fs:1837-1845 | src/Grace.Actors/Services.Actor.fs:2187-2195 | src/Grace.Actors/Services.Actor.fs:2352-2360 | src/Grace.Actors/Services.Actor.fs:2422-2430 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58dd71f7d7d5c5879249ad9a69780a988f176dfa6d38c8434eecc6ab105e9c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/Grace.Server/WorkItem.Server.fs:279-287 | src/Grace.Server/Policy.Server.fs:174-182 | src/Grace.Server/Review.Server.fs:935-943 | src/Grace.Server/Queue.Server.fs:249-257 \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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"572cadff04d2629a94950ca761939d2ff329c74f0742f5aec2f076bb1eb015a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/Grace.CLI/Command/Reference.CLI.fs:1163-1171 | src/Grace.CLI/Command/Reference.CLI.fs:1226-1234 | src/Grace.CLI/Command/Reference.CLI.fs:1247-1255 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.CLI/Command/Reference.CLI.fs:1163\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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"54523a8681c3458446809c4fa62e5d09c71201a3c1bd978682f0f0592130e1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Actors/DirectoryVersion.Actor.fs:209-217 | src/Grace.Actors/DirectoryVersion.Actor.fs:1589-1597 \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":"src/Grace.Actors/DirectoryVersion.Actor.fs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa4bd284d1987079f75c41e8c34b8a85eeb0f056e5718ad67e9a1d94f22f2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Actors/ManifestContributionWorkflow.Actor.fs:340-348 | src/Grace.Actors/ManifestContributionWorkflow.Actor.fs:363-371 \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":"src/Grace.Actors/ManifestContributionWorkflow.Actor.fs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1c71566395a10359e0c7603f5634f13b236116280b12f2d1d0e06beff98c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Types/Common.Types.fs:635-643 | src/Grace.Types/Common.Types.fs:774-782 \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":"src/Grace.Types/Common.Types.fs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"108b2340ab2f3d6dd9a301410cc2b0482760336cdef510388f01b36aec625682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Shared/Validation/Errors.Validation.fs:114-122 | src/Grace.Shared/Validation/Errors.Validation.fs:504-512 \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":"src/Grace.Shared/Validation/Errors.Validation.fs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6974252f22b029c966bd80ac947b5e41ab2b7c8c65f1dbfaf47af3f7f32be517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Server/Repository.Server.fs:157-165 | src/Grace.Server/Branch.Server.fs:622-630 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Repository.Server.fs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d41e1dd3925f3bddefcd2f84c9ad06109d6446fb1a054c7785181454e546be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Server/PromotionSet.Server.fs:223-231 | src/Grace.Server/ValidationSet.Server.fs:62-71 \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 \u0060src/Grace.Server/PromotionSet.Server.fs:223\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":"src/Grace.Server/PromotionSet.Server.fs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79d3ddfd4b7c1da694660db2902d6031a56b25786efadcb39f7a1a97648d579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Server/WorkItem.Server.fs:1505-1513 | src/Grace.Server/WorkItem.Server.fs:1517-1525 \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 \u0060src/Grace.Server/WorkItem.Server.fs:1505\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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01450ac01fed708f7589fcb281bce736dbc8a367a65d191c24e9416f4a2e9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Server/Storage.Server.fs:1589-1597 | src/Grace.Server/Storage.Server.fs:1633-1641 \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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"361588a4acf32999e55ba42ebad622b07baa432a25b069dc99d33c1f7d775f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.Server/Access.Server.fs:173-181 | src/Grace.Server/Access.Server.fs:278-286 \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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c14db129f829443bf49cf75d02d263f214556d406290e73f3a83671ee5ecc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:2898-2906 | src/Grace.CLI/LocalStateDb.CLI.fs:3233-3241 \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 \u0060src/Grace.CLI/LocalStateDb.CLI.fs:2898\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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2898}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adf48d8b002b7c187c5d4dd096e8ed630e4f593b36f3e3f16c5fa62a872525d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.CLI/Command/Services.CLI.fs:2251-2259 | src/Grace.CLI/Command/Services.CLI.fs:2290-2298 \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 \u0060src/Grace.CLI/Command/Services.CLI.fs:2251\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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2251}}}],"partialFingerprints":{"codehealthFindingId/v1":"268dc47d3ef56e394ccda5943c3dcb38d54e81c39433287dafd50c325c42d4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.CLI/Command/Connect.CLI.fs:41-49 | src/Grace.CLI/Command/Branch.CLI.fs:66-74 \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":"src/Grace.CLI/Command/Connect.CLI.fs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f21cc8535f22031d4708b26e7ec5b9e74b9ea84bc02899cc487dab15e6062e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.CLI/Command/Repository.CLI.fs:327-335 | src/Grace.CLI/Command/Repository.CLI.fs:346-354 \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":"src/Grace.CLI/Command/Repository.CLI.fs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f908c7b4d4728753c470b27332fb94dd768a3b8195ee2c7d76a74ff626093c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:492-500 | src/Grace.CLI/Command/Branch.CLI.fs:507-515 \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. 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b7faffe5c4b66c7807d836259a031e0a869001d6c816b4ec8c2dcfda891c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:837-845 | src/Grace.CLI/Command/Reference.CLI.fs:223-231 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eea150b95b28e97fa1b2baac48a24219f75c367c719c06f4624b4ae4378fd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Grace.CLI/Command/Reference.CLI.fs:1184-1192 | src/Grace.CLI/Command/Reference.CLI.fs:1205-1213 \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 \u0060src/Grace.CLI/Command/Reference.CLI.fs:1184\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":"src/Grace.CLI/Command/Reference.CLI.fs"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a73a818a2b32c7a81c793a93f5daf916a36b22d19b2f917d82122c0b298d05b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): src/Grace.Server/Owner.Server.fs:47-55 | src/Grace.Server/WorkItem.Server.fs:152-159 | src/Grace.Server/Policy.Server.fs:65-72 | src/Grace.Server/Review.Server.fs:826-833 | src/Grace.Server/Queue.Server.fs:45-52 \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 \u0060src/Grace.Server/Owner.Server.fs:47\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":"src/Grace.Server/Owner.Server.fs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9652963a888190ccd35e31c50ef880e49a15f5784b3a37ae5cc3791498e73867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/Grace.Actors/Repository.Actor.fs:77-84 | src/Grace.Types/Common.Types.fs:729-736 | src/Grace.Types/Common.Types.fs:866-873 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Repository.Actor.fs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d671f84b11dbc0e30f519441af3f438d8bba892438cd167e74e2c3aeb2ffa316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/Grace.Server/Branch.Server.fs:546-553 | src/Grace.Server/Branch.Server.fs:559-566 | src/Grace.Server/Branch.Server.fs:571-578 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"811634ad340f09fa39cb2753409250efc0bc6bab111364ada314bc1bea231128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/Grace.Server/Branch.Server.fs:626-633 | src/Grace.Server/Branch.Server.fs:786-793 | src/Grace.Server/Branch.Server.fs:799-806 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Server/Branch.Server.fs:626\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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2d16172a25cfc068f94a1146e12b146e6d3c74b7fadee76a78b38601038c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:1424-1431 | src/Grace.Actors/Services.Actor.fs:1498-1505 \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 \u0060src/Grace.Actors/Services.Actor.fs:1424\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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"148ecb1d9eae16a9788f29823dd5669e3c136ff5a86f54794c530b6de178c0ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Actors/Owner.Actor.fs:317-324 | src/Grace.Actors/Organization.Actor.fs:283-290 \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 \u0060src/Grace.Actors/Owner.Actor.fs:317\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":"src/Grace.Actors/Owner.Actor.fs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd55213ae08e2b48aa3a50a0ab3ad9082802a30a25bcdc410cd50c5f60a2489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Actors/Reference.Actor.fs:795-802 | src/Grace.Actors/Reference.Actor.fs:896-903 \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 \u0060src/Grace.Actors/Reference.Actor.fs:795\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":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e520129f5feff146ba3e1bcffc24763c112cd3f96ce97434ea0453ad1e7d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Actors/UploadSession.Actor.fs:1931-1938 | src/Grace.Actors/UploadSession.Actor.fs:1966-1973 \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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"223fa18cce3ad7d533300069b0aded05a149615dfb6b048524054244a0c7c2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Actors/UploadSession.Actor.fs:1967-1974 | src/Grace.Actors/UploadSession.Actor.fs:2006-2013 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1967}}}],"partialFingerprints":{"codehealthFindingId/v1":"2689cc712a99cad22fc8ca6ccb892d111208b0dc66ff6c5f17b44fd044173a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Shared/DedupeIndex.Shared.fs:467-474 | src/Grace.Server/NormalFileMaterialization.Server.fs:169-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/DedupeIndex.Shared.fs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"73299e730f9e66c2dc32313fe6b9ed4d9274e466240b579fca9895cc5cd06fee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Shared/Validation/Errors.Validation.fs:89-96 | src/Grace.Shared/Validation/Errors.Validation.fs:481-488 \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":"src/Grace.Shared/Validation/Errors.Validation.fs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f86a3356b86dff30b93a03f8c067b24b2d96c42d517f33ea5a5eb8ebb80974"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Shared/Validation/Errors.Validation.fs:100-107 | src/Grace.Shared/Validation/Errors.Validation.fs:491-498 \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":"src/Grace.Shared/Validation/Errors.Validation.fs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57d2a191013d30462754334f24434997ddb231d5cc1e50c51dd081ceebb910a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Server/Security/AuthorizationMiddleware.Server.fs:258-265 | src/Grace.Server/Security/AuthorizationMiddleware.Server.fs:290-297 \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":"src/Grace.Server/Security/AuthorizationMiddleware.Server.fs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b390da4711abdb38254006dabd056ce8ff4915614b2e5a5f46eb99bc62b85e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Server/WorkItem.Server.fs:900-907 | src/Grace.Server/WorkItem.Server.fs:912-919 \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":"src/Grace.Server/WorkItem.Server.fs"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"126f800bf39fe8b5e08036d4d4bc747bd695fb5a863630ad3165a1a9de3baf73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Server/Queue.Server.fs:45-52 | src/Grace.Server/Queue.Server.fs:139-148 \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 \u0060src/Grace.Server/Queue.Server.fs:45\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":"src/Grace.Server/Queue.Server.fs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"60605398141b20f873b8535d26dd6e575fef096501e340c32d59eca79724e021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Server/ManifestContributionRepair.Server.fs:556-563 | src/Grace.Server/ManifestContributionRepair.Server.fs:635-642 \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":"src/Grace.Server/ManifestContributionRepair.Server.fs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a3ff3f486aadeddf5446f589457e338de0d541214e42a4a4c04133cd3b20b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Server/Storage.Server.fs:1077-1084 | src/Grace.Server/Storage.Server.fs:1373-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6763382ee1fcf21b23a794d4f3b5a6820e15ce5a541aba135bf89e35abc27da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.Server/Access.Server.fs:163-170 | src/Grace.Server/Access.Server.fs:268-275 \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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3f679b0a0e2de4061c1f5c28d90d5b29551dd6e31a949efb1aa89c353afb15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.CLI/Command/Config.CLI.fs:73-80 | src/Grace.CLI/Command/Diff.CLI.fs:211-218 \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":"src/Grace.CLI/Command/Config.CLI.fs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"505da3d4bc68f458bf620496d1c621d1ae8fde92c2888859705b1881c6f4e011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Grace.CLI/Command/Owner.CLI.fs:138-145 | src/Grace.CLI/Command/Owner.CLI.fs:153-160 \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":"src/Grace.CLI/Command/Owner.CLI.fs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"937a7338d03ebfb9ddb3d77107592b0f80987487e8c712e867d9b0d8e6d44e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/Grace.Actors/PromotionSet.Actor.fs:151-157 | src/Grace.Server/ApprovalPolicy.Server.fs:136-142 | src/Grace.Server/WorkItem.Server.fs:506-512 | src/Grace.Server/Artifact.Server.fs:49-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. 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":"src/Grace.Actors/PromotionSet.Actor.fs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cf79b177f371f035083baa8c216b7334b3e9a17995a3c321c2e0acaf00ccc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.Actors/Services.Actor.fs:2112-2118 | src/Grace.Actors/Services.Actor.fs:2530-2536 \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":"src/Grace.Actors/Services.Actor.fs"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6152c7592ba5d4a6690686d008fd5e0c1e287cec37d903de8fef736ec4e8f08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.Actors/Reference.Actor.fs:644-650 | src/Grace.Actors/Reference.Actor.fs:782-788 \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":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"2535399742d37208d54f68556bfaf990b175aaf113a3bac96643b4a54328c99d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.Actors/RepositoryContentCounter.Actor.fs:414-420 | src/Grace.Actors/ManifestContributionWorkflow.Actor.fs:391-399 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/RepositoryContentCounter.Actor.fs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6cdbcbfd5cd631e480fdad46770526a6852cb18c7c88600f05411d24255f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.Server/Branch.Server.fs:785-791 | src/Grace.Server/Branch.Server.fs:1685-1691 \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":"src/Grace.Server/Branch.Server.fs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c54b6377757b7f05ecedd138c104a06f61b470d8e26fbc298b1f5601a7da2f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.Server/Access.Server.fs:269-275 | src/Grace.Server/Access.Server.fs:293-299 \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. 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":"src/Grace.Server/Access.Server.fs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aad1301a60fbfe159ede83e9f16981b9967088e6fdecc82db5ca58c26340a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.CLI/Command/Services.CLI.fs:2270-2276 | src/Grace.CLI/Command/Services.CLI.fs:2357-2363 \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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e79d11ce8da293c7c5d5f80e8b35dbf4df63c7518289211bb4e284b37d5469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.CLI/Command/Organization.CLI.fs:176-182 | src/Grace.CLI/Command/Organization.CLI.fs:189-195 \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":"src/Grace.CLI/Command/Organization.CLI.fs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3fc4bd28bfa6b6bbbb2434623c41179665740c291f9165c5dd893b58e53dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:303-309 | src/Grace.CLI/Command/Reference.CLI.fs:195-201 \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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b7bac61644a5c0b1a57693d2ba3caa3abd622bf3216fff752b7fafbb2f8add"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Grace.CLI/Command/Branch.CLI.fs:869-875 | src/Grace.CLI/Command/Reference.CLI.fs:255-261 \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 \u0060src/Grace.CLI/Command/Branch.CLI.fs:869\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3247440eabc9735768b48f7d6a7860fefaa4b47f6659431c19e4fcd7410f3a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): src/Grace.CLI/Command/Branch.CLI.fs:2225-2230 | src/Grace.CLI/Command/Branch.CLI.fs:2246-2251 | src/Grace.CLI/Command/Branch.CLI.fs:2267-2272 | src/Grace.CLI/Command/Branch.CLI.fs:2288-2293 | src/Grace.CLI/Command/Branch.CLI.fs:2309-2314 | src/Grace.CLI/Command/Branch.CLI.fs:2330-2335 | src/Grace.CLI/Command/Branch.CLI.fs:2351-2356 | src/Grace.CLI/Command/Branch.CLI.fs:2372-2377 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.CLI/Command/Branch.CLI.fs:2225\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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbc3ec594b71ee9f7d1e9369c2be59f6f0b733127959667f612f0bcbe34d4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/Grace.Shared/Parameters/Repository.Parameters.fs:17-22 | src/Grace.Shared/Parameters/Reminder.Parameters.fs:19-24 | src/Grace.Shared/Parameters/Validation.Parameters.fs:16-21 | src/Grace.Shared/Parameters/Artifact.Parameters.fs:15-20 \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":"src/Grace.Shared/Parameters/Repository.Parameters.fs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9856f4adb6b6da472e8690d4aa1930d0086274d8e39645b20cbc93316eb44b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/Grace.Actors/Diff.Actor.fs:234-239 | src/Grace.Actors/Diff.Actor.fs:385-390 | src/Grace.Actors/Diff.Actor.fs:414-419 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Grace.Actors/Diff.Actor.fs:234\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":"src/Grace.Actors/Diff.Actor.fs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"adeb1d1d7ac35d87095d1741c187a85c8379520a5400a14d3e25789c9e577217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.Actors/Reference.Actor.fs:669-674 | src/Grace.Actors/Reference.Actor.fs:794-799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"0422e54392963916df0cc1d04172ef078375fcad105700d11639871a6ef3bf95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.Shared/Resources/Text/Languages.Resources.fs:179-184 | src/Grace.Shared/Resources/Text/Languages.Resources.fs:322-327 \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":"src/Grace.Shared/Resources/Text/Languages.Resources.fs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2394b9f90ba9cad13a9155d46cd5a5a76f3cea69eb7ca383250701ca0650e146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.Shared/Resources/Text/Languages.Resources.fs:350-355 | src/Grace.Shared/Resources/Text/Languages.Resources.fs:615-620 \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":"src/Grace.Shared/Resources/Text/Languages.Resources.fs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6223741a36ab878d7e8e0ee440f6586adc09d0aab205b4b0572edcdb515155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.Shared/Parameters/Branch.Parameters.fs:20-25 | src/Grace.Shared/Parameters/Reference.Parameters.fs:18-23 \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":"src/Grace.Shared/Parameters/Branch.Parameters.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"21550bd47e7de99180c170f8432cb217deda50a485ab56315b97d9ca684f34f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.Shared/Parameters/Branch.Parameters.fs:48-53 | src/Grace.Shared/Parameters/Branch.Parameters.fs:63-68 \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":"src/Grace.Shared/Parameters/Branch.Parameters.fs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"03528e60f199fae675aff95191958914dbd2c1916193a9a9634b3f082a4592c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.Shared/Parameters/PromotionSet.Parameters.fs:16-21 | src/Grace.Shared/Parameters/Review.Parameters.fs:33-38 \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":"src/Grace.Shared/Parameters/PromotionSet.Parameters.fs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d7cc0c6bb7ff24a6514da07baa32f47c5ce48b219ccd753877138769c2eb88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.Shared/Parameters/Validation.Parameters.fs:24-29 | src/Grace.Shared/Parameters/Validation.Parameters.fs:37-42 \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":"src/Grace.Shared/Parameters/Validation.Parameters.fs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7e115fb9cab50f5ed7520c2528a1b8501196957efe9e7ad1413bc125895f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.Server/Security/TestAuth.Server.fs:47-52 | src/Grace.Server/Security/TestAuth.Server.fs:56-61 \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":"src/Grace.Server/Security/TestAuth.Server.fs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"381f74eba743056f0002ad20e6c18ea18184ee88d7d46fa847ee96d4a6ae3a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Grace.CLI/Command/Diff.CLI.fs:184-189 | src/Grace.CLI/Command/Diff.CLI.fs:197-202 \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. 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":"src/Grace.CLI/Command/Diff.CLI.fs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"455347340dce27fea0b3b158db608e864da410038a18bd9a24774104e589a158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 14): src/Grace.Shared/Parameters/Common.Parameters.fs:17-21 | src/Grace.Shared/Parameters/Repository.Parameters.fs:13-17 | src/Grace.Shared/Parameters/Reminder.Parameters.fs:15-19 | src/Grace.Shared/Parameters/WorkItem.Parameters.fs:11-15 | src/Grace.Shared/Parameters/Policy.Parameters.fs:10-14 | src/Grace.Shared/Parameters/PromotionSet.Parameters.fs:11-15 | src/Grace.Shared/Parameters/Approval.Parameters.fs:12-16 | src/Grace.Shared/Parameters/Approval.Parameters.fs:66-70 | src/Grace.Shared/Parameters/Webhook.Parameters.fs:12-16 | src/Grace.Shared/Parameters/Webhook.Parameters.fs:68-72 | src/Grace.Shared/Parameters/Review.Parameters.fs:28-32 | src/Grace.Shared/Parameters/Queue.Parameters.fs:10-14 | src/Grace.Shared/Parameters/Validation.Parameters.fs:12-16 | src/Grace.Shared/Parameters/Artifact.Parameters.fs:11-15 \u2014 there are 14 copies across 12 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 14 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Shared/Parameters/Common.Parameters.fs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8d364e54ef7a584795d3d76aa00f35a8593374b38c51d8a855672e12425ceb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/Grace.Shared/Parameters/Branch.Parameters.fs:14-18 | src/Grace.Shared/Parameters/Reference.Parameters.fs:12-16 | src/Grace.Shared/Parameters/Directory.Parameters.fs:13-17 | src/Grace.Shared/Parameters/Diff.Parameters.fs:12-16 | src/Grace.Shared/Parameters/Storage.Parameters.fs:43-47 \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":"src/Grace.Shared/Parameters/Branch.Parameters.fs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b7331cef770b0ccc3339416c33b869a5ad197806eadabf2dff5230ba592b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Grace.Actors/Branch.Actor.fs:130-134 | src/Grace.Actors/Branch.Actor.fs:453-457 \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":"src/Grace.Actors/Branch.Actor.fs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e74ee0ffc2f9d3371fc756d9b817600f86342d3a75005886c319d1d89ff700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Grace.Shared/Parameters/Access.Parameters.fs:20-24 | src/Grace.Shared/Parameters/Access.Parameters.fs:30-34 \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":"src/Grace.Shared/Parameters/Access.Parameters.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"96bfc206859c9f8ae86afb27f95e602e8d088831f4c69531e1b93231f99b9a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Grace.Shared/Parameters/WorkItem.Parameters.fs:130-134 | src/Grace.Shared/Parameters/WorkItem.Parameters.fs:144-148 \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":"src/Grace.Shared/Parameters/WorkItem.Parameters.fs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d77b9633e08ffc9466dfdedd0cffd4df9c28b15726619a881e38b8744274851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Grace.Server/Security/CreatorScopeAdminGrant.Server.fs:30-34 | src/Grace.Server/Access.Server.fs:61-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Security/CreatorScopeAdminGrant.Server.fs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48b90ea595c461f6277fb1af5641efeaa07ad4e99ca5cb5841b1f3520575a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Grace.CLI/LocalStateDb.CLI.fs:2916-2920 | src/Grace.CLI/LocalStateDb.CLI.fs:3303-3307 \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":"src/Grace.CLI/LocalStateDb.CLI.fs"},"region":{"startLine":2916}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8e7b45d64ed99e64f7bc5c28d2ed88f1bb2c19bb512daf86f5b2f4b9e0279d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Grace.CLI/Command/Watch.CLI.fs:893-897 | src/Grace.CLI/Command/Watch.CLI.fs:1100-1104 \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. 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3783e1eed648449f38ff68d004b6776ddad3b7f2db7fdf193f3cd780d9757b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.CLI/Command/Watch.CLI.fs: src/Grace.CLI/Command/Watch.CLI.fs changed 182 times in last 90 days, max complexity 84. 96 of those changes were fix/bug commits, 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":"src/Grace.CLI/Command/Watch.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9213b7e98d805aa17a809a96d4a6dc3d22e687adf516995ac9391cf4c1323c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.CLI/Command/Doctor.CLI.fs: src/Grace.CLI/Command/Doctor.CLI.fs changed 27 times in last 90 days, max complexity 146. 13 of those changes were fix/bug commits, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.CLI/Command/Doctor.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24c71229aa1e949c51d5efc2c5328cb63e1b2cf69f03b6603b0003d91c08fa0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.CLI/Program.CLI.fs: src/Grace.CLI/Program.CLI.fs changed 24 times in last 90 days, max complexity 92. 3 of those changes were fix/bug commits, and the other 21 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.CLI/Program.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61112a863a5645210b4c925937b25868217f2fee31d8a6fbd1459cecf75fa092"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.CLI/Command/Services.CLI.fs: src/Grace.CLI/Command/Services.CLI.fs changed 75 times in last 90 days, max complexity 28. 35 of those changes were fix/bug commits, and the other 40 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.CLI/Command/Services.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f594a4f0bf79fd353b3578a5c80936ddd6778ab545c0fadfa7a917cb519abff2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.Server/Storage.Server.fs: src/Grace.Server/Storage.Server.fs changed 53 times in last 90 days, max complexity 29. 22 of those changes were fix/bug commits, and the other 31 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.Server/Storage.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d15d85e87e5f30f091fff13baba5c97a437f6d641b9d9e854e279c622654e6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.Actors/Branch.Actor.fs: src/Grace.Actors/Branch.Actor.fs changed 15 times in last 90 days, max complexity 102. 5 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.Actors/Branch.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"195c7eed894726af3eec2e21ad53042b171a626de1c5e4329bc3fbb6155b1ae5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.Server/ManifestContributionDiagnosis.Server.fs: src/Grace.Server/ManifestContributionDiagnosis.Server.fs changed 10 times in last 90 days, max complexity 144. 5 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.Server/ManifestContributionDiagnosis.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d530ce24879c91a41ede1add84c4dd6c6df0f54c80952fcd9a907a1ada9dc25a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.CLI/Command/Branch.CLI.fs: src/Grace.CLI/Command/Branch.CLI.fs changed 42 times in last 90 days, max complexity 34. 19 of those changes were fix/bug commits, and the other 23 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.CLI/Command/Branch.CLI.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b426f323d2276e2a8b264ee20ee0f567c56630fa6b1d6283bad5d9d5ff376d3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.Actors/UploadSession.Actor.fs: src/Grace.Actors/UploadSession.Actor.fs changed 31 times in last 90 days, max complexity 44. 14 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.Actors/UploadSession.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dba65019467ed3d9e3034c33c0e832a955003f614d0463ade82503505d4221d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Grace.Actors/Reference.Actor.fs: src/Grace.Actors/Reference.Actor.fs changed 32 times in last 90 days, max complexity 33. 16 of those changes were fix/bug commits, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. 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":"src/Grace.Actors/Reference.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c75b71a0f477feaf0ceb006843a6770f8a9e35cd0a9d8719bbb9046dc99870"}},{"ruleId":"D16","level":"note","message":{"text":"Small-team knowledge concentration: 184 file(s) are concentrated to one author \u2014 the ambient state with 2 active author(s), not 184 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa75b6daa18f1b578387fa04036c50b3163d47f957c8f5601bf083ed4489b0c"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable ASPIRECOSMOSDB001 \u2014 the disable has no matching restore, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Aspire.AppHost/Program.Aspire.AppHost.cs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"8499a1418e586e17bb83fe678c6b0d6faf5a87ac6666817873349ee858ded582"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: 1591 \u2014 this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or \u2014 if some occurrences really are legitimate \u2014 narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Orleans.CodeGen/Grace.Orleans.CodeGen.csproj"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a581d6340a18db7b24e152b3745c307f1885e60a66c73460544c9da80b8bcfc"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: NETSDK1057 \u2014 this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or \u2014 if some occurrences really are legitimate \u2014 narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Directory.Build.props"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfaeed98051325855d924ee10f99437c9643d2b5db4e11e939ef9af9aff9628"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022.WithLifetime(ContainerLifetime.Session)\u0022 \u2014 delete - .WithLifetime(Session) already says this"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Aspire.AppHost/Program.Aspire.AppHost.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1bc93945172104c5ae15b6e66ddb073b83ef16de6afdec1da0d4e67eaf89d8"}},{"ruleId":"D26","level":"note","message":{"text":"Split Grace.Aspire.AppHost: A 791-LoC AppHost that sprawls over 30 unrelated namespaces is a grab-bag. Suggested: by namespace: Grace.Hosting, Grace.Configuration, Grace.Routing"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2762ebde574a1bcf2ca53e37d0c339c212c55d380a72ab2e7c6b6321908cc04c"}},{"ruleId":"D26","level":"note","message":{"text":"Split Grace.Orleans.CodeGen: A code-generation project at 7 LoC that spans 30 namespaces is trivially large and unmanageable. Suggested: by namespace: CodeGeneration, SyntaxParsing, Serialization"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"10e880383f638bf3ae3c39e58851e1cdd5c67a13c1e5ea589126b9c5e16cb82c"}},{"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":"fb267f2ab41c95615bf1fb1864a50cb936c7295ced6b7812fed0fd361697105a"},"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":"36d920e5c19412bea921dacd31ff3eebbf3c029ce52d47f77f6afdec7e5d69be"},"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":"8144a31c4104420e8c5e360cce30d51302c8ccc8ead507df44fab2077b06f5ee"},"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":"93bea767448f8e02d3c407ac84ca7b47ce320cd7a1358d4365e0f7cd95a84c2e"},"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":"43e3b70f46de7edeebd98c0392030cf9344be978f1a413bf321d69a4f4eba2cc"},"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":"91221dbc38b187797d912a00a50e764d8189846715f3b35c2896e145b66d9628"},"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":"f43faa8bb2a7b6f4e62c46afc4c302622f24903ca426cf440aa705d443908c49"},"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":"3e8b4be061f1d46f539bc21e6d070f8aa9f138c66ce0c7e45e1eaef1af69a77d"},"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":"28e86bb17a5f49890eb5758003c2120fecf7a11e591cf115952b77cce7342cc2"},"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":"2534c56aca8def07185a5fcdef91f0c767b1090c2af0d496c3317f011433833b"},"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":"fe66a3146116354e8ce8077e0cc35716e91cb74a70f169c0d01332670721cd0a"},"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":"72c6d3cc8ceb08f6f29a2c6669baed55c1d11a3ae78cc5fe4a3c3e96fc26d701"},"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":"46337b7a73d960ecc051709beb8d36532b60d7e2def6fc663a434eed2d0113a2"},"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":"D31","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":"1e7ebf5fa52209225add9d4e5422185cab06eef12940cf83bd32b1f7b0ef917a"}},{"ruleId":"D31","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":"89bf6c456021f371a4da4c5709ff15ae775e7ce718b8606f578f35bf7a1dcece"}},{"ruleId":"D31","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":"a3849061ba00981bb4d0d89d64281e8e67a60e3762119e8e26127462e7cf77f5"}},{"ruleId":"D31","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":"90ee098f757fa6114bb3c03ad769f174a34208e1c8f6c2f25637b10df6f1ebb9"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 2 of 436 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: src/Grace.Shared/Parameters/Reminder.Parameters.fs, src/Grace.SDK/Admin.SDK.fs. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EndpointAuthorizationManifest.Server.fs \u2194 Startup.Server.fs: \u0060src/Grace.Server/Security/EndpointAuthorizationManifest.Server.fs\u0060 and \u0060src/Grace.Server/Startup.Server.fs\u0060 change together 100% of the time (18 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Server/Security/EndpointAuthorizationManifest.Server.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f648cc32c67241d1b337911d7acdd718b2dcdd8661172df88c95aa67bc879e4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Constants.Actor.fs \u2194 Interfaces.Actor.fs: \u0060src/Grace.Actors/Constants.Actor.fs\u0060 and \u0060src/Grace.Actors/Interfaces.Actor.fs\u0060 change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Constants.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"594dc2dbf2547a973afac61275b660c379c0be78008564aa9cf52809c79a1730"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: OwnerName.Actor.fs \u2194 RepositoryName.Actor.fs: \u0060src/Grace.Actors/OwnerName.Actor.fs\u0060 and \u0060src/Grace.Actors/RepositoryName.Actor.fs\u0060 change together 77% of the time (10 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/OwnerName.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c99b94bcbdbe058236f2372623f0788f5c29b1945fca109d639a3474a30f590"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: OrganizationName.Actor.fs \u2194 RepositoryName.Actor.fs: \u0060src/Grace.Actors/OrganizationName.Actor.fs\u0060 and \u0060src/Grace.Actors/RepositoryName.Actor.fs\u0060 change together 77% of the time (10 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/OrganizationName.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a959ea957bce8baf4cd8490678990b1ef4828e0a7011560a6cc187de3a495ace"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: OrganizationName.Actor.fs \u2194 OwnerName.Actor.fs: \u0060src/Grace.Actors/OrganizationName.Actor.fs\u0060 and \u0060src/Grace.Actors/OwnerName.Actor.fs\u0060 change together 71% of the time (10 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/OrganizationName.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"600dd2eb984d70be8b12edf42faf379a6ddf3f0e63898141a673b27bdaf9e34b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Owner.Actor.fs \u2194 Repository.Actor.fs: \u0060src/Grace.Actors/Owner.Actor.fs\u0060 and \u0060src/Grace.Actors/Repository.Actor.fs\u0060 change together 70% of the time (19 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/Owner.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb76efc8c33d981fac6a5d4b28ee12c834b18b3225a307d9219ce7de8add7701"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BranchName.Actor.fs \u2194 RepositoryName.Actor.fs: \u0060src/Grace.Actors/BranchName.Actor.fs\u0060 and \u0060src/Grace.Actors/RepositoryName.Actor.fs\u0060 change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/BranchName.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2c3b222e0a9c2da10342867ef477503926cb4f556639a9ad735dae88564735"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BranchName.Actor.fs \u2194 OwnerName.Actor.fs: \u0060src/Grace.Actors/BranchName.Actor.fs\u0060 and \u0060src/Grace.Actors/OwnerName.Actor.fs\u0060 change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/BranchName.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1faf38ad39c337f792316f059899e8ca619725cc5ca019ebb7a919da306ebdd7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: OrganizationName.Actor.fs \u2194 Repository.Actor.fs: \u0060src/Grace.Actors/OrganizationName.Actor.fs\u0060 and \u0060src/Grace.Actors/Repository.Actor.fs\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/OrganizationName.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e686d788c0d5c235fff884b427c3dba6f453b974c1cf7c1628c85f2b870e593"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BranchName.Actor.fs \u2194 Organization.Actor.fs: \u0060src/Grace.Actors/BranchName.Actor.fs\u0060 and \u0060src/Grace.Actors/Organization.Actor.fs\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Grace.Actors/BranchName.Actor.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"261a6eb2b001b90529450dfdadc4578ba882287b73914caa447ec04e960bf70f"}},{"ruleId":"D37","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":"2baf56be81cee4fea57b9fbc0bcca4df8426c883fe2356827c7e968782d68617"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":18,"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."]}]}