{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D18","name":"Solution Shape","shortDescription":{"text":"Solution Shape"},"helpUri":"https://codehealth.canine.dev/dimensions/D18"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D39","name":"IL Efficiency","shortDescription":{"text":"IL Efficiency"},"helpUri":"https://codehealth.canine.dev/dimensions/D39"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Exchanges.GetPrimaryExchange (cyclomatic 106): Exchanges.GetPrimaryExchange has cyclomatic complexity 106 (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":"Common/Global.cs"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"16edb37fb3ed93baf259ab797749294049114d3b61c52a200092a346aa812b23"}},{"ruleId":"D1","level":"warning","message":{"text":"LeanData.GenerateLine (cyclomatic 100): LeanData.GenerateLine has cyclomatic complexity 100 (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":"Common/Util/LeanData.cs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cee21e68e9ab79ccbc7a8d940696961a9026534d357d4a89629b990bdfa7838"}},{"ruleId":"D1","level":"warning","message":{"text":"AlgorithmManager.Run (cyclomatic 70): AlgorithmManager.Run has cyclomatic complexity 70 (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":"Engine/AlgorithmManager.cs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"099ac9b88da5149acee0f0eee418bfc9f07fa1487c307a27e07cb047bb3441bf"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeSliceFactory.Create (cyclomatic 64): TimeSliceFactory.Create has cyclomatic complexity 64 (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":"Engine/DataFeeds/TimeSliceFactory.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c006ddc9bdcd480619d522f6ae45d6ec2c08d9c758581c1b89d78445eb5b23"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionStrategyPositionGroupBuyingPowerModel.GetMaintenanceMargin (cyclomatic 47): OptionStrategyPositionGroupBuyingPowerModel.GetMaintenanceMargin has cyclomatic complexity 47 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 7 belong to 7 function literals inside it that branch. 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":"Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"83be1a5de2883140b55a30f358317d65df98e9ad60d3a6a724e35835c8d6f5f0"}},{"ruleId":"D1","level":"warning","message":{"text":"QCAlgorithm.PreOrderChecksImpl (cyclomatic 42): QCAlgorithm.PreOrderChecksImpl has cyclomatic complexity 42 (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":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"118b077ffec89b2ecf4daae984fabe2ede66d5cfd86a07dd218c03ac4662617c"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionStrategyPositionGroupBuyingPowerModel.GetInitialMarginRequirement (cyclomatic 42): OptionStrategyPositionGroupBuyingPowerModel.GetInitialMarginRequirement has cyclomatic complexity 42 (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":"Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"692e735726ad53ed024ec6eafdbe3ff7205aa40111afaf975eb69f6ff1c08972"}},{"ruleId":"D1","level":"warning","message":{"text":"RandomDataGeneratorSettings.FromCommandLineArguments (cyclomatic 41): RandomDataGeneratorSettings.FromCommandLineArguments has cyclomatic complexity 41 (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":"ToolBox/RandomDataGenerator/RandomDataGeneratorSettings.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"467bf71fe75fcfc523afaec3d3777584c2d5d2671b2f31a2ad52f98d9208672d"}},{"ruleId":"D1","level":"warning","message":{"text":"SecurityCache.ProcessDataPoint (cyclomatic 39): SecurityCache.ProcessDataPoint 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":"Common/Securities/SecurityCache.cs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bf08f3ef276d7a126db5ce4c4a273cb74960de66f2f13267bec10d9b30eb73"}},{"ruleId":"D1","level":"warning","message":{"text":"SecurityService.CreateSecurity (cyclomatic 39): SecurityService.CreateSecurity 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":"Common/Securities/SecurityService.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b1357e14517e40da6bf6abfb35117067ec6bdb8ca82ee316b7104bdaed963c"}},{"ruleId":"D1","level":"warning","message":{"text":"TradeStatistics.TradeStatistics.ctor (cyclomatic 39): TradeStatistics.TradeStatistics.ctor 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":"Common/Statistics/TradeStatistics.cs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ef2ced8c229dbc8acd45c63ee3b942faf81d859df11940ce13f15a27f19274"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine.Run (cyclomatic 38): Engine.Run has cyclomatic complexity 38 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 7 belong to 4 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":"Engine/Engine.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a5476c8e3d57c478e94fee726fa356fce845b630d1a34a495395c78c5006c7"}},{"ruleId":"D1","level":"warning","message":{"text":"BrokerageTransactionHandler.HandleOrderEvents (cyclomatic 38): BrokerageTransactionHandler.HandleOrderEvents has cyclomatic complexity 38 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b16ede9ca1edc4d1c1e7f9d27385c1bdff5392e61fe0afe30b552929f745d2"}},{"ruleId":"D1","level":"warning","message":{"text":"HikkakeModified.ComputeNextValue (cyclomatic 38): HikkakeModified.ComputeNextValue has cyclomatic complexity 38 (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":"Indicators/CandlestickPatterns/HikkakeModified.cs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac91324857ffe4b3276726860a81c2bb82b60f1b51aa5519144bdda5f2032d5"}},{"ruleId":"D1","level":"warning","message":{"text":"UniverseSelection.ApplyUniverseSelection (cyclomatic 35): UniverseSelection.ApplyUniverseSelection has cyclomatic complexity 35 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/UniverseSelection.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"122210e5ea0552cd7359486ed87e1190be56796ea59d6ac5c3b46c78f29501a5"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderJsonConverter.CreateOrderFromJObject (cyclomatic 32): OrderJsonConverter.CreateOrderFromJObject has cyclomatic complexity 32 (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":"Common/Orders/OrderJsonConverter.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f0e23d71d817c453c6a43d3752254e8a3352fc3b33b208f33f599d33e24ce3"}},{"ruleId":"D1","level":"warning","message":{"text":"SubscriptionSynchronizer.Sync (cyclomatic 31): SubscriptionSynchronizer.Sync 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":"Engine/DataFeeds/SubscriptionSynchronizer.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2885d56c63a2d6369f864f6e50627ee4006442b1cafa62e231d3c995971d6279"}},{"ruleId":"D1","level":"warning","message":{"text":"BacktestingBrokerage.Scan (cyclomatic 31): BacktestingBrokerage.Scan 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":"Brokerages/Backtesting/BacktestingBrokerage.cs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f19360257c1c16c72b37eea3f786ff8f136f5c6524f20d4c518c7831c5b706c"}},{"ruleId":"D1","level":"warning","message":{"text":"QCAlgorithm.GetMatchingSubscriptions (cyclomatic 30): QCAlgorithm.GetMatchingSubscriptions has cyclomatic complexity 30 (threshold 15). Of this number, 28 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":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ad67f0da223e1cad0781187f90f46bbeacdcd4298296f528bfd4222304e1ff"}},{"ruleId":"D1","level":"warning","message":{"text":"AdvanceBlock.ComputeNextValue (cyclomatic 30): AdvanceBlock.ComputeNextValue has cyclomatic complexity 30 (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":"Indicators/CandlestickPatterns/AdvanceBlock.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4824a83537437e11976b70c969c0a2e187c84d20f66e4c9647cb7f12ff4dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"SubscriptionDataReader.MoveNext (cyclomatic 29): SubscriptionDataReader.MoveNext 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":"Engine/DataFeeds/SubscriptionDataReader.cs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f36e3008bc2f6422d68f34ac9e1c277d4eb126a0e628e948cc31fd95e52601"}},{"ruleId":"D1","level":"warning","message":{"text":"SecurityExchangeHours.GetMarketHours (cyclomatic 29): SecurityExchangeHours.GetMarketHours 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":"Common/Securities/SecurityExchangeHours.cs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae43edc2ff6017218b4163999a78ee4fe21b9aebe20004837e92c4527efc6ae"}},{"ruleId":"D1","level":"warning","message":{"text":"Hikkake.ComputeNextValue (cyclomatic 28): Hikkake.ComputeNextValue 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":"Indicators/CandlestickPatterns/Hikkake.cs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9f22425e37668d5771273dff4618acd8c8e2c38e7f90b39f8dad2790e196d2"}},{"ruleId":"D1","level":"warning","message":{"text":"BubbleAlgorithm.OnData (cyclomatic 28): BubbleAlgorithm.OnData has cyclomatic complexity 28 (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":"Algorithm.CSharp/BubbleAlgorithm.cs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2df087c8badc0b7166e77bc91d15238b12cddc0d8b95f1128fb1c33cc12bfa4"}},{"ruleId":"D1","level":"warning","message":{"text":"DividendSplitMapGenerator.GenerateSplitsDividends (cyclomatic 28): DividendSplitMapGenerator.GenerateSplitsDividends 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":"ToolBox/RandomDataGenerator/DividendSplitMapGenerator.cs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b545ca1a2e41bae82e5a73bfcbbf1f5c342041238f7e4ee72223f16d8042bf7"}},{"ruleId":"D1","level":"warning","message":{"text":"RandomDataGenerator.Run (cyclomatic 28): RandomDataGenerator.Run has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/RandomDataGenerator/RandomDataGenerator.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"793b8228f0f54c38dfa8e2604769992815c942b0564ac80d5a360fae181eb1f1"}},{"ruleId":"D1","level":"warning","message":{"text":"PeriodCountConsolidatorBase.Update (cyclomatic 27): PeriodCountConsolidatorBase.Update 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":"Common/Data/Consolidators/PeriodCountConsolidatorBase.cs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1803554829d8ff3b5bdd0a56d0018b2052c9526721dd8a27c0e7e027cdcc5d"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveBrokersFeeModel.GetOrderFee (cyclomatic 27): InteractiveBrokersFeeModel.GetOrderFee has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fees/InteractiveBrokersFeeModel.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7322f8abec2c0e263f90c1b959b4b37e9d63c40b90b47361d14ae85c7aabf90"}},{"ruleId":"D1","level":"warning","message":{"text":"UncoveredShortQuantityOptionStrategyMatchObjectiveFunction.GetUncoveredQuantity (cyclomatic 27): UncoveredShortQuantityOptionStrategyMatchObjectiveFunction.GetUncoveredQuantity 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":"Common/Securities/Option/StrategyMatcher/UncoveredShortQuantityOptionStrategyMatchObjectiveFunction.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0123748606d799c960f7042ca69355e870defd2696ab36f983ac5b4b287a0ed"}},{"ruleId":"D1","level":"warning","message":{"text":"TradeBuilder.ProcessFillUsingFillToFill (cyclomatic 27): TradeBuilder.ProcessFillUsingFillToFill 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":"Common/Statistics/TradeBuilder.cs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acfa32e0b09f63ff7a44944d58e0ade2355591935ff6d133eea8c876cf18178"}},{"ruleId":"D1","level":"warning","message":{"text":"FxcmBrokerageModel.IsValidOrderPrices (cyclomatic 26): FxcmBrokerageModel.IsValidOrderPrices 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":"Common/Brokerages/FxcmBrokerageModel.cs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5af9604991d32ca8b12d95a9b65a75469b8245d133408ad0839c373da60f2b"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionBar.Update (cyclomatic 26): SessionBar.Update 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":"Common/Data/Market/SessionBar.cs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"723c7115720f3e4327537948a97402ef23ec543e79bb4c9d6ece34bd82f17399"}},{"ruleId":"D1","level":"warning","message":{"text":"SeriesSampler.SampleCandlestickSeries (cyclomatic 26): SeriesSampler.SampleCandlestickSeries 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":"Common/SeriesSampler.cs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"5420d98d4c13998ebe9e041bc1ee856eea367dcb75208748d5accc66802d717b"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiDataProvider.NeedToDownload (cyclomatic 25): ApiDataProvider.NeedToDownload has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/ApiDataProvider.cs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f63473aaaf9a722a760669b94bd646c6768daac879bbb606bb5360ebfed10c"}},{"ruleId":"D1","level":"warning","message":{"text":"DataManager.DataManager.ctor (cyclomatic 24): DataManager.DataManager.ctor has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 90, 201, 205). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/DataManager.cs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"38526e6482d67bacf822e3274be03728981b428e4561fb7a0c4877ba29464659"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveBrokersBrokerageModel.CanSubmitOrder (cyclomatic 24): InteractiveBrokersBrokerageModel.CanSubmitOrder has cyclomatic complexity 24 (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":"Common/Brokerages/InteractiveBrokersBrokerageModel.cs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec571df41c2b0badc2b62b6941ebe9d8c18c8fdb5c89c76df1e8bec9704bbe5"}},{"ruleId":"D1","level":"warning","message":{"text":"Tick.Tick.ctor (cyclomatic 24): Tick.Tick.ctor 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":"Common/Data/Market/Tick.cs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"213aed2d0a3c33a6f9ed1c8db95652f39d506ef7ebc1ef0e50d56eb0f4c74fb9"}},{"ruleId":"D1","level":"warning","message":{"text":"Slice.GetImpl (cyclomatic 24): Slice.GetImpl has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Slice.cs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2db5a97e2af508a70786b7c47955d48bf26288cdb69faecfb4bf2c95f7d24e2"}},{"ruleId":"D1","level":"warning","message":{"text":"QLOptionPriceModel.Evaluate (cyclomatic 24): QLOptionPriceModel.Evaluate has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/QLOptionPriceModel.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"e022a029e92f461dd3ef99713f251f0ae7a9eb5abcba7f97add13062d20a7e15"}},{"ruleId":"D1","level":"warning","message":{"text":"SecurityPortfolioModel.ProcessFill (cyclomatic 24): SecurityPortfolioModel.ProcessFill 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":"Common/Securities/SecurityPortfolioModel.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79f2457195e2f36ac53d9be5224acc800450d61bf259b3d0e80438eca5874e2"}},{"ruleId":"D1","level":"warning","message":{"text":"RiseFallThreeMethods.ComputeNextValue (cyclomatic 24): RiseFallThreeMethods.ComputeNextValue has cyclomatic complexity 24 (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":"Indicators/CandlestickPatterns/RiseFallThreeMethods.cs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a02953a9ff4958e1416defec5a382dc551b294926e5b40bf5e2e78873c1c3ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreeWhiteSoldiers.ComputeNextValue (cyclomatic 24): ThreeWhiteSoldiers.ComputeNextValue has cyclomatic complexity 24 (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":"Indicators/CandlestickPatterns/ThreeWhiteSoldiers.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0083a377bb2fa631164b6ee1a0b9a2bd07f5c5dccacde26f391ad21a8ca35dd6"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryAuxiliaryDataRegressionAlgorithm.Initialize (cyclomatic 24): HistoryAuxiliaryDataRegressionAlgorithm.Initialize has cyclomatic complexity 24 (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":"Algorithm.CSharp/HistoryAuxiliaryDataRegressionAlgorithm.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5b99cdbf1ec2382030c1046062b94e6c5b0bef49e1dc81e31e9ecf0d9bb0b8"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionPriceModelForOptionStylesBaseRegressionAlgorithm.CheckGreeks (cyclomatic 24): OptionPriceModelForOptionStylesBaseRegressionAlgorithm.CheckGreeks has cyclomatic complexity 24 (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":"Algorithm.CSharp/OptionPriceModelForOptionStylesBaseRegressionAlgorithm.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"574ed733806e19d1cc43a7d277c17eb70d1c9460edc34ad0fbbf4c4de5dc6efc"}},{"ruleId":"D1","level":"warning","message":{"text":"FillForwardEnumerator.MoveNext (cyclomatic 23): FillForwardEnumerator.MoveNext 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":"Engine/DataFeeds/Enumerators/FillForwardEnumerator.cs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe0ea198a43085a63dc745f1ee3503ee1c864898e8e2b256fca269c9f9b3b9a"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveTradingResultHandler.Update (cyclomatic 23): LiveTradingResultHandler.Update 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":"Engine/Results/LiveTradingResultHandler.cs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c2886ef28fe1e02516948d79d6482966dfb389f33814d74a9b317071a0dc88"}},{"ruleId":"D1","level":"warning","message":{"text":"BrokerageSetupHandler.Setup (cyclomatic 23): BrokerageSetupHandler.Setup has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. 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":"Engine/Setup/BrokerageSetupHandler.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8f60aaf4d9c2c5f9ed5b40a82b4ad519de6de8a80d6a9d831904b896ff398e"}},{"ruleId":"D1","level":"warning","message":{"text":"QCAlgorithm.GetLastKnownPricesImpl (cyclomatic 23): QCAlgorithm.GetLastKnownPricesImpl has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff16f0f8b7af90415b05e01ba5af81136b0d3b6d2e282894e4b034b802861de4"}},{"ruleId":"D1","level":"warning","message":{"text":"EquityFillModel.MarketOnOpenFill (cyclomatic 23): EquityFillModel.MarketOnOpenFill has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 4 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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"365e6fff1df7e4fa1fec1bb4d4e39ff3b7ac4bfb7e5efc1ab4258799f6b50187"}},{"ruleId":"D1","level":"warning","message":{"text":"FillModel.Fill (cyclomatic 23): FillModel.Fill 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":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3675f950fec78c69b008ae76f34843f57a039cdaab396d66267663381a0976"}},{"ruleId":"D1","level":"warning","message":{"text":"Breakaway.ComputeNextValue (cyclomatic 23): Breakaway.ComputeNextValue has cyclomatic complexity 23 (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":"Indicators/CandlestickPatterns/Breakaway.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39eb51fd902504db9e37e2c0a791d94631dad197bdc31a023e8edc9c2783084"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreeStarsInSouth.ComputeNextValue (cyclomatic 23): ThreeStarsInSouth.ComputeNextValue has cyclomatic complexity 23 (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":"Indicators/CandlestickPatterns/ThreeStarsInSouth.cs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4534988f0e6acd2d0668ff74bc4e0fcc292a74050d9e904005dc92b57abb47"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicTemplateCryptoAlgorithm.OnData (cyclomatic 23): BasicTemplateCryptoAlgorithm.OnData has cyclomatic complexity 23 (threshold 15). Of this number, 21 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":"Algorithm.CSharp/BasicTemplateCryptoAlgorithm.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56fe912476ac11108c381bf3293b100ce71de010d5287da4007b8d259ba771b"}},{"ruleId":"D1","level":"warning","message":{"text":"DataManager.Add (cyclomatic 22): DataManager.Add 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":"Engine/DataFeeds/DataManager.cs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"b165c50a0c07cf3c3eb8d704ad365f927d3af91dfaaf2ca02b7df6247649c503"}},{"ruleId":"D1","level":"warning","message":{"text":"FillForwardEnumerator.RequiresFillForwardData (cyclomatic 22): FillForwardEnumerator.RequiresFillForwardData 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":"Engine/DataFeeds/Enumerators/FillForwardEnumerator.cs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc042f931971214f5ab0b8b1b22874c0a0a5e1908258c342c3c86f0245064a1"}},{"ruleId":"D1","level":"warning","message":{"text":"BrokerageTransactionHandler.HandleOptionNotification (cyclomatic 22): BrokerageTransactionHandler.HandleOptionNotification has cyclomatic complexity 22 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 8 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":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30099d406c0a2294af517b6769d28dfa0a885e27f1b4ef46bff0dd7ab0dce4f"}},{"ruleId":"D1","level":"warning","message":{"text":"QCAlgorithm.OnEndOfTimeStep (cyclomatic 22): QCAlgorithm.OnEndOfTimeStep has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Universe.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"795bc05c0f8fd5a28fdd802eb5ecb22ed78f3de9562289a395302dd60524e39d"}},{"ruleId":"D1","level":"warning","message":{"text":"Extensions.Scale (cyclomatic 22): Extensions.Scale 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":"Common/Extensions.cs"},"region":{"startLine":3745}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf92cbcacc831427eb233ea574407018f194ab1f5a0187db3887a749fcc61a5"}},{"ruleId":"D1","level":"warning","message":{"text":"LeanData.GenerateZipEntryName (cyclomatic 22): LeanData.GenerateZipEntryName 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":"Common/Util/LeanData.cs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb63ccfbf2ca0d4c07a32205ffec088e6339860a4ff416b9107f2178d8ebb6c"}},{"ruleId":"D1","level":"warning","message":{"text":"AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm.OnData (cyclomatic 22): AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm.OnData 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":"Algorithm.CSharp/AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1780237c2e4ac21e76ec938faa2c76e928e8b14a3c3ea03ad0134d240a7f7ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgorithm.OnData (cyclomatic 22): FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgorithm.OnData 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":"Algorithm.CSharp/FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgorithm.cs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c6617de48d8843b751d6deeb37d6f3fa149a2c5b2c32e5a16424472997acc0"}},{"ruleId":"D1","level":"warning","message":{"text":"IndicatorBasedOptionPricingModelRegressionAlgorithm.OnData (cyclomatic 22): IndicatorBasedOptionPricingModelRegressionAlgorithm.OnData 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":"Algorithm.CSharp/IndicatorBasedOptionPricingModelRegressionAlgorithm.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a794de21f999bef0203a201510f240c9f745185071022a6844a299f709bd30d2"}},{"ruleId":"D1","level":"warning","message":{"text":"TextSubscriptionDataSourceReader.Read (cyclomatic 21): TextSubscriptionDataSourceReader.Read 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":"Engine/DataFeeds/TextSubscriptionDataSourceReader.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acce2297f5450b78ada42951348725b6eceabcd66df257114d395c7d190a431"}},{"ruleId":"D1","level":"warning","message":{"text":"Tick.Tick.ctor (cyclomatic 21): Tick.Tick.ctor 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":"Common/Data/Market/Tick.cs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd0180b9360d0761fd342ca69c21162bcf7eba2efe37fff9c072b7656f7eb30"}},{"ruleId":"D1","level":"warning","message":{"text":"EquityFillModel.GetBestEffortAskPrice (cyclomatic 21): EquityFillModel.GetBestEffortAskPrice has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dee3dbcd16846054b90d98bd0d1933ce8e17284430e42210ccb2c0ad3fd8475"}},{"ruleId":"D1","level":"warning","message":{"text":"EquityFillModel.GetBestEffortBidPrice (cyclomatic 21): EquityFillModel.GetBestEffortBidPrice has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2653a0dd2b871c77e3e8fe4f6f21e3294c3a52d7aa9c945623a8257dd10b15b"}},{"ruleId":"D1","level":"warning","message":{"text":"PortfolioStatistics.PortfolioStatistics.ctor (cyclomatic 21): PortfolioStatistics.PortfolioStatistics.ctor 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":"Common/Statistics/PortfolioStatistics.cs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0269daaf6e838898ceeb850406870e574fdcd54d1dfd33956f8f012d2adac45c"}},{"ruleId":"D1","level":"warning","message":{"text":"MatHold.ComputeNextValue (cyclomatic 21): MatHold.ComputeNextValue has cyclomatic complexity 21 (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":"Indicators/CandlestickPatterns/MatHold.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"121596e4b1ff9a5b669102b8ad36c9e18e3ccbc83a54db0862379251de27ef58"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreeLineStrike.ComputeNextValue (cyclomatic 21): ThreeLineStrike.ComputeNextValue has cyclomatic complexity 21 (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":"Indicators/CandlestickPatterns/ThreeLineStrike.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"57136f73d740028cd4894a0604636cbca72e06a6a0371c75ce39a2857bfcbe98"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicTemplateCryptoFutureAlgorithm.OnData (cyclomatic 21): BasicTemplateCryptoFutureAlgorithm.OnData 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":"Algorithm.CSharp/BasicTemplateCryptoFutureAlgorithm.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd266e57846222a47e690eb4ba0b2561f181bec004783ce3a4f0a972a3bf567"}},{"ruleId":"D1","level":"warning","message":{"text":"BybitCryptoFuturesRegressionAlgorithm.OnData (cyclomatic 21): BybitCryptoFuturesRegressionAlgorithm.OnData 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":"Algorithm.CSharp/BybitCryptoFuturesRegressionAlgorithm.cs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e7e2186c3f72d9e47d5a2de98206e941eed1b0b8660e53fa6e490e18782bd3"}},{"ruleId":"D1","level":"warning","message":{"text":"DuplicateOptionAssignmentRegressionAlgorithm.OnOrderEvent (cyclomatic 21): DuplicateOptionAssignmentRegressionAlgorithm.OnOrderEvent 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":"Algorithm.CSharp/DuplicateOptionAssignmentRegressionAlgorithm.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f3b3632dbbdf59013b3e60f2bc48116f79bd8bef9e893b18aede0de1dc6643"}},{"ruleId":"D1","level":"warning","message":{"text":"OptimizationClustering.KMeans (cyclomatic 21): OptimizationClustering.KMeans has cyclomatic complexity 21 (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":"Optimizer/Analysis/OptimizationClustering.cs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d506e14fa3f33ca4a0f68352bb4d28bd09971301978218303cc75d5f48a101c5"}},{"ruleId":"D1","level":"warning","message":{"text":"QCAlgorithm.CreateConsolidator (cyclomatic 20): QCAlgorithm.CreateConsolidator 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":"Algorithm/QCAlgorithm.Indicators.cs"},"region":{"startLine":4243}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dad2c87df477acfa0e03c4afab0d9bba42fbc32cdb8832d26b9a24c14d658f5"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionRenameRegressionAlgorithm.OnData (cyclomatic 20): OptionRenameRegressionAlgorithm.OnData has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 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":"Algorithm.CSharp/OptionRenameRegressionAlgorithm.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8306ed8c9e642c5c10be5ae9d801830ab44f7d8f4b3e0ef5d8e8aa001c721a6e"}},{"ruleId":"D1","level":"warning","message":{"text":"SecuritySessionWithFuturesRegressionAlgorithm.AccumulateSessionData (cyclomatic 20): SecuritySessionWithFuturesRegressionAlgorithm.AccumulateSessionData 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":"Algorithm.CSharp/SecuritySessionWithFuturesRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f19a06b7031736f61cbd57fede32359c50da032b77126a2ae1fbcf88e627181"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateOrderLiveTestAlgorithm.OnData (cyclomatic 20): UpdateOrderLiveTestAlgorithm.OnData 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":"Algorithm.CSharp/UpdateOrderLiveTestAlgorithm.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"982d028818769a9ef90ba4acb5fd0ff3d07f5c4362e783d52d273d56c587a5af"}},{"ruleId":"D1","level":"warning","message":{"text":"WarmupDailyResolutionRegressionAlgorithm.OnData (cyclomatic 20): WarmupDailyResolutionRegressionAlgorithm.OnData 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":"Algorithm.CSharp/WarmupDailyResolutionRegressionAlgorithm.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecafc0011a6aac89971f0398b2a7cab3460e946501ef5eb8c8b3f3a3a58972cc"}},{"ruleId":"D1","level":"warning","message":{"text":"OptimizationModes.Find (cyclomatic 20): OptimizationModes.Find 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":"Optimizer/Analysis/OptimizationModes.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a87cf3a3f33d4bc6d0503218cc1b1a558116af7e60f7bbb30d4de87c05b608"}},{"ruleId":"D1","level":"warning","message":{"text":"DataFrameGenerator.AddData (cyclomatic 19): DataFrameGenerator.AddData 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":"Common/Python/PandasConverter.DataFrameGenerator.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"438aba8df9d349965574c02bc1186092663250f783cd8f5239854efe4922b3f2"}},{"ruleId":"D1","level":"warning","message":{"text":"LeanData.GenerateZipFileName (cyclomatic 19): LeanData.GenerateZipFileName 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":"Common/Util/LeanData.cs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8fbf5df1ccd731a75ebeb5fc4775072e5471a8c3d6643b0d280dc363ce6e4a"}},{"ruleId":"D1","level":"warning","message":{"text":"StalledPattern.ComputeNextValue (cyclomatic 19): StalledPattern.ComputeNextValue 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":"Indicators/CandlestickPatterns/StalledPattern.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"948d4a375a72b9c5528c404c9c2884087d8423ccadb53dd1cc8c8bf2c00e4f57"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicTemplateCryptoFutureHourlyAlgorithm.OnData (cyclomatic 19): BasicTemplateCryptoFutureHourlyAlgorithm.OnData 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":"Algorithm.CSharp/BasicTemplateCryptoFutureHourlyAlgorithm.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"828ec018abbb63b004570d6315e6faf01ea371bc475cda0ba7505454abe3157b"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateOrderRegressionAlgorithm.OnData (cyclomatic 19): UpdateOrderRegressionAlgorithm.OnData 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":"Algorithm.CSharp/UpdateOrderRegressionAlgorithm.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53ff3a31e601011aceba58ddd54fbddbb7788d5997176d127b3148c9745774e"}},{"ruleId":"D1","level":"warning","message":{"text":"AlgoSeekFuturesReader.Parse (cyclomatic 19): AlgoSeekFuturesReader.Parse has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/AlgoSeekFuturesConverter/AlgoSeekFuturesReader.cs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"053c324e35bd7390d994665633a051721ac4bbe4a9c6415c761692e53be9f1ee"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloaderDataProvider.Fetch (cyclomatic 18): DownloaderDataProvider.Fetch has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 82). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/DownloaderDataProvider.cs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e56ae4893c92b63920f1c4742608acc57610cb0714d17ce0294f3d3362b68f"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveSynchronizer.StreamData (cyclomatic 18): LiveSynchronizer.StreamData 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":"Engine/DataFeeds/LiveSynchronizer.cs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fc3e73e5ff883f087b6428887ab1478072f2a7f5f2943a790a5b3489fe23d7"}},{"ruleId":"D1","level":"warning","message":{"text":"SubscriptionUtils.CreateAndScheduleWorker (cyclomatic 18): SubscriptionUtils.CreateAndScheduleWorker has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 91, 168). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/SubscriptionUtils.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e08eaa0eb3a820596734a7a2d1826cda6a73c7eb2a7ef479d6365a26624a08"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseResultsHandler.GenerateStatisticsResults (cyclomatic 18): BaseResultsHandler.GenerateStatisticsResults 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":"Engine/Results/BaseResultsHandler.cs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"215859bee015ba639af1785e1ee0b70095225b9a89b5c82a59609725f38a8632"}},{"ruleId":"D1","level":"warning","message":{"text":"AlphaStreamsFeeModel.GetOrderFee (cyclomatic 18): AlphaStreamsFeeModel.GetOrderFee 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":"Common/Orders/Fees/AlphaStreamsFeeModel.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d187258ad26524a7793426f232bc208f5846cd0138fdb254a30ce70be145f976"}},{"ruleId":"D1","level":"warning","message":{"text":"PandasData.ToPandasDataFrame (cyclomatic 18): PandasData.ToPandasDataFrame 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":"Common/Python/PandasData.cs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"78df1db8b235614008a67cc7d4e9badb1e35328dc9dbfc746a99446ea1eb4f86"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionFilterUniverse.IronCondor (cyclomatic 18): OptionFilterUniverse.IronCondor has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 679, 660, 661). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/OptionFilterUniverse.cs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a80b1dc80d83cc33ce3961a258dc6a66430501ce4d241f423279f42931ce5a7"}},{"ruleId":"D1","level":"warning","message":{"text":"LeanData.GenerateRelativeZipFileDirectory (cyclomatic 18): LeanData.GenerateRelativeZipFileDirectory has cyclomatic complexity 18 (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":"Common/Util/LeanData.cs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"c043dcc23700c9db66ce1e196417920997d6861842445e4605a790766bec0f40"}},{"ruleId":"D1","level":"warning","message":{"text":"LeanDataPathComponents.Parse (cyclomatic 18): LeanDataPathComponents.Parse 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":"Common/Util/LeanDataPathComponents.cs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ac242bce2ebfaea9a8bf964e259923908e0c9364c489a992812744612c2cef"}},{"ruleId":"D1","level":"warning","message":{"text":"AbandonedBaby.ComputeNextValue (cyclomatic 18): AbandonedBaby.ComputeNextValue has cyclomatic complexity 18 (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":"Indicators/CandlestickPatterns/AbandonedBaby.cs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1090a2a18187958330b2897d76231aac6a7a164905dfdefc3d7d8f599dc8f2e"}},{"ruleId":"D1","level":"warning","message":{"text":"IdenticalThreeCrows.ComputeNextValue (cyclomatic 18): IdenticalThreeCrows.ComputeNextValue has cyclomatic complexity 18 (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":"Indicators/CandlestickPatterns/IdenticalThreeCrows.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c301891b8fb051949d604979d58c6c9110061a44c487f5606ab2b05f321b37d2"}},{"ruleId":"D1","level":"warning","message":{"text":"AddOptionContractExpiresRegressionAlgorithm.OnData (cyclomatic 18): AddOptionContractExpiresRegressionAlgorithm.OnData has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AddOptionContractExpiresRegressionAlgorithm.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e42570d5d9a3a7aa02486f7cbf95904bf75e3c3a514c2290c0ef1d91b0746f0"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionChainUniverseRemovalRegressionAlgorithm.OnSecuritiesChanged (cyclomatic 18): OptionChainUniverseRemovalRegressionAlgorithm.OnSecuritiesChanged 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":"Algorithm.CSharp/OptionChainUniverseRemovalRegressionAlgorithm.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"87df1b61002cde91113678dd8f5f8e080a0d3a2bc1336c31f2c9cc9e1a133162"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionRenameDailyRegressionAlgorithm.OnData (cyclomatic 18): OptionRenameDailyRegressionAlgorithm.OnData has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 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":"Algorithm.CSharp/OptionRenameDailyRegressionAlgorithm.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"84846a3c8a4daef161a4e7a0b6626284d6c616f2d956708211b331c9fac6c49d"}},{"ruleId":"D1","level":"warning","message":{"text":"SecurityInitializationOnReAdditionForSelectedOptionRegressionAlgorithm.OnSecuritiesChanged (cyclomatic 18): SecurityInitializationOnReAdditionForSelectedOptionRegressionAlgorithm.OnSecuritiesChanged has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/SecurityInitializationOnReAdditionForSelectedOptionRegressionAlgorithm.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdfb65cea231381235c491893880ced0f766bf23b0d9669bbd5f5f1865be1af"}},{"ruleId":"D1","level":"warning","message":{"text":"DataQueueHandlerManager.Subscribe (cyclomatic 17): DataQueueHandlerManager.Subscribe has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/DataQueueHandlerManager.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5519afb3b6beb07ed35383ab08e8fe9caa44d188efe1e7e58939bb4b9dab19b0"}},{"ruleId":"D1","level":"warning","message":{"text":"ScheduledEnumerator.MoveNext (cyclomatic 17): ScheduledEnumerator.MoveNext 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":"Engine/DataFeeds/Enumerators/ScheduledEnumerator.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c08db01d46a0273216201fb357ef8c97828e64cb7014a24fce4956199bb9e94"}},{"ruleId":"D1","level":"warning","message":{"text":"QCAlgorithm.GetResolution (cyclomatic 17): QCAlgorithm.GetResolution has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d666826cca0ffccc5d7e1e7acff857d1efa71c433148a0677394e109fcbcc5f6"}},{"ruleId":"D1","level":"warning","message":{"text":"CashBuyingPowerModel.GetMaximumOrderQuantityForTargetBuyingPower (cyclomatic 17): CashBuyingPowerModel.GetMaximumOrderQuantityForTargetBuyingPower 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":"Common/Securities/CashBuyingPowerModel.cs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51a07ea8e1242ab776306a7a7ad8baa61b5f218247eabac6529f9385a9316b7"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamReaderExtensions.GetDecimal (cyclomatic 17): StreamReaderExtensions.GetDecimal 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":"Common/Util/StreamReaderExtensions.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b828c9a8278bc67c82ebeea1e58acbd66a1fdb5690748112d927bfdb92ecae6"}},{"ruleId":"D1","level":"warning","message":{"text":"KickingByLength.ComputeNextValue (cyclomatic 17): KickingByLength.ComputeNextValue 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":"Indicators/CandlestickPatterns/KickingByLength.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20fe54ca1b2164a3f20e35d7ba11f0005f35f037e59349cce964ec3d8a2760b"}},{"ruleId":"D1","level":"warning","message":{"text":"AddOptionContractTwiceRegressionAlgorithm.OnData (cyclomatic 17): AddOptionContractTwiceRegressionAlgorithm.OnData 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":"Algorithm.CSharp/AddOptionContractTwiceRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe177fe7c6e7e2361a05874dd5c4524a5d3ec498fffec367ae4f1bf581b621c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConstituentsUniverseRegressionAlgorithm.OnData (cyclomatic 17): ConstituentsUniverseRegressionAlgorithm.OnData 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":"Algorithm.CSharp/ConstituentsUniverseRegressionAlgorithm.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d93be29243e4b0f5a05fe5d60ebaec8bf7d1fe0cc8e8bf3d11ce5a79df2856"}},{"ruleId":"D1","level":"warning","message":{"text":"ContinuousFutureRolloverBaseRegressionAlgorithm.OnData (cyclomatic 17): ContinuousFutureRolloverBaseRegressionAlgorithm.OnData has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ContinuousFutureRolloverBaseRegressionAlgorithm.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5642bb16a78bc532127a7d7e0a3c67b62da4b3acc31ae1cf9bb3bbab3d49311c"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomUniverseWithBenchmarkRegressionAlgorithm.OnData (cyclomatic 17): CustomUniverseWithBenchmarkRegressionAlgorithm.OnData 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":"Algorithm.CSharp/CustomUniverseWithBenchmarkRegressionAlgorithm.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5c2d546da7b92741f6a03e92bc257345b626eaeec5f8d73bed1d457d2de26c"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionOpenInterestRegressionAlgorithm.OnData (cyclomatic 17): OptionOpenInterestRegressionAlgorithm.OnData 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":"Algorithm.CSharp/OptionOpenInterestRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"185c4cdd3f8322ced7eb997267bd355046c44573727ae638999cc7101bf82961"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.Main (cyclomatic 17): Program.Main 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":"ToolBox/Program.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"674c4144a0f0535f2a578da65888d64b9f4d2caa81369ebfa092b3676aa4cff2"}},{"ruleId":"D1","level":"warning","message":{"text":"BacktestingResultHandler.Update (cyclomatic 16): BacktestingResultHandler.Update 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":"Engine/Results/BacktestingResultHandler.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"268f866d3c281383f179fe2b5913da7e518211a3c86a3928c61f75916493577d"}},{"ruleId":"D1","level":"warning","message":{"text":"Isolator.MonitorTask (cyclomatic 16): Isolator.MonitorTask 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":"Common/Isolator.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"148fab4deb40fd30b859d7509ae7e4c08bddb841f71a53828cdeb79716a60cc0"}},{"ruleId":"D1","level":"warning","message":{"text":"FillModel.LimitIfTouchedFill (cyclomatic 16): FillModel.LimitIfTouchedFill 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":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"407589a91510742242103cfb6300e770bb296293d6229af23ef5a58cdbe9a6c2"}},{"ruleId":"D1","level":"warning","message":{"text":"Serie.Add (cyclomatic 16): Serie.Add 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":"Common/Python/PandasData.cs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"d723067d3d5d4a5c450b9f9cef2d921d8a00190a0e5b224c635f75af6a72c7be"}},{"ruleId":"D1","level":"warning","message":{"text":"SecurityCacheProvider.GetSecurityCache (cyclomatic 16): SecurityCacheProvider.GetSecurityCache 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":"Common/Securities/SecurityCacheProvider.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b36c9bd3b8e54f4030aee2e3b9a47219727574ce917ae037fafe233811199be"}},{"ruleId":"D1","level":"warning","message":{"text":"SeriesSampler.SampleSeries (cyclomatic 16): SeriesSampler.SampleSeries 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":"Common/SeriesSampler.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbf6585027cadf8c0a08ec57ef5abb0239b35cb5702ddcfaa746062fd3fd5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"Kicking.ComputeNextValue (cyclomatic 16): Kicking.ComputeNextValue has cyclomatic complexity 16 (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":"Indicators/CandlestickPatterns/Kicking.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef5c7d0c658e03c9c36eb6eeb7cd93f696fe995aa4c088ac15505d712a6fb97"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreeInside.ComputeNextValue (cyclomatic 16): ThreeInside.ComputeNextValue has cyclomatic complexity 16 (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":"Indicators/CandlestickPatterns/ThreeInside.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"034af1b73e1773afe069d2c349e1e42b58ac9d77994f84ca212e318f18a3ee09"}},{"ruleId":"D1","level":"warning","message":{"text":"AddRemoveOptionUniverseRegressionAlgorithm.OnData (cyclomatic 16): AddRemoveOptionUniverseRegressionAlgorithm.OnData has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"Algorithm.CSharp/AddRemoveOptionUniverseRegressionAlgorithm.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4d9e8beaa2181bde1db48750f003d46eb17f96cb94385418f84ec471514398"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicTemplateMultiAssetAlgorithm.OnData (cyclomatic 16): BasicTemplateMultiAssetAlgorithm.OnData 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":"Algorithm.CSharp/BasicTemplateMultiAssetAlgorithm.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0e24ec2e5938a699c056cbd9daa311dcb549e2796e51a35fb4a18b95c98ac7"}},{"ruleId":"D1","level":"warning","message":{"text":"CheeseMilkHourlyRebalance.OnData (cyclomatic 16): CheeseMilkHourlyRebalance.OnData has cyclomatic complexity 16 (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":"Algorithm.CSharp/CapacityTests/CheeseMilkHourlyRebalance.cs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d9a24731689ba3e70e243dc87cbd1ec67498b93790656cce1816d89873ebc5"}},{"ruleId":"D1","level":"warning","message":{"text":"FuturesExtendedMarketHoursRegressionAlgorithm.OnData (cyclomatic 16): FuturesExtendedMarketHoursRegressionAlgorithm.OnData has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"Algorithm.CSharp/FuturesExtendedMarketHoursRegressionAlgorithm.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4569c87fa3b8099d3576e966843d492328754c684df088325284e615afd3646"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlgorithm.OnEndOfAlgorithm (cyclomatic 16): HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlgorithm.OnEndOfAlgorithm has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fa040b67df3c967971c66561835978d55b91b8d35bfaee3d95f83dd9f7f7a5"}},{"ruleId":"D1","level":"warning","message":{"text":"SplitEquityRegressionAlgorithm.OnEndOfAlgorithm (cyclomatic 16): SplitEquityRegressionAlgorithm.OnEndOfAlgorithm 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":"Algorithm.CSharp/SplitEquityRegressionAlgorithm.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8c0aaaefebf1d97fcffc2dc339d5aaacb0e0d28b4748f7e90789afd905fe67"}},{"ruleId":"D1","level":"warning","message":{"text":"KaikoDataConverterProgram.KaikoDataConverter (cyclomatic 16): KaikoDataConverterProgram.KaikoDataConverter 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":"ToolBox/KaikoDataConverter/KaikoDataConverterProgram.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7c1da5c5f12282303cc0ab47548f1909d5bd128081b6154dd262408d742638"}},{"ruleId":"D1","level":"warning","message":{"text":"LeanDataReader.Parse (cyclomatic 16): LeanDataReader.Parse has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"ToolBox/LeanDataReader.cs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"86aec3d392dc7af3a14013e5353860efda747b03fadf942749209e2364f9a224"}},{"ruleId":"D2","level":"warning","message":{"text":"LeanData.GenerateLine (cognitive 187): LeanData.GenerateLine has cognitive complexity 187 (threshold 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/LeanData.cs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d09b04382c893ac2b2c89193a85b826dae4dc34175006984c70aa798490066e"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeSliceFactory.Create (cognitive 182): TimeSliceFactory.Create has cognitive complexity 182 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/TimeSliceFactory.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a73ce39461a2e170c2b66d20544b01da77ab9e1f49d517bf8e1ea0e7f36f93"}},{"ruleId":"D2","level":"warning","message":{"text":"AlgorithmManager.Run (cognitive 173): AlgorithmManager.Run has cognitive complexity 173 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/AlgorithmManager.cs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"19650e8ff0499f52a949a7d9a430e24f870802ea9250a10d3921ee5032a1c273"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionSynchronizer.Sync (cognitive 106): SubscriptionSynchronizer.Sync has cognitive complexity 106 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/SubscriptionSynchronizer.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb91a6efb156dee60d3d6d677ec90aedbf71cc58ccc2eded7eac15a2da255ff"}},{"ruleId":"D2","level":"warning","message":{"text":"RandomDataGenerator.Run (cognitive 85): RandomDataGenerator.Run has cognitive complexity 85 (threshold 15). Of this number, 81 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/RandomDataGenerator/RandomDataGenerator.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee1fa7f71da8b13ab6db768a80128bbd56a6a4aa70de6ad4c0583219e3d37d4"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeStatistics.TradeStatistics.ctor (cognitive 76): TradeStatistics.TradeStatistics.ctor has cognitive complexity 76 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Statistics/TradeStatistics.cs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c69c46241e05c7cfed4fac2908b33a8e096ec3489440f156b99904e0581def"}},{"ruleId":"D2","level":"warning","message":{"text":"DividendSplitMapGenerator.GenerateSplitsDividends (cognitive 74): DividendSplitMapGenerator.GenerateSplitsDividends has cognitive complexity 74 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/RandomDataGenerator/DividendSplitMapGenerator.cs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b1e64b723243114f9d6139964e63c460cd392cbe28d754948b3f19c5efb43b"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityCache.ProcessDataPoint (cognitive 71): SecurityCache.ProcessDataPoint has cognitive complexity 71 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityCache.cs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b1ff95cd9cc3442868cd17d0f845056e24c078e0937aa7724a1704b2a3448b"}},{"ruleId":"D2","level":"warning","message":{"text":"UniverseSelection.ApplyUniverseSelection (cognitive 69): UniverseSelection.ApplyUniverseSelection has cognitive complexity 69 (threshold 15). Of this number, 60 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. 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":"Engine/DataFeeds/UniverseSelection.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"433286ac28c88d7fbb54a9c9d55f4b334fc6f1197a4b43e47dc5f845b217a819"}},{"ruleId":"D2","level":"warning","message":{"text":"BacktestingBrokerage.Scan (cognitive 69): BacktestingBrokerage.Scan has cognitive complexity 69 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/Backtesting/BacktestingBrokerage.cs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"070f3deca7da9549a25edd39b0616abdf60ef81ac405b14a4d358050879d04d9"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionBar.Update (cognitive 67): SessionBar.Update has cognitive complexity 67 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Market/SessionBar.cs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"317fedb2f4e6b130633050da098371da58d3cb0662d1c8e0947b96f6c24033b8"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionDataReader.MoveNext (cognitive 56): SubscriptionDataReader.MoveNext has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/SubscriptionDataReader.cs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce509aa31d5366e9460906acf9b7d41e2994e614a555b40a1953e48d35d2968"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.PreOrderChecksImpl (cognitive 53): QCAlgorithm.PreOrderChecksImpl has cognitive complexity 53 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee00d3a761b108d9df3b72dd8cc250652a41e00023d64bf3c261fbd5edb9393f"}},{"ruleId":"D2","level":"warning","message":{"text":"DataManager.DataManager.ctor (cognitive 51): DataManager.DataManager.ctor has cognitive complexity 51 (threshold 15). Most of this is not in the body itself: 1 of the 51 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 90, 201, 205). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/DataManager.cs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b38297ea5753399f4ee7c89bf24c99748eedc8f0f7d173853aea4f260b0a28"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.GetLastKnownPricesImpl (cognitive 51): QCAlgorithm.GetLastKnownPricesImpl has cognitive complexity 51 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 18 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d15dc7e6a938d182cf36ac2e8912b77031b3e39ffbd2adb46538760b9f6709"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTemplateCryptoFutureAlgorithm.OnData (cognitive 50): BasicTemplateCryptoFutureAlgorithm.OnData has cognitive complexity 50 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicTemplateCryptoFutureAlgorithm.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee86149c76edd764c5b2f094b26c93629a387da7da20b366ba3c26abed0eb38"}},{"ruleId":"D2","level":"warning","message":{"text":"SeriesSampler.SampleCandlestickSeries (cognitive 49): SeriesSampler.SampleCandlestickSeries has cognitive complexity 49 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/SeriesSampler.cs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a5344af62da70d32400edf170c8010e92ebb7ba3199323790e95cf6fe2f2bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine.Run (cognitive 47): Engine.Run has cognitive complexity 47 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 11 belong to 4 function literals inside it that branch. 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":"Engine/Engine.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ee633afc0db1222cb66afdcc9362afa86cb76be39993c8a542198069f859cd"}},{"ruleId":"D2","level":"warning","message":{"text":"DataFrameGenerator.AddData (cognitive 47): DataFrameGenerator.AddData has cognitive complexity 47 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PandasConverter.DataFrameGenerator.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f11c7ef54ed9ea132dfd2aeb2fc11acbb07be00d567570c62dedde21b8fb76a"}},{"ruleId":"D2","level":"warning","message":{"text":"OptimizationClustering.KMeans (cognitive 47): OptimizationClustering.KMeans has cognitive complexity 47 (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":"Optimizer/Analysis/OptimizationClustering.cs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0010b9989b6171aebca7a79280c2172d2f0bc9a8cab3d116091d13682734c5d3"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerageTransactionHandler.HandleOrderEvents (cognitive 45): BrokerageTransactionHandler.HandleOrderEvents has cognitive complexity 45 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c2c9e8c1e7ac851432a89c16fb208dfa621b1ea2ade484ff2393a94a20af94"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerageTransactionHandler.HandleOptionNotification (cognitive 44): BrokerageTransactionHandler.HandleOptionNotification has cognitive complexity 44 (threshold 15). Of this number, 37 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":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"54bb2dd3c54b9266e92e46c9f740bb8ea35078dd6f197e68febdf61770957ea3"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.GetMatchingSubscriptions (cognitive 44): QCAlgorithm.GetMatchingSubscriptions has cognitive complexity 44 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. 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":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b540864c7094ee4ff301d9654986c94a58291ad3043753bfc35c9e82a104a0"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionStrategyPositionGroupBuyingPowerModel.GetMaintenanceMargin (cognitive 44): OptionStrategyPositionGroupBuyingPowerModel.GetMaintenanceMargin has cognitive complexity 44 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 7 belong to 7 function literals inside it that branch. 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":"Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5afaaa6c02d4416a186de14f39077a0c14cf58714ae52287ea28019914e31b7"}},{"ruleId":"D2","level":"warning","message":{"text":"BybitCryptoFuturesRegressionAlgorithm.OnData (cognitive 44): BybitCryptoFuturesRegressionAlgorithm.OnData has cognitive complexity 44 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BybitCryptoFuturesRegressionAlgorithm.cs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e2981e6b43acf062a20a6fb37829dc893579beca049b265501df0f7dc35763"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTradingResultHandler.Update (cognitive 43): LiveTradingResultHandler.Update has cognitive complexity 43 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/LiveTradingResultHandler.cs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"24166e880c810e0d4312d9246447272ae83c7efea571dad5abba170167540d46"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionOpenInterestRegressionAlgorithm.OnData (cognitive 43): OptionOpenInterestRegressionAlgorithm.OnData has cognitive complexity 43 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/OptionOpenInterestRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f95ba3595c42afcf95a04a6f70fb2b89d0ef018af2e29b24e87451a43b0fe7b"}},{"ruleId":"D2","level":"warning","message":{"text":"DataManager.Add (cognitive 42): DataManager.Add has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/DataManager.cs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed10cdd7022d765b516903d5694013db95e0a01101e1971e67177e52dbcabdba"}},{"ruleId":"D2","level":"warning","message":{"text":"UncoveredShortQuantityOptionStrategyMatchObjectiveFunction.GetUncoveredQuantity (cognitive 42): UncoveredShortQuantityOptionStrategyMatchObjectiveFunction.GetUncoveredQuantity has cognitive complexity 42 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/StrategyMatcher/UncoveredShortQuantityOptionStrategyMatchObjectiveFunction.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ee91837d164762550031d38796e253328109c4b95f1a683e31c807dd26f53c"}},{"ruleId":"D2","level":"warning","message":{"text":"RandomDataGeneratorSettings.FromCommandLineArguments (cognitive 42): RandomDataGeneratorSettings.FromCommandLineArguments has cognitive complexity 42 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/RandomDataGenerator/RandomDataGeneratorSettings.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c350a4d8a487fe3a8e87c373187b3ddc7860d039dc613ed1c614b0d9b0e923"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloaderDataProvider.Fetch (cognitive 41): DownloaderDataProvider.Fetch has cognitive complexity 41 (threshold 15). Most of this is not in the body itself: 0 of the 41 points are its own statements and the rest belongs to one function literal inside it that branches (line 82). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/DownloaderDataProvider.cs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"98badb012e7cb85a15db2525c2c535809bccf0c9175fc8378157cb1840de4789"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTemplateCryptoFutureHourlyAlgorithm.OnData (cognitive 41): BasicTemplateCryptoFutureHourlyAlgorithm.OnData has cognitive complexity 41 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicTemplateCryptoFutureHourlyAlgorithm.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"41825cc338018c1c66612c07f9373641446dda20101dc1cf5b57ff7dcabe8258"}},{"ruleId":"D2","level":"warning","message":{"text":"FillForwardEnumerator.RequiresFillForwardData (cognitive 40): FillForwardEnumerator.RequiresFillForwardData has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/FillForwardEnumerator.cs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"112377ac20a3637f2fec21481171c8ec5cc699021b55f5de4cd62d3d2a7c6df2"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSubscriptionDataSourceReader.Read (cognitive 40): TextSubscriptionDataSourceReader.Read has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/TextSubscriptionDataSourceReader.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ccca4186dcc401677158a9639abf9c3a7c8ac5aed28f43bffe694fb7fc9c31"}},{"ruleId":"D2","level":"warning","message":{"text":"Slice.GetImpl (cognitive 40): Slice.GetImpl has cognitive complexity 40 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"Common/Data/Slice.cs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fb697b50b70620bd2a2156f6546a68706fb9462f6a44e98ae2cfbdc1157103"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderJsonConverter.CreateOrderFromJObject (cognitive 40): OrderJsonConverter.CreateOrderFromJObject has cognitive complexity 40 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/OrderJsonConverter.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9a73f20f72cb1fbe1a6e64d853bec715c49b0a43f3d7f07890821421e51c29"}},{"ruleId":"D2","level":"warning","message":{"text":"HikkakeModified.ComputeNextValue (cognitive 40): HikkakeModified.ComputeNextValue has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/CandlestickPatterns/HikkakeModified.cs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe20423b3effd83b5f13166b83768bd438e22d5a948b366c5329408973c8ef7"}},{"ruleId":"D2","level":"warning","message":{"text":"AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm.OnData (cognitive 40): AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm.OnData has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f1001936a277f7bfa7b901b567bcf167f2b607c87d8b78739a0cd6ebd06bb7"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionStrategyPositionGroupBuyingPowerModel.GetInitialMarginRequirement (cognitive 39): OptionStrategyPositionGroupBuyingPowerModel.GetInitialMarginRequirement has cognitive complexity 39 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf28d799abb211c862f71e07de15637f0f25dfa4e5ee52c56a8da45539d5a07"}},{"ruleId":"D2","level":"warning","message":{"text":"UniverseExtensions.RunUniverseDownloader (cognitive 38): UniverseExtensions.RunUniverseDownloader has cognitive complexity 38 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 6 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":"Common/Data/UniverseSelection/UniverseExtensions.cs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4cc9433dbf47f033f44ce9c7c1bf99bb11f8f0285e4628ddc408724237b08b"}},{"ruleId":"D2","level":"warning","message":{"text":"OptimizationModes.Find (cognitive 38): OptimizationModes.Find has cognitive complexity 38 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Optimizer/Analysis/OptimizationModes.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3128407e7cca454b22297df274707a4576065296ea839421fd32672c9bacfe84"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.CreateConsolidator (cognitive 37): QCAlgorithm.CreateConsolidator has cognitive complexity 37 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Indicators.cs"},"region":{"startLine":4243}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7d1cc2d6a263ae43814d9b9ead153f990cd9218225d9bb29f7dec1901f93e0"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.OnEndOfTimeStep (cognitive 37): QCAlgorithm.OnEndOfTimeStep has cognitive complexity 37 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Universe.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d6631966798e0f081cf8c2f062717aa95f2e2363fc2de782048ed9dc21e9a9"}},{"ruleId":"D2","level":"warning","message":{"text":"PeriodCountConsolidatorBase.Update (cognitive 37): PeriodCountConsolidatorBase.Update has cognitive complexity 37 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Consolidators/PeriodCountConsolidatorBase.cs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a697b100a1bf3b0d436934205c61fee5bb71325d2dbe9f2ef2de69b4c255c61"}},{"ruleId":"D2","level":"warning","message":{"text":"SplitEquityRegressionAlgorithm.OnEndOfAlgorithm (cognitive 37): SplitEquityRegressionAlgorithm.OnEndOfAlgorithm has cognitive complexity 37 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/SplitEquityRegressionAlgorithm.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"95320a1d4ef0cc71d7c9cc7381fff32ec6b15e1716e5c0ef2918dc37fe526f47"}},{"ruleId":"D2","level":"warning","message":{"text":"FillForwardEnumerator.MoveNext (cognitive 36): FillForwardEnumerator.MoveNext has cognitive complexity 36 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/FillForwardEnumerator.cs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"831d58c114b8f74179470972670db1e10384a19dac5b81854fb7411edd024132"}},{"ruleId":"D2","level":"warning","message":{"text":"SynchronizingEnumerator.GetBruteForceMethod (cognitive 36): SynchronizingEnumerator.GetBruteForceMethod has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/SynchronizingEnumerator.cs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"86688e6b68e5b0ab769b1424f6f7bfc7a972a5a407b4ccde9f7b0baabd61a753"}},{"ruleId":"D2","level":"warning","message":{"text":"SecuritySessionWithFuturesRegressionAlgorithm.AccumulateSessionData (cognitive 36): SecuritySessionWithFuturesRegressionAlgorithm.AccumulateSessionData has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/SecuritySessionWithFuturesRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09729399f3bb32475ee1e26367196c124cd5a1bac80d31e2257a135efc4cd50"}},{"ruleId":"D2","level":"warning","message":{"text":"RegressionResultHandler.ProcessSynchronousEvents (cognitive 35): RegressionResultHandler.ProcessSynchronousEvents has cognitive complexity 35 (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":"Engine/Results/RegressionResultHandler.cs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac876b6af7d0797e6435ea795cb2e8890cbfe4785d0f36f0db91a32f2672e3b8"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlgorithm.OnEndOfAlgorithm (cognitive 35): HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlgorithm.OnEndOfAlgorithm has cognitive complexity 35 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"Algorithm.CSharp/HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d34edfd32d4e0f8ae20dbad8e2e886402e3044c40dbdf20bfd952b5bc6cab9"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityService.CreateSecurity (cognitive 34): SecurityService.CreateSecurity has cognitive complexity 34 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityService.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"697060302c51d78f6332ea6dd266db666bf45b33b98e33639ce74ce4351b3664"}},{"ruleId":"D2","level":"warning","message":{"text":"Hikkake.ComputeNextValue (cognitive 34): Hikkake.ComputeNextValue has cognitive complexity 34 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/CandlestickPatterns/Hikkake.cs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b7394dea750db03356dfcd995db79c0fef31eb3845af4b7813d774bfa6ffb6"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTemplateMultiAssetAlgorithm.OnData (cognitive 34): BasicTemplateMultiAssetAlgorithm.OnData has cognitive complexity 34 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicTemplateMultiAssetAlgorithm.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f3b529b154c9af609ae1e5237fe786068ab31d19617bd72111d6c67691de7e"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateOrderRegressionAlgorithm.OnData (cognitive 34): UpdateOrderRegressionAlgorithm.OnData has cognitive complexity 34 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/UpdateOrderRegressionAlgorithm.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69a01fcf4b356d35e1db574d3d64dea3bc4d1909dd29fb18488d67753944707"}},{"ruleId":"D2","level":"warning","message":{"text":"KaikoDataConverterProgram.KaikoDataConverter (cognitive 34): KaikoDataConverterProgram.KaikoDataConverter has cognitive complexity 34 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/KaikoDataConverter/KaikoDataConverterProgram.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec258423c979cb7e0cfc094d20d2a39c211b11e5b76351c708493d6654d31829"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionRenameDailyRegressionAlgorithm.OnData (cognitive 33): OptionRenameDailyRegressionAlgorithm.OnData has cognitive complexity 33 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 2 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":"Algorithm.CSharp/OptionRenameDailyRegressionAlgorithm.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"543398ea06cdd92dbc08f3127387a51146bd455938a4fd77ccd7d384eef4485a"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionRenameRegressionAlgorithm.OnData (cognitive 33): OptionRenameRegressionAlgorithm.OnData has cognitive complexity 33 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 2 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":"Algorithm.CSharp/OptionRenameRegressionAlgorithm.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aad8b57137d029ddda40be2d3366acd574d7e43dae3b20215f4910442755128"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateOrderLiveTestAlgorithm.OnData (cognitive 33): UpdateOrderLiveTestAlgorithm.OnData has cognitive complexity 33 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/UpdateOrderLiveTestAlgorithm.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cc7d6bccd4711be2fa50131f8eaf19ba82f620cea40cb3236579a5bf6d7c58"}},{"ruleId":"D2","level":"warning","message":{"text":"BacktestingResultHandler.SampleRange (cognitive 32): BacktestingResultHandler.SampleRange has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/BacktestingResultHandler.cs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"63103060db7f4a9041901a3361ad4eea89f781c43e7493a5e325dd9893507dd2"}},{"ruleId":"D2","level":"warning","message":{"text":"EquityFillModel.GetBestEffortAskPrice (cognitive 32): EquityFillModel.GetBestEffortAskPrice has cognitive complexity 32 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24d6efdb07cf85a31ef57bf05b6d5b484e1bced53d89f6b49743f35117c9f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"EquityFillModel.GetBestEffortBidPrice (cognitive 32): EquityFillModel.GetBestEffortBidPrice has cognitive complexity 32 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60ff82e164a5d1c81e6b1e40ffbe248e925d423361326751e5f226e7f4510ff"}},{"ruleId":"D2","level":"warning","message":{"text":"PandasData.ToPandasDataFrame (cognitive 32): PandasData.ToPandasDataFrame has cognitive complexity 32 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PandasData.cs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a4e8fe67218012c3b1d722cca61318f3064cb607c9ca1a8083ffa55be2c3f2"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeBuilder.ProcessFillUsingFillToFill (cognitive 32): TradeBuilder.ProcessFillUsingFillToFill has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Statistics/TradeBuilder.cs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"8078f0fa33c5d228e4e3eee3cebb7f943d3d4b6bd68eea537d8a0d31363ecbe8"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseResultsHandler.GenerateStatisticsResults (cognitive 31): BaseResultsHandler.GenerateStatisticsResults has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/BaseResultsHandler.cs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9f77324eeba48529ab93e37f320e94d54a6ec0d165c2bf9049b73f855350b4"}},{"ruleId":"D2","level":"warning","message":{"text":"EquityFillModel.MarketOnOpenFill (cognitive 31): EquityFillModel.MarketOnOpenFill has cognitive complexity 31 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"249660b97a9bd459cb2b117eec7b2da512c6dcc2838fdbb3cbd543bd3f0cee7b"}},{"ruleId":"D2","level":"warning","message":{"text":"QLOptionPriceModel.Evaluate (cognitive 31): QLOptionPriceModel.Evaluate has cognitive complexity 31 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/QLOptionPriceModel.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1f13c973b142c6943b977c8fa91a7930f3a375b068b515312785439e96bbb4"}},{"ruleId":"D2","level":"warning","message":{"text":"SeriesSampler.SampleSeries (cognitive 31): SeriesSampler.SampleSeries has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/SeriesSampler.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06e521c50d5cb53d1e2bc8e38bc4a367964be6d6a2c8e1f178847d662b4c0f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Log.VarDump (cognitive 31): Log.VarDump has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Logging/Log.cs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18d5bb32506ed6265b8f3f39b96b064165b0a1df130fb6f51bf32bc5026dc1b"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalObjectStore.GetObjectStoreEntries (cognitive 30): LocalObjectStore.GetObjectStoreEntries has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Storage/LocalObjectStore.cs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"972b863b7293480923aead3ea4254a423b7bd98963b64678e6d273c80f3daf9c"}},{"ruleId":"D2","level":"warning","message":{"text":"Tick.Tick.ctor (cognitive 30): Tick.Tick.ctor has cognitive complexity 30 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Market/Tick.cs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4e4ce252872a0fa0cb8e1c66a8ffb09dca9ec83554a2e3dcca2ec7cbef69d6"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeBuilder.ProcessFillUsingFlatToFlat (cognitive 30): TradeBuilder.ProcessFillUsingFlatToFlat has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Statistics/TradeBuilder.cs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e13602d6e773c38ae4aeed732a5de38a2412ccf54e47d3b11ba4a405e7b768f"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeBuilder.ProcessFillUsingFlatToReduced (cognitive 30): TradeBuilder.ProcessFillUsingFlatToReduced has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Statistics/TradeBuilder.cs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8324c13f6ebaf054ddabbc231b0c96877590c7bdf81018c9c3209941b7541bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduledEnumerator.MoveNext (cognitive 29): ScheduledEnumerator.MoveNext has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/ScheduledEnumerator.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"910fd241b716436732e43dec07b4fe89dd4d954809d6270b6e8cfc6b0d71b0f0"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveSynchronizer.StreamData (cognitive 29): LiveSynchronizer.StreamData has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/LiveSynchronizer.cs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc33cef96393c6a31ca0b1d76bc3fbece16dc4f6396b7b58254993d9ab30d43"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionDataReader.Initialize (cognitive 29): SubscriptionDataReader.Initialize has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/SubscriptionDataReader.cs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8376c6fd9db9dbe8dbd9820e6e34f1266072ed8896e42bff2b4a0a01c02d911"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomUniverseWithBenchmarkRegressionAlgorithm.OnData (cognitive 29): CustomUniverseWithBenchmarkRegressionAlgorithm.OnData has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/CustomUniverseWithBenchmarkRegressionAlgorithm.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"78758a166e04814988462a21563670fd0b19d9602f437784d0ca10195121f800"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveAuxiliaryDataSynchronizingEnumerator.DataPointEmitted (cognitive 28): LiveAuxiliaryDataSynchronizingEnumerator.DataPointEmitted has cognitive complexity 28 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/LiveAuxiliaryDataSynchronizingEnumerator.cs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"734a2aa96eeb0ef766c0c663f0ce1ab64ed57c69b5a75ece5c7e659696de0a04"}},{"ruleId":"D2","level":"warning","message":{"text":"UniverseSelection.AddPendingInternalDataFeeds (cognitive 28): UniverseSelection.AddPendingInternalDataFeeds has cognitive complexity 28 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/UniverseSelection.cs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c62ebb802ba14a417fc5a45f15a8e3c886225788eb35585abeafe2bde7225e"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityExchangeHours.GetMarketHours (cognitive 28): SecurityExchangeHours.GetMarketHours has cognitive complexity 28 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityExchangeHours.cs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6dba8d3197ba520b87087614ebd50adf66749c621ac978ff4aa2fce7c5b515"}},{"ruleId":"D2","level":"warning","message":{"text":"LeanData.TryParsePath (cognitive 28): LeanData.TryParsePath has cognitive complexity 28 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/LeanData.cs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0492791e9555530c0cd0c2be0fb9a45cb6284d3a4fed6eb6f4ce5dcad807d50"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionChainUniverseRemovalRegressionAlgorithm.OnSecuritiesChanged (cognitive 28): OptionChainUniverseRemovalRegressionAlgorithm.OnSecuritiesChanged has cognitive complexity 28 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/OptionChainUniverseRemovalRegressionAlgorithm.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3561fcfe57838a41ceaed81765700434e7a551147524e3cb2c3e81f602f14478"}},{"ruleId":"D2","level":"warning","message":{"text":"Extensions.Scale (cognitive 27): Extensions.Scale has cognitive complexity 27 (threshold 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Extensions.cs"},"region":{"startLine":3745}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af133a6c77d8d5d7f4ea3c6151d9c3df605e7274a2bc99f6d39bce5a4b1d75f"}},{"ruleId":"D2","level":"warning","message":{"text":"Serie.Add (cognitive 27): Serie.Add has cognitive complexity 27 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PandasData.cs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d45429ec7c6f36d5efd5780f2447d742cc662463f620f55f5bf05ab46ce7b1a"}},{"ruleId":"D2","level":"warning","message":{"text":"WarmupDailyResolutionRegressionAlgorithm.OnData (cognitive 27): WarmupDailyResolutionRegressionAlgorithm.OnData has cognitive complexity 27 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/WarmupDailyResolutionRegressionAlgorithm.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45a8834688af3c4d9ae2af02d4a90e09f1f6b230624573c1b47c847e6b90553"}},{"ruleId":"D2","level":"warning","message":{"text":"SynchronizingHistoryProvider.CreateSliceEnumerableFromSubscriptions (cognitive 26): SynchronizingHistoryProvider.CreateSliceEnumerableFromSubscriptions has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/HistoricalData/SynchronizingHistoryProvider.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"066e46ccdae425b9e872778fc31c5b52a22f3ae4ecaadd130823fd5bb6a8b163"}},{"ruleId":"D2","level":"warning","message":{"text":"QuoteBarConsolidator.AggregateBar (cognitive 26): QuoteBarConsolidator.AggregateBar has cognitive complexity 26 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Consolidators/QuoteBarConsolidator.cs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae286659992711bdb805f5015e47d594109c130af5ca3ab7487759096360ecf6"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityPortfolioModel.ProcessFill (cognitive 26): SecurityPortfolioModel.ProcessFill has cognitive complexity 26 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityPortfolioModel.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda74077c86db5142c3731a1bd57fdfc987416c0ccd773c460135ce4abd97dad"}},{"ruleId":"D2","level":"warning","message":{"text":"BacktestingBrokerage.ProcessDelistings (cognitive 26): BacktestingBrokerage.ProcessDelistings has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/Backtesting/BacktestingBrokerage.cs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e977e946627bbb375f511f59c8b0faac448c149c0ef9f1783d2808c2d3ffd5"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSocketClientWrapper.HandleConnection (cognitive 26): WebSocketClientWrapper.HandleConnection has cognitive complexity 26 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/WebSocketClientWrapper.cs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b462d350d99ae1bbca2d23fe7deb434b161220db0d28b6968daf6afa3240db57"}},{"ruleId":"D2","level":"warning","message":{"text":"AddOptionContractExpiresRegressionAlgorithm.OnData (cognitive 26): AddOptionContractExpiresRegressionAlgorithm.OnData has cognitive complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AddOptionContractExpiresRegressionAlgorithm.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"466fdb3a19f41eea5b84d91eb1281ab774aab2c9b3636a85be947b907854b4bb"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTemplateCryptoAlgorithm.OnData (cognitive 26): BasicTemplateCryptoAlgorithm.OnData has cognitive complexity 26 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"Algorithm.CSharp/BasicTemplateCryptoAlgorithm.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab20ccac1c37bd4c3420848dcdf25a95f8b8b30ac354ef7b9a920aa1fc841ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ContinuousFutureRolloverBaseRegressionAlgorithm.OnData (cognitive 26): ContinuousFutureRolloverBaseRegressionAlgorithm.OnData has cognitive complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ContinuousFutureRolloverBaseRegressionAlgorithm.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cb1dff44aefda7fa01daa624082492609b842704c1278cbf7d5c9388f83f99"}},{"ruleId":"D2","level":"warning","message":{"text":"FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgorithm.OnData (cognitive 26): FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgorithm.OnData has cognitive complexity 26 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgorithm.cs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb8c95243a96912373d5460ae5354f01047996a4b2590be5f80b35cde5f94f9"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityInitializationOnReAdditionForSelectedOptionRegressionAlgorithm.OnSecuritiesChanged (cognitive 26): SecurityInitializationOnReAdditionForSelectedOptionRegressionAlgorithm.OnSecuritiesChanged has cognitive complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/SecurityInitializationOnReAdditionForSelectedOptionRegressionAlgorithm.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1dc8af9acb19648546f9dbfe667a6ae11ec8ba2b46229fb812e807d50087d9"}},{"ruleId":"D2","level":"warning","message":{"text":"LeanDataReader.Parse (cognitive 26): LeanDataReader.Parse has cognitive complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"ToolBox/LeanDataReader.cs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e532d12290cdd5c6609f3e21531e5e7797f666714a62ff872ea368a7884a4edd"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.RemoveSecurity (cognitive 25): QCAlgorithm.RemoveSecurity has cognitive complexity 25 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":2592}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f8c18ec2fae546f794c9fe7f01926a524ebb1d09375e4dbf8dedc6794bb459"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceExtensions.PushThrough (cognitive 25): SliceExtensions.PushThrough has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/SliceExtensions.cs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af8b215518556c67dab668550f0964f984bb97324eb4d1ddb37644602c0ffa8"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoizingEnumerable.GetEnumerator (cognitive 25): MemoizingEnumerable.GetEnumerator has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/MemoizingEnumerable.cs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb48d499cea1148cc9b82c4879ccd91d37e9e6d77fcff985eb88a24f33c4147d"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.Flatten (cognitive 25): Config.Flatten has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Configuration/Config.cs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a52d085fc5621ac2ff9b34086f319e852581686cbce35bb0909174a153aa611"}},{"ruleId":"D2","level":"warning","message":{"text":"AdjustedVolumeRegressionAlgorithm.OnData (cognitive 25): AdjustedVolumeRegressionAlgorithm.OnData has cognitive complexity 25 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AdjustedVolumeRegressionAlgorithm.cs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"95eda42dacbb9cf96be105c8024891a1401250d8534e70f6923b6595842544f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ContinuousFutureRegressionAlgorithm.OnData (cognitive 25): ContinuousFutureRegressionAlgorithm.OnData has cognitive complexity 25 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ContinuousFutureRegressionAlgorithm.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bfbe072003b1e178119dabfa5f44a818d1b891684dcee498c091fd1f69a847"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionPriceModelForOptionStylesBaseRegressionAlgorithm.CheckGreeks (cognitive 25): OptionPriceModelForOptionStylesBaseRegressionAlgorithm.CheckGreeks has cognitive complexity 25 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/OptionPriceModelForOptionStylesBaseRegressionAlgorithm.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f35fae62e07e7690dc3f6fdf65c337126d1e2231abd78593fe8866e1b390ea8"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiDataProvider.NeedToDownload (cognitive 24): ApiDataProvider.NeedToDownload has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/ApiDataProvider.cs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2505d8132d3689f5609f815be6c6f5e2f6c66f527ed7bae9e281199ecee314dd"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseDataExchange.ConsumeEnumerators (cognitive 24): BaseDataExchange.ConsumeEnumerators has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/BaseDataExchange.cs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c32fe8d281ed925e62c7a13774b60fa49c5281206287b6ea471f268f6ea0843"}},{"ruleId":"D2","level":"warning","message":{"text":"DataQueueHandlerManager.Subscribe (cognitive 24): DataQueueHandlerManager.Subscribe has cognitive complexity 24 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/DataQueueHandlerManager.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a126291de0a9a1ce3696c49e964d72dbbfb875ff0c9a4966a43c6563c4eddbe1"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerageSetupHandler.Setup (cognitive 24): BrokerageSetupHandler.Setup has cognitive complexity 24 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. 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":"Engine/Setup/BrokerageSetupHandler.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11204aaf1bd95eea86c5eea7b2f14372924c14b24a8e9ada6132051e020cac1"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.Liquidate (cognitive 24): QCAlgorithm.Liquidate has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60d835d539b628b2ce70835f31580212bf0610d03ef5fc29fe61d125a3ea916"}},{"ruleId":"D2","level":"warning","message":{"text":"Extensions.Batch (cognitive 24): Extensions.Batch has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Extensions.cs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e805b0eb670f556df0466e04c9b79c078eba4f50ff20f6769f3a291a739edcf"}},{"ruleId":"D2","level":"warning","message":{"text":"LeanDataPathComponents.Parse (cognitive 24): LeanDataPathComponents.Parse has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/LeanDataPathComponents.cs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a6fbe2e05e8ef885fd60083a6c61d4968eb841931ab42d60d753823baf9b63"}},{"ruleId":"D2","level":"warning","message":{"text":"ContinuousFutureBackMonthRegressionAlgorithm.OnData (cognitive 24): ContinuousFutureBackMonthRegressionAlgorithm.OnData has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ContinuousFutureBackMonthRegressionAlgorithm.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87f3c07c5b939bfe43ce8d8da54603a70faed707d9eaea1cf0bdd21fd88b1b9"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryAuxiliaryDataRegressionAlgorithm.Initialize (cognitive 24): HistoryAuxiliaryDataRegressionAlgorithm.Initialize has cognitive complexity 24 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/HistoryAuxiliaryDataRegressionAlgorithm.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d47471d9a59294272ba7d3e72663e90a66be7b96934d4e29147bcee4bdb92bc"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.Main (cognitive 24): Program.Main has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Report/Program.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96ec13991a7dd10a35e21005a48ca6a6a8cde63f45f7b8984f91f3e358ab6e6"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionSubscriptionDataSourceReader.Read (cognitive 23): CollectionSubscriptionDataSourceReader.Read has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/CollectionSubscriptionDataSourceReader.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8382068e57ef71c4e83bcf7a3217a175a12ace5b00263233f6f6df40ad1471c"}},{"ruleId":"D2","level":"warning","message":{"text":"DataManager.RemoveSubscriptionInternal (cognitive 23): DataManager.RemoveSubscriptionInternal has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/DataManager.cs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e51d0bba119b21504091f91617bf4c5669ce4081175dfda9ed28ec61fbf562"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionUtils.CreateAndScheduleWorker (cognitive 23): SubscriptionUtils.CreateAndScheduleWorker has cognitive complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 91, 168). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/SubscriptionUtils.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb44927d0ba29b47c878d69416a848f7b190d460894b902c718bcd50afb2fb8c"}},{"ruleId":"D2","level":"warning","message":{"text":"RenkoConsolidator.Update (cognitive 23): RenkoConsolidator.Update has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Consolidators/RenkoConsolidator.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"41349e96d594f878ce52d7b73f42ae664c31318983b8ffc1414975c096fbbe6b"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloaderExtensions.GetDataDownloaderParameterForAllMappedSymbols (cognitive 23): DownloaderExtensions.GetDataDownloaderParameterForAllMappedSymbols has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/DownloaderExtensions.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58d21770c3b42bf5f6e839e5a44253534170eb67012d7e20ee073a7b316e068"}},{"ruleId":"D2","level":"warning","message":{"text":"EquityFillModel.MarketOnCloseFill (cognitive 23): EquityFillModel.MarketOnCloseFill has cognitive complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"a847be844b8d722c9fa5d45a4e20fefcb2746ffb647cc10486bd133644fc1258"}},{"ruleId":"D2","level":"warning","message":{"text":"FillModel.Fill (cognitive 23): FillModel.Fill has cognitive complexity 23 (threshold 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b60677b2f87003d55710633eb810f4f160108a7008449eb15d4db5eccad8bd"}},{"ruleId":"D2","level":"warning","message":{"text":"CashBuyingPowerModel.GetMaximumOrderQuantityForTargetBuyingPower (cognitive 23): CashBuyingPowerModel.GetMaximumOrderQuantityForTargetBuyingPower has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/CashBuyingPowerModel.cs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a59e1630d7a4ea5fc89271d248805bc82611bd42974fff0fb47cb2fdd724577"}},{"ruleId":"D2","level":"warning","message":{"text":"BubbleAlgorithm.OnData (cognitive 23): BubbleAlgorithm.OnData has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BubbleAlgorithm.cs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7ccb45cfc3bcbdebf4571c2c17a3eac40c48498dd1357d0f4f2e71fef28807"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstituentsUniverseRegressionAlgorithm.OnData (cognitive 23): ConstituentsUniverseRegressionAlgorithm.OnData has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ConstituentsUniverseRegressionAlgorithm.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"832d4093d15ab1ef27de98a67a268f0f32c7a2ff3fa020f0b5e70c8a550d4710"}},{"ruleId":"D2","level":"warning","message":{"text":"IndicatorBasedOptionPricingModelRegressionAlgorithm.OnData (cognitive 23): IndicatorBasedOptionPricingModelRegressionAlgorithm.OnData has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/IndicatorBasedOptionPricingModelRegressionAlgorithm.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"76505f78313633a5de362aa2692781ce220fe1c051f51a44e7d664d2cb21b5e1"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionSplitRegressionAlgorithm.OnData (cognitive 23): OptionSplitRegressionAlgorithm.OnData has cognitive complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"Algorithm.CSharp/OptionSplitRegressionAlgorithm.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bf5c998d1515c3f38781cf9ad0a2ad1335361580019c2ab6b52cd3253647d4"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionFilterEnumerator.MoveNext (cognitive 22): SubscriptionFilterEnumerator.MoveNext has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/SubscriptionFilterEnumerator.cs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60408f5a60ceef5e57dd12b310b0d29b3c56bf7f7332a47f6dc6b5cba9c1530"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.GetResolution (cognitive 22): QCAlgorithm.GetResolution has cognitive complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"261ada44558ef934e7fad4f32514759d8ed994d0fa5d0f8af2e6cde56430cdca"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicData.SetProperty (cognitive 22): DynamicData.SetProperty has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/DynamicData.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c77a4743605796adf68f67ce61ebbd09ad15976c342d903f599c60eadf6497a"}},{"ruleId":"D2","level":"warning","message":{"text":"Isolator.MonitorTask (cognitive 22): Isolator.MonitorTask has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Isolator.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c56dfd28f3aef6dd0f1f42cfbcadba8d03d8178ecd734e872d2601ca90a7717"}},{"ruleId":"D2","level":"warning","message":{"text":"EquityFillModel.StopLimitFill (cognitive 22): EquityFillModel.StopLimitFill has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd92a71a5a8751d07ea4e0421a6e4be5133cb660a0da2824cf211d241b04a800"}},{"ruleId":"D2","level":"warning","message":{"text":"FillModel.StopLimitFill (cognitive 22): FillModel.StopLimitFill has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3a43025d9353adf83e323013ccfa519201fa66bc16e444802fd2e7cb5adf6c"}},{"ruleId":"D2","level":"warning","message":{"text":"FillModel.LimitIfTouchedFill (cognitive 22): FillModel.LimitIfTouchedFill has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a7d979d569fdd9467d80eb9bea77bd1e9b297fdb4933a619287f35044ebd34"}},{"ruleId":"D2","level":"warning","message":{"text":"PandasData.ToPandasDataFrame (cognitive 22): PandasData.ToPandasDataFrame has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PandasData.cs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0ad90f1df48be00a9517b2a49b042e1074421cf68ac2366ba88bcaa6faba78"}},{"ruleId":"D2","level":"warning","message":{"text":"AdvanceBlock.ComputeNextValue (cognitive 22): AdvanceBlock.ComputeNextValue has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/CandlestickPatterns/AdvanceBlock.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d02f67dae2066d78ef3d7a18798fdab3f19d70670f63687fe23e41ef016f203"}},{"ruleId":"D2","level":"warning","message":{"text":"JobQueue.NextJob (cognitive 22): JobQueue.NextJob has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Queues/JobQueue.cs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ab62f7752bd61a22719861967355a4156607e878460712adf92f7d97691e88"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTemplateIndexOptionsAlgorithm.OnData (cognitive 22): BasicTemplateIndexOptionsAlgorithm.OnData has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicTemplateIndexOptionsAlgorithm.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"498fd42b42068a703b1392dd3e0dbda8f9c572cce35a2b576467ba4f436e2477"}},{"ruleId":"D2","level":"warning","message":{"text":"DuplicateOptionAssignmentRegressionAlgorithm.OnOrderEvent (cognitive 22): DuplicateOptionAssignmentRegressionAlgorithm.OnOrderEvent has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/DuplicateOptionAssignmentRegressionAlgorithm.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0cac65e128cd8bbaccc24cdf7d4473c55765968150cb1cdc21c1ab7eb58b6e"}},{"ruleId":"D2","level":"warning","message":{"text":"UnsettledCashWhenQuoteCurrencyIsNotAccountCurrencyAlgorithm.OnEndOfAlgorithm (cognitive 22): UnsettledCashWhenQuoteCurrencyIsNotAccountCurrencyAlgorithm.OnEndOfAlgorithm has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/UnsettledCashWhenQuoteCurrencyIsNotAccountCurrencyAlgorithm.cs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ef2e073bacfa9f637941c3cd509104706fdab68ca70bb85fc324641d5039af"}},{"ruleId":"D2","level":"warning","message":{"text":"AlgoSeekFuturesConverter.Convert (cognitive 22): AlgoSeekFuturesConverter.Convert has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 86, 71). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/AlgoSeekFuturesConverter/AlgoSeekFuturesConverter.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c656d7a163d733acda9037da5cbc2c8ac1d0a7e28409e77efc79ccbad59f9d"}},{"ruleId":"D2","level":"warning","message":{"text":"QuantBook.OptionHistory (cognitive 22): QuantBook.OptionHistory has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"344b9dc22771a7e44ed0dbe2c38eb1d582e48c1999a2b15d506a1b1d055eaca7"}},{"ruleId":"D2","level":"warning","message":{"text":"NullResultValueTypeJsonConverter.ReadJson (cognitive 22): NullResultValueTypeJsonConverter.ReadJson has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Report/NullResultValueTypeJsonConverter.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0729e4339b25e8eebd042bd03a2dd3e1bc7a860767d0ecd4ac4572a42b56e02c"}},{"ruleId":"D2","level":"warning","message":{"text":"AlgorithmManager.HandleSplits (cognitive 21): AlgorithmManager.HandleSplits has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/AlgorithmManager.cs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"8274650935f4ac50d6ea5ab012c893b50ab6fbd5916e1ed4b37ffa3649ca69a9"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseDataCollectionAggregatorEnumerator.MoveNext (cognitive 21): BaseDataCollectionAggregatorEnumerator.MoveNext has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/BaseDataCollectionAggregatorEnumerator.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f35980c16d37fb0c050c8c7b56cbd6ebe17cf9aa2dbfe95333fe56538b1a33"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTradingDataFeed.GetHistoryWarmupEnumerator (cognitive 21): LiveTradingDataFeed.GetHistoryWarmupEnumerator has cognitive complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 505, 554, 530). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/LiveTradingDataFeed.cs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68bfbda2ab8ff4009612b30856ac017bb472f630578b7f0616218bfb69f7a15"}},{"ruleId":"D2","level":"warning","message":{"text":"Synchronizer.StreamData (cognitive 21): Synchronizer.StreamData has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Synchronizer.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b91ed59ab1cf32aaf84e94315e4395e90fe4d7eb839b3b9c3eef502c8ff1b8f"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryProviderManager.GetHistory (cognitive 21): HistoryProviderManager.GetHistory has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/HistoricalData/HistoryProviderManager.cs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"49198df3bfe875899763b12743c9fe502d8ee424842e969f41394e1e04ffddf3"}},{"ruleId":"D2","level":"warning","message":{"text":"OptimizationBacktestJsonConverter.WriteJson (cognitive 21): OptimizationBacktestJsonConverter.WriteJson has cognitive complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"Common/Api/OptimizationBacktestJsonConverter.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"079a8d1abe62e2410326095c96e0a6c42998b793c769162731531d5806fac40c"}},{"ruleId":"D2","level":"warning","message":{"text":"Tick.Tick.ctor (cognitive 21): Tick.Tick.ctor has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Market/Tick.cs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f8d5603a15bfd9f5ab4f44376350a314b88b89c7bca238bde694b76dcee412"}},{"ruleId":"D2","level":"warning","message":{"text":"PortfolioStatistics.PortfolioStatistics.ctor (cognitive 21): PortfolioStatistics.PortfolioStatistics.ctor has cognitive complexity 21 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Statistics/PortfolioStatistics.cs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b7f4f95b90e0eed28ae2d014aff50e0f4244f2ab103d01e726ca8204038bbb"}},{"ruleId":"D2","level":"warning","message":{"text":"CoarseFineOptionUniverseChainRegressionAlgorithm.OnData (cognitive 21): CoarseFineOptionUniverseChainRegressionAlgorithm.OnData has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/CoarseFineOptionUniverseChainRegressionAlgorithm.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ba9afe15c41c66127c545bd326fc8f14b329f01349f802115b8031ca8d4297"}},{"ruleId":"D2","level":"warning","message":{"text":"ContinuousBackMonthRawFutureRegressionAlgorithm.OnData (cognitive 21): ContinuousBackMonthRawFutureRegressionAlgorithm.OnData has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ContinuousBackMonthRawFutureRegressionAlgorithm.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9231b9f57732492c4a0bdfc382b68da78e0a70a2d5f8091abd6fac3bda9bfa8e"}},{"ruleId":"D2","level":"warning","message":{"text":"IndicatorSelectorsWorkWithDifferentOptions.OnData (cognitive 21): IndicatorSelectorsWorkWithDifferentOptions.OnData has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/IndicatorSelectorsWorkWithDifferentOptions.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fd1aff93a3567ca721333ae6cba6f0a44d3e25830055a72a4189fd9e442f30"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveOptionChainProvider.GetOptionContractList (cognitive 20): LiveOptionChainProvider.GetOptionContractList has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/LiveOptionChainProvider.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b97c05a0735ea1f178db6ad137ad31ff0c46a2b1b27120ad46451b8b1e2430b"}},{"ruleId":"D2","level":"warning","message":{"text":"WeightedWorkQueue.WorkerThread (cognitive 20): WeightedWorkQueue.WorkerThread has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/WorkScheduling/WeightedWorkQueue.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2e8b1a0664030b80a98c325b465604468e605a10e60faa762869be606fac9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ZipDataCacheProvider.Fetch (cognitive 20): ZipDataCacheProvider.Fetch has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/ZipDataCacheProvider.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c2169cb491fc6c9f13445027b678eb90ceaecac8c6fda930288742e790baaf"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.TryGetWarmupHistoryStartTime (cognitive 20): QCAlgorithm.TryGetWarmupHistoryStartTime has cognitive complexity 20 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"828fc5bdabdeae85982487b8aa666cd6f88e2f74979c68c939697a854d8b2239"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.WarmUpIndicatorImpl (cognitive 20): QCAlgorithm.WarmUpIndicatorImpl has cognitive complexity 20 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Indicators.cs"},"region":{"startLine":3589}}}],"partialFingerprints":{"codehealthFindingId/v1":"675488b60bed91b2b8aca4b6776cecdbc78564552a5e4b6ae26610aea10b6949"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.MarketOrder (cognitive 20): QCAlgorithm.MarketOrder has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd8b92dff26484804a6feb311045faa519fddf40a3ba7eb99ea93f8a0eb7856"}},{"ruleId":"D2","level":"warning","message":{"text":"CapacityEstimate.UpdateMarketCapacity (cognitive 20): CapacityEstimate.UpdateMarketCapacity has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/CapacityEstimate.cs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"808430236fc23a15944f051238e4f4d9ca92107ce72aa252eb33a3fd91368ff1"}},{"ruleId":"D2","level":"warning","message":{"text":"LatestPriceFillModel.GetPrices (cognitive 20): LatestPriceFillModel.GetPrices has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/LatestPriceFillModel.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c212a68324b0195aa3b4e3b0baa200067b91eda1550eb9c9aa112d68bbce95e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduledEvent.Scan (cognitive 20): ScheduledEvent.Scan has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Scheduling/ScheduledEvent.cs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d0bc1f32608e252dbe79dadee71f1954d2d3baa4e0a0b5c183ee2740d64805"}},{"ruleId":"D2","level":"warning","message":{"text":"FuturesExpiryUtilityFunctions.AddBusinessDays (cognitive 20): FuturesExpiryUtilityFunctions.AddBusinessDays has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Future/FuturesExpiryUtilityFunctions.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa55a44d297cebbd3b253420b11d3a39a970b6e3962f7a40f93ee2b8267ec424"}},{"ruleId":"D2","level":"warning","message":{"text":"Composer.GetExportedValueByTypeName (cognitive 20): Composer.GetExportedValueByTypeName has cognitive complexity 20 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 6 belong to 3 function literals inside it that branch. 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":"Common/Util/Composer.cs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5dd31b231711d6d3e3e36fd74f5e311f5862a427fefe1edd7fb44d43cc74e4"}},{"ruleId":"D2","level":"warning","message":{"text":"IndicatorBasedOptionPriceModel.Evaluate (cognitive 20): IndicatorBasedOptionPriceModel.Evaluate has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/IndicatorBasedOptionPriceModel.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1891a6e140cbe3829ee7e079d92a54a6b6b34b38b60f83d4f9108b1d91a643eb"}},{"ruleId":"D2","level":"warning","message":{"text":"EuropeanOptionsCannotBeExercisedBeforeExpiryRegressionAlgorithm.OnData (cognitive 20): EuropeanOptionsCannotBeExercisedBeforeExpiryRegressionAlgorithm.OnData has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/EuropeanOptionsCannotBeExercisedBeforeExpiryRegressionAlgorithm.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f162aeb25ce6252fe8ab52028914a0c30d6ccfc9cefb683b1cacac915b5a45a"}},{"ruleId":"D2","level":"warning","message":{"text":"TickGenerator.GenerateTicks (cognitive 20): TickGenerator.GenerateTicks has cognitive complexity 20 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/RandomDataGenerator/TickGenerator.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"357130e894e3bcf8070d90a7a2c38f47f8ea611db3f9cfcd58c9ee8118237fa4"}},{"ruleId":"D2","level":"warning","message":{"text":"MaximumSectorExposureRiskManagementModel.ManageRisk (cognitive 20): MaximumSectorExposureRiskManagementModel.ManageRisk has cognitive complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"Algorithm.Framework/Risk/MaximumSectorExposureRiskManagementModel.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0aeebbd074d5e58e1338e9719d9d2de046eac8cd63d0d6cd9187993d6116b2"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeSliceFactory.HandleOptionData (cognitive 19): TimeSliceFactory.HandleOptionData has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/TimeSliceFactory.cs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1242a44bad16727322a7f3ac2207676f61d94e94e98c1a7d4f79d6b4516e7db"}},{"ruleId":"D2","level":"warning","message":{"text":"ZipDataCacheProvider.CreateEntryStream (cognitive 19): ZipDataCacheProvider.CreateEntryStream has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/ZipDataCacheProvider.cs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb52bbd7dbbf64541c75ede8ebe986e4f98a6cb37d1046fb8cdccb10ae0e41f4"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseResultsHandler.ProcessAlgorithmLogsImpl (cognitive 19): BaseResultsHandler.ProcessAlgorithmLogsImpl has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/BaseResultsHandler.cs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55563940413d50042bb5de1007da162db802e07a898430959119dd52cf5b6bf"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingContractFactorProvider.GetPriceFactor (cognitive 19): MappingContractFactorProvider.GetPriceFactor has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Auxiliary/MappingContractFactorProvider.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b4c108038061b40793c15e5d7ffec4a6baf91ca54bb5a7f673c9944f4741fb"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterAttribute.ApplyAttributes (cognitive 19): ParameterAttribute.ApplyAttributes has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Parameters/ParameterAttribute.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4991183f2bd1ef19da74fff17e4639752d422edca7dfef284f708adee91ad1e5"}},{"ruleId":"D2","level":"warning","message":{"text":"PandasData.AddMemberToSeries (cognitive 19): PandasData.AddMemberToSeries has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PandasData.cs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3c2fc6ce01b25c138f7f0e4e5be0933d2d7e0dfe5ea2c25b0136ca39e85b77"}},{"ruleId":"D2","level":"warning","message":{"text":"BuyingPowerModel.GetMaximumOrderQuantityForTargetBuyingPower (cognitive 19): BuyingPowerModel.GetMaximumOrderQuantityForTargetBuyingPower has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/BuyingPowerModel.cs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec4c6607ba62646b5033b04cda577c857f3f0e6727bdd875c7e196f0ec9287a"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalMarketHours.GetMarketClose (cognitive 19): LocalMarketHours.GetMarketClose has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/LocalMarketHours.cs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb99fbfdf56fb09d9549bca68416bfbceb886b9ccf4744a51237d73230ba509c"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityCacheProvider.GetSecurityCache (cognitive 19): SecurityCacheProvider.GetSecurityCache has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityCacheProvider.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6797dce87f204ba5ccac1200035c19ce86e6dc9d61b07b713f0232425ab4a5"}},{"ruleId":"D2","level":"warning","message":{"text":"Brokerage.PerformCashSync (cognitive 19): Brokerage.PerformCashSync has cognitive complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/Brokerage.cs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eec2ff793501f7b218bebce64d6f91e10799daccbc0eb5bfc5fb405c87a0861"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultConnectionHandler.Initialize (cognitive 19): DefaultConnectionHandler.Initialize has cognitive complexity 19 (threshold 15). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 90). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/DefaultConnectionHandler.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"19757161157bfa8afbea6319c6370c61b2f8cfd76b47a82116a03607d8aeffef"}},{"ruleId":"D2","level":"warning","message":{"text":"PairsAlphaModel.CorrelationPairsSelection (cognitive 19): PairsAlphaModel.CorrelationPairsSelection has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/Alphas/GasAndCrudeOilEnergyCorrelationAlpha.cs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6107b5c68087d2780c394eceea8514a36a9b0ea8df3d940690c10f3f077451"}},{"ruleId":"D2","level":"warning","message":{"text":"SetHoldingsFutureRegressionAlgorithm.OnData (cognitive 19): SetHoldingsFutureRegressionAlgorithm.OnData has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/SetHoldingsFutureRegressionAlgorithm.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eecae17be195cf3bdbd47c23be6ea4ea45477c33e4f00c27725e88078e39d96"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortableProviderOrdersRejectedRegressionAlgorithm.OnData (cognitive 19): ShortableProviderOrdersRejectedRegressionAlgorithm.OnData has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ShortableProviderOrdersRejectedRegressionAlgorithm.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca8e88e40122e5a49e66fc7825312da5dc73d67865a94adf53e3aa901aeed45"}},{"ruleId":"D2","level":"warning","message":{"text":"CoarseUniverseGeneratorProgram.Run (cognitive 19): CoarseUniverseGeneratorProgram.Run has cognitive complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 139, 186, 217). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/CoarseUniverseGenerator/CoarseUniverseGeneratorProgram.cs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3f73e92b51d659e1772bc02771f5b73ca5b84cc00bfcbd72056ca35c7898ca"}},{"ruleId":"D2","level":"warning","message":{"text":"AccumulativeInsightPortfolioConstructionModel.DetermineTargetPercent (cognitive 19): AccumulativeInsightPortfolioConstructionModel.DetermineTargetPercent has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Portfolio/AccumulativeInsightPortfolioConstructionModel.cs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"17cc24248773a37ad5b60b7494b7f6af770fd78e49c9886137bfea958569f98c"}},{"ruleId":"D2","level":"warning","message":{"text":"PortfolioLooper.ProcessOrders (cognitive 19): PortfolioLooper.ProcessOrders has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Report/PortfolioLooper/PortfolioLooper.cs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9265abb902c296beb4553a8e4905e73f6d0cca29f82fc872daeffef3ac9ee4"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalSubscriptionManager.AddedSubscriptionRequest (cognitive 18): InternalSubscriptionManager.AddedSubscriptionRequest has cognitive complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/InternalSubscriptionManager.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ef9dd0ad7b3522b02a4b8a619ac550a06812ef42409511ee00ddbbea91a152"}},{"ruleId":"D2","level":"warning","message":{"text":"BacktestingResultHandler.Update (cognitive 18): BacktestingResultHandler.Update has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/BacktestingResultHandler.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a8c64352d1b7a0df7075d456ca8731b5951afffcdb1b66480cc401f3f4bae8"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTradingResultHandler.SampleRange (cognitive 18): LiveTradingResultHandler.SampleRange has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/LiveTradingResultHandler.cs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"c491f6898dbac5509a85f7a34aaa9f0e028523c0142e42ca0b149d2c9ae13da2"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.PostInitialize (cognitive 18): QCAlgorithm.PostInitialize has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"447392bdd5be440699bcd6e2ab440937b2540d7db07cffeaa4964011aaa7b607"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.InitializeInsights (cognitive 18): QCAlgorithm.InitializeInsights has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Framework.cs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f713597b35671e2623b65e08d99bb46e984dd3d77124d87b1da9674d823ce76"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.IndicatorHistory (cognitive 18): QCAlgorithm.IndicatorHistory has cognitive complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 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":"Algorithm/QCAlgorithm.Indicators.cs"},"region":{"startLine":4492}}}],"partialFingerprints":{"codehealthFindingId/v1":"288f0ebf5d19a5141c50f0044b06d01414a3e7c1b3e7feca6dfb71c93849aca9"}},{"ruleId":"D2","level":"warning","message":{"text":"FTXBrokerageModel.CanSubmitOrder (cognitive 18): FTXBrokerageModel.CanSubmitOrder has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/FTXBrokerageModel.cs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba9c62d330936f0e0c417eb7461fa95474a1dff68a20659ce274cbb97a14bef"}},{"ruleId":"D2","level":"warning","message":{"text":"Extensions.ConvertToSymbolEnumerable (cognitive 18): Extensions.ConvertToSymbolEnumerable has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Extensions.cs"},"region":{"startLine":3199}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f2d23e59f1ebdc4bd80943afcba67d89a91c86c62ece22b41126d902cb2d3b"}},{"ruleId":"D2","level":"warning","message":{"text":"BasePythonWrapper.GetPropertyName (cognitive 18): BasePythonWrapper.GetPropertyName has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/BasePythonWrapper.cs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"869c009c5ed0622c6c5be10d00707c5a2779bb18551475d7e732fe0841a117b8"}},{"ruleId":"D2","level":"warning","message":{"text":"FuturesExpiryUtilityFunctions.NthBusinessDay (cognitive 18): FuturesExpiryUtilityFunctions.NthBusinessDay has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Future/FuturesExpiryUtilityFunctions.cs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a5042de41af610afa7ccae126a23bbed2eaf6492596683e8cdecca9ef3e1ee"}},{"ruleId":"D2","level":"warning","message":{"text":"FuturesListings.MonthlyContractListings (cognitive 18): FuturesListings.MonthlyContractListings has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Future/FuturesListings.cs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"67669274ff6a42f94bc87c50c284750f38a014915f8f6efd610c9a03a431bff4"}},{"ruleId":"D2","level":"warning","message":{"text":"PositionGroupBuyingPowerModel.GetMaximumLotsForTargetBuyingPower (cognitive 18): PositionGroupBuyingPowerModel.GetMaximumLotsForTargetBuyingPower has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Positions/PositionGroupBuyingPowerModel.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9a77890950e6e2cf9a56e4f02c7dd77d04c700e120e81f269317070b6ff23a"}},{"ruleId":"D2","level":"warning","message":{"text":"LeanData.GenerateZipEntryName (cognitive 18): LeanData.GenerateZipEntryName has cognitive complexity 18 (threshold 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/LeanData.cs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ddc2dfb4ea2171485e80f766c7fb84cc7edabd2147654dd8784a76e6beb8f9"}},{"ruleId":"D2","level":"warning","message":{"text":"MarketHoursDatabaseEntryJson.Convert (cognitive 18): MarketHoursDatabaseEntryJson.Convert has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/MarketHoursDatabaseJsonConverter.cs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35322b17b9f5faf6ceee4936686c2cf3567925ad68b2860c0a769c4bf1f292d"}},{"ruleId":"D2","level":"warning","message":{"text":"MarketProfile.CalculateValueArea (cognitive 18): MarketProfile.CalculateValueArea has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/MarketProfile.cs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49062fff8834112615ddd45f43bddc89e6ec2d914fccd988990756b42f6cb1e"}},{"ruleId":"D2","level":"warning","message":{"text":"AddFutureOptionContractFromFutureChainRegressionAlgorithm.OnData (cognitive 18): AddFutureOptionContractFromFutureChainRegressionAlgorithm.OnData has cognitive complexity 18 (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":"Algorithm.CSharp/AddFutureOptionContractFromFutureChainRegressionAlgorithm.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c039a6df70ce242bae0b1a091552908b58af87e5aa072c574f7b3beb8e291a6"}},{"ruleId":"D2","level":"warning","message":{"text":"AddOptionContractTwiceRegressionAlgorithm.OnData (cognitive 18): AddOptionContractTwiceRegressionAlgorithm.OnData has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AddOptionContractTwiceRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2e8e73a18b2ccb4b9110d33f26ce6305fcedbfae85cd6ce106887189cb6ee4"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTemplateEurexFuturesAlgorithm.OnOrderEvent (cognitive 18): BasicTemplateEurexFuturesAlgorithm.OnOrderEvent has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicTemplateEurexFuturesAlgorithm.cs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6219faaf546a2ad35812f6a029ff921a4db1e5991b5df397417634e095e7603"}},{"ruleId":"D2","level":"warning","message":{"text":"InsufficientBuyingPowerForAutomaticExerciseRegressionAlgorithm.OnOrderEvent (cognitive 18): InsufficientBuyingPowerForAutomaticExerciseRegressionAlgorithm.OnOrderEvent has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/InsufficientBuyingPowerForAutomaticExerciseRegressionAlgorithm.cs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7c9249f905fea904ca0bc41e7531969e8a68befb63f7f07afdd88db45f05da"}},{"ruleId":"D2","level":"warning","message":{"text":"SplitPartialShareRegressionAlgorithm.OnData (cognitive 18): SplitPartialShareRegressionAlgorithm.OnData has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/SplitPartialShareRegressionAlgorithm.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9e7463717cbc121363e82a92f7700e09e6fb5fde0a82d8de8c531f5e0df6d6"}},{"ruleId":"D2","level":"warning","message":{"text":"WarmupLowerResolutionOptionRegressionAlgorithm.OnData (cognitive 18): WarmupLowerResolutionOptionRegressionAlgorithm.OnData has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/WarmupLowerResolutionOptionRegressionAlgorithm.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc1c0d45efbb6fcf0325145f9de5afa27b8dce887639fe1aa242fb0b5952c6d"}},{"ruleId":"D2","level":"warning","message":{"text":"AlgoSeekFuturesReader.Parse (cognitive 18): AlgoSeekFuturesReader.Parse has cognitive complexity 18 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/AlgoSeekFuturesConverter/AlgoSeekFuturesReader.cs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"17508d7cf2458a7117016b775b0ee02868be9dc9b7b9fd15d1e03d4e9c5f83c3"}},{"ruleId":"D2","level":"warning","message":{"text":"EulerSearchOptimizationStrategy.PushNewResults (cognitive 18): EulerSearchOptimizationStrategy.PushNewResults has cognitive complexity 18 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Optimizer/Strategies/EulerSearchOptimizationStrategy.cs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bd29d6187edf5f0b593e1a4a3482fd7a1995e8bc23fbc7211ae7ca2701d40c"}},{"ruleId":"D2","level":"warning","message":{"text":"AlgorithmManager.Stream (cognitive 17): AlgorithmManager.Stream has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/AlgorithmManager.cs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4632cc873581115d0f9c24689cca0c2a04ebc4b9484827303e8b43894fb049"}},{"ruleId":"D2","level":"warning","message":{"text":"AlgorithmManager.ProcessSplitSymbols (cognitive 17): AlgorithmManager.ProcessSplitSymbols has cognitive complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"Engine/AlgorithmManager.cs"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2412dc62ec897994c8177dc00878246436181ce31a1833a81bb07569fc0a08"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTradingResultHandler.ProcessSynchronousEvents (cognitive 17): LiveTradingResultHandler.ProcessSynchronousEvents has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/LiveTradingResultHandler.cs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46db4ef23f32885aee761da0176a83e326f674e54158da8283e5c18c8ccfa43"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerageTransactionHandler.HandleUpdateOrderRequest (cognitive 17): BrokerageTransactionHandler.HandleUpdateOrderRequest has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ce039ed934c66aea26947c1152c0e25e76efaba031636235aeb0a61fec7b98"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsolidatorWrapper.AdvanceScanTime (cognitive 17): ConsolidatorWrapper.AdvanceScanTime has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/ConsolidatorWrapper.cs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"399120596eeb8ef71a6fdaca04ce8bab23926a54faf9b060eb88eed14fe601f6"}},{"ruleId":"D2","level":"warning","message":{"text":"DividendYieldProvider.GetDividendYieldImpl (cognitive 17): DividendYieldProvider.GetDividendYieldImpl has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/DividendYieldProvider.cs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3e716dd83c456f48e065b489716b2b49ed687d18cf57d2cb1ecab22410c4d9"}},{"ruleId":"D2","level":"warning","message":{"text":"EquityFillModel.GetPrices (cognitive 17): EquityFillModel.GetPrices has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec3c9264b6f954eb7f4c25f786a2e38e697de84b5da2bf92d67ef3722fb0bad"}},{"ruleId":"D2","level":"warning","message":{"text":"FillModel.GetPrices (cognitive 17): FillModel.GetPrices has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1a7e89612bf12d8546fbad5b389e8802cb483c88d24c141b9e4d7865a82a86"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonWrapper.ValidateImplementationOf (cognitive 17): PythonWrapper.ValidateImplementationOf has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PythonWrapper.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1e69ff4cecc62c43c9febf59076983ec9fd835e332f46ab110de5d512712c8"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamReaderExtensions.GetDecimal (cognitive 17): StreamReaderExtensions.GetDecimal has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/StreamReaderExtensions.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adeee6610846d1ed9ee39048d33ef594e3e8782a2f4bbfd0d01f2bb0d1d65bc"}},{"ruleId":"D2","level":"warning","message":{"text":"Loader.TryCreateILAlgorithm (cognitive 17): Loader.TryCreateILAlgorithm has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"AlgorithmFactory/Loader.cs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6996f66822380bf05b05cd76b076e461a91ee200fcbf6d5655fe82aac9bbd9e"}},{"ruleId":"D2","level":"warning","message":{"text":"AddOptionContractFromUniverseRegressionAlgorithm.OnData (cognitive 17): AddOptionContractFromUniverseRegressionAlgorithm.OnData has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AddOptionContractFromUniverseRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bf13e50b0a09c2f7397aa443f414694b823f3fff7f7389dd20aaed191f8216"}},{"ruleId":"D2","level":"warning","message":{"text":"AddRemoveOptionUniverseRegressionAlgorithm.OnSecuritiesChanged (cognitive 17): AddRemoveOptionUniverseRegressionAlgorithm.OnSecuritiesChanged has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AddRemoveOptionUniverseRegressionAlgorithm.cs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"23232e37151e924b50c6402f219c0f2c081ad65fd17ced21ec6e29d95822b51f"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomaticSeedBaseRegressionAlgorithm.OnSecuritiesChanged (cognitive 17): AutomaticSeedBaseRegressionAlgorithm.OnSecuritiesChanged has cognitive complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AutomaticSeedBaseRegressionAlgorithm.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc8e725883eaf535220365e3fa73b4af3aba4ef3c9a939d101b9e99df597a78"}},{"ruleId":"D2","level":"warning","message":{"text":"ContinuousFutureOpenPositionsLiquidationOnDelistingRegressionAlgorithm.OnData (cognitive 17): ContinuousFutureOpenPositionsLiquidationOnDelistingRegressionAlgorithm.OnData has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ContinuousFutureOpenPositionsLiquidationOnDelistingRegressionAlgorithm.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e4d1366ae149bb5a28f22657cca9765050ef523cfc7d95401b5f3ac5350f4e"}},{"ruleId":"D2","level":"warning","message":{"text":"DelistedIndexOptionDivestedRegression.OnData (cognitive 17): DelistedIndexOptionDivestedRegression.OnData has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"Algorithm.CSharp/DelistedIndexOptionDivestedRegression.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"008982757cdeaf8433778a2f9f5e54f0e53928cb0fcfb554a33b8dedf0607e33"}},{"ruleId":"D2","level":"warning","message":{"text":"FutureChainInternalSubscriptionsRegressionAlgorithm.OnData (cognitive 17): FutureChainInternalSubscriptionsRegressionAlgorithm.OnData has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/FutureChainInternalSubscriptionsRegressionAlgorithm.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4d5e03205c9ae6f49bc84248198263669f2a91b678ecafcdc82c86e492eacc"}},{"ruleId":"D2","level":"warning","message":{"text":"NonDynamicOptionsFilterRegressionAlgorithm.OnSecuritiesChanged (cognitive 17): NonDynamicOptionsFilterRegressionAlgorithm.OnSecuritiesChanged has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/NonDynamicOptionsFilterRegressionAlgorithm.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbbac94e2b39f0495f9293fa2dc8b1317733782e740f81742f62b541c3fc86a"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionEquityOverlappingBullCallSpreadsRegressionAlgorithm.OnData (cognitive 17): OptionEquityOverlappingBullCallSpreadsRegressionAlgorithm.OnData has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/OptionEquityOverlappingBullCallSpreadsRegressionAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a53e1f0502b50f6046e89103bde7386f7d2724d2e8622a62c96e60066499e40"}},{"ruleId":"D2","level":"warning","message":{"text":"ETFConstituentUniverseMappedCompositeRegressionAlgorithm.OnData (cognitive 17): ETFConstituentUniverseMappedCompositeRegressionAlgorithm.OnData has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/RegressionTests/Universes/ETFConstituentUniverseMappedCompositeRegressionAlgorithm.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bec48e3d177238bb4d1149fd05ca30914c1cea7e73d4d4347d97c4be85f71e"}},{"ruleId":"D2","level":"warning","message":{"text":"SetAccountCurrencyCashBuyingPowerModelRegressionAlgorithm.OnOrderEvent (cognitive 17): SetAccountCurrencyCashBuyingPowerModelRegressionAlgorithm.OnOrderEvent has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/SetAccountCurrencyCashBuyingPowerModelRegressionAlgorithm.cs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"595c4a2d005225478a724ce8f2d83367e2eb616409f2f89a707daa43bf702986"}},{"ruleId":"D2","level":"warning","message":{"text":"SetAccountCurrencySecurityMarginModelRegressionAlgorithm.OnOrderEvent (cognitive 17): SetAccountCurrencySecurityMarginModelRegressionAlgorithm.OnOrderEvent has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/SetAccountCurrencySecurityMarginModelRegressionAlgorithm.cs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcfeb60a616aaefa7af54cc05f0221e94a79f616508769174a0359d9cc33e5d"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.Main (cognitive 17): Program.Main has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/Program.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2905226cef1fae1fb376da451938cd79b7b8a3f106e00ac3ad6c18c436b3a5f"}},{"ruleId":"D2","level":"warning","message":{"text":"QuantBook.PerformSelection (cognitive 17): QuantBook.PerformSelection has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"177a89659f6af0002b8d57b1f92706265078e56fa5375e91484e833c4bf0ab76"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveOptionChainProvider.GetFutureOptionContractList (cognitive 16): LiveOptionChainProvider.GetFutureOptionContractList has cognitive complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/LiveOptionChainProvider.cs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba97f53dbf7dd0e3b2f399d36569d0ada9cc84ed1b0795bca6279263c5e09d8b"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingRemovalsManager.CheckPendingRemovals (cognitive 16): PendingRemovalsManager.CheckPendingRemovals has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/PendingRemovalsManager.cs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"41942a41ab3208a2f5ffd68154f48f82dae5429a019cc896faf86fbf670424aa"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerageTransactionHandler.UpdateOrder (cognitive 16): BrokerageTransactionHandler.UpdateOrder has cognitive complexity 16 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3a94834882e112cdcfef74b1d0cebf5bcfd3d4a142d70f251d7c6d9c21e4c6"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerageTransactionHandler.ProcessSynchronousEvents (cognitive 16): BrokerageTransactionHandler.ProcessSynchronousEvents has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"7204a9cc6fd4954a3f4389b883865f374430b8c4a60b495d0d8dc393f7c74803"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.AddOptionContract (cognitive 16): QCAlgorithm.AddOptionContract has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":2410}}}],"partialFingerprints":{"codehealthFindingId/v1":"af22058152891d72a60b64dda084fac1414970fe6467e64c223ccde92d3a1a8c"}},{"ruleId":"D2","level":"warning","message":{"text":"QCAlgorithm.ProcessInsights (cognitive 16): QCAlgorithm.ProcessInsights has cognitive complexity 16 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Framework.cs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abe1f52f0860500328d5ad746dd4beedc325d99fabceac6b08b424eb3ff03f4"}},{"ruleId":"D2","level":"warning","message":{"text":"TradingTechnologiesBrokerageModel.IsValidOrderPrices (cognitive 16): TradingTechnologiesBrokerageModel.IsValidOrderPrices has cognitive complexity 16 (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":"Common/Brokerages/TradingTechnologiesBrokerageModel.cs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3597e520886690ae3b7994b5170a89da3865eefee636ec8abbe0979ff2296edf"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveBrokersFeeModel.GetOrderFee (cognitive 16): InteractiveBrokersFeeModel.GetOrderFee has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fees/InteractiveBrokersFeeModel.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"83848f13ef726e65f7c9375a47a5dc3022f12823f9dde96dbd970a4e386de602"}},{"ruleId":"D2","level":"warning","message":{"text":"EquityFillModel.LimitIfTouchedFill (cognitive 16): EquityFillModel.LimitIfTouchedFill has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa40b71321379b5decea64e6e4d4caca9180ba7c6f7f1e71837628d425c3c632"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonInitializer.ActivatePythonVirtualEnvironment (cognitive 16): PythonInitializer.ActivatePythonVirtualEnvironment has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PythonInitializer.cs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3093a78d9393aa81090b570fc19f3918358042d779cda448c083c9e2637d14"}},{"ruleId":"D2","level":"warning","message":{"text":"DateRules.WeekIterator (cognitive 16): DateRules.WeekIterator has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Scheduling/DateRules.cs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb78fad610db047fbd49c4747770e317e83a873b22ae407bdbd41132e5f41b8"}},{"ruleId":"D2","level":"warning","message":{"text":"CashBuyingPowerModel.GetOpenOrdersReservedQuantity (cognitive 16): CashBuyingPowerModel.GetOpenOrdersReservedQuantity has cognitive complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/CashBuyingPowerModel.cs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd02b2f52745e5d477b9670c135df1883d84821309102cff9dfcba3f3ad7238c"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionFilterUniverse.Strikes (cognitive 16): OptionFilterUniverse.Strikes has cognitive complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/OptionFilterUniverse.cs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4108010d511bec29b85d12e540c7d28648fa3ee098a8f6e1e79aabfbec0809"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionPositionCollection.OptionPositionCollection.ctor (cognitive 16): OptionPositionCollection.OptionPositionCollection.ctor has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/StrategyMatcher/OptionPositionCollection.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d737c5be4459ad7561ef4868d60e85a1083d583c86a81cb47b5bc26c17efd315"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityExchangeHours.GetPreviousMarketOpen (cognitive 16): SecurityExchangeHours.GetPreviousMarketOpen has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityExchangeHours.cs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"8699ff378fe28e6656e8061045921c8f1d10bbd11faf63bddd360b669092f5ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityExchangeHours.GetNextMarketOpen (cognitive 16): SecurityExchangeHours.GetNextMarketOpen has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityExchangeHours.cs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c242fd24709a66c0c333d858a0f67c63d63682b7f48ec3625566b7fce79538"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.GetValue (cognitive 16): Config.GetValue has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Configuration/Config.cs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"938456a14aa94301deb686c8fa5ab1623e83ee9ba9fa98f0dc78885997013179"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTemplateEurexFuturesAlgorithm.OnData (cognitive 16): BasicTemplateEurexFuturesAlgorithm.OnData has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicTemplateEurexFuturesAlgorithm.cs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdf934f5950e2307526fe8650d7e9ce79f572071e08ef6467962ddfdea594cb"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsolidateHourBarsIntoDailyBarsRegressionAlgorithm.OnData (cognitive 16): ConsolidateHourBarsIntoDailyBarsRegressionAlgorithm.OnData has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/ConsolidateHourBarsIntoDailyBarsRegressionAlgorithm.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"46311d0a49f4a0e082c22dc4bce2f1c653e931117cc7c50616494f21a068f15b"}},{"ruleId":"D2","level":"warning","message":{"text":"ContinuousFutureImmediateUniverseSelectionRegressionAlgorithm.OnSecuritiesChanged (cognitive 16): ContinuousFutureImmediateUniverseSelectionRegressionAlgorithm.OnSecuritiesChanged has cognitive complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"Algorithm.CSharp/ContinuousFutureImmediateUniverseSelectionRegressionAlgorithm.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"55310420e388a7e099e12e78f5b7c92d6a4114fa7f25a2305bba2dfda77082d6"}},{"ruleId":"D2","level":"warning","message":{"text":"FuturesFrameworkRegressionAlgorithm.OnSecuritiesChanged (cognitive 16): FuturesFrameworkRegressionAlgorithm.OnSecuritiesChanged has cognitive complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"Algorithm.CSharp/FuturesFrameworkRegressionAlgorithm.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c4a60015e898391868685c567110f81df70866e9d1c7dae994d911c1c34484"}},{"ruleId":"D2","level":"warning","message":{"text":"OpeningBreakoutAlgorithm.OnData (cognitive 16): OpeningBreakoutAlgorithm.OnData has cognitive complexity 16 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/OpeningBreakoutAlgorithm.cs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2dbed6a763d0a6840aab546fecf11cf69199cbecb06fafc17e95d9ba56a37dc"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionEquityBearPutLadderRegressionAlgorithm.OnData (cognitive 16): OptionEquityBearPutLadderRegressionAlgorithm.OnData has cognitive complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"Algorithm.CSharp/OptionEquityBearPutLadderRegressionAlgorithm.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c164414f69d8e0d722a872bb49c5cb579f2b526752b72ee71c3ce2822e17298e"}},{"ruleId":"D2","level":"warning","message":{"text":"WarmupFutureRegressionAlgorithm.OnData (cognitive 16): WarmupFutureRegressionAlgorithm.OnData has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/WarmupFutureRegressionAlgorithm.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4875a7d3c425d6d25c809413ab95005c8efd418d46a64f228f81bc4c842241"}},{"ruleId":"D2","level":"warning","message":{"text":"EmaCrossAlphaModel.Update (cognitive 16): EmaCrossAlphaModel.Update has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Alphas/EmaCrossAlphaModel.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f458e69d6f673a83380d15e0720240755905502507b3584a93d66dba73c35f4"}},{"ruleId":"D2","level":"warning","message":{"text":"BlackLittermanOptimizationPortfolioConstructionModel.DetermineTargetPercent (cognitive 16): BlackLittermanOptimizationPortfolioConstructionModel.DetermineTargetPercent has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Portfolio/BlackLittermanOptimizationPortfolioConstructionModel.cs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"55229177f722f67e2c625cb6acd01aea85a47226f0de248dfdaa3539e8839afd"}},{"ruleId":"D2","level":"warning","message":{"text":"PortfolioLooper.FromOrders (cognitive 16): PortfolioLooper.FromOrders has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Report/PortfolioLooper/PortfolioLooper.cs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d61e1430407fba107dfa2b225ba413783f274eec2f6cc5181883d2299f5923"}},{"ruleId":"D2","level":"warning","message":{"text":"OptimizationFailedBacktests.Build (cognitive 16): OptimizationFailedBacktests.Build has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Optimizer/Analysis/OptimizationFailedBacktests.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70a30ef881c17d0adfa4083b836d24b37062e9044b0266c889012c4d2a39d6c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QCAlgorithm: TooManyMethods \u2014 5315 significant lines (blank, comment-only and punctuation-only lines excluded), 700 methods, declared across 9 files: Algorithm/QCAlgorithm.Indicators.cs (221), Algorithm/QCAlgorithm.cs (165), Algorithm/QCAlgorithm.Python.cs (92), Algorithm/QCAlgorithm.Trading.cs (75), \u002B5 more file(s). To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Indicators.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c224c36d79d1a7be8c327e843c4f8c658d3b4b3bbd608df5dce6311a60ecd239"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Algorithm/QCAlgorithm.Indicators.cs: FileTooLong \u2014 1520 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":"Algorithm/QCAlgorithm.Indicators.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"005d6d21c0e1b2a1be377dbc861bc90a618397dcf423f9cc4b71740b382af9db"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AlgorithmPythonWrapper: TooManyMethods \u2014 338 significant lines (blank, comment-only and punctuation-only lines excluded), 82 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":"AlgorithmFactory/Python/Wrappers/AlgorithmPythonWrapper.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a0f42004a73a7fff5d7d6b122eaff4f908bb12e23ba466189034e8f132aeaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Algorithm/QCAlgorithm.cs: FileTooLong \u2014 1346 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":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25a1a36cff21e1629d21ebaf1c0f910f7e76626cfdef0f3e9f9e5b9294d92d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Api: TooManyMethods \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), 74 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":"Api/Api.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2763955dc0ddf344acd605658d9dad86760c80a3e8871f2b49b5a5c94e3cfc57"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConstituentUniverseDefinitions: TooManyMethods \u2014 292 significant lines (blank, comment-only and punctuation-only lines excluded), 73 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":"Algorithm/ConstituentUniverseDefinitions.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ceebd88b3ef129fd21292be6d1a0c432692c0daa880cd2645bb3096865b648d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CandlestickPatterns: TooManyMethods \u2014 309 significant lines (blank, comment-only and punctuation-only lines excluded), 62 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":"Algorithm/CandlestickPatterns.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1d05b37b0fd591423024bd77700f8f3767035cce2a9ffb0dd24bed4842383e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IndicatorBase: TooManyMethods \u2014 176 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods, declared across 2 files: Indicators/IndicatorBase.Operators.cs (49), Indicators/IndicatorBase.cs (9). 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":"Indicators/IndicatorBase.Operators.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3dd26959caaf08fc9448e1eadd50ab1e951443e2b22b073e78416c4966c8c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Security: TooManyMethods \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 53 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":"Common/Securities/Security.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b6f73b25b226ce238a0d0b99dab8317af1df0328eefd95b239d31965bc048f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OptionFilterUniverse: TooManyMethods \u2014 356 significant lines (blank, comment-only and punctuation-only lines excluded), 53 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":"Common/Securities/Option/OptionFilterUniverse.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a3a0f14e6e2113518615aa6903bd01a81dab08084da5fc5011ad94b038dcb6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseResultsHandler: TooManyMethods \u2014 435 significant lines (blank, comment-only and punctuation-only lines excluded), 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":"Engine/Results/BaseResultsHandler.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"363b4eb96743cc7149e50c4402f7728898e9f4e00d7d6eda2828a2ad2450b609"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LeanData: TooManyMethods \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded), 51 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":"Common/Util/LeanData.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd002d6b334dc5e0580bc7a25895b6640a3e72b0b40473e10d90ec00a400136"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TransactionHandlers/BrokerageTransactionHandler.cs: FileTooLong \u2014 850 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":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf81ff8dc7e06978c20b82c2b54238e5b1582735b21688842b545a7d66713b6f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrokerageTransactionHandler: TooManyMethods \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded), 50 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":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1eea9e9f20eb363dd816b9068de5545777dbaf472d7cb2e8ee3fd78072aff3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Util/LeanData.cs: FileTooLong \u2014 825 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":"Common/Util/LeanData.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e8d3219fa3dffeea31d7cac88fbdd6a277570e4d0b89841a7acf2c05b6699a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OptionStrategies: TooManyMethods \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded), 46 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":"Common/Securities/Option/OptionStrategies.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b873739b200750103c732097137025999fc091e91d24b5eaa849026a1f7fd877"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Algorithm/QCAlgorithm.Python.cs: FileTooLong \u2014 731 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":"Algorithm/QCAlgorithm.Python.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb1f78785faf3b230fc57375c8bf8a68f152fe9e0acb694801f6baf3d296f17"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveTradingResultHandler: TooManyMethods \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/LiveTradingResultHandler.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d9c00578948bfaddeabb1a014b1355c3dee91e8a6bc35f1cf8e2e1c4931f46"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Compression: TooManyMethods \u2014 380 significant lines (blank, comment-only and punctuation-only lines excluded), 41 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":"Compression/Compression.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"151be7a71bc2ccba0f7975f9da9eee870f984986444368e49b4e36ec562dd8f3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DateRules: TooManyMethods \u2014 199 significant lines (blank, comment-only and punctuation-only lines excluded), 40 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":"Common/Scheduling/DateRules.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f3fe83d165547416531cf1ec5af336f7d652511a9b563cd57fb6ce3065def7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TradeBar: TooManyMethods \u2014 312 significant lines (blank, comment-only and punctuation-only lines excluded), 39 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":"Common/Data/Market/TradeBar.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a48b5fe88c6fa3a77db13cc5b1526a5985cb561f1bf4febde2c1be87feab60a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Symbol: TooManyMethods \u2014 297 significant lines (blank, comment-only and punctuation-only lines excluded), 39 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":"Common/Symbol.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b9ea74793305b2f4c7cf71da981ad438a1e518f632edf6662cce042c9dbb35"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QuantBook: TooManyMethods \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 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":"Research/QuantBook.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b8e3db20012b21faaa5b05a8d663733a0d9243d0ebdc0c1dec33605668dace"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SecurityIdentifier: TooManyMethods \u2014 385 significant lines (blank, comment-only and punctuation-only lines excluded), 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":"Common/SecurityIdentifier.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3463903829f0aa8b6ff2a030e17864b4508e61c9ee964690d47ee3e1d74e4e2d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FillModel: ClassTooLong \u2014 500 significant lines (blank, comment-only and punctuation-only lines excluded), 26 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":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40d5f3f1135093bfb5b32af49052280b3693429f3cc3f3fa4cb902ffb0d704c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Algorithm/QCAlgorithm.History.cs: FileTooLong \u2014 623 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":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d3304802d37d13759d96c853bd401597e546f17ada1bc1a81afdf9e85f182f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Results/LiveTradingResultHandler.cs: FileTooLong \u2014 602 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":"Engine/Results/LiveTradingResultHandler.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c461661ec6934c923c36f44e59d66e82a98499f5aed96a4e3cec53c1122295"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Time: TooManyMethods \u2014 234 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Time.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee2b17cd7689f8374db972da111f8199ce3bfb67d671485cdbf8ce31ba2506e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SecurityTransactionManager: TooManyMethods \u2014 163 significant lines (blank, comment-only and punctuation-only lines excluded), 34 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":"Common/Securities/SecurityTransactionManager.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14db599042eb4957470788c3ce1dc5037b01039679fa25a81ae3cb93dd16e102"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Algorithm/QCAlgorithm.Trading.cs: FileTooLong \u2014 562 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":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c736dd41eb2f4084cc25ae2d5fbf32d7d34ac1fba01b558f3ad45f17d3be8b04"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EquityFillModel: ClassTooLong \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded), 14 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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c954d54545f1066699565ac7bfaca45c0cf4176b6bb1117ba0fd0a5a906f4675"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Brokerage: TooManyMethods \u2014 265 significant lines (blank, comment-only and punctuation-only lines excluded), 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":"Brokerages/Brokerage.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3021c3182d3e61657ab5603ad80c8687cd7bb4f0595e2af4f3c57574c26745"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AlgorithmManager: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 11 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":"Engine/AlgorithmManager.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fed062c9689c20f82a69055630c196eb4e2ab66be368cb4729ef5886fc0e6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Api/Api.cs: FileTooLong \u2014 528 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":"Api/Api.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74659e375eb84bf4d3430555c6507be76b7c444837635200f01a96a948c447d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Fills/FillModel.cs: FileTooLong \u2014 522 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":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c86095215d60e8461a1f67e0ad0ceecdaa0ecbf0ec1202524b8ea72e56870a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Research/QuantBook.cs: FileTooLong \u2014 507 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":"Research/QuantBook.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14b02768203fb1551b27907da7a84efb7e6441e8e96d8152805a27a8925274c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Algorithm.CSharp/BasicTemplateCryptoFutureAlgorithm.cs:96-127 | Algorithm.CSharp/BybitCryptoFuturesRegressionAlgorithm.cs:90-120 \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 \u0060Algorithm.CSharp/BasicTemplateCryptoFutureAlgorithm.cs:96\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":"Algorithm.CSharp/BasicTemplateCryptoFutureAlgorithm.cs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1b9f1b3575c6a2d7a1c97df18aa826b80802a9e50e94c0e4e7e2d8609f0644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): Algorithm.CSharp/FutureOptionCallOTMExpiryRegressionAlgorithm.cs:105-131 | Algorithm.CSharp/FutureOptionPutOTMExpiryRegressionAlgorithm.cs:103-129 | Algorithm.CSharp/FutureOptionShortCallOTMExpiryRegressionAlgorithm.cs:100-127 | Algorithm.CSharp/FutureOptionShortPutOTMExpiryRegressionAlgorithm.cs:100-126 \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 \u0060Algorithm.CSharp/FutureOptionCallOTMExpiryRegressionAlgorithm.cs:105\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":"Algorithm.CSharp/FutureOptionCallOTMExpiryRegressionAlgorithm.cs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2af771bc6688f523cbfc3e6e5deb6d03b1f20d9746287335f8a7df218daf27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs:101-127 | Algorithm.CSharp/IndexOptionPutOTMExpiryRegressionAlgorithm.cs:98-124 | Algorithm.CSharp/IndexOptionShortCallOTMExpiryRegressionAlgorithm.cs:95-122 | Algorithm.CSharp/IndexOptionShortPutOTMExpiryRegressionAlgorithm.cs:95-121 \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 \u0060Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9b4cce7bc2be93cc0b6b1576361ae1fa8e0545073ae9d962ee1219dd2670bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Algorithm.CSharp/AddFutureOptionContractDataStreamingRegressionAlgorithm.cs:128-151 | Algorithm.CSharp/AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm.cs:184-207 \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 \u0060Algorithm.CSharp/AddFutureOptionContractDataStreamingRegressionAlgorithm.cs:128\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":"Algorithm.CSharp/AddFutureOptionContractDataStreamingRegressionAlgorithm.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"17148f6825a3fe46449d5671876a08004ee5e9f3bfc8fae3d3d101b888ceef0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Algorithm.CSharp/FutureOptionPutITMExpiryRegressionAlgorithm.cs:100-122 | Algorithm.CSharp/FutureOptionShortCallITMExpiryRegressionAlgorithm.cs:100-122 | Algorithm.CSharp/FutureOptionShortPutITMExpiryRegressionAlgorithm.cs:100-122 \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 \u0060Algorithm.CSharp/FutureOptionPutITMExpiryRegressionAlgorithm.cs:100\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":"Algorithm.CSharp/FutureOptionPutITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4f2cc7bff741be1b4f78753f5754300c1668da9c6323354473c54fdd7674be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Algorithm.CSharp/IndexOptionPutITMExpiryRegressionAlgorithm.cs:94-116 | Algorithm.CSharp/IndexOptionShortCallITMExpiryRegressionAlgorithm.cs:106-128 | Algorithm.CSharp/IndexOptionShortPutITMExpiryRegressionAlgorithm.cs:105-127 \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 \u0060Algorithm.CSharp/IndexOptionPutITMExpiryRegressionAlgorithm.cs:94\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":"Algorithm.CSharp/IndexOptionPutITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f44d8c7bf5f898cb8df23544e78778a5271c2e0841873e9f109da29f893db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Algorithm.CSharp/LongAndShortStraddleStrategiesAlgorithm.cs:60-81 | Algorithm.CSharp/LongAndShortStrangleStrategiesAlgorithm.cs:70-91 \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":"Algorithm.CSharp/LongAndShortStraddleStrategiesAlgorithm.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"148c9adfe44ca529146782f77c03d5326e4ea3b95478d8c4aecf0e0907c1768c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): Algorithm.CSharp/CustomDataAutomaticSeedRegressionAlgorithm.cs:194-214 | Algorithm.CSharp/CustomDataBitcoinAlgorithm.cs:147-167 | Algorithm.CSharp/CustomDataRegressionAlgorithm.cs:241-261 | Algorithm.CSharp/LiveFeaturesAlgorithm.cs:203-223 \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 \u0060Algorithm.CSharp/CustomDataAutomaticSeedRegressionAlgorithm.cs:194\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":"Algorithm.CSharp/CustomDataAutomaticSeedRegressionAlgorithm.cs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"03262394372c74d23addb047e680621e275a6acbbe00e33c0eff69a2d9a43e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Common/Securities/BuyingPowerModel.cs:190-210 | Common/Securities/CryptoFuture/CryptoFutureMarginModel.cs:105-125 \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 \u0060Common/Securities/BuyingPowerModel.cs:190\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":"Common/Securities/BuyingPowerModel.cs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b99a944a30ea9cf348b6d639e6438ce893b33a2e91ac6e9cbb16fad29c6363e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Common/Orders/Fills/EquityFillModel.cs:324-343 | Common/Orders/Fills/FillModel.cs:526-545 \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 \u0060Common/Orders/Fills/EquityFillModel.cs:324\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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfcb77b714aaf9a70c165b97ddb5c0af477f8753a858dd3c5b7fc3cf4c35928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Common/Orders/Fills/EquityFillModel.cs:827-846 | Common/Orders/Fills/EquityFillModel.cs:936-955 \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 \u0060Common/Orders/Fills/EquityFillModel.cs:827\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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a235b3e581eee464b39414814f5d1ddb73774809b2fd4427983d8e04c851ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Indicators/CandlestickPatterns/InvertedHammer.cs:85-104 | Indicators/CandlestickPatterns/ShootingStar.cs:86-105 \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 \u0060Indicators/CandlestickPatterns/InvertedHammer.cs:85\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":"Indicators/CandlestickPatterns/InvertedHammer.cs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8201f458b501f97dad0422d2ab634df32aaff7dbc2d7b5f4b39da0058b5899f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Algorithm.CSharp/FundamentalRegressionAlgorithm.cs:184-203 | Algorithm.CSharp/FundamentalUniverseSelectionRegressionAlgorithm.cs:68-87 \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 \u0060Algorithm.CSharp/FundamentalRegressionAlgorithm.cs:184\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":"Algorithm.CSharp/FundamentalRegressionAlgorithm.cs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"806fd2aeb012460ff80dba5b3bbfa22db2653bad659a37f1f792a6483303762b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Indicators/CandlestickPatterns/InNeck.cs:76-94 | Indicators/CandlestickPatterns/OnNeck.cs:76-94 | Indicators/CandlestickPatterns/Thrusting.cs:78-96 \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 \u0060Indicators/CandlestickPatterns/InNeck.cs:76\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":"Indicators/CandlestickPatterns/InNeck.cs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a19a4ea1e1e972459297a78765af4c6e3c4ec43d20a3040010bacdee9c2500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Indicators/CandlestickPatterns/BeltHold.cs:78-96 | Indicators/CandlestickPatterns/ClosingMarubozu.cs:78-96 \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 \u0060Indicators/CandlestickPatterns/BeltHold.cs:78\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":"Indicators/CandlestickPatterns/BeltHold.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72a8b3b55e3013ee958dffd8beb33cf8d7f9d3c147a74aa423fed53e582957b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Algorithm.CSharp/FutureOptionCallITMGreeksExpiryRegressionAlgorithm.cs:77-95 | Algorithm.CSharp/IndexOptionCallITMGreeksExpiryRegressionAlgorithm.cs:67-85 \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":"Algorithm.CSharp/FutureOptionCallITMGreeksExpiryRegressionAlgorithm.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4993e82235217b77e0c5f14dcf0a347e5af85f74586ea420f69b10a878b7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Algorithm.CSharp/OptionEquityConversionRegressionAlgorithm.cs:58-76 | Algorithm.CSharp/OptionEquityReverseConversionRegressionAlgorithm.cs:58-76 \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 \u0060Algorithm.CSharp/OptionEquityConversionRegressionAlgorithm.cs:58\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":"Algorithm.CSharp/OptionEquityConversionRegressionAlgorithm.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e6baccc5acb0a32328dcf121feb5093c69a1cd9a9665ac2b0def132214c261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Algorithm.CSharp/OptionStrategyFilteringUniverseCallButterflyRegressionAlgorithm.cs:56-73 | Algorithm.CSharp/OptionStrategyFilteringUniverseCallLadderRegressionAlgorithm.cs:56-73 | Algorithm.CSharp/OptionStrategyFilteringUniversePutButterflyRegressionAlgorithm.cs:56-73 | Algorithm.CSharp/OptionStrategyFilteringUniversePutLadderRegressionAlgorithm.cs:56-73 \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 \u0060Algorithm.CSharp/OptionStrategyFilteringUniverseCallButterflyRegressionAlgorithm.cs:56\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":"Algorithm.CSharp/OptionStrategyFilteringUniverseCallButterflyRegressionAlgorithm.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82ed57e94e0e6f55dee4aed1695f8478a5784850d97a1adf03366b28127eb6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Algorithm.CSharp/OptionStrategyFilteringUniverseCallCalendarSpreadRegressionAlgorithm.cs:50-67 | Algorithm.CSharp/OptionStrategyFilteringUniverseCallSpreadRegressionAlgorithm.cs:50-67 | Algorithm.CSharp/OptionStrategyFilteringUniversePutCalendarSpreadRegressionAlgorithm.cs:50-67 | Algorithm.CSharp/OptionStrategyFilteringUniversePutSpreadRegressionAlgorithm.cs:50-67 \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":"Algorithm.CSharp/OptionStrategyFilteringUniverseCallCalendarSpreadRegressionAlgorithm.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a7598c4cda7d90bccebb1793e2aad7e204f94d8983fe70ea651d7193ede66c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Common/Orders/Fills/FillModel.cs:361-378 | Common/Orders/Fills/FutureFillModel.cs:131-148 \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 \u0060Common/Orders/Fills/FillModel.cs:361\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":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d5b1ac275f271afc75840b10c21b6977510ddd9fc222bd589074352f98d7a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Indicators/CandlestickPatterns/DragonflyDoji.cs:75-92 | Indicators/CandlestickPatterns/GravestoneDoji.cs:75-92 \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 \u0060Indicators/CandlestickPatterns/DragonflyDoji.cs:75\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":"Indicators/CandlestickPatterns/DragonflyDoji.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37d07036227ff801d1e76a5da824a13f3fa13c5524016f4d9d52d1d4e19edeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Indicators/CandlestickPatterns/EveningDojiStar.cs:103-120 | Indicators/CandlestickPatterns/MorningDojiStar.cs:103-120 \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 \u0060Indicators/CandlestickPatterns/EveningDojiStar.cs:103\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":"Indicators/CandlestickPatterns/EveningDojiStar.cs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"077929636026e760af0381e70bff1131299b3ac1cc6c32566a6d29b1e64574f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Indicators/CandlestickPatterns/Hammer.cs:93-110 | Indicators/CandlestickPatterns/HangingMan.cs:93-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 \u0060Indicators/CandlestickPatterns/Hammer.cs:93\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":"Indicators/CandlestickPatterns/Hammer.cs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"200ac502d42b881c7017cdeeb1a7eabac4ee6c1689f02cb316f32ae214eb15a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Algorithm.CSharp/BasicTemplateFuturesAlgorithm.cs:92-109 | Algorithm.CSharp/BasicTemplateFuturesWithExtendedMarketAlgorithm.cs:92-109 \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 \u0060Algorithm.CSharp/BasicTemplateFuturesAlgorithm.cs:92\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":"Algorithm.CSharp/BasicTemplateFuturesAlgorithm.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3219acbd92998b3b5eb05209ec9a925b496f836272d77f91ec0b9d283b41aaac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Algorithm.Framework/Execution/StandardDeviationExecutionModel.cs:80-97 | Algorithm.Framework/Execution/VolumeWeightedAveragePriceExecutionModel.cs:65-82 \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 \u0060Algorithm.Framework/Execution/StandardDeviationExecutionModel.cs:80\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":"Algorithm.Framework/Execution/StandardDeviationExecutionModel.cs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0e0c829c6441fb233adbc8b8a487879b06b0c0f92f506dcb12c8e24eb9382d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Algorithm.Framework/Portfolio/MeanVarianceOptimizationPortfolioConstructionModel.cs:248-267 | Algorithm.Framework/Portfolio/RiskParityPortfolioConstructionModel.cs:190-207 \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":"Algorithm.Framework/Portfolio/MeanVarianceOptimizationPortfolioConstructionModel.cs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"351a810f272f772024c95ba21c0bd1278b114349f29285bcc2b57ffd450f21ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Common/Util/LeanData.cs:366-382 | Common/Util/LeanData.cs:437-453 \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 \u0060Common/Util/LeanData.cs:366\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":"Common/Util/LeanData.cs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c6adda94022e26d1d6e97a6ce6dd83881ff2983605104d690f00644c5d3d2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Indicators/CandlestickPatterns/DojiStar.cs:78-94 | Indicators/CandlestickPatterns/HaramiCross.cs:76-92 \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 \u0060Indicators/CandlestickPatterns/DojiStar.cs:78\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":"Indicators/CandlestickPatterns/DojiStar.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b053f8ff49c916a3fe388ebb6bec50ee47c13f7cd89c6334a8949fbcaed7ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Indicators/CandlestickPatterns/Harami.cs:76-92 | Indicators/CandlestickPatterns/UniqueThreeRiver.cs:77-93 \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 \u0060Indicators/CandlestickPatterns/Harami.cs:76\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":"Indicators/CandlestickPatterns/Harami.cs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb484d3ecbd9a76f5c477f8de9ac3dd032344ec9195275827d99bf41bab2ee44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Indicators/Rho.cs:198-214 | Indicators/Vega.cs:198-214 \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 \u0060Indicators/Rho.cs:198\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":"Indicators/Rho.cs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47317e50817a27f7c9ec5b1ab617a7bc3fe4f6c454bca6658a4d3d77898e0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Algorithm.CSharp/CapacityTests/CheeseMilkHourlyRebalance.cs:51-67 | Algorithm.CSharp/CapacityTests/IntradayMinuteScalpingFuturesES.cs:54-70 \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 \u0060Algorithm.CSharp/CapacityTests/CheeseMilkHourlyRebalance.cs:51\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":"Algorithm.CSharp/CapacityTests/CheeseMilkHourlyRebalance.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed69dabf28276f6f6ebd544ae5577a6738fa6caacad5335e86374ccfc15a6887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Algorithm.CSharp/EuropeanOptionsCannotBeExercisedBeforeExpiryRegressionAlgorithm.cs:58-74 | Algorithm.CSharp/InteractiveBrokersBrokerageDisablesIndexOptionsExerciseRegressionAlgorithm.cs:62-78 \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":"Algorithm.CSharp/EuropeanOptionsCannotBeExercisedBeforeExpiryRegressionAlgorithm.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"17eee19fe4d3000efa211f31aed352dc3beeb3eee2a1fb36c319652eaf22291a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Algorithm.CSharp/OptionEquityShortButterflyCallRegressionAlgorithm.cs:61-77 | Algorithm.CSharp/OptionEquityShortButterflyPutRegressionAlgorithm.cs:59-75 \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 \u0060Algorithm.CSharp/OptionEquityShortButterflyCallRegressionAlgorithm.cs:61\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":"Algorithm.CSharp/OptionEquityShortButterflyCallRegressionAlgorithm.cs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"944422ab153b92b8143cf6e312cc04aaca187ce16370fea06dcac546913e8b85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Common/Util/LeanData.cs:295-310 | Common/Util/LeanData.cs:366-381 | Common/Util/LeanData.cs:437-452 \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 \u0060Common/Util/LeanData.cs:295\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":"Common/Util/LeanData.cs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"c794a1df8a90788a6a297713c0d241200683c5a575b27cd9ad722a7ea38bb0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Indicators/CandlestickPatterns/Counterattack.cs:80-95 | Indicators/CandlestickPatterns/Kicking.cs:81-96 | Indicators/CandlestickPatterns/KickingByLength.cs:82-97 \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 \u0060Indicators/CandlestickPatterns/Counterattack.cs:80\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":"Indicators/CandlestickPatterns/Counterattack.cs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5bb0cd8cf908f0c55d2c4528777543564f84d7d369e53c9e0a511e0ec77515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Algorithm.CSharp/OptionStrategyFilteringUniverseBoxSpreadRegressionAlgorithm.cs:41-56 | Algorithm.CSharp/OptionStrategyFilteringUniverseProtectiveCollarRegressionAlgorithm.cs:41-56 | Algorithm.CSharp/OptionStrategyFilteringUniverseStrangleRegressionAlgorithm.cs:41-56 \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 \u0060Algorithm.CSharp/OptionStrategyFilteringUniverseBoxSpreadRegressionAlgorithm.cs:41\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":"Algorithm.CSharp/OptionStrategyFilteringUniverseBoxSpreadRegressionAlgorithm.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b71b642337e2b3cea8d50efec434a42b63f9d1153321bd563094d4cb5a3798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Algorithm/QCAlgorithm.Framework.cs:179-194 | Algorithm/QCAlgorithm.Framework.cs:200-215 \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 \u0060Algorithm/QCAlgorithm.Framework.cs:179\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":"Algorithm/QCAlgorithm.Framework.cs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"20de0c8b643e9ae2144e0ce90ed6def5a0fb602613fec7b22a0a222e287bc084"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Common/Brokerages/TradingTechnologiesBrokerageModel.cs:110-125 | Common/Brokerages/ZerodhaBrokerageModel.cs:107-124 \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 \u0060Common/Brokerages/TradingTechnologiesBrokerageModel.cs:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/TradingTechnologiesBrokerageModel.cs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"905ccbfd64f627bc09cfded1929a2055683b8d5ef1408650f8368823b90d3c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Common/Data/Market/QuoteBar.cs:314-329 | Common/Data/Market/TradeBar.cs:289-304 \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 \u0060Common/Data/Market/QuoteBar.cs:314\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":"Common/Data/Market/QuoteBar.cs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03dfc5169abc1398e69dfa2a36db7eb45a6ff416b9a11d4e57e8b2341635450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Common/Orders/Fills/FillModel.cs:887-902 | Common/Orders/Fills/FillModel.cs:946-961 \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 \u0060Common/Orders/Fills/FillModel.cs:887\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":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"840e99b13d16ec5446268e2b41ef3cdddf3cfe2f24f51dc82b65bd9baf50bbc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Indicators/CandlestickPatterns/AdvanceBlock.cs:120-135 | Indicators/CandlestickPatterns/StalledPattern.cs:109-124 \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 \u0060Indicators/CandlestickPatterns/AdvanceBlock.cs:120\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":"Indicators/CandlestickPatterns/AdvanceBlock.cs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a8150a36f93a85dbc7e96859a6cd7d668435022cee0992605d0e6f071f5f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Indicators/CandlestickPatterns/DragonflyDoji.cs:94-109 | Indicators/CandlestickPatterns/GravestoneDoji.cs:94-109 \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 \u0060Indicators/CandlestickPatterns/DragonflyDoji.cs:94\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":"Indicators/CandlestickPatterns/DragonflyDoji.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e071cb2eda9e1d50a47ea6bb20790efe65c70c2470d5e0ab99ae85c750f49c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Indicators/CandlestickPatterns/HangingMan.cs:118-133 | Indicators/CandlestickPatterns/ShootingStar.cs:111-126 \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 \u0060Indicators/CandlestickPatterns/HangingMan.cs:118\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":"Indicators/CandlestickPatterns/HangingMan.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a33061913b788373491cd73b884cdb840484690a64971346bf90a273c09078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Algorithm.CSharp/OptionStrategyFilteringUniverseConversionRegressionAlgorithm.cs:40-55 | Algorithm.CSharp/OptionStrategyFilteringUniverseStraddleRegressionAlgorithm.cs:40-55 \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 \u0060Algorithm.CSharp/OptionStrategyFilteringUniverseConversionRegressionAlgorithm.cs:40\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":"Algorithm.CSharp/OptionStrategyFilteringUniverseConversionRegressionAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d16cd87144cf4235d05f5150cad8668be6272e3e2c9e924ee461f67e2a8a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Algorithm.CSharp/OptionUniverseFilterOptionsDataLinqRegressionAlgorithm.cs:30-59 | Algorithm.CSharp/OptionUniverseFilterOptionsDataRegressionAlgorithm.cs:43-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/OptionUniverseFilterOptionsDataLinqRegressionAlgorithm.cs:30\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":"Algorithm.CSharp/OptionUniverseFilterOptionsDataLinqRegressionAlgorithm.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"afdded17e8b91cbf4626a2bc9f6efa19febd5555aff2105835b9ac625eef2818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Common/Orders/Fees/AlphaStreamsFeeModel.cs:89-104 | Common/Orders/Fees/BinanceFeeModel.cs:74-88 | Common/Orders/Fees/BitfinexFeeModel.cs:66-80 \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 \u0060Common/Orders/Fees/AlphaStreamsFeeModel.cs:89\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":"Common/Orders/Fees/AlphaStreamsFeeModel.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"02af9b652e1ee066aadb78078ca7025b03268f2bc43fa8dba9f7208223deba02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Common/Util/LeanData.cs:273-287 | Common/Util/LeanData.cs:344-358 | Common/Util/LeanData.cs:415-429 \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 \u0060Common/Util/LeanData.cs:273\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":"Common/Util/LeanData.cs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"91994b4c3cee813fb592bf45b9ed5c723e73d1a56636506d08ea253335a217d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Algorithm/Selection/CustomUniverse.cs:52-66 | Algorithm/Selection/ManualUniverse.cs:64-82 \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 \u0060Algorithm/Selection/CustomUniverse.cs:52\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":"Algorithm/Selection/CustomUniverse.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c3132eff5c8db1ed1a868e4f0ab26f0cfe4d23a46c1ffad4a086a121d13b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Common/Algorithm/Framework/Portfolio/SignalExports/NumeraiSignalExport.cs:182-196 | Common/Algorithm/Framework/Portfolio/SignalExports/NumeraiSignalExport.cs:246-260 \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 \u0060Common/Algorithm/Framework/Portfolio/SignalExports/NumeraiSignalExport.cs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Algorithm/Framework/Portfolio/SignalExports/NumeraiSignalExport.cs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"def61606fa01f7aea744366aeb82514f9b1eef681b80fab67b190cabcb45d865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Common/Brokerages/BitfinexBrokerageModel.cs:135-149 | Common/Brokerages/KrakenBrokerageModel.cs:94-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/BitfinexBrokerageModel.cs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58d3af693a6b20640bb086131a6c8b47969f3f91742d6d65388ca722fed99d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Common/Brokerages/RBIBrokerageModel.cs:60-74 | Common/Brokerages/TDAmeritradeBrokerageModel.cs:61-76 \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":"Common/Brokerages/RBIBrokerageModel.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c86a703fe7f977a106c6b3b808fda154165b057ecfe04a8e2e44589d94dc00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Common/Data/Market/QuoteBar.cs:366-380 | Common/Data/Market/TradeBar.cs:228-242 \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 \u0060Common/Data/Market/QuoteBar.cs:366\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":"Common/Data/Market/QuoteBar.cs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3477f02e4dce0d57bee872b6fafa7477d07e8f8f33a7d60320518e1f8f2dad73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Indicators/CandlestickPatterns/EveningDojiStar.cs:130-144 | Indicators/CandlestickPatterns/EveningStar.cs:123-137 \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 \u0060Indicators/CandlestickPatterns/EveningDojiStar.cs:130\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":"Indicators/CandlestickPatterns/EveningDojiStar.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"915db1525c77fbd30b37bdd8b66f41afe3e48d3eaeee9484bf0367073faf2413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Indicators/CandlestickPatterns/LongLeggedDoji.cs:93-107 | Indicators/CandlestickPatterns/RickshawMan.cs:114-128 \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 \u0060Indicators/CandlestickPatterns/LongLeggedDoji.cs:93\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":"Indicators/CandlestickPatterns/LongLeggedDoji.cs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66e420721950d9a93d7d870c706e4abf091593d16cf404f6301e827b3974bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Indicators/CandlestickPatterns/MorningDojiStar.cs:130-144 | Indicators/CandlestickPatterns/MorningStar.cs:123-137 \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 \u0060Indicators/CandlestickPatterns/MorningDojiStar.cs:130\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":"Indicators/CandlestickPatterns/MorningDojiStar.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"038ccb7c4e7be7779a87f4141bc76e1424cd2c9dbf0c5941dafe06f55e091631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Indicators/CandlestickPatterns/ThreeInside.cs:79-93 | Indicators/CandlestickPatterns/UpsideGapTwoCrows.cs:81-95 \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 \u0060Indicators/CandlestickPatterns/ThreeInside.cs:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/CandlestickPatterns/ThreeInside.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c5cf3753b0bb1033ee0aef8f313d30b08ee8c2c554d04b4c2de8cbe104442d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Algorithm.CSharp/DropboxBaseDataUniverseSelectionAlgorithm.cs:92-107 | Algorithm.CSharp/DropboxUniverseSelectionAlgorithm.cs:123-137 \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 \u0060Algorithm.CSharp/DropboxBaseDataUniverseSelectionAlgorithm.cs:92\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":"Algorithm.CSharp/DropboxBaseDataUniverseSelectionAlgorithm.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"30820639217f8f334dd7954d08955694a52568db58928c8522ee83baac445ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Algorithm.CSharp/IndexOptionCallButterflyAlgorithm.cs:48-62 | Algorithm.CSharp/IndexOptionPutButterflyAlgorithm.cs:48-62 \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 \u0060Algorithm.CSharp/IndexOptionCallButterflyAlgorithm.cs:48\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":"Algorithm.CSharp/IndexOptionCallButterflyAlgorithm.cs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"523113b6a6d6cc27a64eb718db53ddb7d4fc484fd2d0a73d8d9941ed8a60f7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Algorithm.CSharp/BasicTemplateFuturesDailyAlgorithm.cs:72-88 | Algorithm.CSharp/BasicTemplateMultiAssetAlgorithm.cs:92-106 | Algorithm.CSharp/FutureSharingTickerRegressionAlgorithm.cs:51-64 | Algorithm.CSharp/FuturesMomentumAlgorithm.cs:70-84 \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 \u0060Algorithm.CSharp/BasicTemplateFuturesDailyAlgorithm.cs:72\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":"Algorithm.CSharp/BasicTemplateFuturesDailyAlgorithm.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"24524b3344c6660624ca53ae796204fc14e2b93ae3663ac07e73e001d10e7bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Common/Orders/Fills/EquityFillModel.cs:1068-1081 | Common/Orders/Fills/FillModel.cs:1175-1188 | Common/Orders/Fills/LatestPriceFillModel.cs:63-78 \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 \u0060Common/Orders/Fills/EquityFillModel.cs:1068\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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c49289a13d2f4c526cb33eb5f9847ce68fb781d47fba32454585555d8f3b118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Indicators/CandlestickPatterns/Harami.cs:101-114 | Indicators/CandlestickPatterns/HomingPigeon.cs:105-118 | Indicators/CandlestickPatterns/UniqueThreeRiver.cs:111-124 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/CandlestickPatterns/Harami.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8592e2f92ec56d74b34467109d2822ee72128a355fd4d73d0d90efc0f89a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Common/Brokerages/FxcmBrokerageModel.cs:78-91 | Common/Brokerages/OandaBrokerageModel.cs:83-96 \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 \u0060Common/Brokerages/FxcmBrokerageModel.cs:78\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":"Common/Brokerages/FxcmBrokerageModel.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"07329eecce1ecf20caff6e1e234afe00307defc154ebbbf569019ceacacadc7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Common/Orders/Fills/EquityFillModel.cs:755-768 | Common/Orders/Fills/EquityFillModel.cs:864-877 \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 \u0060Common/Orders/Fills/EquityFillModel.cs:755\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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ad8f994e87dd1bc440dc934cd445bec2ea3ed87215622c745b99269c4b77d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Indicators/CandlestickPatterns/DojiStar.cs:105-118 | Indicators/CandlestickPatterns/HaramiCross.cs: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. 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":"Indicators/CandlestickPatterns/DojiStar.cs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"24508348ad9a8b7f7bae02cc75853c84361378c39a27584e9750ec25541dea35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Indicators/CandlestickPatterns/Hikkake.cs:114-127 | Indicators/CandlestickPatterns/HikkakeModified.cs:152-165 \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 \u0060Indicators/CandlestickPatterns/Hikkake.cs: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":"Indicators/CandlestickPatterns/Hikkake.cs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca245ef4908c478a73cd2e1aec94a32a4acc719dcebbe9e9982417de01b8e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Indicators/CandlestickPatterns/IdenticalThreeCrows.cs:121-134 | Indicators/CandlestickPatterns/ThreeWhiteSoldiers.cs:146-159 \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":"Indicators/CandlestickPatterns/IdenticalThreeCrows.cs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ce8b5e0981ed5e98b7c3fe803db8c7b8bb797c7636a78290533a109c10e129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Indicators/CandlestickPatterns/MatchingLow.cs:88-101 | Indicators/CandlestickPatterns/StickSandwich.cs:95-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 \u0060Indicators/CandlestickPatterns/MatchingLow.cs:88\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":"Indicators/CandlestickPatterns/MatchingLow.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbc220b13a1de462273c28047f009564a1896d35392bf3359408a4b3605fd8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Indicators/CandlestickPatterns/MorningDojiStar.cs:111-124 | Indicators/CandlestickPatterns/UniqueThreeRiver.cs:84-97 \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 \u0060Indicators/CandlestickPatterns/MorningDojiStar.cs:111\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":"Indicators/CandlestickPatterns/MorningDojiStar.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc21afe1ee8f8418903a36377507900c5b94ca2fbab6589c04dd61f6621339d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Algorithm.CSharp/ConstituentsUniverseImmediateSelectionRegressionAlgorithm.cs:38-52 | Algorithm.CSharp/ConstituentsUniverseRegressionAlgorithm.cs:39-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 \u0060Algorithm.CSharp/ConstituentsUniverseImmediateSelectionRegressionAlgorithm.cs:38\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":"Algorithm.CSharp/ConstituentsUniverseImmediateSelectionRegressionAlgorithm.cs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5cec92b04c11901ce22b4e8e071a47547f99af046db488601089eefc88f9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Algorithm.CSharp/CustomDataUniverseRegressionAlgorithm.cs:49-62 | Algorithm.CSharp/CustomDataUniverseScheduledRegressionAlgorithm.cs:47-60 \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 \u0060Algorithm.CSharp/CustomDataUniverseRegressionAlgorithm.cs:49\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":"Algorithm.CSharp/CustomDataUniverseRegressionAlgorithm.cs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9514f7c8cb2cddd0150b48ee102255a196449cd69a32606675e6143b8856d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Algorithm.CSharp/IndexOptionShortCallITMExpiryRegressionAlgorithm.cs:47-60 | Algorithm.CSharp/IndexOptionShortPutITMExpiryRegressionAlgorithm.cs:46-59 \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":"Algorithm.CSharp/IndexOptionShortCallITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"677a41942289dd0557fb3a3befcb2bf1ed2fc3aca9707052fa628ce7553ef04e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Algorithm.CSharp/OptionRenameDailyRegressionAlgorithm.cs:113-131 | Algorithm.CSharp/OptionRenameRegressionAlgorithm.cs:105-118 \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 \u0060Algorithm.CSharp/OptionRenameDailyRegressionAlgorithm.cs:113\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":"Algorithm.CSharp/OptionRenameDailyRegressionAlgorithm.cs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ac6d65eda6daf55c91ea64e6eb835288bfb45c586b1b07b6c700d421b3ae91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Algorithm.CSharp/WarmupLowerResolutionOptionRegressionAlgorithm.cs:100-113 | Algorithm.CSharp/WarmupOptionResolutionRegressionAlgorithm.cs:34-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/WarmupLowerResolutionOptionRegressionAlgorithm.cs:100\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":"Algorithm.CSharp/WarmupLowerResolutionOptionRegressionAlgorithm.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e9b8c528f966577224512b1103032628e648c03dfe971d13a277fb88c26fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Algorithm.Framework/Execution/StandardDeviationExecutionModel.cs:125-138 | Algorithm.Framework/Execution/VolumeWeightedAveragePriceExecutionModel.cs:110-123 \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 \u0060Algorithm.Framework/Execution/StandardDeviationExecutionModel.cs:125\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":"Algorithm.Framework/Execution/StandardDeviationExecutionModel.cs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ca0131453fa6a34ab52635ef016e608f550bfa8d9ec2aefd5c814a2bc4aa32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs:44-56 | Algorithm.CSharp/FutureOptionCallOTMExpiryRegressionAlgorithm.cs:50-62 | Algorithm.CSharp/FutureOptionPutITMExpiryRegressionAlgorithm.cs:45-57 | Algorithm.CSharp/FutureOptionPutOTMExpiryRegressionAlgorithm.cs:49-61 | Algorithm.CSharp/FutureOptionShortCallITMExpiryRegressionAlgorithm.cs:45-57 | Algorithm.CSharp/FutureOptionShortCallOTMExpiryRegressionAlgorithm.cs:46-58 | Algorithm.CSharp/FutureOptionShortPutITMExpiryRegressionAlgorithm.cs:45-57 | Algorithm.CSharp/FutureOptionShortPutOTMExpiryRegressionAlgorithm.cs:46-58 | Algorithm.CSharp/OptionOTMExpiryOrderHasZeroPriceRegressionAlgorithm.cs:51-63 \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 \u0060Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs:44\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":"Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4e55c2eb49c7164f4595962b553fb425cdaeecfbf1f8387d0aa5a9b01f2359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): Common/Brokerages/AxosClearingBrokerageModel.cs:109-125 | Common/Brokerages/CoinbaseBrokerageModel.cs:184-196 | Common/Brokerages/FxcmBrokerageModel.cs:84-100 | Common/Brokerages/OandaBrokerageModel.cs:89-105 | Common/Brokerages/TradingTechnologiesBrokerageModel.cs:109-125 | Common/Brokerages/ZerodhaBrokerageModel.cs:106-124 \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 \u0060Common/Brokerages/AxosClearingBrokerageModel.cs:109\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":"Common/Brokerages/AxosClearingBrokerageModel.cs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f637b7984692eaa7057255620aa3a3b38397dc9c6df541bfcd280662cd66789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Common/Brokerages/EzeBrokerageModel.cs:94-108 | Common/Brokerages/PublicBrokerageModel.cs:87-100 | Common/Brokerages/TastytradeBrokerageModel.cs:95-107 | Common/Brokerages/TradeStationBrokerageModel.cs:131-143 \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 \u0060Common/Brokerages/EzeBrokerageModel.cs:94\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":"Common/Brokerages/EzeBrokerageModel.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b60f0720a9488aea3f0fefa0d98fdae8a9d345a5326e89cd928e10fdc5cbc0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Common/Brokerages/CharlesSchwabBrokerageModel.cs:86-99 | Common/Brokerages/PublicBrokerageModel.cs:82-94 | Common/Brokerages/TastytradeBrokerageModel.cs:90-103 \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 \u0060Common/Brokerages/CharlesSchwabBrokerageModel.cs: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. 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":"Common/Brokerages/CharlesSchwabBrokerageModel.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba088c7dd71b48d48fd1b6580ff4d7c9ab3c2ce313f7582c2c073355d0c03a84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Indicators/CandlestickPatterns/InNeck.cs:104-116 | Indicators/CandlestickPatterns/OnNeck.cs:104-116 | Indicators/CandlestickPatterns/Thrusting.cs:107-119 \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 \u0060Indicators/CandlestickPatterns/InNeck.cs:104\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":"Indicators/CandlestickPatterns/InNeck.cs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6813a5e95475e6977d6545417fdfc17e522500b079e9dc1acf2faef2386b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Algorithm.CSharp/BasicTemplateOptionsAlgorithm.cs:69-81 | Algorithm.CSharp/OptionResolutionRegressionAlgorithm.cs:60-72 | Algorithm.CSharp/SamcoBasicTemplateOptionsAlgorithm.cs:68-80 \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 \u0060Algorithm.CSharp/BasicTemplateOptionsAlgorithm.cs:69\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":"Algorithm.CSharp/BasicTemplateOptionsAlgorithm.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3d4ce7acccdaf458ca45b9cf6f6454f1dd9f7dd599eae347de00c927eefe15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Engine/DataFeeds/Enumerators/LiveDividendEventProvider.cs:37-49 | Engine/DataFeeds/Enumerators/LiveSplitEventProvider.cs:37-49 \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 \u0060Engine/DataFeeds/Enumerators/LiveDividendEventProvider.cs:37\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":"Engine/DataFeeds/Enumerators/LiveDividendEventProvider.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3aa936a277f0b2f12f08c1ce1b2aa195b1853f1698aeed8a9fda6ecd7733e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Common/Securities/BuyingPowerModel.cs:147-159 | Common/Securities/Future/FutureMarginModel.cs:131-143 \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 \u0060Common/Securities/BuyingPowerModel.cs:147\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":"Common/Securities/BuyingPowerModel.cs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caaec346756f2f82c9aba9f73585ea73c91b5fd591f9a7eb30b3683cfac9b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Common/Util/LeanData.cs:705-717 | Common/Util/LeanData.cs:733-745 \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 \u0060Common/Util/LeanData.cs:705\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":"Common/Util/LeanData.cs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"10197a57e55676d2ba2308587991ddb06c47c3f6669dc7adafb1b1f5cfa5a959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Indicators/CandlestickPatterns/EveningStar.cs:128-140 | Indicators/CandlestickPatterns/UpsideGapTwoCrows.cs:112-124 \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 \u0060Indicators/CandlestickPatterns/EveningStar.cs:128\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":"Indicators/CandlestickPatterns/EveningStar.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9ba5671924903e24395b4282586d954411817cc79d3eadeac408f41db5b95e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Indicators/CandlestickPatterns/MatHold.cs:140-152 | Indicators/CandlestickPatterns/RiseFallThreeMethods.cs:121-133 \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 \u0060Indicators/CandlestickPatterns/MatHold.cs:140\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":"Indicators/CandlestickPatterns/MatHold.cs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7843253fb405beda12162ad1cd7421fcc1a18f4fb0fe8c988f573c4399ee778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Indicators/CandlestickPatterns/StalledPattern.cs:106-118 | Indicators/CandlestickPatterns/ThreeLineStrike.cs:77-89 \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 \u0060Indicators/CandlestickPatterns/StalledPattern.cs:106\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":"Indicators/CandlestickPatterns/StalledPattern.cs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"597ccb288ca5f9c334a5a1c21acf790d3569829813006d5197d3c4f5cbf313d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Indicators/CandlestickPatterns/TwoCrows.cs:78-90 | Indicators/CandlestickPatterns/UpsideGapTwoCrows.cs:88-101 \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 \u0060Indicators/CandlestickPatterns/TwoCrows.cs:78\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":"Indicators/CandlestickPatterns/TwoCrows.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9caa8b3f19b40a3ecbd83332c904cf7524b83801b4f4d52ba73d335059093ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Algorithm.CSharp/BacktestingBrokerageRegressionAlgorithm.cs:267-279 | Algorithm.CSharp/CustomModelsAlgorithm.cs:100-112 \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 \u0060Algorithm.CSharp/BacktestingBrokerageRegressionAlgorithm.cs:267\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":"Algorithm.CSharp/BacktestingBrokerageRegressionAlgorithm.cs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"4480a8c061827020ac8e7b4503fe9a998e081ed6b93cf21228ea36f213a1c405"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Algorithm.CSharp/BaseFrameworkRegressionAlgorithm.cs:39-51 | Algorithm.CSharp/PearsonCorrelationPairsTradingAlphaModelFrameworkAlgorithm.cs:38-50 \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 \u0060Algorithm.CSharp/BaseFrameworkRegressionAlgorithm.cs:39\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":"Algorithm.CSharp/BaseFrameworkRegressionAlgorithm.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b490deedbf07666956529ea72dbf4c34759974d65b4e0bc3d10d811fa5f17928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Algorithm.CSharp/BasicTemplateFuturesAlgorithm.cs:56-68 | Algorithm.CSharp/BasicTemplateFuturesWithExtendedMarketAlgorithm.cs:56-68 \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":"Algorithm.CSharp/BasicTemplateFuturesAlgorithm.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c98dfb8bcf455c174906fd21ec49fd9530841549d99b30443fd806ec5cad7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Algorithm.CSharp/BasicTemplateMultiAssetAlgorithm.cs:111-124 | Algorithm.CSharp/BasicTemplateOptionTradesAlgorithm.cs:62-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":"Algorithm.CSharp/BasicTemplateMultiAssetAlgorithm.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb1d445ec7a06cc569b3157e874fbb29603756569eaa24500692bb9802a7b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Algorithm.CSharp/ForexInternalFeedOnDataHigherResolutionRegressionAlgorithm.cs:82-94 | Algorithm.CSharp/ForexInternalFeedOnDataSameResolutionRegressionAlgorithm.cs:82-94 \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 \u0060Algorithm.CSharp/ForexInternalFeedOnDataHigherResolutionRegressionAlgorithm.cs:82\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":"Algorithm.CSharp/ForexInternalFeedOnDataHigherResolutionRegressionAlgorithm.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"671dccd7b24a468a3e8a75cc7f0c2be35d0b47e5fa7ba6bb75d0e1b4a0e1d2d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Algorithm.CSharp/IndexOptionCallCalendarSpreadAlgorithm.cs:56-68 | Algorithm.CSharp/IndexOptionPutCalendarSpreadAlgorithm.cs:62-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/IndexOptionCallCalendarSpreadAlgorithm.cs:56\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":"Algorithm.CSharp/IndexOptionCallCalendarSpreadAlgorithm.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb668410e352f78b7a6e9708bdcf5a5510dc05d8bc792f3eeb4047d6232ed40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Algorithm.CSharp/OptionChainConsistencyRegressionAlgorithm.cs:42-54 | Algorithm.CSharp/OptionExerciseAssignRegressionAlgorithm.cs:42-54 \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":"Algorithm.CSharp/OptionChainConsistencyRegressionAlgorithm.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5b11baa6f370ce4a4a0f1cef7d5314206b862a2cd075bbfdf6801f01d79d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Algorithm.CSharp/PortfolioRebalanceOnCustomFuncRegressionAlgorithm.cs:42-57 | Algorithm.CSharp/PortfolioRebalanceOnDateRulesRegressionAlgorithm.cs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/PortfolioRebalanceOnCustomFuncRegressionAlgorithm.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a00d972ba11523d350fc8f55b9720d01c1747960c756ee2cc0426636c3a1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): Algorithm.CSharp/OptionEquityConversionRegressionAlgorithm.cs:37-48 | Algorithm.CSharp/OptionEquityProtectiveCollarRegressionAlgorithm.cs:38-49 | Algorithm.CSharp/OptionEquityReverseConversionRegressionAlgorithm.cs:37-48 | Algorithm.CSharp/OptionEquityStraddleRegressionAlgorithm.cs:37-48 | Algorithm.CSharp/OptionEquityStrangleRegressionAlgorithm.cs:37-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/OptionEquityConversionRegressionAlgorithm.cs:37\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":"Algorithm.CSharp/OptionEquityConversionRegressionAlgorithm.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba2ff61eb634b0868ab86c7fa3e6d96db5089cceca6d6fc6dc6b559d29e40d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Common/Util/LeanData.cs:165-176 | Common/Util/LeanData.cs:353-365 | Common/Util/LeanData.cs:424-436 \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 \u0060Common/Util/LeanData.cs:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Common/Util/LeanData.cs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84c744d5f34a021d1bc3fe010384c39dcce33bb4bcd0b4a0fb0a19358b5f033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Indicators/CandlestickPatterns/DarkCloudCover.cs:110-121 | Indicators/CandlestickPatterns/EveningDojiStar.cs:132-144 | Indicators/CandlestickPatterns/EveningStar.cs:125-137 \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 \u0060Indicators/CandlestickPatterns/DarkCloudCover.cs:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/CandlestickPatterns/DarkCloudCover.cs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4c016b423f2c07a2c69da5ee5f532a761e6e52fe0940778eddf037d49cd98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Algorithm.CSharp/ComboOrderAlgorithm.cs:72-83 | Algorithm.CSharp/ComboOrderTicketDemoAlgorithm.cs:61-72 | Algorithm.CSharp/RevertComboOrderPositionsAlgorithm.cs:64-75 \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":"Algorithm.CSharp/ComboOrderAlgorithm.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f39279d0793e74eec4e6089b156b3e5ecf3f3f1234edeb009c29b6b5fb8150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm/Execution/ImmediateExecutionModel.cs:46-58 | Algorithm.CSharp/ExecutionModelOrderEventsRegressionAlgorithm.cs:90-101 \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 \u0060Algorithm/Execution/ImmediateExecutionModel.cs:46\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":"Algorithm/Execution/ImmediateExecutionModel.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a289bfd8a6132381e93ebb2c68747456fd9de4246a09ea063b9fa1ecbc1e800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Common/Brokerages/BybitBrokerageModel.cs:127-138 | Common/Brokerages/CoinbaseBrokerageModel.cs:134-145 \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 \u0060Common/Brokerages/BybitBrokerageModel.cs:127\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":"Common/Brokerages/BybitBrokerageModel.cs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"359854df3447ce12489c9ff865a3c4005f8992bdee29a313a67f1d7f64f54998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Common/Orders/Fills/EquityFillModel.cs:606-617 | Common/Orders/Fills/FillModel.cs:808-819 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"622aefe9d2d5a80d7d64ac8d55a9951412aac5063fcd2c5f513dfaf2020ad49e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.CSharp/AddBetaIndicatorNewAssetsRegressionAlgorithm.cs:78-89 | Algorithm.CSharp/AddBetaIndicatorRegressionAlgorithm.cs:75-86 \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":"Algorithm.CSharp/AddBetaIndicatorNewAssetsRegressionAlgorithm.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16ff53c2bfb59b4cf06912d70e7c98cfcf34db5b6d4312339a48348149d3690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.CSharp/BacktestingBrokerageRegressionAlgorithm.cs:92-103 | Algorithm.CSharp/OptionExerciseAssignRegressionAlgorithm.cs:74-85 \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 \u0060Algorithm.CSharp/BacktestingBrokerageRegressionAlgorithm.cs:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BacktestingBrokerageRegressionAlgorithm.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3135f8bbbfe969c9d80485f9c26649a1599f46b4f8d67f989b66d6e116c3cb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.CSharp/BasicTemplateCryptoAlgorithm.cs:42-69 | Algorithm.CSharp/StartingCapitalRegressionAlgorithm.cs:34-45 \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 \u0060Algorithm.CSharp/BasicTemplateCryptoAlgorithm.cs:42\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":"Algorithm.CSharp/BasicTemplateCryptoAlgorithm.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0822ce5490e7213157866a5e690b5a39042c0736aceb389b3e53bd81a5613a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.CSharp/BasicTemplateSPXWeeklyIndexOptionsAlgorithm.cs:75-86 | Algorithm.CSharp/OptionResolutionRegressionAlgorithm.cs:64-75 \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 \u0060Algorithm.CSharp/BasicTemplateSPXWeeklyIndexOptionsAlgorithm.cs:75\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":"Algorithm.CSharp/BasicTemplateSPXWeeklyIndexOptionsAlgorithm.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03fb60d4f8837e5b8a8e00538f6766828544192dfeb12cddc8ea1e452beacf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.CSharp/IndexOptionBearPutSpreadAlgorithm.cs:43-54 | Algorithm.CSharp/IndexOptionBullPutSpreadAlgorithm.cs:43-54 \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 \u0060Algorithm.CSharp/IndexOptionBearPutSpreadAlgorithm.cs:43\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":"Algorithm.CSharp/IndexOptionBearPutSpreadAlgorithm.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3e99bc2a1c9a872dbf22e110d35cb3d3499b5d2be62b6b67be97a7f446b52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.CSharp/LongAndShortButterflyCallStrategiesAlgorithm.cs:40-51 | Algorithm.CSharp/LongAndShortButterflyPutStrategiesAlgorithm.cs:40-51 \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 \u0060Algorithm.CSharp/LongAndShortButterflyCallStrategiesAlgorithm.cs:40\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":"Algorithm.CSharp/LongAndShortButterflyCallStrategiesAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e004105745138c3cc9a535db1032d63db2a24ee3c4acc6a889d7429739c6ac13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.CSharp/SecurityInitializationOnReAdditionForEquityRegressionAlgorithm.cs:48-59 | Algorithm.CSharp/SecurityInitializationOnReAdditionForUniverseSelectionRegressionAlgorithm.cs:48-59 \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 \u0060Algorithm.CSharp/SecurityInitializationOnReAdditionForEquityRegressionAlgorithm.cs:48\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":"Algorithm.CSharp/SecurityInitializationOnReAdditionForEquityRegressionAlgorithm.cs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02adf7790457f783934a12332d8c6d72cc496a45808e7a0a2ccacbe50830ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.CSharp/WarmupLowerResolutionOptionRegressionAlgorithm.cs:65-76 | Algorithm.CSharp/WarmupOptionRegressionAlgorithm.cs:54-68 \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 \u0060Algorithm.CSharp/WarmupLowerResolutionOptionRegressionAlgorithm.cs:65\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":"Algorithm.CSharp/WarmupLowerResolutionOptionRegressionAlgorithm.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6536f92f9de2f6e777f1fbe31e7e7eb07cb9d25c9a02d2ed0455e22043ca4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Algorithm.Framework/Portfolio/MeanVarianceOptimizationPortfolioConstructionModel.cs:317-328 | Algorithm.Framework/Portfolio/RiskParityPortfolioConstructionModel.cs:249-260 \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 \u0060Algorithm.Framework/Portfolio/MeanVarianceOptimizationPortfolioConstructionModel.cs:317\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":"Algorithm.Framework/Portfolio/MeanVarianceOptimizationPortfolioConstructionModel.cs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"634f7bcf5faab6c2a9d7bb3fc3abc5c0e08357fed25d5b4384c0898c0d9780c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Algorithm.CSharp/OptionEquityBoxSpreadRegressionAlgorithm.cs:37-47 | Algorithm.CSharp/OptionEquityIronButterflyRegressionAlgorithm.cs:37-47 | Algorithm.CSharp/OptionEquityIronCondorRegressionAlgorithm.cs:37-47 | Algorithm.CSharp/OptionEquityShortBoxSpreadRegressionAlgorithm.cs:37-47 | Algorithm.CSharp/OptionEquityShortIronButterflyRegressionAlgorithm.cs:37-47 | Algorithm.CSharp/OptionEquityShortIronCondorRegressionAlgorithm.cs:37-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/OptionEquityBoxSpreadRegressionAlgorithm.cs:37\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":"Algorithm.CSharp/OptionEquityBoxSpreadRegressionAlgorithm.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"415d0801b65d5372e2cdf2bbce3078220656e4366e35934d559c410ed90eaebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Indicators/Gamma.cs:195-205 | Indicators/Rho.cs:195-205 | Indicators/Theta.cs:195-205 | Indicators/Vega.cs:195-205 \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 \u0060Indicators/Gamma.cs:195\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":"Indicators/Gamma.cs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0154e2b2c06908717bc024d9ec6fb4c00e2fb4cf4911d440944141cc58f01c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Algorithm.CSharp/FutureOptionPutITMExpiryRegressionAlgorithm.cs:59-69 | Algorithm.CSharp/FutureOptionPutOTMExpiryRegressionAlgorithm.cs:63-73 | Algorithm.CSharp/FutureOptionShortPutITMExpiryRegressionAlgorithm.cs:59-69 | Algorithm.CSharp/FutureOptionShortPutOTMExpiryRegressionAlgorithm.cs:60-70 \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 \u0060Algorithm.CSharp/FutureOptionPutITMExpiryRegressionAlgorithm.cs:59\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":"Algorithm.CSharp/FutureOptionPutITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"39656028ad9ec2b7222a92b758aaa744f484acffabb8b4db9702edd7431fba50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Algorithm.CSharp/IndexOptionPutITMExpiryRegressionAlgorithm.cs:53-63 | Algorithm.CSharp/IndexOptionPutOTMExpiryRegressionAlgorithm.cs:58-68 | Algorithm.CSharp/IndexOptionShortPutITMExpiryRegressionAlgorithm.cs:64-74 | Algorithm.CSharp/IndexOptionShortPutOTMExpiryRegressionAlgorithm.cs:55-65 \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 \u0060Algorithm.CSharp/IndexOptionPutITMExpiryRegressionAlgorithm.cs:53\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":"Algorithm.CSharp/IndexOptionPutITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00ac1147728b725ef68afc98d5860338acbbc8fe42c1e74a00aa8ba8b00d011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Indicators/CandlestickPatterns/MorningStar.cs:95-105 | Indicators/CandlestickPatterns/ThreeInside.cs:76-86 | Indicators/CandlestickPatterns/UpsideGapTwoCrows.cs:78-88 \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 \u0060Indicators/CandlestickPatterns/MorningStar.cs:95\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":"Indicators/CandlestickPatterns/MorningStar.cs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"438dd58199e74cc5e0537cc43dd0e41a03c65070800b34f436653fe2379fe191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs:63-73 | Algorithm.CSharp/IndexOptionShortCallITMExpiryRegressionAlgorithm.cs:67-77 | Algorithm.CSharp/IndexOptionShortCallOTMExpiryRegressionAlgorithm.cs:57-67 \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 \u0060Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs:63\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":"Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"78814a480bd542ecdaf17c5c32e7adc6336ed4b63d8416d5c344d4ed37fab679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Algorithm.CSharp/IsMarketOpenCheckAlgorithm.cs:55-65 | Algorithm.CSharp/IsMarketOpenCheckAlgorithm.cs:70-80 | Algorithm.CSharp/IsMarketOpenCheckWithExtendedMarketHoursAlgorithm.cs:62-72 \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 \u0060Algorithm.CSharp/IsMarketOpenCheckAlgorithm.cs:55\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":"Algorithm.CSharp/IsMarketOpenCheckAlgorithm.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2107d6d8be8470cca055f4000f00a0b3e5a1f9f6269ccccc771e0af48e3f2d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Algorithm.CSharp/OptionEquityBoxSpreadRegressionAlgorithm.cs:58-68 | Algorithm.CSharp/OptionEquityJellyRollRegressionAlgorithm.cs:59-69 | Algorithm.CSharp/OptionEquityShortBoxSpreadRegressionAlgorithm.cs:58-68 \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 \u0060Algorithm.CSharp/OptionEquityBoxSpreadRegressionAlgorithm.cs:58\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":"Algorithm.CSharp/OptionEquityBoxSpreadRegressionAlgorithm.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9377ee8bf394d541bb97f378ec80406dcf894565f990b86aa78c3cca3b60c555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Common/Brokerages/AlpacaBrokerageModel.cs:86-96 | Common/Brokerages/WebullBrokerageModel.cs:105-115 \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 \u0060Common/Brokerages/AlpacaBrokerageModel.cs: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":"Common/Brokerages/AlpacaBrokerageModel.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdeec9ac1806876c1c13c4d91185f5ef243ae156c7eb101f1472661c2be8bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Common/Brokerages/BloombergFixBrokerageModel.cs:65-75 | Common/Brokerages/TerminalLinkBrokerageModel.cs:59-69 \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 \u0060Common/Brokerages/BloombergFixBrokerageModel.cs:65\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":"Common/Brokerages/BloombergFixBrokerageModel.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"925a9677c84a8bfdadad9c5e409725eb25072b721ea6eb6a39c103eaf94dc242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Common/Brokerages/SamcoBrokerageModel.cs:165-175 | Common/Brokerages/ZerodhaBrokerageModel.cs:161-171 \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":"Common/Brokerages/SamcoBrokerageModel.cs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bbb994113193144567710bd89c601c1e8e12f3f97af91c53915e945173c863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Common/Orders/Fills/EquityFillModel.cs:785-795 | Common/Orders/Fills/EquityFillModel.cs:894-904 \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 \u0060Common/Orders/Fills/EquityFillModel.cs:785\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":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"455a8544ac2ab4eefbb6ceba3149bcc98905b25b24cf368c5c4debe23b42596d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Common/Orders/Fills/FillModel.cs:854-864 | Common/Orders/Fills/FillModel.cs:913-923 \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 \u0060Common/Orders/Fills/FillModel.cs:854\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":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a7fc930f429955a9ef7a04df04ce46f932679dd1dbf3f1531669d0e56ddb9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Indicators/CandlestickPatterns/HikkakeModified.cs:101-111 | Indicators/CandlestickPatterns/HikkakeModified.cs:146-156 \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 \u0060Indicators/CandlestickPatterns/HikkakeModified.cs:101\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":"Indicators/CandlestickPatterns/HikkakeModified.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd97c8e5857b4c5a66303f5c705de70c33c3da5ed5f09ee77952ada65f5e11eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Indicators/CandlestickPatterns/MatHold.cs:107-117 | Indicators/CandlestickPatterns/RiseFallThreeMethods.cs:90-100 \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 \u0060Indicators/CandlestickPatterns/MatHold.cs:107\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":"Indicators/CandlestickPatterns/MatHold.cs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ed67eccb3b67ab738fddabc83b325231bfc44381cb0e1bc1bf3495ff949af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Indicators/Rho.cs:219-229 | Indicators/Vega.cs:219-229 \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 \u0060Indicators/Rho.cs:219\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":"Indicators/Rho.cs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de3c1a2e08c84c3be8b421b718e7625e754ac31fc6d6626e80cc8acf0424d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/AddUniverseSelectionModelAlgorithm.cs:36-46 | Algorithm.CSharp/AddUniverseSelectionModelCoarseAlgorithm.cs:36-50 \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 \u0060Algorithm.CSharp/AddUniverseSelectionModelAlgorithm.cs:36\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":"Algorithm.CSharp/AddUniverseSelectionModelAlgorithm.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9632fcd7e4e773ac4573e4e3df66484618fe0e1055ed1b71e1a8253b118c98ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/BasicTemplateContinuousFutureAlgorithm.cs:77-87 | Algorithm.CSharp/BasicTemplateContinuousFutureWithExtendedMarketAlgorithm.cs:88-98 \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 \u0060Algorithm.CSharp/BasicTemplateContinuousFutureAlgorithm.cs:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicTemplateContinuousFutureAlgorithm.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3fe2936d8e2b5f42ee064864bebc623dc7527b307bc3707e93314f970b9774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/BasicTemplateOptionStrategyAlgorithm.cs:66-76 | Algorithm.CSharp/BasicTemplateOptionTradesAlgorithm.cs:59-70 \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 \u0060Algorithm.CSharp/BasicTemplateOptionStrategyAlgorithm.cs:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicTemplateOptionStrategyAlgorithm.cs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8d4842d2777ecdfd5d53dbe97469a940240297c0593af98756f8015cd656e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs:62-72 | Algorithm.CSharp/FutureOptionCallOTMExpiryRegressionAlgorithm.cs:68-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 \u0060Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs:62\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":"Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62515749d99ef12aab6d576b66f50264651eee6590103746def046af9c35081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/FutureOptionShortCallITMExpiryRegressionAlgorithm.cs:63-73 | Algorithm.CSharp/FutureOptionShortCallOTMExpiryRegressionAlgorithm.cs:64-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/FutureOptionShortCallITMExpiryRegressionAlgorithm.cs:63\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":"Algorithm.CSharp/FutureOptionShortCallITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7756f4763d441046dbf78541e92520cd6c34e78d78ad33fcbd07085c7d0beb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs:60-70 | Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs:65-75 \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 \u0060Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs:60\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":"Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae2dc57b212740e40a99120e53b9a2e715f9c8eecdc8acff3b691f70d6b26f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/LimitOrdersAreFilledAfterHoursForFuturesRegressionAlgorithm.cs:41-51 | Algorithm.CSharp/MarketOrdersAreSupportedOnExtendedHoursForFuturesRegressionAlgorithm.cs:36-46 \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 \u0060Algorithm.CSharp/LimitOrdersAreFilledAfterHoursForFuturesRegressionAlgorithm.cs:41\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":"Algorithm.CSharp/LimitOrdersAreFilledAfterHoursForFuturesRegressionAlgorithm.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d255bd4db5cecd1c835aa147029baca964d47a8fc26daddac3ab6b4fca9e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/OptionEquityCallButterflyRegressionAlgorithm.cs:40-50 | Algorithm.CSharp/OptionEquityShortButterflyCallRegressionAlgorithm.cs:40-50 \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 \u0060Algorithm.CSharp/OptionEquityCallButterflyRegressionAlgorithm.cs:40\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":"Algorithm.CSharp/OptionEquityCallButterflyRegressionAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3fb11a03919a13ff8ecc59f890b4edf5379e6710f1d7e017e48e7dfbd9aa5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/OptionEquityJellyRollRegressionAlgorithm.cs:38-48 | Algorithm.CSharp/OptionEquityShortJellyRollRegressionAlgorithm.cs:38-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/OptionEquityJellyRollRegressionAlgorithm.cs:38\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":"Algorithm.CSharp/OptionEquityJellyRollRegressionAlgorithm.cs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3f59a26d36cae185d70fad091c5d4903d03b820516159588388255188bfd3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/OptionEquityPutButterflyRegressionAlgorithm.cs:40-50 | Algorithm.CSharp/OptionEquityShortButterflyPutRegressionAlgorithm.cs:40-50 \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 \u0060Algorithm.CSharp/OptionEquityPutButterflyRegressionAlgorithm.cs:40\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":"Algorithm.CSharp/OptionEquityPutButterflyRegressionAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5329603411c71a56dece9182cf697c63a127baa5bd297b77ddacfab43d34ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Algorithm.CSharp/OptionShortCallMarginCallEventsAlgorithm.cs:35-45 | Algorithm.CSharp/SingleOptionPositionGroupBuyingPowerModelRegressionAlgorithm.cs:37-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/OptionShortCallMarginCallEventsAlgorithm.cs:35\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":"Algorithm.CSharp/OptionShortCallMarginCallEventsAlgorithm.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61521dc846bc196befc5f2a6d001b50c40d7f15bcc4cc76a44389c70e116316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Algorithm.CSharp/OptionEquityBearCallSpreadRegressionAlgorithm.cs:36-45 | Algorithm.CSharp/OptionEquityBearCallSpreadSetHoldingsRegressionAlgorithm.cs:44-53 | Algorithm.CSharp/OptionEquityBullCallSpreadRegressionAlgorithm.cs:36-45 \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 \u0060Algorithm.CSharp/OptionEquityBearCallSpreadRegressionAlgorithm.cs:36\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":"Algorithm.CSharp/OptionEquityBearCallSpreadRegressionAlgorithm.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3e8dbf7ca4556bbed709d205b557045dfd06ffbae8b5110325f050603d0949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Common/Data/Auxiliary/CorporateFactorProvider.cs:113-122 | Common/Data/Auxiliary/CorporateFactorProvider.cs:150-159 \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 \u0060Common/Data/Auxiliary/CorporateFactorProvider.cs:113\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":"Common/Data/Auxiliary/CorporateFactorProvider.cs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"832c199d9588c52793e4a3b85e6741370799b5603616edf20de49a71b4f96b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Common/Util/LeanData.cs:116-125 | Common/Util/LeanData.cs:132-141 \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 \u0060Common/Util/LeanData.cs:116\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":"Common/Util/LeanData.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7d4a0d6d165d701089074cc6067250fb4526199b6596a4bde7d9141179de3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Indicators/CandlestickPatterns/Hikkake.cs:79-88 | Indicators/CandlestickPatterns/Hikkake.cs:109-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Indicators/CandlestickPatterns/Hikkake.cs:79\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":"Indicators/CandlestickPatterns/Hikkake.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"60340a073106eef439270a1b7f9bf58bd231c83747151e7c49aa95d7a16e423a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Indicators/CandlestickPatterns/InvertedHammer.cs:119-128 | Indicators/CandlestickPatterns/ShootingStar.cs:120-129 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/CandlestickPatterns/InvertedHammer.cs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"70165b1279a31aa1a47a56291937737d3f0d3ce2c864f1902b885d3730c9ed6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/AddAlphaModelAlgorithm.cs:50-59 | Algorithm.CSharp/InsightTagAlphaRegressionAlgorithm.cs:48-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AddAlphaModelAlgorithm.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbcffb3ef265deec0e148f62b1be29131f700e1cd0d903f1cb4005bb9f2c4cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/AutomaticIndicatorWarmupDataTypeRegressionAlgorithm.cs:44-53 | Algorithm.CSharp/AutomaticIndicatorWarmupDataTypeRegressionAlgorithm.cs:71-81 \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":"Algorithm.CSharp/AutomaticIndicatorWarmupDataTypeRegressionAlgorithm.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"26176d6bf548226c800c2a49c4a358ff4688c522c6976658554fbafcdb819fe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/BasicTemplateOptionsAlgorithm.cs:41-51 | Algorithm.CSharp/NonDynamicOptionsFilterRegressionAlgorithm.cs:38-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/BasicTemplateOptionsAlgorithm.cs:41\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":"Algorithm.CSharp/BasicTemplateOptionsAlgorithm.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e574aca4f94551b59406e664cd29fd1a9132009ce4108ad6fe1cba7f698e992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/CoarseFineFundamentalComboAlgorithm.cs:112-121 | Algorithm.CSharp/CoarseFineFundamentalRegressionAlgorithm.cs:136-145 \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 \u0060Algorithm.CSharp/CoarseFineFundamentalComboAlgorithm.cs:112\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":"Algorithm.CSharp/CoarseFineFundamentalComboAlgorithm.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0039ae084a76de92b4c72a21c76b08fd6b58e4cd4abc1e86e2539bfd4712be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/CoveredCallComboLimitOrderAlgorithm.cs:37-46 | Algorithm.CSharp/OptionEquityBaseStrategyRegressionAlgorithm.cs:36-46 \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 \u0060Algorithm.CSharp/CoveredCallComboLimitOrderAlgorithm.cs:37\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":"Algorithm.CSharp/CoveredCallComboLimitOrderAlgorithm.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7a99dbd49c1b53b8e774d7537c6e5fd6b128686ddbbd0249df68462164fe3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs:115-124 | Algorithm.CSharp/FutureOptionPutITMExpiryRegressionAlgorithm.cs:116-125 \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 \u0060Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs:115\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":"Algorithm.CSharp/FutureOptionCallITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3842c7f18c59a00c1f8ac09397caf6a08fe4c133f042047d89b4296b6c8e5d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs:113-122 | Algorithm.CSharp/IndexOptionPutITMExpiryRegressionAlgorithm.cs:110-119 \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 \u0060Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs:113\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":"Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c297b626ed9627396f8faae6a597b721879a689f193c0a89ffe4dd135453cfb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/NakedShortOptionStrategyOverMarginAlgorithm.cs:45-54 | Algorithm.CSharp/OptionStrategyFactoryMethodsBaseAlgorithm.cs:41-50 \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":"Algorithm.CSharp/NakedShortOptionStrategyOverMarginAlgorithm.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db2c253abdec76b4aaebbc56a79664cc3852210cd4808c9b36297a9599bb41b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/OptionEquityBearCallLadderRegressionAlgorithm.cs:54-63 | Algorithm.CSharp/OptionEquityBullPutLadderRegressionAlgorithm.cs:54-63 \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":"Algorithm.CSharp/OptionEquityBearCallLadderRegressionAlgorithm.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4916ab2946d25c7e4c7829d68c7b4fda6ca4850c2b11a79e7628b610e4c0f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/OptionEquityBearPutLadderRegressionAlgorithm.cs:55-64 | Algorithm.CSharp/OptionEquityBullCallLadderRegressionAlgorithm.cs:55-64 \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":"Algorithm.CSharp/OptionEquityBearPutLadderRegressionAlgorithm.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8dbfac561ad4128c855b9123f89dff0b486580ca12519ac8a7fd6607306b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/OptionEquityBearPutSpreadRegressionAlgorithm.cs:36-45 | Algorithm.CSharp/OptionEquityBullPutSpreadRegressionAlgorithm.cs:36-45 \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 \u0060Algorithm.CSharp/OptionEquityBearPutSpreadRegressionAlgorithm.cs:36\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":"Algorithm.CSharp/OptionEquityBearPutSpreadRegressionAlgorithm.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"12afcc8cb49e4f9d54ea5dc3ab0875f8d8812d60af68d8a9766a952a5779932d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/OptionEquityCallCalendarSpreadRegressionAlgorithm.cs:44-53 | Algorithm.CSharp/OptionEquityPutCalendarSpreadRegressionAlgorithm.cs:44-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/OptionEquityCallCalendarSpreadRegressionAlgorithm.cs:44\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":"Algorithm.CSharp/OptionEquityCallCalendarSpreadRegressionAlgorithm.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6213ee6386a97e3fb77a3a455866d8d98e8da9c056b96f480e95c95fd5cfae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/RiskParityPortfolioAlgorithm.cs:32-41 | Algorithm.CSharp/RiskParityPortfolioWeightsCheckAlgorithm.cs:35-44 \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 \u0060Algorithm.CSharp/RiskParityPortfolioAlgorithm.cs:32\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":"Algorithm.CSharp/RiskParityPortfolioAlgorithm.cs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba1231a7107890c37d2b60b5336c8e66644f1ce1577dc189f6526ef8981de74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/SectorExposureRiskFrameworkAlgorithm.cs:37-46 | Algorithm.CSharp/SectorWeightingFrameworkAlgorithm.cs: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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/SectorExposureRiskFrameworkAlgorithm.cs:37\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":"Algorithm.CSharp/SectorExposureRiskFrameworkAlgorithm.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"46597f27371a5178ab79460352aff493584b6782ac886d7a163ea92af748b7fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Algorithm.CSharp/StandardDeviationExecutionModelRegressionAlgorithm.cs:35-44 | Algorithm.CSharp/VolumeWeightedAveragePriceExecutionModelRegressionAlgorithm.cs:36-45 \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 \u0060Algorithm.CSharp/StandardDeviationExecutionModelRegressionAlgorithm.cs:35\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":"Algorithm.CSharp/StandardDeviationExecutionModelRegressionAlgorithm.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"10adc016671641662ed522f5cbc60fd43c4b7c37561294afe81983bdba927b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Report/ReportElements/LeverageUtilizationReportElement.cs:64-73 | Report/ReportElements/RollingSharpeReportElement.cs:65-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Report/ReportElements/LeverageUtilizationReportElement.cs: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":"Report/ReportElements/LeverageUtilizationReportElement.cs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a5ff31de61b94caca8c500bc317360459b196d489fba7a80b07df835ac4b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): Algorithm.CSharp/AccumulativeInsightPortfolioRegressionAlgorithm.cs:36-46 | Algorithm.CSharp/AddRiskManagementAlgorithm.cs:36-44 | Algorithm.CSharp/BasicTemplateFrameworkAlgorithm.cs:40-55 | Algorithm.CSharp/CompositeRiskManagementModelFrameworkAlgorithm.cs:32-42 | Algorithm.CSharp/ConfidenceWeightedFrameworkAlgorithm.cs:36-50 | Algorithm.CSharp/ExecutionModelOrderEventsRegressionAlgorithm.cs:39-47 | Algorithm.CSharp/InsightWeightingFrameworkAlgorithm.cs:36-50 \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 \u0060Algorithm.CSharp/AccumulativeInsightPortfolioRegressionAlgorithm.cs:36\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":"Algorithm.CSharp/AccumulativeInsightPortfolioRegressionAlgorithm.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"319e8a83c8c479811f0eb401e931d83b95285e04206653cbcb7794e91e06d4af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Common/Data/Market/OpenInterest.cs:133-141 | Common/Data/Market/QuoteBar.cs:662-670 | Common/Data/Market/Tick.cs:752-760 | Common/Data/Market/TradeBar.cs:814-822 \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 \u0060Common/Data/Market/OpenInterest.cs:133\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":"Common/Data/Market/OpenInterest.cs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96db3d90a18dcd159951e87073637d18a98e5e2369734bbd5f47f06f65369cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Algorithm.CSharp/BasicTemplateOptionStrategyAlgorithm.cs:42-55 | Algorithm.CSharp/NakedShortOptionStrategyOverMarginAlgorithm.cs:44-52 | Algorithm.CSharp/OptionStrategyFactoryMethodsBaseAlgorithm.cs:40-48 | Algorithm.CSharp/TradingNotAddedOptionsRegressionAlgorithm.cs:37-50 \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 \u0060Algorithm.CSharp/BasicTemplateOptionStrategyAlgorithm.cs:42\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":"Algorithm.CSharp/BasicTemplateOptionStrategyAlgorithm.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1421179755b57fc9092c8ff7f53f8cef317572316974a7e8ba304ab10ba8d9aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Algorithm.CSharp/OptionEquityPutBackspreadRegressionAlgorithm.cs:50-58 | Algorithm.CSharp/OptionEquityShortCallBackspreadRegressionAlgorithm.cs:51-59 | Algorithm.CSharp/OptionEquityShortPutBackspreadRegressionAlgorithm.cs:51-59 \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":"Algorithm.CSharp/OptionEquityPutBackspreadRegressionAlgorithm.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6daed6c5f01a74728b1fbdee1d1447fe73fa81e3fcad1ad8a008271672d39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Common/Scheduling/DateRules.cs:617-625 | Common/Scheduling/DateRules.cs:668-676 \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 \u0060Common/Scheduling/DateRules.cs:617\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":"Common/Scheduling/DateRules.cs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"341a0b6b1ab104430e622c26a268e3febd0f8c3b9262e35050591a2629313a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:511-520 | Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:529-537 \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":"Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f8d6fec149aa1048763be5e903bc27e1a93fdcc34669df5e133ef5b9fe4ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Indicators/CandlestickPatterns/IdenticalThreeCrows.cs:80-88 | Indicators/CandlestickPatterns/ThreeWhiteSoldiers.cs:89-97 \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 \u0060Indicators/CandlestickPatterns/IdenticalThreeCrows.cs:80\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":"Indicators/CandlestickPatterns/IdenticalThreeCrows.cs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"65667d86a08a8a33c31b515117a17a4f8dedd6ad0aa28bdb5c3fb49b7fa9e6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Indicators/CandlestickPatterns/IdenticalThreeCrows.cs:102-110 | Indicators/CandlestickPatterns/ThreeBlackCrows.cs:93-101 \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":"Indicators/CandlestickPatterns/IdenticalThreeCrows.cs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dae5a4ac6ac42209fc194284d1295f3ac6b7b98832e3985aafeac58610f17de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/BasicTemplateOptionsFrameworkAlgorithm.cs:53-61 | Algorithm.CSharp/OptionChainSubscriptionRemovalRegressionAlgorithm.cs:61-69 \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 \u0060Algorithm.CSharp/BasicTemplateOptionsFrameworkAlgorithm.cs:53\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":"Algorithm.CSharp/BasicTemplateOptionsFrameworkAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5fc70f2a71e7162cc84d92e3c17e4dc403fb7252b7d843b00603304fe45439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/CoarseFineFundamentalRegressionAlgorithm.cs:100-109 | Algorithm.CSharp/UniverseSelectionRegressionAlgorithm.cs:84-92 \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 \u0060Algorithm.CSharp/CoarseFineFundamentalRegressionAlgorithm.cs:100\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/CoarseFineFundamentalRegressionAlgorithm.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc71296e6a91d77f3dd8c1f36781c968ddb33b0229910e58701dbe986f5bf09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/ComboOrderAlgorithm.cs:53-61 | Algorithm.CSharp/ComboOrderTicketDemoAlgorithm.cs:42-50 \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 \u0060Algorithm.CSharp/ComboOrderAlgorithm.cs:53\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":"Algorithm.CSharp/ComboOrderAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b18d2f525a51c0ac69045ce97a4bd9055d47dfaa52caf115adf5f6d58c67f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/CustomDataBitcoinAlgorithm.cs:174-182 | Algorithm.CSharp/LiveFeaturesAlgorithm.cs:229-237 \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 \u0060Algorithm.CSharp/CustomDataBitcoinAlgorithm.cs:174\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":"Algorithm.CSharp/CustomDataBitcoinAlgorithm.cs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94c0a8ab5fc3bd18e10bacc821ca1f0972fc46832de9c116b1e26d92283b37d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/HourMarketOrderFillsAtBarCloseRegressionAlgorithm.cs:53-61 | Algorithm.CSharp/RestingMarketOrderFillsAtBarOpenRegressionAlgorithm.cs:60-68 \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 \u0060Algorithm.CSharp/HourMarketOrderFillsAtBarCloseRegressionAlgorithm.cs:53\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":"Algorithm.CSharp/HourMarketOrderFillsAtBarCloseRegressionAlgorithm.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9e2a03db86e7512d41455246b0dd21c0f631fbc6f3aedbe5153266b6f32500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/IndexOptionBearCallSpreadAlgorithm.cs:54-62 | Algorithm.CSharp/IndexOptionBullCallSpreadAlgorithm.cs:54-62 \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":"Algorithm.CSharp/IndexOptionBearCallSpreadAlgorithm.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca42cdb85b4794d42df2df916bc1629969941d26e7f0fe576b9adc9b7c708cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/IndexOptionCallButterflyAlgorithm.cs:32-40 | Algorithm.CSharp/IndexOptionPutButterflyAlgorithm.cs:32-40 \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 \u0060Algorithm.CSharp/IndexOptionCallButterflyAlgorithm.cs:32\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":"Algorithm.CSharp/IndexOptionCallButterflyAlgorithm.cs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7296caab0a40d5641ed030db4c81ea044968e97152255ab6e039bc92e27f2de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/IndexOptionPutOTMExpiryRegressionAlgorithm.cs:49-57 | Algorithm.CSharp/IndexOptionShortPutOTMExpiryRegressionAlgorithm.cs:46-54 \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 \u0060Algorithm.CSharp/IndexOptionPutOTMExpiryRegressionAlgorithm.cs:49\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":"Algorithm.CSharp/IndexOptionPutOTMExpiryRegressionAlgorithm.cs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dfc61bdbb794bbb470e0ee5aa2e91a8aab0c45c15214e6c5f3a64b500d1975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/LongAndShortCallCalendarSpreadStrategiesAlgorithm.cs:42-50 | Algorithm.CSharp/LongAndShortPutCalendarSpreadStrategiesAlgorithm.cs:42-50 \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 \u0060Algorithm.CSharp/LongAndShortCallCalendarSpreadStrategiesAlgorithm.cs:42\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":"Algorithm.CSharp/LongAndShortCallCalendarSpreadStrategiesAlgorithm.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a79e33325bd3e7633a64c6b353ebf9c2c0bb327eea05d291561365ffd6ba0d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/MarketOnCloseOrderFillsOnCloseTradeWithTickResolutionAlgorithm.cs:33-41 | Algorithm.CSharp/MarketOnOpenOrderFillsOnOpenTradeWithTickResolutionAlgorithm.cs:33-41 \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 \u0060Algorithm.CSharp/MarketOnCloseOrderFillsOnCloseTradeWithTickResolutionAlgorithm.cs:33\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":"Algorithm.CSharp/MarketOnCloseOrderFillsOnCloseTradeWithTickResolutionAlgorithm.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5562cb646e17272729baa46095a642d074159882f0fa331c5cbc63c407d6931e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/OptionEquityStrategyMatcherRegressionAlgorithm.cs:88-96 | Algorithm.CSharp/OptionEquityStrategyMatcherRegressionAlgorithm.cs:99-107 \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":"Algorithm.CSharp/OptionEquityStrategyMatcherRegressionAlgorithm.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e393ac204fa43a135c948ae51c5599cae0b9592e6544328717d55748d16982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Algorithm.CSharp/OptionPriceModelForSupportedAmericanOptionRegressionAlgorithm.cs:28-36 | Algorithm.CSharp/OptionPriceModelForUnsupportedAmericanOptionRegressionAlgorithm.cs:28-36 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/OptionPriceModelForSupportedAmericanOptionRegressionAlgorithm.cs:28\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":"Algorithm.CSharp/OptionPriceModelForSupportedAmericanOptionRegressionAlgorithm.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"33db355dbb3b57aa0850990716ac378260c159691a40e196c9f321673c635bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Indicators/CandlestickPatterns/ConcealedBabySwallow.cs:74-81 | Indicators/CandlestickPatterns/IdenticalThreeCrows.cs:78-85 | Indicators/CandlestickPatterns/ThreeBlackCrows.cs:73-80 | Indicators/CandlestickPatterns/ThreeWhiteSoldiers.cs:87-94 \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 \u0060Indicators/CandlestickPatterns/ConcealedBabySwallow.cs:74\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":"Indicators/CandlestickPatterns/ConcealedBabySwallow.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b66127d34be690efbfb0ae08ae4f668bfdba4417d5c508eb3b1572927adc0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Algorithm.CSharp/BasicTemplateOptionEquityStrategyAlgorithm.cs:40-51 | Algorithm.CSharp/CoveredCallComboLimitOrderAlgorithm.cs:40-47 | Algorithm.CSharp/OptionEquityBaseStrategyRegressionAlgorithm.cs:39-50 \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 \u0060Algorithm.CSharp/BasicTemplateOptionEquityStrategyAlgorithm.cs:40\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":"Algorithm.CSharp/BasicTemplateOptionEquityStrategyAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8f7f56e01295a71021b147670ccf90d6eb84206f0f19fece11d0a55ea5f47e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Algorithm.CSharp/BasicTemplateOptionEquityStrategyAlgorithm.cs:58-65 | Algorithm.CSharp/ComboOrderAlgorithm.cs:67-74 | Algorithm.CSharp/ComboOrderTicketDemoAlgorithm.cs:56-63 \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 \u0060Algorithm.CSharp/BasicTemplateOptionEquityStrategyAlgorithm.cs:58\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":"Algorithm.CSharp/BasicTemplateOptionEquityStrategyAlgorithm.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e99f8a41b76a614308ac594b1531ef61f94a7dee6bd1e2ac97cac513fa5db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Algorithm.CSharp/IndexOptionBearPutSpreadAlgorithm.cs:30-37 | Algorithm.CSharp/IndexOptionBullPutSpreadAlgorithm.cs:30-37 | Algorithm.CSharp/IndexOptionIronCondorAlgorithm.cs:30-37 \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 \u0060Algorithm.CSharp/IndexOptionBearPutSpreadAlgorithm.cs:30\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":"Algorithm.CSharp/IndexOptionBearPutSpreadAlgorithm.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f4240e0b79bc8525d23c44e1684fd8c411eb250dfc02c0ef6149d106724e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Algorithm.CSharp/SpreadExecutionModelRegressionAlgorithm.cs:46-53 | Algorithm.CSharp/StandardDeviationExecutionModelRegressionAlgorithm.cs:44-52 | Algorithm.CSharp/VolumeWeightedAveragePriceExecutionModelRegressionAlgorithm.cs:45-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Algorithm.CSharp/SpreadExecutionModelRegressionAlgorithm.cs:46\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":"Algorithm.CSharp/SpreadExecutionModelRegressionAlgorithm.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84c7e63385eea9a7e45ea3a4a17d7e5ba14470d7104d936c0e437acfe6d93d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Common/Util/LeanData.cs:97-104 | Common/Util/LeanData.cs:260-268 \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 \u0060Common/Util/LeanData.cs:97\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":"Common/Util/LeanData.cs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f316eb303976eca5122d7d44fa6e98a5342c515520de61f603f9d3208f431762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Algorithm.CSharp/ForexInternalFeedOnDataHigherResolutionRegressionAlgorithm.cs:39-46 | Algorithm.CSharp/ForexInternalFeedOnDataSameResolutionRegressionAlgorithm.cs:39-46 \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 \u0060Algorithm.CSharp/ForexInternalFeedOnDataHigherResolutionRegressionAlgorithm.cs:39\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":"Algorithm.CSharp/ForexInternalFeedOnDataHigherResolutionRegressionAlgorithm.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6d970d7eb760800b7b89070fa7f8de5be9eec810797dbb512dab493f2ee444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Algorithm.CSharp/FutureOptionBuySellCallIntradayRegressionAlgorithm.cs:42-53 | Algorithm.CSharp/FutureOptionIndicatorsRegressionAlgorithm.cs:28-35 \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 \u0060Algorithm.CSharp/FutureOptionBuySellCallIntradayRegressionAlgorithm.cs:42\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":"Algorithm.CSharp/FutureOptionBuySellCallIntradayRegressionAlgorithm.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"45718d07507afb1bf3bc556aed6ea937f630d437d7746b8aeebe8254e1ded6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Algorithm.CSharp/OptionRenameDailyRegressionAlgorithm.cs:68-75 | Algorithm.CSharp/OptionRenameRegressionAlgorithm.cs:68-75 \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 \u0060Algorithm.CSharp/OptionRenameDailyRegressionAlgorithm.cs:68\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":"Algorithm.CSharp/OptionRenameDailyRegressionAlgorithm.cs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59d55aeb3194874bb37b49733b186a60f8d37fe6b4798e7b8d79f1449b49bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Algorithm.CSharp/OptionRenameRegressionAlgorithm.cs:68-75 | Algorithm.CSharp/OptionSplitRegressionAlgorithm.cs:63-70 \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 \u0060Algorithm.CSharp/OptionRenameRegressionAlgorithm.cs:68\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":"Algorithm.CSharp/OptionRenameRegressionAlgorithm.cs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0f867b6c76cb3e86e3d26238341360c85ddba0d967df4e5effffc0bfa1f473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Algorithm.CSharp/OptionShortCallMarginCallEventsAlgorithm.cs:52-59 | Algorithm.CSharp/OptionStrategyMarginCallEventsAlgorithm.cs:57-64 \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 \u0060Algorithm.CSharp/OptionShortCallMarginCallEventsAlgorithm.cs:52\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":"Algorithm.CSharp/OptionShortCallMarginCallEventsAlgorithm.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b511674f99d381f9a29a74ea04f73e5488a32fc37ddc7637f76e7fda8a1dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Report/Report.cs:82-89 | Report/Report.cs:96-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Report/Report.cs:82\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":"Report/Report.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2628f460277ef00b31d95f8faddec1b250eb511e4f9e1451b249486d6d9d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Common/Scheduling/TimeRules.cs:260-266 | Common/Scheduling/TimeRules.cs:374-380 \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":"Common/Scheduling/TimeRules.cs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cb4f9f56b778ef32174a540408e070ccfae530942ee6c1dc29bde0a81182ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:87-93 | Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:116-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. 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":"Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fe34ff5137bea1708824d8622914778f417a90f08c7bcc224eb9a408ab04f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Common/Util/LeanData.cs:821-827 | Common/Util/LeanData.cs:832-838 \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 \u0060Common/Util/LeanData.cs:821\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":"Common/Util/LeanData.cs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33fda64ff6c2e5b8e453bc5358d412e508bd02de0658753413f65f91fa085a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Algorithm.CSharp/BasicTemplateFuturesHistoryAlgorithm.cs:95-101 | Algorithm.CSharp/BasicTemplateOptionsHistoryAlgorithm.cs:69-75 \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 \u0060Algorithm.CSharp/BasicTemplateFuturesHistoryAlgorithm.cs:95\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":"Algorithm.CSharp/BasicTemplateFuturesHistoryAlgorithm.cs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b642a3b703db88d1c4e7a8c19b4c68d41726bfcea9d444c17dcb5a482590a400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Algorithm.CSharp/FutureContractsExtendedMarketHoursRegressionAlgorithm.cs:51-57 | Algorithm.CSharp/FuturesExtendedMarketHoursRegressionAlgorithm.cs:51-57 \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 \u0060Algorithm.CSharp/FutureContractsExtendedMarketHoursRegressionAlgorithm.cs:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/FutureContractsExtendedMarketHoursRegressionAlgorithm.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9d262639669b783b68553e33cda692232204c74ecdfbe69c1346698f5adf1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Algorithm.CSharp/IndicatorBasedOptionPricingModelRegressionAlgorithm.cs:74-80 | Algorithm.CSharp/QLOptionPricingModelRegressionAlgorithm.cs:64-70 \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":"Algorithm.CSharp/IndicatorBasedOptionPricingModelRegressionAlgorithm.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc98e08319cf597043d649436201091141a0fa708ed54e81aa6140e483c075f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Algorithm.CSharp/OptionChainSubscriptionRemovalRegressionAlgorithm.cs:74-86 | Algorithm.CSharp/OptionChainUniverseRemovalRegressionAlgorithm.cs:184-190 \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 \u0060Algorithm.CSharp/OptionChainSubscriptionRemovalRegressionAlgorithm.cs:74\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":"Algorithm.CSharp/OptionChainSubscriptionRemovalRegressionAlgorithm.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebf2f8e747a916de4ff73b260676d732dbd332e957c6babbb7558a16b8f3099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Algorithm.CSharp/PortfolioRebalanceOnInsightChangesRegressionAlgorithm.cs:52-58 | Algorithm.CSharp/PortfolioRebalanceOnSecurityChangesRegressionAlgorithm.cs:59-65 \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 \u0060Algorithm.CSharp/PortfolioRebalanceOnInsightChangesRegressionAlgorithm.cs:52\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":"Algorithm.CSharp/PortfolioRebalanceOnInsightChangesRegressionAlgorithm.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6586c4efa3cded58f3c92fd4b34f2c158ec344a4abe2783822932a620912f2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ToolBox/RandomDataGenerator/RandomDataGeneratorSettings.cs:133-139 | ToolBox/RandomDataGenerator/RandomDataGeneratorSettings.cs:146-152 \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 \u0060ToolBox/RandomDataGenerator/RandomDataGeneratorSettings.cs: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":"ToolBox/RandomDataGenerator/RandomDataGeneratorSettings.cs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df86146c556b8b38289a696bcc24cd17984a4cd8e46944e64c9e9c117a353e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Report/ReportElements/RollingPortfolioBetaReportElement.cs:66-72 | Report/ReportElements/RollingPortfolioBetaReportElement.cs:74-80 \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":"Report/ReportElements/RollingPortfolioBetaReportElement.cs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3848042e3123e6a6aeca090f2f1581fff52d2d97e46970cc4d684519c97d08e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Algorithm.CSharp/AddRiskManagementAlgorithm.cs:40-45 | Algorithm.CSharp/BasicTemplateFrameworkAlgorithm.cs:45-59 | Algorithm.CSharp/ExecutionModelOrderEventsRegressionAlgorithm.cs:43-48 | Algorithm.CSharp/PortfolioTargetTagsRegressionAlgorithm.cs:37-43 \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":"Algorithm.CSharp/AddRiskManagementAlgorithm.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"673544bf8920fc3d72d3c44312b9581523ef20e88793acd426f1f8b35b775fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:63-68 | Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:82-87 | Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:111-116 \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 \u0060Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:63\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":"Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a1ae1f61dea3ae53d80876055836ee88a8c792a3466ac54d147f13de0b9a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Common/Securities/Option/OptionFilterUniverse.cs:1002-1007 | Common/Securities/Option/OptionFilterUniverse.cs:1008-1013 \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":"Common/Securities/Option/OptionFilterUniverse.cs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7d2e84dee18304044e4693a7fc989ac75d8da459ed86690f636fe9a7b09c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:641-646 | Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:664-669 \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 \u0060Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs:641\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":"Common/Securities/Option/OptionStrategyPositionGroupBuyingPowerModel.cs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"553175d6a64c28d3c7e5143bdfbfeeb20f4de4e7fefba89c85d9e385b98911e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Algorithm.CSharp/AddAndRemoveOptionContractRegressionAlgorithm.cs:43-48 | Algorithm.CSharp/SecuritySessionWithOptionRegressionAlgorithm.cs:40-45 \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":"Algorithm.CSharp/AddAndRemoveOptionContractRegressionAlgorithm.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2f2d7b56bbbf95d990650d8838c7fae44282b719c91d2113a40361294c3f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Algorithm.CSharp/BubbleAlgorithm.cs:132-137 | Algorithm.CSharp/BubbleAlgorithm.cs:160-165 \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 \u0060Algorithm.CSharp/BubbleAlgorithm.cs:160\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":"Algorithm.CSharp/BubbleAlgorithm.cs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"704be254d86b3e40513dbde62b37e70898d2d4fac6d580b721edfb685c74b0de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Algorithm.CSharp/FutureOptionCallITMGreeksExpiryRegressionAlgorithm.cs:130-137 | Algorithm.CSharp/IndexOptionCallITMGreeksExpiryRegressionAlgorithm.cs:118-123 \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 \u0060Algorithm.CSharp/FutureOptionCallITMGreeksExpiryRegressionAlgorithm.cs:130\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":"Algorithm.CSharp/FutureOptionCallITMGreeksExpiryRegressionAlgorithm.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a24b30c856b2b311d06f3ff6d50b800ce148b8c7d312494ae54c5eaa11fdf75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Algorithm.CSharp/IndexOptionBearCallSpreadAlgorithm.cs:33-39 | Algorithm.CSharp/IndexOptionCallCalendarSpreadAlgorithm.cs:37-42 \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":"Algorithm.CSharp/IndexOptionBearCallSpreadAlgorithm.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1860e005aa3e6c8aef3aa9f412f2639377a7a97a026e85e78d18f740dec2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Algorithm.CSharp/IndexOptionBullCallSpreadAlgorithm.cs:35-40 | Algorithm.CSharp/IndexOptionIronCondorAlgorithm.cs: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":"Algorithm.CSharp/IndexOptionBullCallSpreadAlgorithm.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aceb3cb11b8d572b7cee3f6576937687fd97cf0920b228f5c4bbb44c9c57134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs:51-56 | Algorithm.CSharp/IndexOptionCallITMGreeksExpiryRegressionAlgorithm.cs:45-50 \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 \u0060Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/IndexOptionCallITMExpiryRegressionAlgorithm.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93a880a868ea6a25fb06b0ec2292bda441ae0df04c02c65951ebc358b7a3b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs:56-61 | Algorithm.CSharp/IndexOptionShortCallOTMExpiryRegressionAlgorithm.cs:50-55 \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 \u0060Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs:56\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":"Algorithm.CSharp/IndexOptionCallOTMExpiryRegressionAlgorithm.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"974d5e64ba3654559d54bbf1ec205009fe42e4a34f96d32aac4282b22af852e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Report/ReportElements/DailyReturnsReportElement.cs:48-53 | Report/ReportElements/MonthlyReturnsReportElement.cs:49-54 \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 \u0060Report/ReportElements/DailyReturnsReportElement.cs:48\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":"Report/ReportElements/DailyReturnsReportElement.cs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d6a5c7235d84955009ec36f6229ec06a848033eac4483ba1b48fd10f0a8e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): Indicators/CandlestickPatterns/LongLineCandle.cs:73-108 | Indicators/CandlestickPatterns/Marubozu.cs:73-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. 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":"Indicators/CandlestickPatterns/LongLineCandle.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdf4171720e8364dc474c00eef6189a95c4f76b4e170c72584121baf91a6cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Algorithm.CSharp/CapacityTests/MonthlyRebalanceDaily.cs:28-51 | Algorithm.CSharp/CapacityTests/MonthlyRebalanceHourly.cs:28-51 \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":"Algorithm.CSharp/CapacityTests/MonthlyRebalanceDaily.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f576a19887d56234ae65cfad9f2d5ff6617c8d1894cd2370096408360d8a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Algorithm.CSharp/LongAndShortButterflyCallStrategiesAlgorithm.cs:69-101 | Algorithm.CSharp/LongAndShortButterflyPutStrategiesAlgorithm.cs:69-101 \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":"Algorithm.CSharp/LongAndShortButterflyCallStrategiesAlgorithm.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b553cfb0f1013c0d5ab46fea2edaeaaf4c4a070496d2f3f5322e9b432dce9d8"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: QuantConnect.Configuration: QuantConnect.Configuration: abstractness 0.00, instability 0.05, distance 0.95 \u2014 zone of pain \u2014 concrete and depended on by 18 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f35f0f7dec91d081258dc966f4df02536fe219768939babe29596d52c701bfd0"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: QuantConnect.Compression: QuantConnect.Compression: abstractness 0.00, instability 0.05, distance 0.95 \u2014 zone of pain \u2014 concrete and depended on by 18 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5b75e757f74bf6e216d37c18af98855ecc9601160aa1e5009195d31bfd117352"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: QuantConnect.Logging: QuantConnect.Logging: abstractness 0.08, instability 0.00, distance 0.92 \u2014 zone of pain \u2014 concrete and depended on by 20 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7ed6b4f3931ad546d4299282012ac5cfc6125df2cf2db8729f46baca4e645ba8"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: QuantConnect: QuantConnect: abstractness 0.08, instability 0.14, distance 0.78 \u2014 zone of pain \u2014 concrete and depended on by 18 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d20abac096b023f72f56f68a32f18495d16d91adb570b6b303dcf264afce049c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: QuantBook (LCOM4 13): QuantBook\u0027s methods form 13 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"72025196dbedf3d596b9bdd0308566317ba68556b5e567ce79dd07d57ec9303e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Security (LCOM4 11): Security\u0027s methods form 11 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"974404adf51621ad7084694e32f5d5696905ff782b146f9413815d3593a2573a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Brokerage (LCOM4 9): Brokerage\u0027s methods form 9 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/Brokerage.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4092665994273c788013236923643d1172e010032c20eb6fe1a91bfbbb42492e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Option (LCOM4 8): Option\u0027s methods form 8 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/Option.cs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a392ef5053215f59957ebae72ef25eb63050e7b753528bf83c9a434883d4fe8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DefaultBrokerageModel (LCOM4 7): DefaultBrokerageModel\u0027s methods form 7 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/DefaultBrokerageModel.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c328da286d33d4e8c1aa06f979ee0d8794338e716dbc147e9b973fcff2c1df5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PythonData (LCOM4 7): PythonData\u0027s methods form 7 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PythonData.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0376c29020cc7caa0faa21b8e61862f9492877d69406674dcf0f8cba9b98c8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SecurityHolding (LCOM4 6): SecurityHolding\u0027s methods form 6 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityHolding.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73e7f41dbc2b22b4ffdf0b2c3cdfcf1069963fc3e297a834b401931263055d3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UniverseSelectionRegressionAlgorithm (LCOM4 4): UniverseSelectionRegressionAlgorithm\u0027s methods form 4 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/UniverseSelectionRegressionAlgorithm.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edb823ff1e4f1fdf8317ecf6d346087bfa521a6a1afb50607fc66a8a8639089"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: KrakenBrokerageModel (LCOM4 4): KrakenBrokerageModel\u0027s methods form 4 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/KrakenBrokerageModel.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"25dae71d3ad36b7d4f61a6d0aeaf27dc304eb7c058cb4fe5dc67592fd605c466"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SamcoBrokerageModel (LCOM4 4): SamcoBrokerageModel\u0027s methods form 4 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/SamcoBrokerageModel.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4b3df05e89e016112be7777723e9370ee679598d93e3729c532fbea661def8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseData (LCOM4 4): BaseData\u0027s methods form 4 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/BaseData.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6a8857c451b72100e92b0ef61494f8ca508d6870e0152f5872f90200f455b2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LiveTradingResultHandler (LCOM4 4): LiveTradingResultHandler\u0027s methods form 4 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/LiveTradingResultHandler.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"451d488067b339632519475b9fdd02e396053b0d463a7567015ac251f858617b"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 test suite did not build: Coverage NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code \u2014 a repository written for an older SDK band can compile for you and not for us. Run \u0060dotnet build\u0060 on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): ComparesAgainstExternalData: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Indicators/OptionBaseIndicatorTests.cs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"366166218fd75c2430a2dbfb238339e96d778bd91abf7018c82dea74750075fe"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): ComparesAgainstExternalDataAfterReset: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Indicators/OptionBaseIndicatorTests.cs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2694a6e34c6cedbdc742947abf12a875223c84f916baaed664a5c9ccc13bda"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): AcceptsRenkoBarsAsInput: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Indicators/PythonIndicatorTests.cs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1971cab6feecfe76dceb494a80c0edaf97dd59aadb983598c5af7fb9cdfde6b"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): AcceptsVolumeRenkoBarsAsInput: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Indicators/PythonIndicatorTests.cs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f344c6e2acf27bda5faef73f8f9b24a4ee01381c7a7c9f853e9025768b003c"}},{"ruleId":"D12","level":"error","message":{"text":"Vulnerable: DotNetZip: DotNetZip 1.16.0 \u2014 High severity. https://github.com/advisories/[GHSA redacted]"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a4aff1ee85a80c464cefe7eeda6c6e4a7568215d3a76f48474c9b00f040f3711"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: DotNetZip: DotNetZip 1.16.0 \u2014 Legacy"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ea41b642e784c0f974c086ec31383a223e837529a1c120f99cebac85c9214671"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Common/Util/LeanData.cs: Common/Util/LeanData.cs changed 3 times in last 90 days, max complexity 100. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/LeanData.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacfb0e5ae63837d45f73f08b9f5f70e13b7cf59c875b3b02fe1c2cfef012644"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Engine/TransactionHandlers/BrokerageTransactionHandler.cs: Engine/TransactionHandlers/BrokerageTransactionHandler.cs changed 4 times in last 90 days, max complexity 38. 2 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":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"caac8be4faedcb2b29dedc2d6282ce92a02dd5b911506de5a4bf3f4b5ff9fe5c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Common/Brokerages/IBrokerageModel.cs: Common/Brokerages/IBrokerageModel.cs changed 4 times in last 90 days, max complexity 37. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/IBrokerageModel.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9391c117f2289ceb27e2fd7932efe8d12be8fd9790fa7460119076c236042dc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Algorithm/QCAlgorithm.Trading.cs: Algorithm/QCAlgorithm.Trading.cs changed 3 times in last 90 days, max complexity 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49eb32732c2681cf78948cebd4f643f96d4c28e39e987e3a0113eb9ae6735561"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Engine/Engine.cs: Engine/Engine.cs changed 3 times in last 90 days, max complexity 38. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Engine.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"600747862096c8e0b59243f0465a207347ed5a1fde5d5459f550c6199cae7021"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Engine/Results/LiveTradingResultHandler.cs: Engine/Results/LiveTradingResultHandler.cs changed 3 times in last 90 days, max complexity 23. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/LiveTradingResultHandler.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9362412a9ff75cc9e5d46de294e42e17304c1e6c8fb3c2743f7814322977830c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Common/Orders/Fills/EquityFillModel.cs: Common/Orders/Fills/EquityFillModel.cs changed 2 times in last 90 days, max complexity 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14b360f19efc3523cc4eadfef26891beb22c54dd146d30d2eb2f26dce419b56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Common/Orders/Fills/FillModel.cs: Common/Orders/Fills/FillModel.cs changed 2 times in last 90 days, max complexity 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/FillModel.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4058a2d1d836c6529176cac3e91ca80613db372519e3b1a11c76d952a286314e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Common/Extensions.cs: Common/Extensions.cs changed 2 times in last 90 days, max complexity 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Extensions.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8742da8ee8dbaada9eafd3001eafd85e24013fc2381a967c54443145578de95"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Algorithm.CSharp/DuplicateOptionAssignmentRegressionAlgorithm.cs: Algorithm.CSharp/DuplicateOptionAssignmentRegressionAlgorithm.cs changed 2 times in last 90 days, max complexity 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/DuplicateOptionAssignmentRegressionAlgorithm.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f378c9af64727b19d2ab4fe7440676875e077663c21cde0959e514f2f862238d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 29 significant file(s) lose their only recent owner: Common/Data/Consolidators/RenkoConsolidator.cs, Common/Orders/Slippage/MarketImpactSlippageModel.cs, Common/Storage/ObjectStore.cs, Brokerages/SymbolPropertiesDatabaseSymbolMapper.cs, Algorithm.CSharp/ScheduledUniverseSelectionModelRegressionAlgorithm.cs, Common/Brokerages/TradingTechnologiesBrokerageModel.cs, Indicators/IchimokuKinkoHyo.cs, Indicators/ZigZag.cs (\u002B21 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c2813dd596fceba192af9e1f47271254e90d873e58a3e2dde934d3f4cf62b6a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 21 significant file(s) lose their only recent owner: Compression/Compression.cs, Common/Data/Slice.cs, Common/Data/Market/QuoteBar.cs, Common/Data/UniverseSelection/Universe.cs, Common/Orders/OrderJsonConverter.cs, Engine/LeanEngineAlgorithmHandlers.cs, Common/Python/PythonInitializer.cs, Common/Notifications/NotificationManager.cs (\u002B13 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1368a6f9e4e9bcd3ea6fb00a8ad13a1c93da68808d19848527086aeb95df81ed"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 21 significant file(s) lose their only recent owner: Common/Orders/OrderTicket.cs, Common/Statistics/TradeBuilder.cs, Engine/DataFeeds/TimeSliceFactory.cs, Logging/Log.cs, Common/Data/Fundamental/MultiPeriodField.cs, Common/Securities/CurrencyConversion/SecurityCurrencyConversion.cs, Common/Messages/Messages.Exceptions.cs, Common/Util/StreamReaderExtensions.cs (\u002B13 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f702cc1659f4813a2fc998342e71b18610c6447b47a548fc00d5e5dbfd7a3e58"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 18 significant file(s) lose their only recent owner: Common/Exchange.cs, Brokerages/LevelOneOrderBook/LevelOneMarketData.cs, Common/Brokerages/BrokerageExtensions.cs, DownloaderDataProvider/Models/BaseDataDownloadConfig.cs, Brokerages/Authentication/LeanOAuthTokenHandler.cs, Algorithm.CSharp/BinanceCryptoFutureBnfcrCollateralRegressionAlgorithm.cs, Common/Data/DataQueueHandlerSubscriptionManager.cs, Common/Brokerages/PublicBrokerageModel.cs (\u002B10 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"784ac7d2b2f3fd84197888f99094239e520c9772dea3ff70044e2f9830d18f6e"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 7 significant file(s) lose their only recent owner: Common/Securities/Option/StrategyMatcher/OptionStrategyMatcherOptions.cs, Indicators/Stochastic.cs, Indicators/WaveTrendOscillator.cs, Common/Securities/Option/StrategyMatcher/OptionStrategyMatcher.cs, Common/Data/Auxiliary/LocalZipMapFileProvider.cs, Indicators/RelativeDailyVolume.cs, Common/Brokerages/TerminalLinkBrokerageModel.cs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"38510798fc09580d20f87267eaf968d604bfcd37e2a37146f2564a5d58267e8b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 3 significant file(s) lose their only recent owner: Common/Brokerages/BybitBrokerageModel.cs, Common/Util/DecimalJsonConverter.cs, Common/Orders/dYdXOrderProperties.cs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"07cc64f32f7b961f521465ee812c52abe458bd89d5e32ec0eb87e9b292e2478e"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 7 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (108 single-owned of 2657 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #7 (2 file(s)), anonymized user #8 (2 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)), anonymized user #11 (1 file(s)), anonymized user #12 (1 file(s)) (\u002B1 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : In fact, we\u0027re unable to properly detect whether or not we auto-added or it was manually added \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/AddRemoveOptionUniverseRegressionAlgorithm.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e118084f64837bc8bac9bbd6ac30b547ed376fb6f997c1cd93ee12de1e6d26fa"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BrokerageModelAlgorithm.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ad7394a7a56f647bad5ec8080f006185a63ab651fadbc73da14709acd52233"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BubbleAlgorithm.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf843ba6692a49addf22049b49db88b6984d5e48ac57977e50408b1ead3bb943"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BubbleAlgorithm.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"09847547430ca8984bde0067b55690293d2246d050afd95501d6d3f1675a6144"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmSetHoldingsTests.cs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee0d6d76a5c9f4e55a6808d6dfb78bd9b482472ba424f5df79813ad1dbded6d"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmSetHoldingsTests.cs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd66470db537287098c49d4e588edfcaf95b2bc0ef6d5afeb8228cffb9f17b7"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Common/Util/MarketHoursDatabaseJsonConverterTests.cs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"386509ee4e123bbdc3a93213c21aee9c51e1dd444b072c66733cb26049e13c4c"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BubbleAlgorithm.cs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abdf15fed085fc866e334842a444c3b015efaf0b3e574298dce62ad200c9fef"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/CustomDataNIFTYAlgorithm.cs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bca97e9ae9f03bad9734922b3ee6aaf3f7aedf91bc095044f35969dd67afd6"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/CustomDataNIFTYAlgorithm.cs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2feb27748ed4af6ed02631220c1b366a9096263b9c19c40b9fca132697a3da63"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/WebSocketClientWrapper.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8ece7417037fa140f9cc45c5c843241e3a2cb24f1cde71f59060b40d54698f"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/CurrencyPairUtil.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db15ee7fa111ea30b363ca0163f1e081f3c57c77e3671e691c70a64e414a5f7"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Util/DateTimeJsonConverter.cs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa119eb475e7a065ff1b390a6e68e4f391871a198a9021bbfbf514de4409f22"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/HistoricalData/HistoryProviderManager.cs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fb29e3b0318b5c790f932b4fda85fdd453ea5437d0572f5b7a87c0ccd7e2be"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Logging/Log.cs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78f168e4bf6f5a009da28c9afa826ee2fd6a3eb5caa473b7b1a0817482653df"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/CustomDataNIFTYAlgorithm.cs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"76869bef32b6b17ac4af42705d0335c92a4831a2e759994d17ee7c5729dfd5ea"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Engine/Results/BacktestingResultHandlerTests.cs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4474893f9325f1c8ae8144e809fdc190d1053c66c6d9c6bb9392042953e0b74d"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 6 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/HistoryAlgorithm.cs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"964874d0c9b59a9e72496d84a0cf76cc0e9f2ab6329c981bb6f239c819588ff5"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 6 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Common/Securities/SecurityPortfolioManagerTests.cs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"3013050b368a91b2b4dafaa5f280c92b7f3836ce1638c25b3686570e24230ed2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: shouldn\u0027t be sending AAPL as a removed security since it was added by another universe \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/RegressionTests/Universes/ETFConstituentUniverseCompositeDelistingRegressionAlgorithm.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f94c827796be1679ce161c97d67586d231e4c6699fba5a5bafe8243bb7f0b30"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] .ctor"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Selection/FundamentalUniverseSelectionModel.cs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba43409dfd224ad3ae19638ca868f2ac181ab9d71aa8e41cb8c34a387147777"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] .ctor"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Selection/FundamentalUniverseSelectionModel.cs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ad8bd67ac58373edadce9d6d39eb6a44d0e76afefeba91ab50f847914c9ff7"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] .ctor"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Chart.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"034d96bd98bd4bdd8f1ae7ad29d5753ba4de352aade0b9c9402f08ac1efca943"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] SelectCoarse"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Selection/FundamentalUniverseSelectionModel.cs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb8b9df7016bac4da15cc37f33581141cd82bc0a116fa94024eeaadaf1e6b52"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] SelectFine"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Selection/FundamentalUniverseSelectionModel.cs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"679c96b53d627e319acd31e18c93cc35bf396a1664ad0a343d76c0e789c90b51"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Coarse"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Selection/FundamentalUniverseSelectionModel.cs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b9ca764cc4186e54443258afde2ffd62ca8e7f40d8d7f22d7ac3c063017d6e"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Fine"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Selection/FundamentalUniverseSelectionModel.cs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"09808e271d75ad883a179449f9947bd6d1d2d13d1e06d94131e9673afa1ddbd0"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Top"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/DollarVolumeUniverseDefinitions.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4120d1607b6b9c063c93beaf286a3d882f4eb4fd5dcdcefc420beb32d8eeb3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is a patch to fix the issue with the Slice.GetImpl method returning only the last tick \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca716ee809a69b8c3a9a97f2ae2715608400caef64aef706b5e2c7de57132257"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetLastKnownPrice"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"816433bcf29b24476860d352dbbc0e2b68b6cb55d2ccc2ea021560af2406cb6b"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetLastKnownPrice"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.History.cs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1d227f31351b166661f79ce25472b6d68f9b3cd69a38efb8ee24bb4457cd83"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] EnableAutomaticIndicatorWarmUp"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Indicators.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71581df47b0d75f97a3eecacb4d0489ca0e19e0865eb0aeade44cceb1346790"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] VAR"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Indicators.cs"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"0164867c9ab2bf1cda04eab597d1f67febd6d8408bc2d1de5c6f4d6c81591f30"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be removed when https://github.com/QuantConnect/pythonnet/issues/62 is solved"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Python.cs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea18760ae4805d4a5740a53fae41f89e1cec2d4076189f0a9d92ccf2e2a790fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be removed when https://github.com/QuantConnect/pythonnet/issues/62 is solved"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Python.cs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"032f0a03b6d52893379277219ec3cc0f502aafbcc0414302b2560f94348842b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be removed when https://github.com/QuantConnect/pythonnet/issues/62 is solved"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Python.cs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd38a2ff53609392173bf5d93d2227db0e53255ff4ffa342cf0583c9771bbfb6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be removed when https://github.com/QuantConnect/pythonnet/issues/62 is solved"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Python.cs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"90adb2702d06b5a5c0c28bb32d937cdfc08e96067967893ea87b8f7ae553d515"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be removed when https://github.com/QuantConnect/pythonnet/issues/62 is solved"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Python.cs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c1c91127402f53035f18e65534202cc195c66d5315449904dc2a597ece7bcf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: Left here for now but should review \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecd1e3ba38d4a4dfbef1215ab0b01252911dd3f0b74140640e4cb12fa1f7d9e"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] Liquidate"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"121cbcba44aa7ac45325c35464f76d4065b22974ce8b2a5164b147e0b75d70d9"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Order"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"4152c5884d3cb55cf179e08940cc4965c1b3a0259e0044e5dbd1f3270843171f"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Order"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4c823c279e1d627d41ccaae51a582155484fada605d9310d7c46a67f4a8bf8"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Order"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Trading.cs"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"967f4eb7f504ef4bc3cc5018b7e5536b51cdf1db8ac3a3c69167b00611bfb8b5"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] AddUniverse"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.Universe.cs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf7b086c438b05cc9a171801ece7bb47a41c8f3f2a0046768d85fef4591b078"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] OptionChainProvider"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"430765a91163a4a8ebc3361003b44296e91e744a460b07bc8ce8f738f1c561b4"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] FutureChainProvider"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"8565f8957ea277ce98b34e774f813d8e6a0308406bc679ff89417993108cb3c0"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] SetSecurityInitializer"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5b8d359932343fde26cf9811d7db6ad6089aed4d2a28fda42bb5c9f2429259"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] OnEndOfDay"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"8baaf3d2f9d0ac3f23b128d78a0dc57f2f32aa98a82d0606a7d0782764b8db6e"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] OnEndOfDay"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"AlgorithmFactory/Python/Wrappers/AlgorithmPythonWrapper.cs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab9fdcc7af93a74c8acb4192cfb04994e4b3049d3a3d5dae7c3a9075c7cd693"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] OnEndOfDay"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Interfaces/IAlgorithm.cs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"865159ffbc8c05b99f28226b9df2a5234b553c5554771032cf9e85cd09974129"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] SetBenchmark"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/QCAlgorithm.cs"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9be12eb1c079250e5b75f701d6d8c0751ed83325f12bf45719b0eaa269c63b9"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1574 \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":"AlgorithmFactory/Loader.cs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15c8ff2c7ba3d22b6d8deed6d73e814b70a1f0c96547cc9a6ff8d108ba0b879"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1574 \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":"Common/CapacityEstimate.cs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d763c3f74beb8fd0aada019df6ec270062b670d7d196199260e2a63d758b9d"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1574 \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":"Common/Interfaces/IApi.cs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4855fc0ea32bbd42010d0cbfec1ea46e1085532b89280c8b7206b79699a29e9"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1574 \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":"Common/Interfaces/IApi.cs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f1c844a049c31a34e0b88ac2e68e525060988c474e1352f9468475c93be00d"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1574 \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":"Common/Interfaces/IRegressionResearchDefinition.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05fbf439463713502f12a665e6a3bd46b803c04346dc0532ae03f7d60444316"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1574 \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":"Common/Optimizer/Parameters/OptimizationStepParameter.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01cc78e4b6ca3f58738090d3aa66f720a759af74e8deda4a58247117a3dea4b"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] Client"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Api/ApiConnection.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc007cbb46cad9f0365656120786d5a8e32e2b4790735c13f80f66a3aaeae5b4"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] TryRequest"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Api/ApiConnection.cs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b678ace6120f5ae596c563c84dc7599f97f2bc37178558a8a282e30f577123e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : This check can be removed in April, 2019 -- a 6-month window to upgrade (also, suspect small % of users, if any are impacted) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/Backtesting/BacktestingBrokerage.cs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"1745521e888b153828376ceb507ac5fa0307d51a749df13ce651bb674d8ffbd7"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Initialize"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/BaseWebsocketsBrokerage.cs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac10e3f9d8b06e378cf54a9997f0c4e055d27e732cc47df93bb3bf1bf2f9297"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GeneratedTime"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Algorithm/Framework/Alphas/Serialization/SerializedInsight.cs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcd3300227a66a2c76ac6cd6c3b6f3e2db8724c75b87ac17ea9277517ef054c"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] DataSubscriptionLimit"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/AlgorithmSettings.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30fe61fa7f920a761ad6f2f515a396d63551c53ee71a24499181aeb1f07ca57"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] DataSubscriptionLimit"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Interfaces/IAlgorithmSettings.cs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddf48ddd2923b8a8ac49101161789a7d556aa7f997382530b14eea280d240ba"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GDAX"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/BrokerageName.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8ee3d07ca363c1301c0dbbed6b459b4b6194e526bb064cbedb5b50f8cc0728"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo default conversion? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/BybitBrokerageModel.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"56619e4c985f82cc584d367b9524a625e2151663eb575ee1a0ea1881bcd73fe5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo default conversion? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/dYdXBrokerageModel.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7bae5484a3912193be371ebe0e31fb9740f9cf97c5882f787409cae6e87e58"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CA1062 \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":"Common/Brokerages/CoinbaseBrokerageModel.cs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"088d3fa965caf982bb37ca01e3bede9248eea3e2bb93b7fbfb1647d068b00b24"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] GetSettlementModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/DefaultBrokerageModel.cs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1b017668afe75091cbffbf03935dc3c3b43a6fffa7be86e720ad4686bf9160"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] GetSettlementModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/IBrokerageModel.cs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b19e9e7b8080f5dba79f4caf8d329df75c8a383b0398a3c89be6b14072a8c0"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] GetSettlementModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/BrokerageModelPythonWrapper.cs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a41c011ac5be6fa5b4ee3b1009330793e2524a4488ba92ca806b8690a0beb6"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] GetBuyingPowerModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/DefaultBrokerageModel.cs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"70926127f3d86841a0ec426ac4b1462fd360b989fece23a4d6612689fca258a0"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] GetBuyingPowerModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/IBrokerageModel.cs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"08797183b99ff163dd21d880e7959110715f3f63ac91534404580be2a3d9a84b"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] GetBuyingPowerModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/BrokerageModelPythonWrapper.cs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4181657a7216040610c7bfd650a4b702fe917877eb6796b1c91064484c635b84"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GDAXBrokerageModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Brokerages/GDAXBrokerageModel.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"515306f2c5cce340e641b0eb1df8523328a47a83e517e9508cdd759ae78af6f0"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] ChartType"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Chart.cs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"07aeaad63099136715f41d9d4b3048992a6498f193548b3d96efd1ab4ab8ed60"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] CalendarType"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Consolidators/CalendarType.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb7033af91eafa68031b86508b2e28b268907ee9d41ab5d40940eff18221463"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] .ctor"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Consolidators/ClassicRenkoConsolidator.cs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7acddea597cf4f8ad03042862224246450eefb0fef71f1960b4f682179ad18"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] .ctor"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/CryptoFuture/CryptoFutureMarginModel.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"028f0cee182e575caf66610fdcb18b97554f3f0a629f1d3a87571594f218efd5"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] PlaceHolder"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Custom/AlphaStreams/PlaceHolder.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4f783da9e48b59251fc9163af4e9b0a7d8ce1585212779553844aee180f5a4"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] TiingoDailyData"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Custom/Tiingo/TiingoDailyData.cs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e5a5bb8f399fce0e3e9c74e8ab07865d266efd33f83258d4724ae985c75286"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CA1309 \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":"Common/Data/DataQueueHandlerSubscriptionManager.cs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0920999703e4d40ab6be14fb871b3f6a943a801be29493d39bd66c0ac8d9e95b"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable 1591 \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":"Common/Data/Fundamental/AssetClassificationHelper.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf433df9c64d3117ef5e7351f515f8ea47cde7ff5bed5f7aa9f222a4b2c0de87"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable 1591 \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":"Messaging/EventMessagingHandler.cs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"72eec0710e820d72a5b0fa614e8f8eefc523e04100c03a3322d5f5b72240a58b"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1591, CA1707 \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":"Common/Data/Fundamental/FundamentalProperty.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28e2b2d836f5b42930d998e2d289c59dd9d18174fc6bade79d0239d028f8510"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] Fundamentals"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Fundamental/FundamentalUniverse.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"39debbae156b236216876e0be3b645f39f92e9eb333e9792e50605dcd11ee8b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Null check required for FOPs: since OptionUniverse does not support FOPs, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Market/OptionContract.cs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"d394ac1ba6c9af592da948eccb5832ca7a7a630d05755c81ba495982e2518682"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] End"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Market/RenkoBar.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f11b398853dfe627da229777f989b2a6bf1d48962202ca5d9dddff83a305a1f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this won\u0027t work with async universe selection \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/UniverseSelection/ContinuousContractUniverse.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b7cf6752a9a1a2b94a0882642c2b0f1e938e37f51b982c661d4e1f9dea3bb4"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] ETFConstituentData"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/UniverseSelection/ETFConstituentUniverse.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed15ca2aed7c1a07670b1fea8ad72e71c33f04be93b8a64eb3de6f1723683cac"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetSubscriptionRequests"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/UniverseSelection/Universe.cs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22a7ed3381365466ce9c746196911a49de2e32640e3b4c6f716605aeab60182"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO looks like we can just replace this for Symbol.Create? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/UniverseSelection/UniverseExtensions.cs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2456ec6cd2fc10a0bb5e3d28c4b4529502ae7a48f77ceebaf4787013254c8d0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: see related issue https://github.com/QuantConnect/Lean/issues/6964 which would avoid the need for this"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Extensions.cs"},"region":{"startLine":3899}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada89bf798e125ad99cf03d6735ff2f690ddb9cf2ab7a9286ec79c67ed93aef6"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] GetEnumString"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Extensions.cs"},"region":{"startLine":3318}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a4b9dee0f00e982d9940f43c3c8cf2c55d4e47e12b0208c34daa2d8a81845c"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] GetEnumString"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Extensions.cs"},"region":{"startLine":3331}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c58319b47c874a5bef834f52412e0463f0d7a3186376a00128c3feb08d2cdd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // ToDo: clarify the value for different exchanges \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fees/ExanteFeeModel.cs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f86c4d94cf4146c215f15aa3fe036f2db3243a7b791da6c93e14f553148884"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GDAXFeeModel"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fees/GDAXFeeModel.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a30e57da0ad35b8edbbb2c19331267f94ceb10b7199647677117c8bb0fb4a9"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1570 \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":"Common/Orders/Fees/InteractiveBrokersFeeModel.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"389fae89f675756000d10bc25d369895ef79318ea8b4335b84b27d72fd6ee2e0"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1570 \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":"Common/Securities/Future/Futures.cs"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac638e59f0f5195b4163ab27f02bdf62552959a4f964811da4cf70f559822dfe"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CS1570 \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":"Common/Securities/Future/Futures.cs"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d222bc2e987083df5b009ece3fbea362a776f5cf01b02ea39a69545a5661891"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add separate DepthLimited fill partial order quantities based on tick quantity / bar.Volume available. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc699cb253f86f79dd9c53cd73c255a37e2a63b106006c1e428b6a530a659499"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add separate DepthLimited fill partial order quantities based on tick quantity / bar.Volume available. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Fills/EquityFillModel.cs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"81545758e5b934f69d82d1bba4d6204d36ac71e18e9b1eea99e52dd1048bb8bc"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] FixOrderProperites"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/FixOrderProperites.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbe2257ee76644d8379f0c3673eed1ddb9eeda63b725d9392014bee19fb4252"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GDAXOrderProperties"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/GDAXOrderProperties.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9fbd508f3f4df758643880fe7befb471f1666750954c2aee84a1e71c80e1c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Support Manual Exercise of OTM contracts [ inTheMoney = false ] \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/OptionExercise/DefaultExerciseModel.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ad6b439ee1c830bfa744a4fadcefd00afb7b4c50db78c7fb18608fc263ef88"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] Value"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Orders/Order.cs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e93e9cf9664a33a087af8b0477fdd5a330a454c3975f1aac0d1e44c5e4046a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO field/property.GetValue is expensive \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Python/PandasData.cs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"294b620bfbfcf751d55a3f47572896cd5794fc83c3980cff09624c3cd5c72b61"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Can this be smarter about its adjustment, instead of just stepping by lotsize? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/BuyingPowerModel.cs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e662bff3e6626a577f47b84da807a315fc5cb73c9d282a6afcfa89ba3d9a48"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Properly account for \u0027currency\u0027 - not accounted for currently as only performing mechanical refactoring \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/BuyingPowerParameters.cs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e71ba3516433e1aab6d6d82f8d28709731007926b559027ac1e7a45a0b678e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove once dydx SPOT market will be imlemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Cash.cs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"feccce7e16d7fba3fa7a6c6c6091ac3eff5db5a0315b6524a6f14a08f54ecaf4"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] IncludeWeeklys"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/ContractSecurityFilterUniverse.cs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"72049e2f091cc7963c45d3b8d40efecbb649142f94c49b5f20fb586484eeee8d"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] OnlyApplyFilterAtMarketOpen"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/ContractSecurityFilterUniverse.cs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b46601f9b89b76b81c131d279bef80dc1f7e1cdabe5eb04a01a7fb6107fa33"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] SetProperty"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/DynamicSecurityData.cs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c954c265471e3bc1aaae76c28557b24c509b5f65d2ab9b6c2297bb280d50af"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Energies"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Future/Futures.cs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"9374e363fcacd4cdc0b26bd22f347f4560d7472f7e8b2e958cf7518187a894f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Might need singapore calendar \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Future/FuturesExpiryFunctions.cs"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da7aefdbb7fb9be72274a3ee4b8d3279b71d32f8bc1e06b0505d1ff32936244"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] EnableGreekApproximation"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/Option.cs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04bae8a00cd84d16e1b7e51820a63f66f1277cba95086b2f1ffa39da7e67f23"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] Evaluate"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/OptionPriceModel.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa983bc80a6c913c0ac672a66890ad20d7f951f7bd331d1edfa0ed3c6352130f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Pass OptionStrategyMatcherOptions in and respect applicable options \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/StrategyMatcher/OptionStrategyDefinition.cs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea9aba780b646d1bad8d98913de5037a0b64ad9b72ed990f8d723071aa3ed45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Consider add OptionStrategyLegDefinition for underlying for consistency purposes. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/StrategyMatcher/OptionStrategyDefinition.cs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeacdf4d0f9e54d85c7090ddde101e9d8d625a9cf21f744fcb7c31e8b58ff222"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Add Order parameter to support Combo order type, pulling the orders per position \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Positions/PositionGroupBuyingPowerModel.cs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf12f8be7095dfc4b1c56c34d95d0f2a82e114947f01d5d1b40422b49615ac55"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Support combo order by pull symbol-specific order \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Positions/SecurityPositionGroupBuyingPowerModel.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f96345d964a4bd6741db16eb231b667175b5321e35b28b66ac09449923edcef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Replace w/ special IPosition impl to always equal security.Quantity and we\u0027ll \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Positions/SecurityPositionGroupModel.cs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"74092b5c6b991109f531a4e46883f0e886cd274eb57eede2e53ab0538d481964"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] Resolution"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02a179e787041e37b9a4070792745ddb53b2ee8019d428dc32855c3470268ab"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] IsFillDataForward"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5167085a3ded17161fe7a8099e4f0949b77d597e23fa75b763be742ccfda11"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] IsExtendedMarketHours"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c577de1c6ef9934b74c7c0dab0167d26e72bdc91bc057b8ab0b1ac33e9090f95"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] DataNormalizationMode"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"51169682d26e7a27b9def24344dd4b8c7dfc64ca19f059f2853989a1acad47f9"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] SubscriptionDataConfig"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"02836bf5cd1cc4c8ee27e8988690386be2b0bdbb11c54ba39c352dcd106cc034"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] IsCustomData"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb989f04984e9a9f5e7beb3f87d3d64f4ab838c961b974b75ec3a0ad40b7fe60"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] SetDataNormalizationMode"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba6230fef7a165a41afe315a55cd6194c1157f78485d20f9bb50edc6fc537bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Review and fix these comments: it doesn\u0027t return what it says it does. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityPortfolioManager.cs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"309b5011b7ef2bc872156118350bbc18f2852aa0c22f5f43b4f148b82918612a"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] MinimumOrderSize"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityTransactionManager.cs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dd63fce9dcb4a60ddf01d973666e615048e2cbed0b4fd12cb28129e8c348d5"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] MinimumOrderQuantity"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/SecurityTransactionManager.cs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c314afba3dc9cafd838b537f89c43462ace718d3f0545ff24338555ac1a454b"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] Symbol"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Statistics/Trade.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed800459622b5858c360fa1b85e0705fbe778fda120aeea006b1f95551b1b505"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] op_Implicit"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Symbol.cs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"d494dab0e7014d2d5b4ab1d336ca79567e22e0119f9fab6f056a69e9c70eb6a6"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] op_Implicit"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Symbol.cs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"559503d93d484971a8cd0a2dbdf8cbb097646b6be7e36f8f361bfe422bde5d4d"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] Contains"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Symbol.cs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284a7eed4cde43ca2129af63e5edbd51f2108fb624bb1d3b4e941ec48df4502"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] EndsWith"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Symbol.cs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd9f0d65209a8c2a0e277a6643395d2a57675f087d2620710d3f8787e8ad9b0"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] StartsWith"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Symbol.cs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb5cd9e4ee86de32b83cf2c898ac982015bc3deca022d7e5622e4e3e6de987b"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] ToLower"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Symbol.cs"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"4116587ad3943cdf9498f0df859db12c75edb1c705b05ce068034aca3e47aa58"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] ToUpper"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Symbol.cs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3edcbb248f5d4e7f0b9397c12dd29a666d527ece3035cd8c130089db4ee1169"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: potentially push into a scheduled event \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/AlgorithmManager.cs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1c223e1a35d44f7e4fffd657990c7ea2c4911736716ae34fe7a02a526d20d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should be in the chain provider interfaces. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/BacktestingChainProvider.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ffb698fef04940d6de87557b5b4a31014edf06e3613695266a174c0b9fd673"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this changes stats, why would the FF enumerator emit a data point beyoned the end time he was requested \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/FillForwardEnumerator.cs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"766b3009126276996a299e1043500b37ff80acbea07f186439972e8e9adbdf75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: what about extended market hours \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/FillForwardEnumerator.cs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fcd12fe760383cf5abc16f4bbe7447a132022d684bfa1859c310e008ce3a55"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace for setting security.RealTimePrice not to modify security cache data directly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Enumerators/SubscriptionFilterEnumerator.cs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0eace882d0f847e07b28857c9d2d2a7e85696a3c4976bbe58a22f0ce1877eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Consider moving the creating of universe subscriptions to a separate, testable class \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/LiveTradingDataFeed.cs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea03b2e0667730667f8c67316b34705e021f21da2c936e59db94bbbe51a9d821"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this might update the \u0027UtcStartTime\u0027 and \u0027UtcEndTime\u0027 of this subscription \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Subscription.cs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b84a2922808a320ced3b783ff947ce71152d15068a175e5c4f3b6e066a3fd27"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this might update the \u0027UtcStartTime\u0027 and \u0027UtcEndTime\u0027 of this subscription \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Subscription.cs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"313c29eb281e3c956ebba8ee35ab08b7ee0760e3bc0f0c4aa36913c4c9e3c215"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Put currency feeds in their own internal universe \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/Subscription.cs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68606f5f86bfe3508552b5a97fb8407c09070240f1ef05a8575f7a1b5690ae8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: What about extended market hours? How to handle non-adjacent market hour segments in a day? Same in FillForwardEnumerator \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/SubscriptionData.cs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef78e804ced2fb8cbf2b5669720e1d6d03b181cb37636802534461fc4f41d7f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should this be the case for all datapoints? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/SubscriptionDataReader.cs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"2723797a721fe1def11cdee8cbafcfa150715631ae3499ed43d8c1711f1e85b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: next step is to merge currency internal subscriptions under the same \u0027internal manager\u0027 instance and we could move this directly into the DataManager class \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/UniverseSelection.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"996e26f1117fa98fea41bb2d57aad9bbc50359e9238e456e5a52d8a4cd05f2c0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: here we are not checking if other universes have this security still selected \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/UniverseSelection.cs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e4ea287210e7eee822b7ae98b82eec12f7fa6ace16ba424265a1321bc712dd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we don\u0027t need fee/fill/BPM/etc either. Even better we should refactor \u0026 remove the need for the security \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/HistoricalData/SubscriptionDataReaderHistoryProvider.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c070bd1b2981f693ff7a76fd5ec100dc334b0f0e00035fb47ef6f13966d9979a"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] AddAlgorithmEndOfDayEvent"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/RealTime/BaseRealTimeHandler.cs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e00c9d06b424530ece5ac911839105dba8d730c63c3fa7a896ff6fe545fc55"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] ConsoleSetupHandler"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Setup/ConsoleSetupHandler.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d58cd1026f332884a2e4d279cf9623fa3f61a436d7113d3fc3295706abab59"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If we confirm this race condition applies for IB only, we could move this to the brokerage itself. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/TransactionHandlers/BrokerageTransactionHandler.cs"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11d96f5decc9a1e28f3c4c29c85925cff438a136d0ebf2df2f2728aff5f9f48"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] AddStock"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/AdvanceDeclineIndicator.cs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6847f43c7e29d727c151ceaa8fb5ac65aa43057a616567f0b607accf087d04a8"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] AddStock"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/ArmsIndex.cs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f440d1f4cc3a263dcf97dc6d5265987f30c3a5f42fa2369230c0441e67d884dc"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] RemoveStock"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/AdvanceDeclineIndicator.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6fd9ca8bcc5294cf851a540d2ab0b740c332457aef23bc8089e3338e70d0bc"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] RemoveStock"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Indicators/ArmsIndex.cs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aeeafca39f7522df224db366ace05ccdb611c958205357fede6dce88cf6bd1d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: LiveResult does not contain a TotalPerformance field, so skip live mode for now \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Report/ReportElements/ReturnsPerTradeReportElement.cs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38989aa0bcd40e6d0f8ecc040db3444868a8f2c4c4573199a8c54633a8d009a"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetAllData"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/FutureHistory.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef51ea335daa286d167faa1be43efcd2542afa827797c2de9393b4127a84013"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetAllData"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/OptionHistory.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d6e605cb57efd6f0fec62a0a5980d13dee1b7f90721e4725c76629bb72202f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this is expensive and can be cached \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"087cfa5cf10213f4924df43b159a60bc1c85bac78688a2429fbdcdd699c5485f"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetFundamental"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadbea7d172f010ffd1714ebfc0f5647bd5e9552b352d1ee218723c9d20d48f6"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetFundamental"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"81148e4ffbfdf0ac4718c7838c0b9bf6132f4a212f0cc9d5fc830f0468ad024b"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetFundamental"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adacfaec3a89b9a7cc00fb3dd113a4b7a3804ae93910dde701e2592e0223bb8"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetFundamental"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdcd711f32fa168a5fe8c9a0f7ae79762350d2b235a3d53a5ec17db26c13f2c"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetFundamental"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"663e7f239bd7dfc8f1cb483ee359e601d8c6e5811379104fe7277a5653b9b813"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetOptionHistory"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"c754ef26ee04d13ef3a4667724d5a647fe9122d2c1fd842d258ba5fd512f5d26"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetOptionHistory"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92e6848f906206b898caca1040dccf5730f155ef8669b25d0d49ba4d6b06d7c"}},{"ruleId":"D17","level":"warning","message":{"text":"ObsoleteWithCallers: [Obsolete] GetFutureHistory"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73b2148898c9a26fe6935e0b35227da2428c575037a0d51e76aaeacf59d83c8"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"c501697c17e8342facb8914f0f4fcd921c7fe5179566478fec9dd4a8342a93eb"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc8750a29890b3a1562fe019c5223411e0e81d7b1fd3fbb835d6b76dae40e34"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d5316090314f95e12d952ef96ec384c216c17792e91cd34b03ab58cac5e4d0"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbdc4ea0d74218e6539457031abf4a9c398165dfe1475c24d4be73b503bf8f5"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3d95053086d9a1524abb981337944a5e85958027f5fa0af16fd562a7fc7212"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"7304d35c367f0fa1e7036c7fa26e834f813eeff5903b3d0a71ea98fa7ac41b8b"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"38190e4135c06290fc1cec3ec2016d3f3b465189bb98fc4c7635a29db72c4e81"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"df26b3a6bef30a77cae9e885c92b91115eedf973abca76249289b7500add30c2"}},{"ruleId":"D17","level":"note","message":{"text":"ObsoleteWithoutCallers: [Obsolete] Indicator"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/QuantBook.cs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"594f2ed5b6630cd3f4a49cca5c376e7c2e21943436d7a14e4b02e5134b1bd365"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable repeated across 14 files: The identical BarePragmaDisable (\u0060#pragma warning disable CS0618\u0060) appears in 14 files (16 occurrences) \u2014 a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 16 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmAddDataTests.cs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce8c1f91bed22dc31f500d15509fc7667526ed2e3869f14f32185285a9d5e78"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4081333a42a25ed5da1c0191469d6507ec8b1d55b369976d617d6c1fd48b67"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e032a26a8ce79ae0c56d6ee4d7b63d9597795de7e0a5d92132d3afc3cbccc0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"4799215e93a862e3677b11d370b014b661c84496c9664afa25000166916f541f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a492ce630f743a38beb269a17e9db3fed1f0e1e04b3d54ee565724fa88aef76b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2557}}}],"partialFingerprints":{"codehealthFindingId/v1":"75caa7910b3a2c9758d6d14aefd1576ee85028173088450f0f562311555d7e44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2560}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dd988327f0b1d9a56c8fb705f60477eb4134d186c36a30ff7dcb3a27ddc5fe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2751}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1d2b61d17be76749021d4e20117a32088aae39c0ddd018504045d9aa768810"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2801}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37ae34e1173c7903e78babbb914230880df2ba8c0a082fbbd00f349a8c169f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2804}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88b5af29315495fe74dcf9fe3ac91dca4b1d2a2c4a710599929eef5932ce634"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2997}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7915e49b9e1ad034b1d5f8f5d54fb0b58370a79e56500a233d6c544b8f7ae86"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":3042}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bb84f534864778ee3751d1d32895d4dc27129c3e87b0e799b2fc1aeffe7151"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":3045}}}],"partialFingerprints":{"codehealthFindingId/v1":"4616c041610ae799afb2676c8c64e3c3cbf7228342fd49cd3987edcc3e945484"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //// TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b7b5be11144bb9f64e4a1ef6de8de8dad3f204eef1817d5f848d376afb2363"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //// TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25471dfa9d4ad04a7103926aca03147af75ffecab3be07b312bff43f18a13d2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //// TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"618d9ff3c216c2ac18c09ccb3cf15ebe379f66afca37e279f39e6c563a9b1a50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //// TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2311}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9d207cd1868e8b22b41435ff79eb7d429a960c3ff16fbac7c5f7e59aa8bad4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //// TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f1f8ca480791c5bd6c478b329b0a0924111ec5f8f69f620d71d95bb0d0327b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //// TODO: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":2345}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f1c55261f7d0f98c2eddeda65f27c15c76d32cd441ea971a99d2f7a5aebfb1"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 9 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmSetHoldingsTests.cs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3437525077549eb6929d9d686fbf395046c388344182a3ddaa5cfead0f5a37"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 7 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmSetHoldingsTests.cs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ceb9eb743da98a8c48a919d7239d7807c626a8b6b7e457e811c35ca229c85cc"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 7 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmSetHoldingsTests.cs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"269c8855141030b5e7f236d02bb684904c19daecff051c406d144bd745ab121a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Give securities different values -- will require updating all derived types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/Framework/Alphas/CommonAlphaModelTests.cs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7dee1a770c995b187926514ac3d4a7b44bacb345e78edeee511fc00b98a282d"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CA1829 \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":"Tests/Common/Data/SliceTests.cs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e08083880d40b15e85fd4e4f78125a857a2c5db25a7d772f5a8f888cbe2d743"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: # pragma warning disable CA2000 \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":"Tests/Common/Orders/Fills/PartialMarketFillModelTests.cs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a885afef0f424fd08acf9f60b2e77cb96be1018e54655403fa46406f0b70a914"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: # pragma warning disable CA2000 \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":"Tests/Engine/DataFeeds/SubscriptionCollectionTests.cs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"776589db34195d873ba6b231258439430354fae6163d231fb55b67a28f9c255b"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: # pragma warning disable CA2000 \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":"Tests/Engine/DataFeeds/SubscriptionSynchronizerTests.cs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2f5e2aa05e7675c9d44a303099b1e3ded8d53168d20cba74a39679cc0caa53"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: # pragma warning disable CA2000 \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":"Tests/Engine/DataFeeds/SubscriptionTests.cs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff14996c1f874493e09bbfada3c4ff5746d037fd82203fb73b0bf164731c930e"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: # pragma warning disable CA2000 \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":"Tests/Engine/DataProviders/ApiDataProviderTests.cs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"929d5c876cf4e1fda6a0dcdfdf0de2d04adcdd5aa436eacc7bffdd37b42482eb"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable repeated 19 times in 5 files: The identical BarePragmaDisable (\u0060#pragma warning disable CA2000\u0060) appears 19 times in 5 files \u2014 one decision applied repeatedly (e.g. the same rule silenced on every overload of a fluent API), not 19 independent debts. Decide it once \u2014 at the type or project level, or by fixing the underlying pattern \u2014 rather than occurrence-by-occurrence. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Common/Storage/LocalObjectStoreTests.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbbd3d35a88178c983e38b9230fd9dc1f801e3904031023f0db9fdde2b1e87e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO : Collapse duplicate implementations -- type constraint shenanigans and after 4am \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Indicators/TestHelper.cs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"87add8354923fb21fa4738d2d17f04d742c6e7ead7adfd257d25b6b49baf15b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Rename to PandasPythonTests, dedicate class to python tests under ./PandasTests directory \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Python/PandasIndexingTests.cs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1589f1d50ec419c55092ee180d66b59f87eed275d8d9df33e4f9b2fb9c1d9ebb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: generate Low resolution sample data for equities \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ToolBox/LeanDataReaderTests.cs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d1292516eab04e8f7ea3fb6c2385f5f874e02d0ef9095ed3ddbaab204a16eb"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj repeated across 20 files: The identical NoWarnInCsproj (\u0060CA1062\u0060) appears in 20 files (20 occurrences) \u2014 a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 20 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ToolBox/QuantConnect.ToolBox.csproj"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eeb38a041ab80a8f1ba1b41b658b7ab7df1ec183ec94aa74ce70783b9ec03df"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: CA1707 \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":"Tests/QuantConnect.Tests.csproj"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61999637073951fabce106557f8056c89622b37d6b1fcea7110b5f14b80dde0"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: IDE0066 \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":"Tests/QuantConnect.Tests.csproj"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1096ea1eac9cc091a926003d76e9c9e621168f05d5973eeb6d22c0157d37313d"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: CS0618 \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":"Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0548bbb9eca28accbbac368ac3ae4b182b9f3467829258214cb82688b1a5b58"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: CA1002 \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":"Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f0d82014427bc6c4d7ad3135488eeae81d5e6ef94e2be6ffe13e3ce556cb3a"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: GetUniverseProvider: Method GetUniverseProvider \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/DataFeeds/LiveTradingDataFeed.cs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ae963cfe281cbbdcbb40a2eb7be13e53cff6af0c7184308448cc4a9a6b7708"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: PeriodAsByte: NamedType PeriodAsByte \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Fundamental/Period.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bad1fdcf7dc6cd44a960bf277038d9f66b9363e8b07b188035455ad2f59031d"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: UpdateSymbolProperties: Method UpdateSymbolProperties \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Security.cs"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"74dc89389256e60353d014f22ce3dadc2354d87b91ef478ae24e8a63d5072dd8"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: GetAllDataNormalizationModes: Method GetAllDataNormalizationModes \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Algorithm/AlgorithmHistoryTests.cs"},"region":{"startLine":4561}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbee0df3002dd1b342e87ae120c589c9641c8adb7a164138850abd5545c3083"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: AssertDailyTradeBar: Method AssertDailyTradeBar \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Common/Data/CalendarConsolidatorsTests.cs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fa97f274357c8e6cc2b67e20dcea753e876339504395008f2648c589aefad2"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: TestSymbolDictionary: NamedType TestSymbolDictionary \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Common/ExtendedDictionaryTests.cs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2b2e3a538b7991bf5f3d4c6878120f84460b39a8ce0b7a93591f75b66ab00d"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: NullResultHandler: NamedType NullResultHandler \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Engine/AlgorithmManagerTests.cs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"404b3a0b680f4c71df64aa87ac06ba21b7b3ae29814c440c7ab9605af5fdaa59"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: NullRealTimeHandler: NamedType NullRealTimeHandler \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Engine/AlgorithmManagerTests.cs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f042e91d18da3ec54438f10a1752bedaab424a19903ff0f233e931269a039f33"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: UpdateIndicator: Method UpdateIndicator \u2014 no references found in solution."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/IndicatorVolatilityModelAlgorithm.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e8a778b51879c91d3f14eba68e7b4bfed5507e23bee3d0a12957c796f17ddd"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found at common paths; consider documenting architectural decisions in Docs/ADL/ or similar."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D23","level":"note","message":{"text":"Bounded contexts not declared: At 476k LoC spread over 23 projects the codebase is large and multi-module, so explicit bounded contexts are needed. Name this codebase\u0027s bounded contexts (\u22652 module groups, e.g. per subsystem) so cross-boundary type coupling can be assessed. Declare them in \u0060.codehealth/config.yaml\u0060 at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it \u2014 e.g. \u0060architecture:\u0060 \u2192 \u0060contexts:\u0060 \u2192 \u0060Billing: [\u0022src/billing\u0022, \u0022Acme.Billing\u0022]\u0060, \u0060Catalog: [\u0022src/catalog\u0022, \u0022Acme.Catalog\u0022]\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1c7e276c9c682731f01819ed5378b90ca320cde1b583c90920172911598362b3"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set Start Date\u0022 \u2014 delete - SetStartDate already says this"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/BasicPythonIntegrationTemplateAlgorithm.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6975304f39aa5fb39e02db17a2f6fb5bebd83cde1a2c8854a60379d64d189c2"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Example Line Format:\u0022 \u2014 delete - the code block format is self-describing"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/LiveFeaturesAlgorithm.cs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e3faed4f82e94a08ee808b8ab8ef8ca42ab5cefa40a46ed876d62c939c8e2f"}},{"ruleId":"D26","level":"note","message":{"text":"Split QuantConnect.Lean.Engine: A catch-all name that is large and sprawls over 27 unrelated namespaces. Suggested: by namespace: QuantConnect.Lean.Calculation, QuantConnect.Lean.Trading"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c3c8b1c0bfeee0fe8779ae7d135548308adc6022dcb15a35a3050052a7c6f240"}},{"ruleId":"D26","level":"note","message":{"text":"Split QuantConnect.Algorithm.CSharp: Generic catch-all name that is large and spans 6 namespaces. Suggested: by namespace: QuantConnect.Algorithms, QuantConnect.Algorithm.Strategies"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b1bf173baa302a99317ae267324099831b6a77adba9b621c59d59c4e9d925bba"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b81892b8577bf185a24bff23cf96887b42d7e0a47c79d55b6d2e258419bb6935"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6f686499c193dde18eff85786d43e5b17d926791704f3d2949e63f7677d74157"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a23b4ddf46e0b063cb41ac337ee58ddf035b20ab587988151e9c30bf9f3882ae"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a0385e4a0ff76384e0ae401d1e8d41427b243b933633661236e46effe2fefe70"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce0ed1dc1902f470ef869adc727b11de877c40c4ceb16197f3b8bc8d0f7e1417"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"363623b30f9bf6a818249d505df11178d2f472213f9627032605ffa19dbd5076"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95cb15eec190e6e48cafed35dfab23b5f53af9699b096a071b3ac21d9a07ab22"},"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":"6b82f308522f5ed67386e48f70a20250cd2a3a1a0ab3a378bebc43cc25a74ca2"},"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":"188425ad05d57a03fa84d9bdb2604d8b0f74c861d77d39c67a7531827524e4f4"},"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":"246d8e1d645e253761a64933997adf370f6196f557d2cf0ea9b2df3566d0902b"},"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":"2556b14673e88f20de0c04bbf35c0565f3610712c8f505636fc32b4c1fa45571"},"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":"a6847b57f8a33748010078c8ffd9155ba76a50af9db941ebda6deda5d637481b"},"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":"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":"f17bccbf261fd6f0662da4be6a7efe792080105e61de072364cf2fcbf2370efb"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f449b924440e519b2976cc421b43d6b075c519b3378931e07cf6dec96f23c1b"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1097e183efa811539f496b3f5d1914bc8aa830db24f26e6393906cba7f380b2"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e0a0b254c28c95ffd036352847cbf58872eabc4e73019fdafb791ebb43d1cf0"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85d0102c7e917a1ac26c13169c0f6d45e82e9964a24fa8169f325e6acff1f82b"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21e47ac332dc2df540fcf9018622d8e284f7d581b6335d2b2de71195271fe2bc"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0a6df389e2044132ff4ec68baca02883c202cc750a3549bee83a20e1034c09a0"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e84a0d19ec4331292241d6f43fdac22f81bea54f7775c62d13ae5e7722d0b00f"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"05ea148e5cdc07fe1927ccfdb4fc51762ceaa5794769da5b68c1d823d4a772f1"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1014a72b19c68e2865f2890ccd567ffbec0fef201faa8d78c7f9524904950df9"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"127abad49335381d52ed257a05348819b68dab1bcc9e08de086ea1cad128da24"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f79a595d62add568feda19f54d04fdad0273f072ae213a4e4ad714127a8a2fe"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"932f1b8fcf779010f84bf9fda511b1bf60681e974e885f0ffc74fb010e40f36f"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f0c49893a173d660bafbdbdafb1a418ce59f4f35381a956289c40272d43296cf"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a528483a4f9698ac07cee8c16c6104103e30dbb3cc32294957276d559dcca5dd"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3f48574ec639f31bc44efc7abdf2cc4a0486372f34bd732400383fe88eca3e58"}},{"ruleId":"D30","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":"e3f2093e8b9ce4c1c28ab54ed8b9f25f608b64fa56d576dbc846ec0e9b204879"}},{"ruleId":"D30","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":"a0185c37ddef3c6f75e4c866624d10c2d8ebe491e114e411d865c081310f6ca8"}},{"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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"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":"9ae251479d3491870c9d6e15818de49eea78589883b9029334cbdf7d4b95c06d"}},{"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":"e92c0dd8c6cd56cb799d838ae7f3d8108e915970e50d95d59bc02a73aa1b123d"}},{"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":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"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":"4245684489cbc9436c7952652379947bc5f434a910d7d4791ef1941cc73b368e"}},{"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":"3adeb5ca433f8377e0513466abe226661632e2c7a65ab03d48b79033987746ab"}},{"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":"c790f76cf70ef3b7e11b2b2e046aa998549442297137ee1873617b41f8d8e165"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/StressSymbols.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bad34af4662c594d2d009b3ee5cc483847694f32470e8faa5d57fc2845e65ce"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away. It is machine-generated, though, so the knowledge that decayed is the GENERATOR\u0027s: a read-through of this file teaches only what its inputs already say, and a test written against it is overwritten the next time it is regenerated. Schedule the read-through against the generator and the sources it reads instead, and keep this file out of review."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Fundamental/Generated/IncomeStatement.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6705ad5327471aa1813141f54a9878a6741954bc147b3e48e9299824f91a9866"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm/CandlestickPatterns.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b94a52b7045c468e3e89be52702624effe0904fc6990f5b4dc2fe17db44d14"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Fundamental/AssetClassificationHelper.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6229fba567e18547e2fe90bcf73aea4fde4a72b29857022f7faebbf470a5bf"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Symbol.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ba1cdb640a5b2e6c129257c095d98fb3b021adaebbde84e09371df50707d66"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Time.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1724cbabe0ec4476aae11dc4eb5c4dd43a1d3ed97c0a4275c26afd10466adc3a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Algorithm/Framework/Alphas/Insight.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fb2a8e8062bc7091659784910294d697387175a4407b06b0f4c0125bfcd2d5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/OrderTicketDemoAlgorithm.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5164efc0d45ccade4807461ee864fb54118b04fa274388c1f44868323f7ed6f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/Option/StrategyMatcher/OptionPositionCollection.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b665128ad19d777911544aca99882c09fd806b77ea5074dc31455bb94b9a9b2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Brokerages/Backtesting/BacktestingBrokerage.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"817e57cf13d1aea16b04301edb65ddd4f4790a6461fc50140cfdbc6192412e34"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/Custom/Intrinio/EconomicDataSources.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc732b555d59d2fcd07e53275652f968fa7860ed65b6f88ce39812c50d1452c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/OpeningBreakoutAlgorithm.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64964ad55000e6b77436ffffa3b6b74dc304a7e16cdc0a5c550e8ef5f2562715"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Statistics/StatisticsBuilder.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0036808b7511feb0ca256df6cbc89cbd4740809f62a9ad76e34a8c2170a9a66"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/SubscriptionDataConfig.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb5854ea4999e0b723a93850af1ec8349a940894282e30bfa0c1a8d0989d6ac"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Report/PortfolioLooper/PortfolioLooper.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a94d08e7df7a9173dbc7244a90517b3721d36aa3944d720086c2415f5528a98"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Securities/LocalMarketHours.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3eb7ca7368281c658dd84ebdcabda90051facf9ee2de788f1e59217468af1da"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Engine/Results/RegressionResultHandler.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7aa52d76ce405be8ff2401d7d17383d405f22e810ea533ea89428c0b9b91ef6"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Common/Data/BaseData.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5690f765d9f0817261c04dcc956c0681c02d46cae522e865ddfc4ae99d79db5a"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 714 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (732 orphaned of 2878 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BlackLittermanOptimizationPortfolioConstructionModel.py \u2194 MeanVarianceOptimizationPortfolioConstructionModel.py: \u0060Algorithm.Framework/Portfolio/BlackLittermanOptimizationPortfolioConstructionModel.py\u0060 and \u0060Algorithm.Framework/Portfolio/MeanVarianceOptimizationPortfolioConstructionModel.py\u0060 change together 60% of the time (18 of the 30 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.Framework/Portfolio/BlackLittermanOptimizationPortfolioConstructionModel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c924a6471a9d2deb86e205b4a7a56c9b0fe555acba7172ba624a85cbc5475e84"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"ruleId":"D39","level":"note","message":{"text":"IL efficiency: 117 authored method(s) exceed the IL budget: 117 of 11377 first-party methods compile to oversized IL bodies (\u003E 250 instructions); worst: QuantConnect.Algorithm.CSharp.EmaPortfolioRebalance100.Initialize @ Algorithm.CSharp/CapacityTests/EmaPortfolioRebalance100.cs:33, 1720 IL instructions; large bodies don\u0027t JIT-inline, which pulled this dimension to 9.8/10; splitting the hottest bodies recovers the most."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Algorithm.CSharp/CapacityTests/EmaPortfolioRebalance100.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c35f922556792d39e9c2790e967b1e8a1afadd8b44273bc2fe2c3257921595"}}],"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-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-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"CWE-22","shortDescription":{"text":"CWE-22"},"helpUri":"https://cwe.mitre.org/data/definitions/22.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-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"CWE-295","shortDescription":{"text":"CWE-295"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-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":43,"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."]}]}