{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D18","name":"Solution Shape","shortDescription":{"text":"Solution Shape"},"helpUri":"https://codehealth.canine.dev/dimensions/D18"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"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"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Cryptographic Hygiene","shortDescription":{"text":"Cryptographic Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"GitHubActionsAdapter.GetArgs (cyclomatic 32): GitHubActionsAdapter.GetArgs has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a451c023a914c7a89c6b66b3fa504e779fc635f0f9f35ec695bd56f95859450"}},{"ruleId":"D1","level":"warning","message":{"text":"AzurePipelinesAdapter.GetArgs (cyclomatic 30): AzurePipelinesAdapter.GetArgs has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dc17a8a6a989fea16191e8846efa714328f9c87deef72a2064ef268e0ad538"}},{"ruleId":"D1","level":"warning","message":{"text":"ModuleCommand.ModuleRestoreAsync (cyclomatic 26): ModuleCommand.ModuleRestoreAsync has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b4cc8b2b45887be8c2c7eac7e511a80b6f9c06ff0ffd86bb4b1a0964e998db"}},{"ruleId":"D1","level":"warning","message":{"text":"AssertWithinCommand.ProcessRecord (cyclomatic 23): AssertWithinCommand.ProcessRecord has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Commands/AssertWithinCommand.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d04ebfb755487887ab22cdf5053a81a95896e5233783bf20faedaddf01ac0d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ObjectHelper.TryPropertyValue (cyclomatic 23): ObjectHelper.TryPropertyValue has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectHelper.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"834ea8682a49650f64bf3ce7b7e937f480f4f2fe99ab71843dad630f078d3708"}},{"ruleId":"D1","level":"warning","message":{"text":"ModuleCommand.ModuleAddAsync (cyclomatic 23): ModuleCommand.ModuleAddAsync has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"750b7e8e977df56a746399eda5d48af378a0909af9e771b4ead8abadc6bfc5ce"}},{"ruleId":"D1","level":"warning","message":{"text":"PR.CompareTo (cyclomatic 21): PR.CompareTo has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"2140d6eabda25d6e6c8a7a3e53c24000e08895bda5f5c33863f81c02f949830b"}},{"ruleId":"D1","level":"warning","message":{"text":"PR.CompareTo (cyclomatic 21): PR.CompareTo has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/SemanticVersion.cs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aac129f4a935284b3a23f6d6ea810687c1a6af2dc1e5b7e2da543c63e88c1e"}},{"ruleId":"D1","level":"warning","message":{"text":"RunCommand.RunAsync (cyclomatic 21): RunCommand.RunAsync has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/RunCommand.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8934683cf98a95f15f06a4e24dcc48591266c67d1458a9228350d6f603fc9bb9"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageExpressionJsonConverter.MapProperty (cyclomatic 20): LanguageExpressionJsonConverter.MapProperty has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Converters/Json/LanguageExpressionJsonConverter.cs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd0ae68128f203a833e685729bc6d1ff95c416bdba9acc5f50034c495d8ee07"}},{"ruleId":"D1","level":"warning","message":{"text":"upgradeDependency.upgradeDependency (cyclomatic 20): upgradeDependency.upgradeDependency has cyclomatic 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, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/upgradeDependency.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e5a1f4d4cd874801f6452b79b00c1fbd45285a2184947f30e361282591cda6"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionHelpers.Equal (cyclomatic 19): ExpressionHelpers.Equal has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ExpressionHelpers.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"105b1400fc0ab41d593bec6385824223cd61b3ab5a97ab4c8ea47561157f2204"}},{"ruleId":"D1","level":"warning","message":{"text":"InvokeRulePipeline.InvokeRun (cyclomatic 19): InvokeRulePipeline.InvokeRun has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/InvokeRulePipeline.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdf8bb5c30cebed20fd965a43581cde510ca9020576e072d9f2efc02f67a1a3"}},{"ruleId":"D1","level":"warning","message":{"text":"PathStream.TryConsumeComparisonOperator (cyclomatic 19): PathStream.TryConsumeComparisonOperator 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":"src/PSRule/Runtime/ObjectPath/PathTokenizer.cs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d5f09a10eac08e0c36ea01000fc4dcf80a9b767ccbd12ce6a0da78661364cc"}},{"ruleId":"D1","level":"warning","message":{"text":"Version.CompareTo (cyclomatic 18): Version.CompareTo has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4b30555d6a4f5098adca9cf8807d2d8770d62d7fdb49f3d6299876998867a2"}},{"ruleId":"D1","level":"warning","message":{"text":"PSObjectBaseConverter.ReadObject (cyclomatic 18): PSObjectBaseConverter.ReadObject has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/JsonConverters.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ef47cc43b02714eeda2ded113911a43054e54775625099d3082a7014dda4b8"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageExpressionDeserializer.MapProperty (cyclomatic 18): LanguageExpressionDeserializer.MapProperty has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Converters/Yaml/LanguageExpressionDeserializer.cs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc91983d7f203a627a58e5279407ba7a8bfb50043e05d5eb72e777e6876fe4d8"}},{"ruleId":"D1","level":"warning","message":{"text":"runner.getAnalysisRunner::getCmdTooling (cyclomatic 18): runner.getAnalysisRunner::getCmdTooling has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/runner.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce28fd0f9b9f3e5e78982db628bd3de30ab0411379ee99b7de04d4c3cf78b91a"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecutionOption.Load (cyclomatic 17): ExecutionOption.Load has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (ExecutionOption.Import) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/ExecutionOption.cs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"e655e9e5cfd4a4f4debfeb853cc5353db940590062c999263022bf5ab1b0c727"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecutionOption.Import (cyclomatic 17): ExecutionOption.Import has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (ExecutionOption.Load) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/ExecutionOption.cs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"4353fa56d5c28cb2a5ba18a5021d3248c1226c684a25a60dd417b5ff5553bf4c"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionHelpers.Equal (cyclomatic 17): ExpressionHelpers.Equal has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ExpressionHelpers.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8264e5637c85b080e891708a4d7602d4e8f87fb2a325725b7006c526f1cdcf5"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownReader.UnwrapStyleMarkers (cyclomatic 17): MarkdownReader.UnwrapStyleMarkers has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Help/MarkdownReader.cs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"925f749299e1dd08d1cc22c507f3d78022b2d1081d9750b73413437cd0df493e"}},{"ruleId":"D1","level":"warning","message":{"text":"ObjectHelper.TryIndexValue (cyclomatic 17): ObjectHelper.TryIndexValue has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectHelper.cs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e38db0f1577b4039a93cf6d265d02c59698eec7f816f30891515fd4c12ceab"}},{"ruleId":"D1","level":"warning","message":{"text":"ModuleCommand.ModuleInitAsync (cyclomatic 17): ModuleCommand.ModuleInitAsync has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f596543bb54835e2568a3ac66496646ac1e848f26da36aac103a0b579bb604eb"}},{"ruleId":"D1","level":"warning","message":{"text":"VersionConstraint.Accepts (cyclomatic 16): VersionConstraint.Accepts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3efbe3a349a5d8712dd60616516b6c8181269ad191787c628c81bc172054b4a"}},{"ruleId":"D1","level":"warning","message":{"text":"VersionConstraint.Accepts (cyclomatic 16): VersionConstraint.Accepts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/SemanticVersion.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f496b49c96a3e5a5cee99a52a234dab3ff8fb565a0978ae13046083c1e134c2"}},{"ruleId":"D1","level":"warning","message":{"text":"StringExtensions.SplitSemantic (cyclomatic 16): StringExtensions.SplitSemantic has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/StringExtensions.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6b0c57de54a4e4f879fa82b6748037c5d4d6e5044ef62686342d705afa0f29"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceObjectJsonConverter.MapResource (cyclomatic 16): ResourceObjectJsonConverter.MapResource has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Converters/Json/ResourceObjectJsonConverter.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80447db9655d2249293a97b9c05810c90c649502e9ba21557afedd3a4f0bf32"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageExpressionJsonConverter.MapProperty (cognitive 41): LanguageExpressionJsonConverter.MapProperty 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":"src/PSRule/Converters/Json/LanguageExpressionJsonConverter.cs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be47a5837f467a19620ba1d3eb3906278baa33cf91ff5fa0336f4897f02d343"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleCommand.ModuleRestoreAsync (cognitive 41): ModuleCommand.ModuleRestoreAsync 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":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"06431ab450f57de399be5c90148f93f6ccf3bc54cd0c5164b7d3111b00cc815a"}},{"ruleId":"D2","level":"warning","message":{"text":"AzurePipelinesAdapter.GetArgs (cognitive 37): AzurePipelinesAdapter.GetArgs 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":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"21da2618be00d2eb97a454362117165deeeb2810e8dff5a9e3b39d4f0bfcfbde"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubActionsAdapter.GetArgs (cognitive 37): GitHubActionsAdapter.GetArgs 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":"src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3bd3663b7f5ea2a73f1a9524448eabd232aa38619e37a3b85ab67799738ebe"}},{"ruleId":"D2","level":"warning","message":{"text":"InvokeRulePipeline.InvokeRun (cognitive 35): InvokeRulePipeline.InvokeRun has cognitive complexity 35 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/InvokeRulePipeline.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7edffad685a6ae95ea09bced65b67780ff96ccec7427505387e13af49c4e02"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleCommand.ModuleAddAsync (cognitive 35): ModuleCommand.ModuleAddAsync has cognitive complexity 35 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"3740186dd8563dcdaef6815c8b0aeaadc0219ad60a9f60c7742c4da97af1ed52"}},{"ruleId":"D2","level":"warning","message":{"text":"AssertWithinCommand.ProcessRecord (cognitive 33): AssertWithinCommand.ProcessRecord 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":"src/PSRule/Commands/AssertWithinCommand.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8045488f104776553b3e6149d3fbb3a29e47486d6ccd49f7e2b20caa801a86db"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownReader.UnwrapStyleMarkers (cognitive 32): MarkdownReader.UnwrapStyleMarkers 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":"src/PSRule/Help/MarkdownReader.cs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"161be891b943384badde709d504a707c509f184186e4dc8d9e496f8be6a70ac4"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleCommand.ModuleInitAsync (cognitive 29): ModuleCommand.ModuleInitAsync has cognitive complexity 29 (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":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75060c2c98c3cffbad5f0dc0f6c51041f3abb87b5baab49b4a32d67bb82a04b"}},{"ruleId":"D2","level":"warning","message":{"text":"HostHelper.GetPSLanguageBlocks (cognitive 28): HostHelper.GetPSLanguageBlocks 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":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a83694b60868908be1122cae0a33fbacb373b6d561afd9fdecc41f9e0392a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"PR.CompareTo (cognitive 27): PR.CompareTo 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":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c788fe78e8f8a736cb61a01cc42652db11f4ab459041796fa1046520eb37cfd"}},{"ruleId":"D2","level":"warning","message":{"text":"PR.CompareTo (cognitive 27): PR.CompareTo 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":"src/PSRule.Types/Data/SemanticVersion.cs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe6f3bc795e3bdb585341e3ff5b56026641f4221c5d963d53e58c1d3e247286"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageExpressionJsonConverter.MapOperator (cognitive 27): LanguageExpressionJsonConverter.MapOperator 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":"src/PSRule/Converters/Json/LanguageExpressionJsonConverter.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f0c14b577715c104b5d81622df6e38eaeccceacd89da3d312833d3c196e25e"}},{"ruleId":"D2","level":"warning","message":{"text":"HostHelper.GetJsonLanguageBlocks (cognitive 27): HostHelper.GetJsonLanguageBlocks 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":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"286fffcf4db306189535f5a88fb389a45801cf1cccf122f668eaaa40ec4600d4"}},{"ruleId":"D2","level":"warning","message":{"text":"upgradeDependency.upgradeDependency (cognitive 27): upgradeDependency.upgradeDependency has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 6 (nesting depth added 11). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/upgradeDependency.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7dbfc74b95433ed990705518d9c65e5b87020ce6754af1f70477a6546c7db3"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageExpressionDeserializer.MapProperty (cognitive 26): LanguageExpressionDeserializer.MapProperty 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":"src/PSRule/Converters/Yaml/LanguageExpressionDeserializer.cs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87eaae9a5d1141f9eb212a059b37d6bcb3ae38f9a59b347859ff51a157687ae"}},{"ruleId":"D2","level":"warning","message":{"text":"StringExtensions.SplitSemantic (cognitive 24): StringExtensions.SplitSemantic 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":"src/PSRule.Types/StringExtensions.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f702ff367e0e7e316cef14ba1143ba0eba94f70e824adae25ee7cbb98b844eb"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageExpressionBuilder.Operator (cognitive 24): LanguageExpressionBuilder.Operator has cognitive complexity 24 (threshold 15). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 221). 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":"src/PSRule/Definitions/Expressions/LanguageExpressionBuilder.cs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"256e4a416ae4998b025724aa4cd774aac2f2261d8ce90a0f2eb8acfdf1db92bf"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceObjectJsonConverter.MapResource (cognitive 23): ResourceObjectJsonConverter.MapResource 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":"src/PSRule/Converters/Json/ResourceObjectJsonConverter.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"33580b941e59be7c3e47d0cb13070b19d84563e99e86443ef42ff2cacf0fb066"}},{"ruleId":"D2","level":"warning","message":{"text":"PSObjectBaseConverter.ReadObject (cognitive 21): PSObjectBaseConverter.ReadObject 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":"src/PSRule/Common/JsonConverters.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e04bda2fc6ccec804b9a341abb6cb3a0725c98785c1256ee331192362137fe"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleExtensions.ToRuleDependencyTargetCollection (cognitive 21): RuleExtensions.ToRuleDependencyTargetCollection 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. This shape REPEATS in the file: one other method here (RuleExtensions.ToRuleDependencyTargetCollectionV2) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee579f4d54da649564c3f2581e14b4044502f1cbff9c453f831286eb9fd1b3aa"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleExtensions.ToRuleDependencyTargetCollectionV2 (cognitive 21): RuleExtensions.ToRuleDependencyTargetCollectionV2 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. This shape REPEATS in the file: one other method here (RuleExtensions.ToRuleDependencyTargetCollection) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"166aa6cf9dc59f7b09bf05f174fe11cb6e7415975d7dbaee167735ce7ecc0ab8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleCommand.ModuleUpgradeAsync (cognitive 21): ModuleCommand.ModuleUpgradeAsync has cognitive 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"765292d2eee401a05df09aeed8b00a5597f8c13f1de94b5facb97ae63fa7d0fc"}},{"ruleId":"D2","level":"warning","message":{"text":"runner.getAnalysisRunner::getCmdTooling (cognitive 21): runner.getAnalysisRunner::getCmdTooling has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, boolean chains 7, loops 2 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/runner.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19d7fbcc0f22348244314403da49dc4c7227c7e2fc6242de525c70c393d5bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionConstraint.Accepts (cognitive 20): VersionConstraint.Accepts 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":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"60296e42cef35db2399fac9882b1dcc7c710ef6d348cf621d2d399f627975fcd"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionConstraint.Accepts (cognitive 20): VersionConstraint.Accepts 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":"src/PSRule.Types/Data/SemanticVersion.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29cfc3deebf67e9ec698a43ad22be5a7ddf32aaa57f37b86e08d1c637d28ca0"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleKeyword.GetField (cognitive 20): RuleKeyword.GetField 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":"src/PSRule/Commands/RuleKeyword.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd41aa64f0d6494c090c05a08add0c746c3ae8b13f6977654d539d1a98f708e5"}},{"ruleId":"D2","level":"warning","message":{"text":"DependencyGraphBuilder.Include (cognitive 20): DependencyGraphBuilder.Include 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":"src/PSRule/Definitions/DependencyGraphBuilder.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce060b7d3288210358e27d39d73755373866b148d7eab3c737fd9ebb073f2340"}},{"ruleId":"D2","level":"warning","message":{"text":"HelpLexer.ReadText (cognitive 20): HelpLexer.ReadText 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":"src/PSRule/Help/HelpLexer.cs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5386103b7b24efb94c35ce2f7d55444f509eb6cb530a299bcaa122ca826bc185"}},{"ruleId":"D2","level":"warning","message":{"text":"SourcePipelineBuilder.TryInstalledModule (cognitive 20): SourcePipelineBuilder.TryInstalledModule 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":"src/PSRule/Pipeline/SourcePipelineBuilder.cs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e394e8b6f177332d9f4cfffb54a552738e4d97b8230ce3fcf09d414397b84f"}},{"ruleId":"D2","level":"warning","message":{"text":"RunCommand.RunAsync (cognitive 20): RunCommand.RunAsync has cognitive complexity 20 (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":"src/PSRule.CommandLine/Commands/RunCommand.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcca57de671b55f7d619fb3fbcf8711e2c1ebd47bfd34de9aa263ee8b4723d39"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectHelper.TryPropertyValue (cognitive 19): ObjectHelper.TryPropertyValue 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":"src/PSRule/Runtime/ObjectHelper.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ded611f4427681a8fa87ca7d5ad397dd6b59a6dc9d6f040ded59cce708bf57d"}},{"ruleId":"D2","level":"warning","message":{"text":"PathStream.TryConsumeComparisonOperator (cognitive 19): PathStream.TryConsumeComparisonOperator has cognitive complexity 19 (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":"src/PSRule/Runtime/ObjectPath/PathTokenizer.cs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"1083a96482ab6e7d19645ef908a8e081bdf1ccc9532fca6f235ceb06d3441d93"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationChangeHandler.Handle (cognitive 19): ConfigurationChangeHandler.Handle 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":"src/PSRule.EditorServices/Handlers/ConfigurationChangeHandler.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16f2e9f2396a259e2cac3e0c0ae68e78dc0530f1d40c39adb55d8478139d11f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager.checkExtension (cognitive 19): ExtensionManager.checkExtension has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3 (nesting depth added 6). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 259, 289, 312). 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":"src/vscode-ps-rule/extension.ts"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc14cf75669cce367fcf39b0be3502cceaa69de127a698a30253c5c764b10469"}},{"ruleId":"D2","level":"warning","message":{"text":"Version.CompareTo (cognitive 18): Version.CompareTo has cognitive complexity 18 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"7766fc1c24be92f5f71ed0b2f43cf62502e32c65b8479ec0810aac872c2f7b8b"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionHelpers.Equal (cognitive 18): ExpressionHelpers.Equal has cognitive 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":"src/PSRule/Common/ExpressionHelpers.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9c43ffac80b63fef7bd3c80afd423f9a825e4d959703f6615d5037c7e774ba"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageExpressions.Subset (cognitive 18): LanguageExpressions.Subset 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":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"9499fff0442c5a0da653f87237fc837e8d23e2fc1dc825f1560f9e886fa542a9"}},{"ruleId":"D2","level":"warning","message":{"text":"PathExpressionBuilder.GetAllField (cognitive 18): PathExpressionBuilder.GetAllField 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":"src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea3887d7c138bc6b9ba2fa98b28a112eb5ab9c982991d9138b767b1fb6999ca"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldMapJsonConverter.ReadFieldMap (cognitive 17): FieldMapJsonConverter.ReadFieldMap 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":"src/PSRule/Common/JsonConverters.cs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f4566d0da17537f57565a6ae0d7d4504348bd1f6053f4a1b92b79513618ef3"}},{"ruleId":"D2","level":"warning","message":{"text":"SuppressionRuleYamlTypeConverter.ReadYaml (cognitive 17): SuppressionRuleYamlTypeConverter.ReadYaml has cognitive complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"13149bb75359a50ddf298e7addcdb126636501ed2b6852d9a63b8500f397bf93"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldMapYamlTypeConverter.ReadYaml (cognitive 17): FieldMapYamlTypeConverter.ReadYaml 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":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b15a093bc846c54783ca189e229288d170479bb45ebdb46ed3968ef6c0b755"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageExpressions.NotStartsWith (cognitive 17): LanguageExpressions.NotStartsWith 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. This shape REPEATS in the file: 2 other methods here (LanguageExpressions.NotEndsWith, LanguageExpressions.NotContains) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9e4f3c30196f63bd6280851e953a45960e69d31c0b90b891e618e1db771d77"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageExpressions.NotEndsWith (cognitive 17): LanguageExpressions.NotEndsWith 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. This shape REPEATS in the file: 2 other methods here (LanguageExpressions.NotStartsWith, LanguageExpressions.NotContains) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb64b90a0fa49764db110bb23b8a9583f841f3e76ff0934662566aaab887669b"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageExpressions.NotContains (cognitive 17): LanguageExpressions.NotContains 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. This shape REPEATS in the file: 2 other methods here (LanguageExpressions.NotStartsWith, LanguageExpressions.NotEndsWith) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e99c94cc3153223ee27ce08525b11ad9425b05aa49aa51ec2b911536d1ba1e"}},{"ruleId":"D2","level":"warning","message":{"text":"HostHelper.GetYamlLanguageBlocks (cognitive 17): HostHelper.GetYamlLanguageBlocks 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":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1614214fb20d97768a8cec3b56e6aead400c202f564f472bf6ca2cd2fd0133"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectHelper.TryIndexValue (cognitive 17): ObjectHelper.TryIndexValue 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":"src/PSRule/Runtime/ObjectHelper.cs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca39eca490650967cdf155be90f14385680b522534fe764ddd1c2cc2b99d8194"}},{"ruleId":"D2","level":"warning","message":{"text":"DependencyLensProvider.provideCodeLenses (cognitive 17): DependencyLensProvider.provideCodeLenses has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 2 (5 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/dependencyLens.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25437ab79267c36b59e2942b2ccde3b28bf07d549edbff4be7695d308943e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeConverter.TryStringArray (cognitive 16): TypeConverter.TryStringArray 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":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9245e3c849aa40efeee64ee1f39f473795d066e200c270f7a7b5bc2bd0a4471"}},{"ruleId":"D2","level":"warning","message":{"text":"StringArrayMapConverter.ReadYaml (cognitive 16): StringArrayMapConverter.ReadYaml 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":"src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dd7fac645169ffa8e80148cc805102ac9af0b86c71fcb8c6df38ac0602ac69"}},{"ruleId":"D2","level":"warning","message":{"text":"StringMapYamlConverter.ReadYaml (cognitive 16): StringMapYamlConverter.ReadYaml 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":"src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1a6c8a6c5b3119056d7bd91556c7d235b2f8518d4e8f104a016770baa9c724"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionStream.TrySegments (cognitive 16): VersionStream.TrySegments 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":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"4162c84e409d89e1ebccd1186bfe259d59a7ee6fd763ed94e16a266163de367a"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecutionOption.Load (cognitive 16): ExecutionOption.Load 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. This shape REPEATS in the file: one other method here (ExecutionOption.Import) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/ExecutionOption.cs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"120b11e21e6e8b21485872ac9e54c97d7dd43c15ea5dd83969344b644623b31f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecutionOption.Import (cognitive 16): ExecutionOption.Import 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. This shape REPEATS in the file: one other method here (ExecutionOption.Load) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/ExecutionOption.cs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff933339900ef425962d3cd5654f86b99ab18e0bc2b86de2fdd5f0243e4cbff1"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionHelpers.Equal (cognitive 16): ExpressionHelpers.Equal 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":"src/PSRule/Common/ExpressionHelpers.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fb396477553613998f50509241bd97026595b7fe98e7834eb19bc998578dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"PSObjectExtensions.ConvertTargetInfoProperty (cognitive 16): PSObjectExtensions.ConvertTargetInfoProperty 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":"src/PSRule/Common/PSObjectExtensions.cs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90e9c5fecdd7b894877a3d85e4ffa0b89f837a56903e6ff26c181ce801873d0"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandLineBuilder.LoadModules (cognitive 16): CommandLineBuilder.LoadModules 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":"src/PSRule/Pipeline/CommandLineBuilder.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"95047dc04753e21e1de8d4fa33f4312650acbed7d96d6f1ee835ede24de697fc"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageScope.Dispose (cognitive 16): LanguageScope.Dispose 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":"src/PSRule/Runtime/LanguageScope.cs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c7ab638b1fa7e62177452019816e35729434e8476190ca9046455bd08d61d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleCommand.InstallVersionAsync (cognitive 16): ModuleCommand.InstallVersionAsync 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":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6af90f764615af46b5b9184250ba933acf0f626a73709988b952a1e12c6aa0"}},{"ruleId":"D2","level":"warning","message":{"text":"createOptionsFile.createOptionsFile (cognitive 16): createOptionsFile.createOptionsFile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/createOptionsFile.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"189cf3f7f526601c7b16a4c120e6c609cb6500c1709e2dbd3d7f4bbf97164758"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LanguageExpressions: TooManyMethods \u2014 924 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods. The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"094735bb71f1d3af46fd0a26d0f834397d992959b6db85311c881544a21be33f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Assert: TooManyMethods \u2014 736 significant lines (blank, comment-only and punctuation-only lines excluded), 74 methods. The bar is 30 methods; this is 44 over it, 2.47\u00D7 the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd67995e3faecec521a86a685641256053a3759b2ac589c389b97a4ef690fee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LegacyRunspaceContext: TooManyMethods \u2014 414 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods. The bar is 30 methods; this is 30 over it, 2.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3347baf397f80089731fc008a55621f7c552646f0868bf49b3e017fba14c8fb6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Expressions/LanguageExpressions.cs: FileTooLong \u2014 931 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 431 over it, 1.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61624c26fa16e5920013d816067ae6a91ef9fe4a51a7dcfcef2dcf430eaff324"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AssertFormatterBase: TooManyMethods \u2014 364 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bd423202eea84876a2890d0d26f6c1b252d38881e2a1ee9c981cad225a0ecc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Runtime/Assert.cs: FileTooLong \u2014 746 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 246 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ed98a4b7a3670c3590a4572a228527be2e1dab56560480a1a21aa5c699fbfe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExpressionHelpers: TooManyMethods \u2014 318 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ExpressionHelpers.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cc6a545fe54ab612ef5d0b2ce754a298ef3657c0d2c8e2784fc1da4b67681a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SourcePipelineBuilder: TooManyMethods \u2014 281 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/SourcePipelineBuilder.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88200b8ab7e69ff2e054c21ce994267e5f6379f2cf1e50301dab598a0a6cfaac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PSRule: TooManyMethods \u2014 190 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Benchmark/PSRule.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc744ca5fc8452fbfda59e39a93f93d5217779a8e10355d365439b5a8e2eb92a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PipelineBuilderBase: TooManyMethods \u2014 300 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineBuilderBase.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b845cafdc0bff07dd8e4190f42dc9a865ddc07ec57c52e95f615ccdc608f94a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Data/SemanticVersion.cs: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/SemanticVersion.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc1b0cddf0c2399e6c1cd87ff544d4d3fc47e57e9a09262ae308a7c8116ffc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 40 shared lines): src/PSRule/Definitions/Rules/RuleExtensions.cs:23-115 | src/PSRule/Definitions/Rules/RuleExtensions.cs:158-281 | src/PSRule/Definitions/Rules/RuleExtensions.cs:284-407 \u2014 These 3 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"92116a80ec23ab77a11d56a87670f3e7b2e72ab47108d58013ad271103961105"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:459-502 | src/PSRule.Types/Data/SemanticVersion.cs:660-699 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d847c8f5dcd0184f6953d9e29f8130bf80af4975f62b82d31878511667d7c0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/PSRule/Runtime/Assert.cs:443-465 | src/PSRule/Runtime/Assert.cs:478-499 | src/PSRule/Runtime/Assert.cs:505-527 | src/PSRule/Runtime/Assert.cs:540-561 | src/PSRule/Runtime/Assert.cs:567-589 | src/PSRule/Runtime/Assert.cs:602-623 | src/PSRule/Runtime/Assert.cs:1307-1325 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d30d94b81bb61486479fc875b7e83751a75086c24b75e349d2f85a4913820ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/PSRule/Runtime/Assert.cs:629-641 | src/PSRule/Runtime/Assert.cs:647-659 | src/PSRule/Runtime/Assert.cs:1103-1112 | src/PSRule/Runtime/Assert.cs:1148-1170 | src/PSRule/Runtime/Assert.cs:1178-1211 | src/PSRule/Runtime/Assert.cs:1275-1294 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c0c9859e59f4e247da8ec3545a99f624257b3fb2ec7251e630c449fc9d3f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/PSRule/Runtime/Assert.cs:668-683 | src/PSRule/Runtime/Assert.cs:692-705 | src/PSRule/Runtime/Assert.cs:714-725 | src/PSRule/Runtime/Assert.cs:734-745 | src/PSRule/Runtime/Assert.cs:754-765 | src/PSRule/Runtime/Assert.cs:774-785 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f06ce58b069c9e56d264affff1b6b67e0dbfdce147291a9efab5cd5724c6bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/PSRule/Runtime/Assert.cs:895-906 | src/PSRule/Runtime/Assert.cs:914-925 | src/PSRule/Runtime/Assert.cs:933-944 | src/PSRule/Runtime/Assert.cs:952-963 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e14cd52c74a3a95e667136480f2fcc8500aa78f9c5b60283c2611536e56f3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (108 corresponding lines): src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs:16-123 | src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs:16-123 \u2014 These two members are one piece of code written twice and then edited apart: 108 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c604ef3746b98923b0659679ed9805242b3bfe05180995d6c32477da876ee99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (125 corresponding lines): src/PSRule.Tool/ClientBuilder.cs:237-370 | src/PSRule.EditorServices/ClientBuilder.cs:217-341 \u2014 These two members are one piece of code written twice and then edited apart: 125 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/ClientBuilder.cs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"80644e89a7d013b751ec4f04a96ed99b3e8133c34e3e7cf8ef53ef662a1ca827"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (100 corresponding lines): src/PSRule.Tool/ClientBuilder.cs:47-171 | src/PSRule.EditorServices/ClientBuilder.cs:46-145 \u2014 These two members are one piece of code written twice and then edited apart: 100 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/ClientBuilder.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19b543c9c4df5da8b0accdc0ad12b25211a960e50c8836cc768dd4661497c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs:72-92 | src/PSRule/Runtime/LegacyRunspaceContext.cs:246-266 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d22c2b1306b0c2fe463686e6bbc8cad4958af64cb2a9e55f1671cb0d782397"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:365-389 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:392-414 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"41977a2ecbf7d8afdf1751cd25588d387088143dfb2c39e52f8340c07c85c930"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): src/PSRule.Types/Options/FormatOption.cs:54-106 | src/PSRule.Types/Options/FormatOption.cs:110-162 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/FormatOption.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0b44eb47b33a86dbba5bb9095e3022e034698653be3a6c06ad7d5e1afe48ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/PSRule/Runtime/Assert.cs:791-812 | src/PSRule/Runtime/Assert.cs:818-839 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"f915704aff88377b9f84b02655802ade1f7bcefd02f7f4a58d9c70e6ab961be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/PSRule.Types/Converters/TypeConverter.cs:93-122 | src/PSRule/Common/ExpressionHelpers.cs:234-263 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5968c6b1b82eb06033cf42a902799aaec172f9881cdd45b0131fd319c85b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:88-123 | src/PSRule.Types/Data/SemanticVersion.cs:102-137 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa9cc24c00c32d08cd2bf3154242f9caca0ef0dab297e62218cb912a611f418"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/PSRule/Runtime/Assert.cs:1217-1238 | src/PSRule/Runtime/Assert.cs:1244-1262 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b41343e0c15dad9f00d940b6583ef435b60309d592ef0aad22d63e9a0b1fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1115-1137 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1140-1162 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"878be7b5d8322bf4549c13bba24bffd86f170823f2bda6e3ed09dfd6739cad65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:60-81 | src/PSRule/Common/YamlConverters.cs:113-134 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8966a0c69fd3ac8b9c46a194cb3e0d0f07cb6b5d865405d3b9e34acf8beaff3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:912-938 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:941-967 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c299c43e6a1f282c0649aa29fded3a194d46ddf0c5414edcd486a34442ca3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:24-56 | src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs:25-58 | src/PSRule/Common/YamlConverters.cs:84-110 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"436151d7247ed6dcd596e777eae488acb0d46bea489fdc60148fba730e954b81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/PSRule/Runtime/Assert.cs:1022-1037 | src/PSRule/Runtime/Assert.cs:1046-1064 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"bceb0d25ae01a8b7210363632acdc4bf715b4c2d9e75459d9131a4f8a13e34ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:255-273 | src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:276-295 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2299639c6bc367c2265d12ff54a4781e670854e99ebe6311ac0d416b31b7bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 35\u002B corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:460-494 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:497-531 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:534-568 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:571-605 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c7aff3d1dc06ddd7f2dec233ddd4c8bdca52234f92111086113ac6c9b6d00b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 25\u002B corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:608-636 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:639-667 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:670-698 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:701-729 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:732-760 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:763-791 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:970-994 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:997-1022 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a0b6c9c21f9d546a2a6f8f75d728e84d7c251557a9509a2e8f2db29997e5d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/PSRule.CommandLine/ClientHost.cs:117-147 | src/PSRule.EditorServices/Hosting/ServerHostContext.cs:66-90 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/ClientHost.cs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"567db46adaa3ba95e87758c3bb556e7ff8250c3e8a483f1f2505006c5832208d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:772-793 | src/PSRule.Types/Data/SemanticVersion.cs:999-1025 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e305a9b39171ab5efd251d3fc5b3b549d8b1a8614069fb0867c18057230e6a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/PSRule/Emitters/PowerShellDataEmitter.cs:60-75 | src/PSRule/Pipeline/PipelineReciever.cs:156-175 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/PowerShellDataEmitter.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"af431a1338f2c9d8e99ec4412f11a02bf961faf8e19d389b0ec0875a5230f21a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/PSRule.Types/Converters/Json/ResourceIdReferenceJsonConverter.cs:22-49 | src/PSRule/Converters/Yaml/ResourceIdReferenceYamlConverter.cs:24-51 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Json/ResourceIdReferenceJsonConverter.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9fe4e2318f7839466c66a1c4ca83c563496dc209e629cc8dbc281778dcd218"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule/Common/BaselineJsonSerializationMapper.cs:145-158 | src/PSRule/Common/BaselineYamlSerializationMapper.cs:147-160 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/BaselineJsonSerializationMapper.cs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bf9e83c2e5a4534c600c47316f2d4b659a2c1c57bd21c116f5b11bfbf7fb09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1025-1049 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1052-1076 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"561447bec4c343c1b55da661bf992b1ce7bb415c246efd15fcb74fc87121dd92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/PSRule/Definitions/Expressions/Functions.cs:254-271 | src/PSRule/Definitions/Expressions/Functions.cs:274-290 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"9740a2db8e91e310567fb61c50027b12ebd48b2437dfe657f675e38be267ea62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/PSRule/Runtime/ObjectPath/PathTokenizer.cs:428-448 | src/PSRule/Runtime/ObjectPath/PathTokenizer.cs:451-472 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectPath/PathTokenizer.cs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"986765249ab612d542ebf43cd41045459860846ffa9f9d116abb3bdd57c8a644"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/PSRule/Pipeline/PipelineReciever.cs:236-263 | src/PSRule/Pipeline/PipelineReciever.cs:266-291 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineReciever.cs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcc73e67b5222beb451b59b885fa250398da29e7560bfe09e4234b62cd30de5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/PSRule/Runtime/Assert.cs:970-984 | src/PSRule/Runtime/Assert.cs:991-1012 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd773c394715d2664d5e6bfa5bd6942b829f42cc64f98914941b45bd933eb77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs:89-112 | src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs:126-145 | src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs:186-206 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3f9d74b42419ea14446e1136ff57c8fc55a6c2115825f8cbe39150b1853f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/PSRule/Common/HashSetExtensions.cs:11-35 | src/PSRule/Common/HashSetExtensions.cs:38-62 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/HashSetExtensions.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25db66e5566d284bf0936ace8148df7bbb1b6a97461f2dcbec49f1e15f872c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/PSRule/Help/ResourceHelpLexer.cs:11-41 | src/PSRule/Help/RuleHelpLexer.cs:16-48 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Help/ResourceHelpLexer.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"252c8db19572cd55d80a8094adba4bb4c1865b89a062c3d299d2c370f0c5dc98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/PSRule.Types/Converters/TypeConverter.cs:154-177 | src/PSRule/Common/ExpressionHelpers.cs:338-362 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f3435855961508f87fe374797297d7418b54ce817c51b7b6de1bced99563d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/PSRule/Runtime/Assert.cs:341-361 | src/PSRule/Runtime/Assert.cs:1119-1140 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb43bf4d5963639b05dda3f0951065a28c8ab462dceeeffa96909831250c9bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:195-211 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:214-235 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b6483a93f5496def36a1c9914642c9367a229b351ecaefba761d2329419c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:322-338 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:341-362 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa10cef41340df0bd508bb2fa161b6138df637110fcba5a25a4baab4dd8e9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:417-436 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:439-457 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a1d408883033e9735994ad93bfbaf629efd520b7085f486fafd6d8c703a6c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:602-633 | src/PSRule.Types/Data/SemanticVersion.cs:832-860 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1eadc261ae6b5b58fdbf07b9994df924d2cdc14da3de24662cf4d14841d60e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule/Runtime/Assert.cs:850-863 | src/PSRule/Runtime/Assert.cs:874-887 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"14188667b53c9015ef770551b08e2d07afbf1669fa7b06770fd09d0528c2ef18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/PSRule/Runtime/Assert.cs:258-273 | src/PSRule/Runtime/Assert.cs:279-302 | src/PSRule/Runtime/Assert.cs:308-330 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7a06b3ecd46297a577cccbcd0a1e24ff0699b3821693c9f7be458d1834d663"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/PSRule/Definitions/Expressions/Functions.cs:205-219 | src/PSRule/Definitions/Expressions/Functions.cs:222-236 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba6e07e205d0d1521f7958b5ac98282f8e7040f4ef53f7f6be8766b3ad8fee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/PSRule/Emitters/BaseEmitterContext.cs:50-72 | src/PSRule/Pipeline/PipelineReciever.cs:178-200 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/BaseEmitterContext.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"314440987e821f88cfa9171f74ed6f14e3f6afe24b988a674f1a6ce23ff2e8be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/PSRule/Common/BaselineJsonSerializationMapper.cs:18-29 | src/PSRule/Common/BaselineYamlSerializationMapper.cs:19-32 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/BaselineJsonSerializationMapper.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"97eb2b5954b6d82b75f10627272c68fb159db8a70cd9a3fec1b68e64cc5e7d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs:87-104 | src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs:47-64 | src/PSRule/Runtime/LegacyRunspaceContext.cs:680-697 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"79415ee0c3b241df7147291626c4be8a959887a23afe8698d96ed608829ad97d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/PSRule/Common/BaselineJsonSerializationMapper.cs:206-221 | src/PSRule/Common/BaselineYamlSerializationMapper.cs:208-223 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/BaselineJsonSerializationMapper.cs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b4a876e010593c0825b3defcf11d46af7c1fa07fe1dbaac26ac50d0ef7925e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs:65-77 | src/PSRule/Runtime/LoggerExtensions.cs:358-370 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ac91a6ea2eb9c7258a40c1848c43fd02bd106f1c0b3a54239b22f5b70204f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule/Common/HashSetExtensions.cs:65-78 | src/PSRule/Common/HashSetExtensions.cs:81-94 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/HashSetExtensions.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"059acf54b86526e62a927107d2dab5638a7ac50cd3a852821e85ce00c10131c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:177-199 | src/PSRule.Types/Data/SemanticVersion.cs:251-285 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1102d7ae29a6ebde69777c2af2e23927c9dee1e99d2fd4be8b23557854d84c07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/PSRule/Definitions/Baselines/BaselineExtensions.cs:19-44 | src/PSRule/Definitions/Conventions/ConventionExtensions.cs:19-45 | src/PSRule/Definitions/Selectors/SelectorExtensions.cs:34-58 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Baselines/BaselineExtensions.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bcede8313375e9002d307ca7ff16897e230d22b9c2c102c5030a0d013bb568"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:830-846 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:849-865 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:868-886 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae8d8b19702b3df82080689d01184e186a9d05bc14d5a51423ff5df68aecf50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/PSRule/Definitions/Rules/RuleExtensions.cs:470-484 | src/PSRule/Host/HostHelper.cs:461-475 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3cd98a7da8a3e94f1ac46fcabf7d2f62b6d121dd3badc3eddebe9b55c16ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/PSRule/Runtime/Assert.cs:1071-1080 | src/PSRule/Runtime/Assert.cs:1087-1096 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc989a9a7a7ea3c4edb18d88d9a604c6f89274f80811791894f5df67ef4e664f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:117-134 | src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:140-157 | src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:163-181 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7b92ad90c2fcae2bafdbdbfb03089b5087af844673dd4e7d94d447d9c6daa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/PSRule.Types/Converters/TypeConverter.cs:128-151 | src/PSRule.Types/Converters/TypeConverter.cs:180-198 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dab2ae755a747d2818caaab10c7bc6702859a44ec0c289e7092c2c15a236218"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/PSRule.Types/Runtime/IConfigurationExtensions.cs:69-90 | src/PSRule/Runtime/Configuration.cs:70-91 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"34088baa7470593cd48eefbc5f05ff286b4260abaa05461e9d192d1485b54e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:281-296 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:299-319 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"000a980c593e75a81c200a2f3e45b70a4afe551b01f5669c21d555fe98822088"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1291-1303 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1306-1318 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"7338a6de41fca57c8df8b737320a0fcf4cdda2a91756a1dd7bc0e2ff047df3be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:799-813 | src/PSRule.Types/Data/SemanticVersion.cs:1031-1046 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9155949c0be4305cd52f23c8d37ccd200ea17c4c5b4e47c8d29ca7677bb129e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/PSRule.Types/Data/TargetIssueInfo.cs:68-78 | src/PSRule.Types/Data/TargetSourceInfo.cs:100-110 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/TargetIssueInfo.cs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"49733397309118819b68f8645845b8f68f8bcd03aaa173c47388eacd82cba533"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/PSRule/Common/BaselineYamlSerializationMapper.cs:35-45 | src/PSRule/Common/BaselineYamlSerializationMapper.cs:48-58 | src/PSRule/Common/BaselineYamlSerializationMapper.cs:194-205 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/BaselineYamlSerializationMapper.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"02637a1dbe43bb9574026359dfce9e578a7db2e578e9f9c3adeadf29f968f002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/PSRule/Common/PSObjectExtensions.cs:203-218 | src/PSRule/Common/PSObjectExtensions.cs:226-241 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/PSObjectExtensions.cs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebaed2ac1aedbb8c7d1dd551e03e5c73207431efff8b29f7dbf337c0cc8a59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/PSRule.Types/Expressions/PathHelpers.cs:19-24 | src/PSRule/Common/ExpressionHelpers.cs:426-431 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Expressions/PathHelpers.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"527df9808508f7e50235e9b07902324583eb0e77b3641deb146dba39fcb9a792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule/Pipeline/Output/SarifBuilder.cs:179-192 | src/PSRule/Pipeline/Output/SarifBuilder.cs:198-211 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/SarifBuilder.cs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"524fadefc4dc93357e3ca4e6afbdfd5b8748e4dc105da7e0c9744aba334b983a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/PSRule/Runtime/Assert.cs:367-383 | src/PSRule/Runtime/Assert.cs:389-402 | src/PSRule/Runtime/Assert.cs:422-437 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf62b2acbf1c1d38f9adbc023a4c78d8aaf7e9ad9b7e8d087e5802fb4cf0dc11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/PSRule/Common/BaselineJsonSerializationMapper.cs:32-42 | src/PSRule/Common/BaselineJsonSerializationMapper.cs:45-55 | src/PSRule/Common/BaselineJsonSerializationMapper.cs:192-203 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/BaselineJsonSerializationMapper.cs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bc002e7a65574c2df2981ddb74a7300d3f8050481255077e8bd97a57e82ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/PSRule/Pipeline/AssertPipelineBuilder.cs:56-72 | src/PSRule/Pipeline/InvokePipelineBuilderBase.cs:94-110 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/AssertPipelineBuilder.cs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bd36deee99b573d7d93cad4c1944263596139507d33175c2a0d6ae7ad1580a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/PSRule/Pipeline/Output/CsvOutputWriter.cs:84-99 | src/PSRule/Pipeline/Output/CsvOutputWriter.cs:102-117 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/CsvOutputWriter.cs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd67ebdf202f37228b22d6af20c34f6ee17642664d0c6a836b72ba704012829"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule/Common/ExpressionHelpers.cs:558-571 | src/PSRule/Common/ExpressionHelpers.cs:574-587 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ExpressionHelpers.cs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f27fb6c019c25729b5db2c1f8d34c2d1a943b1979caf43ac74f2a40a2a303cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule/Runtime/LegacyRunspaceContext.cs:146-154 | src/PSRule/Runtime/LegacyRunspaceContext.cs:157-165 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0758256d289b61a9988d95d1b411cee4a73aec6ef18215260213d1e7dec3450"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:318-335 | src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:338-355 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0efd658ac36f00ace48de1f13a822612f0a9aaab3a235184258ab31d9cf1c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/PSRule/Pipeline/Formatters/AzurePipelinesFormatter.cs:50-61 | src/PSRule/Pipeline/Formatters/GitHubActionsFormatter.cs:52-65 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AzurePipelinesFormatter.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bdb6414965f119b735bc5139648ac49fa585fd367773035338f65d402a4535"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/PSRule.Types/DictionaryExtensions.cs:128-146 | src/PSRule.Types/Environment.cs:217-234 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/DictionaryExtensions.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a24755e4ecd57f717b92486958ba57bc6f39492882a7b150833343444a7110"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule/Runtime/Assert.cs:139-152 | src/PSRule/Runtime/Assert.cs:158-173 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"970b258af4a5dbeb73d2f6b018c1479e0fef465c0e42cfcacc3855fd499a114b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/PSRule/Host/HostHelper.cs:70-77 | src/PSRule/Host/HostHelper.cs:92-100 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cf18f93108ad70b4fe6ee1d25c3df4e1ae838f41cb4d04e25115293dbe5379"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/PSRule/Runtime/LanguageScope.cs:148-164 | src/PSRule/Runtime/LanguageScope.cs:168-184 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LanguageScope.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"710ea11059ffd6ad8e6435b27fbe81431c96f4e70a589012f987166cc49dd78d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/PSRule/Pipeline/PipelineHookActions.cs:29-40 | src/PSRule/Pipeline/PipelineHookActions.cs:44-55 | src/PSRule/Pipeline/PipelineHookActions.cs:59-70 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineHookActions.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"64affcc3d304d364199ffc3b89865361c9faf0ebb58388909e52669794a98206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs:115-123 | src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs:173-183 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd138acb731597ba98bca34e515a0e33bd80b3db9c030e4b3b23e4eae649bb1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/PSRule.Types/Converters/Yaml/CapabilityOptionYamlConverter.cs:24-40 | src/PSRule.Types/Converters/Yaml/StringArrayConverter.cs:23-38 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/CapabilityOptionYamlConverter.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f47032d14a5096e9b6e9ae0bd8b3c90fec320ec2dc84b9ae596ae7be8d8437e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:343-353 | src/PSRule.Types/Data/SemanticVersion.cs:520-531 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"418ba50eb7dc3e34f7b879bc8e5badb7ab75b04f5d3cbbca747c78072ad527e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src/PSRule/Host/HostHelper.cs:47-54 | src/PSRule/Host/HostHelper.cs:57-64 | src/PSRule/Pipeline/Runs/RunCollectionBuilder.cs:267-274 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"78aed27a549b1e8b7c5a294dc340d4f7feec7aba0fe33c13c621da975c240b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:592-605 | src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:608-621 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fa79f9782319566e1d7622685bb51edea0065d825b50c13189392d3b28bc06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/PSRule/Runtime/LoggerExtensions.cs:249-261 | src/PSRule/Runtime/LoggerExtensions.cs:267-279 | src/PSRule/Runtime/LoggerExtensions.cs:303-315 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LoggerExtensions.cs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d832edca915992b6c1871a9112e0ba8bd56d842d1d7dacf84422541d6f6afae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/PSRule.CommandLine/ClientContextExtensions.cs:13-19 | src/PSRule.CommandLine/ClientContextExtensions.cs:22-28 | src/PSRule.CommandLine/ClientContextExtensions.cs:31-37 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/ClientContextExtensions.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9665c9230edbac92f7c726c9446e020d348ce823f2c6c96ac8820eb49165e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/PSRule.Types/Data/KeyMap.cs:138-149 | src/PSRule.Types/Data/KeyMap.cs:157-168 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/KeyMap.cs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f3aabae3db96ec573c47bdbc1266a2fbd662f50e9cf7ef3bf8e18348ec87bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/PSRule.Tool/Program.cs:69-91 | src/PSRule.EditorServices/Commands/ListenCommand.cs:110-130 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Program.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfc401f291cac716d9de01de61bb94d4731326b67b09a8687aab801daec972a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:554-567 | src/PSRule.Types/Data/SemanticVersion.cs:774-791 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a498605ca258b9c1474526c445049d1bd32e99c673b3baaa4d94c512d85195"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/PSRule.Types/Definitions/ResourceHelper.cs:53-63 | src/PSRule/Definitions/Rules/RuleExtensions.cs:487-496 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Definitions/ResourceHelper.cs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e911f0020b2c08e43d84c9d021098665ba12f70987c0306f234225c638580d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/PSRule/Runtime/ObjectHelper.cs:153-162 | src/PSRule/Runtime/ObjectHelper.cs:165-174 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectHelper.cs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2149e9cdb510b5ea60501dc5600d4b3625fac5eb95804022e71c052a14bbb1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/PSRule.Types/Definitions/ResourceId.cs:161-175 | src/PSRule.Types/Definitions/ResourceHelper.cs:34-43 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Definitions/ResourceId.cs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e74f38893bbc5f91aac1b2d1d09a26d81cd98e4dc723bd4ed84aa19b6fc0c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/PSRule/Pipeline/PipelineHookActions.cs:196-206 | src/PSRule/Pipeline/PipelineHookActions.cs:209-219 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineHookActions.cs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70341755772e48a0766eed29b9854246f50f9d07e22f9f4e6ec9be0afb711a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/PSRule.Types/Definitions/StringMap_T.cs:111-129 | src/PSRule.Types/Definitions/StringMap_T.cs:135-149 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Definitions/StringMap_T.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ac6b737341390758ee2d5b0f9a1b9d65f45faa9a8e0a838b7b0cb220bde931"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule/Pipeline/CommandLineBuilder.cs:29-37 | src/PSRule/Pipeline/CommandLineBuilder.cs:52-60 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/CommandLineBuilder.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab69a42c5240b61a1041d2320008cc92a4f40885c6f5f29002988581a463b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/PSRule/Commands/AssertAllOfCommand.cs:19-32 | src/PSRule/Commands/AssertAnyOfCommand.cs:19-32 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Commands/AssertAllOfCommand.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b500a5b5748298033fba2d92a83fb1cbb27c85fd1b3acb5a0f1148be70507b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/PSRule/Common/BaselineYamlSerializationMapper.cs:129-141 | src/PSRule/Common/BaselineYamlSerializationMapper.cs:226-233 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/BaselineYamlSerializationMapper.cs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fa6bded48f98600489c4f527e524d5f77c4ae9e0a571b101a8adaf2729dfa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/PSRule/Definitions/Rules/RuleExtensions.cs:458-467 | src/PSRule/Host/HostHelper.cs:449-458 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a6ee44f88b772a84034a2fab6c02efd38b4126952237bf61cdfd9500eeb015"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:256-260 | src/PSRule.Types/Data/SemanticVersion.cs:357-361 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45f3e3274ff42df2106c4f4f9f44a56733314129a847a2e5f4236de3484b476"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:266-270 | src/PSRule.Types/Data/SemanticVersion.cs:367-371 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3acc2d5769407e157a16202359ff122227d5f5826a77b2760eef58ca08618e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): src/PSRule/Runtime/LoggerExtensions.cs:55-72 | src/PSRule/Runtime/LoggerExtensions.cs:78-95 | src/PSRule/Runtime/LoggerExtensions.cs:161-178 | src/PSRule/Runtime/LoggerExtensions.cs:184-201 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LoggerExtensions.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c3c494760e84a9dcc6996826f9bc17e02197e8e67ea93bf93009a2d92a8626"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): src/PSRule/Definitions/Expressions/Functions.cs:63-75 | src/PSRule/Definitions/Expressions/Functions.cs:78-90 | src/PSRule/Definitions/Expressions/Functions.cs:93-105 | src/PSRule/Definitions/Expressions/Functions.cs:191-202 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"882d5e7aee48baa3e3f9e262f258b8ae4b3087eb4b26bf8567d6bf8c922fe2ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/PSRule/Runtime/ObjectPath/PathTokenizer.cs:363-375 | src/PSRule/Runtime/ObjectPath/PathTokenizer.cs:478-490 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectPath/PathTokenizer.cs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3e23bca999c7d84500c87cbb26a06628f0f3efb8dcbd402c7e1185812d1572"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/PSRule/Converters/Yaml/LanguageExpressionDeserializer.cs:83-93 | src/PSRule/Converters/Json/LanguageExpressionJsonConverter.cs:94-104 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Converters/Yaml/LanguageExpressionDeserializer.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9784f0526453fda29824e93f4ec12d61f12b1b7f51908d309b013f5eeceb36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/PSRule/Pipeline/GetTargetPipeline.cs:17-33 | src/PSRule/Pipeline/InvokeRulePipeline.cs:69-92 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/GetTargetPipeline.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6469ca2225faa9981f85b7565cd2a44072855ff5784877bc36265d936fe38b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/PSRule/Definitions/Baselines/BaselineExtensions.cs:47-58 | src/PSRule/Definitions/Conventions/ConventionExtensions.cs:48-59 | src/PSRule/Definitions/Selectors/SelectorExtensions.cs:61-72 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Baselines/BaselineExtensions.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"13551396dc8667149e046aef37b9a9ebf66ee9ffda04258fb93b93c1a75a1004"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule/Emitters/JsonEmitter.cs:32-44 | src/PSRule/Emitters/YamlEmitter.cs:35-43 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/JsonEmitter.cs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2953818f5885e464c5ad9e257e568b46c4d5680d420c98b5cfa9ccd6457659d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/PSRule.Types/Converters/Json/StringMapJsonConverter.cs:28-39 | src/PSRule/Common/JsonConverters.cs:371-381 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Json/StringMapJsonConverter.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c6c980f51e805e1677ff11c0da3bd529ee0f14f902ac5c3d386e5c14127666"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule/Common/BaselineJsonSerializationMapper.cs:178-186 | src/PSRule/Common/BaselineYamlSerializationMapper.cs:180-188 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/BaselineJsonSerializationMapper.cs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d48d0af8fff2d95e1c503cd3b4656d9d3af051849ac4b4acc9d5c175be5eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:440-443 | src/PSRule.Types/Data/SemanticVersion.cs:641-644 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"9667e0de7446e83257ee0483f81050d314fd8188bd973729bee3c600f64c75f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/PSRule/Runtime/LegacyRunspaceContext.cs:185-191 | src/PSRule/Runtime/LoggerExtensions.cs:349-355 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5773b147b943eeed2928497f91ebd9443ab650bac46fea34c0c9aaae4bf2fc04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/PSRule.Types/Definitions/ResourceId.cs:143-151 | src/PSRule.Types/Definitions/ResourceIdReference.cs:105-112 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Definitions/ResourceId.cs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"912b8670c04fc6ec1197f146432746c9fe28aa47b3424577c2f6e6fee75df30d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule/Converters/Json/LanguageExpressionJsonConverter.cs:299-310 | src/PSRule/Converters/Yaml/LanguageExpressionDeserializer.cs:275-283 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Converters/Json/LanguageExpressionJsonConverter.cs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a647b5619d03d089366f466e50f35814f61244fcad3d692d923d858b010135a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule.CommandLine/ClientHost.cs:44-52 | src/PSRule.EditorServices/Hosting/ServerHostContext.cs:33-41 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/ClientHost.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc49a46125c1a889898fc44d311dcada4d69de8218c036da5189c51387c5d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/PSRule.Tool/Adapters/AdapterBuilder.cs:42-52 | src/PSRule.Tool/Program.cs:53-63 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AdapterBuilder.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e78ae8ce16375601a221bbc96a754d6061ad9313ac90748107f9185e971264f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/PSRule.Types/HashtableExtensions.cs:19-26 | src/PSRule/Configuration/PSRuleOption.cs:540-546 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/HashtableExtensions.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"758d963f9c7ab9671e19399eb2a61f81f4dcc94e3db4b11f3374771f98514adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule.Types/Runtime/IConfigurationExtensions.cs:107-115 | src/PSRule/Runtime/Configuration.cs:110-118 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba89ae61a811edb58151d066a57dfb8ea5db3ea406481f5aa45001d8abf1d23e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/PSRule.Types/Runtime/IConfigurationExtensions.cs:118-126 | src/PSRule/Runtime/Configuration.cs:121-129 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb7acb297dc691fa5c4c4d384c943140f7401a80ea8627095e0181e7f998d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:731-737 | src/PSRule.Types/Data/SemanticVersion.cs:958-964 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c1f247f7fa3a29224b5b15dfa02bc06d0b55621ae69d529f988b76eefe81f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:202-204 | src/PSRule.Types/Data/SemanticVersion.cs:288-290 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e02d484823d4b4ce97aa0f5100e774ff75754e21e94a1b68070be18186fad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:212-214 | src/PSRule.Types/Data/SemanticVersion.cs:298-300 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d747f0344338b2fed204338b6a9d6c415e20f8271a2312c94618252a8c7d97fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/PSRule/Common/ExpressionContextExtensions.cs:20-24 | src/PSRule/Definitions/Expressions/LanguageExpressionBuilder.cs:298-303 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ExpressionContextExtensions.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb10ecb8d9e05932f84c814378fd122af7c2513736319ba09bbcee74ef099e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/PSRule/Pipeline/Runs/Run.cs:80-86 | src/PSRule/Runtime/LanguageScope.cs:84-90 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d70761acef5aa9f7f65866cd45d399f35b36343afca0cfdd1b91b9c7ba8933"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/PSRule/Pipeline/Output/HostPipelineWriter.cs:95-104 | src/PSRule/Pipeline/PathBuilder.cs:41-47 | src/PSRule/Pipeline/SourcePipelineBuilder.cs:104-110 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/HostPipelineWriter.cs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4f72ca66b5c7aaa06d71c4bcb3523cf64249b43c49d0abaa00576059054fe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:126-137 | src/PSRule.Types/Data/SemanticVersion.cs:152-164 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"767973d43588dea54303af964c7e464ddc8af15f9de8e2a36d4fb7b28ee3ed5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:580-586 | src/PSRule.Types/Data/SemanticVersion.cs:804-810 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6708adf0717743a4844e5bb6ceb280cd302f929820ac53ba450fa6718c78005"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/PSRule/Emitters/MarkdownEmitter.cs:45-51 | src/PSRule/Emitters/PowerShellDataEmitter.cs:44-50 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/MarkdownEmitter.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9b062bf29539ebccedf6c5905388d9486ec00f38b0913981ea2a38cb505256"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:570-577 | src/PSRule.Types/Data/SemanticVersion.cs:794-801 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d80bd6d33b285ec91c376712ac50de829d8c7eae2b0667beac230e3758ec15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/PSRule.Types/Runtime/IConfigurationExtensions.cs:21-26 | src/PSRule/Runtime/Configuration.cs:43-48 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"033fb788e36e5d8aa7ab5eb56abd72723cffb6a7b7208f8f2ef1baf86a62a805"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/PSRule.Types/Runtime/IConfigurationExtensions.cs:36-41 | src/PSRule/Runtime/Configuration.cs:52-57 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d122b15b02a744d7228236d333cbff2a749823ac359b92de2ea632e1330ee9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/PSRule.Types/Runtime/IConfigurationExtensions.cs:51-56 | src/PSRule/Runtime/Configuration.cs:61-66 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"11534749aed68d4bfbf46f940afc28816c45f6cf2e36360bb9298dc3f18f8c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/PSRule.Types/Data/DateVersion.cs:762-765 | src/PSRule.Types/Data/SemanticVersion.cs:989-992 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79ec43fc1025925c3cac70165d3ae97f6e1bc9648a3affca8c2007d2c29a8e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:184-190 | src/PSRule/Pipeline/Formatters/VisualStudioCodeFormatter.cs:60-67 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"83eb3ca5eaec858b1cc6a50c93fe5b1cb334e3bf2b7ff1fbbfc5cfe654ba7372"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:404-407 | src/PSRule/Pipeline/PipelineWriterExtensions.cs:72-74 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8356b6404bca1c2a26172c52fc8c7cb024696ed36ec8f2c6bc626b6a90c53426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84\u201386 lines \u00D7 2): src/PSRule.EditorServices/ClientBuilder.cs:217-302 | src/PSRule.Tool/ClientBuilder.cs:237-320 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.EditorServices/ClientBuilder.cs:217\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/ClientBuilder.cs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a3903ea5c0a6e33f13c2fe569011399421e768aab0a9617eaafa2d4f59e3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (81\u201383 lines \u00D7 2): src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs:16-96 | src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs:16-98 \u2014 before extracting anything, compare \u0060src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs\u0060 and \u0060src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs:16\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"365c54ce20a7be2d494676f9cfb7ad2b8b2e220d4fdf6eddd3999dfb8f7d6f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201348 lines \u00D7 2): src/PSRule.EditorServices/ClientBuilder.cs:302-341 | src/PSRule.Tool/ClientBuilder.cs:323-370 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.EditorServices/ClientBuilder.cs:302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/ClientBuilder.cs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd0d8593f81434d581028ebf782cb206d088ebba3cd2ec8e4e1dc9d01ae89cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (121 lines \u00D7 2): src/PSRule/Definitions/Rules/RuleExtensions.cs:161-281 | src/PSRule/Definitions/Rules/RuleExtensions.cs:287-407 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Rules/RuleExtensions.cs:161\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba133f4c1470ffbe97e88e214f53ff6a1c6903f19c5838c5cef46a45cfcd08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201341 lines \u00D7 2): src/PSRule/Configuration/PSRuleOption.cs:130-170 | src/PSRule/Pipeline/OptionScope.cs:62-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/PSRuleOption.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb5e4ac3cc9e5364f1c7eb9382acabf4718442e879f4e6367fba20314fd78bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/PSRule/Definitions/Rules/RuleExtensions.cs:30-54 | src/PSRule/Definitions/Rules/RuleExtensions.cs:74-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Rules/RuleExtensions.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":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0bdf45427cea95fbc15971c6c0192105ec0a47ebc17ddbd8a5bb5cdde2e858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/PSRule.Types/Converters/TypeConverter.cs:38-61 | src/PSRule/Common/ExpressionHelpers.cs:190-213 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Converters/TypeConverter.cs:38\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060out string?\u0060 in one and \u0060out string\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f136f9e452816283143216eaec1c19113bc0334dbbcc6d8de4a5a58d9416e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:637-660 | src/PSRule.Types/Data/SemanticVersion.cs:864-887 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e58f34919eac224cd30127d213d63a1ad24ed67c43ed827f2d88c7ac5340100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs:101-123 | src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs:101-123 \u2014 before extracting anything, compare \u0060src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs\u0060 and \u0060src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs:101\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1406348aab106d0081b22194a648e32f5139d98acbe7e7eaf3331985a5c83ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:89-108 | src/PSRule.Types/Data/SemanticVersion.cs:103-122 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Data/DateVersion.cs:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c047cae3efe3a3ea2b64d1deda35d3902ba955face802cbd15aad4ef54b1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/PSRule.EditorServices/Commands/ListenCommand.cs:111-130 | src/PSRule.Tool/Program.cs:72-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Tool/Program.cs:72\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Commands/ListenCommand.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01da34291ae5c732df6449fe808d0149fea69ffd51fb044a84013ca94162443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/PSRule/Runtime/Assert.cs:444-459 | src/PSRule/Runtime/Assert.cs:506-521 | src/PSRule/Runtime/Assert.cs:568-583 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/Assert.cs:444\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"488d518f7b5d5c55592bfcd8160d644d56bde23aedd733d2618815b0c2171939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/PSRule/Commands/AssertMatchCommand.cs:58-74 | src/PSRule/Commands/AssertWithinCommand.cs:60-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Commands/AssertMatchCommand.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":"src/PSRule/Commands/AssertMatchCommand.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a1cbb5232045e2461b48df622322fe9cc5e4438e54ef4a75d34e6ad6daa84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:617-633 | src/PSRule.Types/Data/SemanticVersion.cs:844-860 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Data/DateVersion.cs:617\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"866900a0f7d090fdd45928d187b31a210b1d2c9ebdcc2a8e10ba95bca5c57007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/PSRule/Pipeline/GetTargetPipelineBuilder.cs:43-58 | src/PSRule/Pipeline/InvokePipelineBuilderBase.cs:29-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/GetTargetPipelineBuilder.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b041b286388f2f2330181619eaed41ccc41f969638305d66c44de91cba73a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:67-81 | src/PSRule/Common/YamlConverters.cs:120-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:67\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3414f1905ac56060db1129113695f4230e1fbf8df75ec4c97f7d0db23f41de01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/PSRule/Runtime/Assert.cs:480-493 | src/PSRule/Runtime/Assert.cs:542-555 | src/PSRule/Runtime/Assert.cs:604-617 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/Assert.cs:480\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"14de716c1b2d825af9c8f2c22c70cff8b555c2eb2d16071856a02b3a77805b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:25-38 | src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs:26-39 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs\u0060 and \u0060src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47adfc0a310a74ca0c7a4ceba0856ecbae47ab9aebbc2d868302093dd9d7cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:43-56 | src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs:45-58 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs\u0060 and \u0060src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:43\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7a5c51e26e6569a4bd3b4bca67c18ac48da622ff4f17b45584f34c11f6cbd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:664-677 | src/PSRule.Types/Data/SemanticVersion.cs:891-904 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f099854ce14da109b87651ba04e5213bc3f6e7cf83e2ce3ce6e425194d59d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/PSRule/Emitters/YamlEmitter.cs:61-75 | src/PSRule/Emitters/YamlEmitter.cs:110-123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Emitters/YamlEmitter.cs:61\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/YamlEmitter.cs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cb25c7d93dd13431e2ee6197713396c110a05eab3c2795dd7381def37b24b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:685-697 | src/PSRule.Types/Data/SemanticVersion.cs:912-924 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a12f3e73accdc1c73cbaf9131abd9fd77bf05a8748970e03c0ed3a53dc447e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/PSRule/Commands/AssertExistsCommand.cs:27-36 | src/PSRule/Commands/AssertMatchCommand.cs:32-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Commands/AssertExistsCommand.cs:38\u0060 calls \u0060Parameter\u0060, \u0060PSDefaultValue\u0060 and \u0060src/PSRule/Commands/AssertMatchCommand.cs:43\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Commands/AssertExistsCommand.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fed604550fe944d54c0926e2e46b9c283fbf9ec6df1828a653ad204de977fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/PSRule/Pipeline/Formatters/ClientFormatter.cs:40-52 | src/PSRule/Pipeline/Formatters/PlainFormatter.cs:20-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/ClientFormatter.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cd19dae5719a91d66ccac9e1f9cd5ed6a2d79ff1da4a9ed1674fb6dfdccd4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:792-803 | src/PSRule/Runtime/Assert.cs:819-830 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/Assert.cs:792\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060type\u0060 to \u0060Type[]\u0060 in one and \u0060string[]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f496f01053e3fb4f671a9ac4ac51f331ae97cc6ab4a64b734e1da5806146549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/PSRule/Definitions/Rules/RuleExtensions.cs:32-42 | src/PSRule/Definitions/Rules/RuleExtensions.cs:76-86 | src/PSRule/Definitions/Rules/RuleExtensions.cs:183-193 | src/PSRule/Definitions/Rules/RuleExtensions.cs:240-250 | src/PSRule/Definitions/Rules/RuleExtensions.cs:309-319 | src/PSRule/Definitions/Rules/RuleExtensions.cs:366-376 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Rules/RuleExtensions.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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060LegacyRunspaceContext\u0060 in one and \u0060IRunBuilderContext\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0d625eb1f3fb4e09d55aef188162dc6eb210eb496bcdad7d79385ccfc0fddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/PSRule/Definitions/Rules/RuleExtensions.cs:211-222 | src/PSRule/Definitions/Rules/RuleExtensions.cs:268-279 | src/PSRule/Definitions/Rules/RuleExtensions.cs:337-348 | src/PSRule/Definitions/Rules/RuleExtensions.cs:394-405 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Rules/RuleExtensions.cs:211\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b1d05ff921f5021057f9d1fa6e65fd165f3a5ed1112a184ccd6602007d97f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:15-26 | src/PSRule.Types/Data/SemanticVersion.cs:19-30 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e46cadeda563983bdf74872413e27234acfe63ef98f5b26bfb1db1280c4aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs:93-104 | src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs:53-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs:93\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f11e5e4d44221bc262d17261b3aa30f95fe0577b71f2c30863ab2cbffdc9e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1126-1135 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1151-1160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Expressions/LanguageExpressions.cs:1126\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"79533816379e781f149332a681234e91bce2cddf2f3584164dd4fee7153355f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/PSRule/Pipeline/Output/CsvOutputWriter.cs:90-99 | src/PSRule/Pipeline/Output/CsvOutputWriter.cs:108-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Pipeline/Output/CsvOutputWriter.cs:90\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060record\u0060 to \u0060RuleRecord\u0060 in one and \u0060RuleSummaryRecord\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/CsvOutputWriter.cs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e568775a3628958c4ba6bb4655f40c6256c95a08bf955ff9f2274530349f44d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:590-599 | src/PSRule.Types/Data/SemanticVersion.cs:820-829 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e2f37d477f6991f9594b279427c5ba47f2351a31d8c50608509a81fb6446a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/PSRule/Definitions/Baselines/BaselineFilter.cs:18-27 | src/PSRule/Definitions/Conventions/ConventionFilter.cs:16-25 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060include\u0060 to \u0060string[]?\u0060 in one and \u0060string[]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Baselines/BaselineFilter.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4103e0ba3373fe50fa0ef54096b4796a6e003b46cc4330d5657d5b3cab747fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule/Host/HostHelper.cs:293-300 | src/PSRule/Host/HostHelper.cs:364-371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Host/HostHelper.cs:374\u0060 calls \u0060TryConsume\u0060 and \u0060src/PSRule/Host/HostHelper.cs:301\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"976ef10b190cf23fc5d58b2097791e91758b206868d4a924a7ce0e1bbd2b32b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs:28-38 | src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs:29-39 | src/PSRule/Common/YamlConverters.cs:88-97 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs\u0060 and \u0060src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d23018ff73063ede56224f5c2678f319f701b1e07fbdca7bbbb8f2487a4458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule.Types/Converters/TypeConverter.cs:101-108 | src/PSRule/Common/ExpressionHelpers.cs:242-249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Converters/TypeConverter.cs:101\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3812bf2e612ac59fb3d421caf3b7ba8a72cac8da02f1c3a3aec64c37aab73010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule/Definitions/Expressions/Functions.cs:259-266 | src/PSRule/Definitions/Expressions/Functions.cs:278-285 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Expressions/Functions.cs:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b55863e38fcbf25907d1b936f5ab07d7ea191299b2d619a60d8360dd808b073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/PSRule/Definitions/Rules/RuleExtensions.cs:472-480 | src/PSRule/Host/HostHelper.cs:463-471 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"b786c6726d067386d9ef02ddfbb2646eb6b590046d20f3b72e0673704128c699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/PSRule/Pipeline/Runs/Run.cs:129-137 | src/PSRule/Runtime/LanguageScope.cs:65-73 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f800806051106e9f9050cd55a92823bfd4e13df029c61a998812a25bc108c8c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:453-460 | src/PSRule/Runtime/Assert.cs:487-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/Assert.cs:453\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Runtime/Assert.cs:495\u0060 calls \u0060Fail\u0060, \u0060FromPath\u0060 and \u0060src/PSRule/Runtime/Assert.cs:461\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb0faa088bb18c59aaec21ae5433ed081eb9dab9952e3e9087df0613d831c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:515-522 | src/PSRule/Runtime/Assert.cs:549-556 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/Assert.cs:515\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Runtime/Assert.cs:557\u0060 calls \u0060Fail\u0060, \u0060FromPath\u0060 and \u0060src/PSRule/Runtime/Assert.cs:523\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd514aaeca4566a234e6528b4b0cf419f6de553ab092ff14e49485ad4c2f9d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:577-584 | src/PSRule/Runtime/Assert.cs:611-618 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/Assert.cs:577\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Runtime/Assert.cs:619\u0060 calls \u0060Fail\u0060, \u0060FromPath\u0060 and \u0060src/PSRule/Runtime/Assert.cs:585\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd24cc5548176a3e5d9506190cdd0136c4ff83334a7ef1ecfcc1dc0c68a537a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/PSRule/Runtime/Assert.cs:669-674 | src/PSRule/Runtime/Assert.cs:693-698 | src/PSRule/Runtime/Assert.cs:715-720 | src/PSRule/Runtime/Assert.cs:735-740 | src/PSRule/Runtime/Assert.cs:755-760 | src/PSRule/Runtime/Assert.cs:775-780 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd165d9b93b3892f30fc3df88394a51b5401e916f143d69385632d1f51f638c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/PSRule/Runtime/Assert.cs:479-484 | src/PSRule/Runtime/Assert.cs:541-546 | src/PSRule/Runtime/Assert.cs:603-608 | src/PSRule/Runtime/Assert.cs:1308-1313 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a136c1aa1eef74a03a6b51cd18b1dbc4705f1eceec912002edc76552096330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/PSRule/Runtime/Assert.cs:896-902 | src/PSRule/Runtime/Assert.cs:915-921 | src/PSRule/Runtime/Assert.cs:934-940 | src/PSRule/Runtime/Assert.cs:953-959 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efca4b0189b767d718e00cf4adb621610097543cfa6b1a547ade9bce67bc2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:616-622 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:678-684 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:740-746 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Expressions/LanguageExpressions.cs:616\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ed4f0db13f5c2ae7eb47f5e20992a300e2c825b4384edfbee97a50419b5725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/PSRule/Definitions/Rules/RuleExtensions.cs:55-63 | src/PSRule/Definitions/Rules/RuleExtensions.cs:206-214 | src/PSRule/Definitions/Rules/RuleExtensions.cs:332-340 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Rules/RuleExtensions.cs:55\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Definitions/Rules/RuleExtensions.cs:215\u0060 calls \u0060AddNames\u0060, \u0060AddIds\u0060 and \u0060src/PSRule/Definitions/Rules/RuleExtensions.cs:64\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"db44f33201681db136442ffeed47f2abc9aca9b2b26d0d8b14d4659f6f06dd1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/PSRule/Definitions/Rules/RuleExtensions.cs:99-107 | src/PSRule/Definitions/Rules/RuleExtensions.cs:263-271 | src/PSRule/Definitions/Rules/RuleExtensions.cs:389-397 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Rules/RuleExtensions.cs:99\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Definitions/Rules/RuleExtensions.cs:272\u0060 calls \u0060AddNames\u0060, \u0060AddIds\u0060 and \u0060src/PSRule/Definitions/Rules/RuleExtensions.cs:108\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"46884f3b87cbf12b453098d3ba63f86a2b6c66538311074aef7d3df862061715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs:110-115 | src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs:75-80 | src/PSRule/Runtime/LegacyRunspaceContext.cs:249-254 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Pipeline/ResourceCacheDiscoveryContext.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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"63be3a809ce07da507d51e913b936a090e8f772e245198cdaa7eafccbf85605e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:469-477 | src/PSRule.Types/Data/SemanticVersion.cs:666-674 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.Types/Data/DateVersion.cs:469\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"6293d53ccde4ec4fd9499e5b3370e61a89944bd20b8a715c20bb3dd5dfc1212d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/PSRule/Common/YamlConverters.cs:40-46 | src/PSRule/Common/YamlConverters.cs:54-60 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afadcde951f2ebed7203a7e736d845c8647fdc7fa72913cc3e12089ce02d676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/PSRule/Emitters/PowerShellDataEmitter.cs:66-72 | src/PSRule/Pipeline/PipelineReciever.cs:167-173 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/PowerShellDataEmitter.cs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89583025bd012a377b7bfc70062e60d21794345c4e29b4fe98ec4453194b179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:630-635 | src/PSRule/Runtime/Assert.cs:648-653 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7091c62626348fb8a98f9da4114a013b65768c59f03109117d04527d8f61c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:1072-1077 | src/PSRule/Runtime/Assert.cs:1088-1093 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"884ebe4ccd6bd11c5f8d362e382f2ae7b211bf257e327dfc8a3f0c9f02e7ca77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:1218-1225 | src/PSRule/Runtime/Assert.cs:1245-1252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Runtime/Assert.cs:1226\u0060 calls \u0060Fail\u0060 and \u0060src/PSRule/Runtime/Assert.cs:1253\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"926227457e0e08eb8fdb0f131450a17732d1b6b4cda97829d930c147d8d2a63a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs:92-98 | src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs:128-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.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":"src/PSRule/Runtime/ObjectPath/PathExpressionBuilder.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"93348c113ca386f3159b3328b01994d0b6cb6f5584ca7b3f2e0d83c0da54a478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:647-652 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:709-714 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:771-776 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Expressions/LanguageExpressions.cs:647\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"2062f2d3ad5602b8705a6e650d8080a13c7b69f3184d9d4a2c616a4c56c649f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:920-924 | src/PSRule/Definitions/Expressions/LanguageExpressions.cs:949-953 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Expressions/LanguageExpressions.cs:920\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Definitions/Expressions/LanguageExpressions.cs:925\u0060 calls \u0060Pass\u0060 and \u0060src/PSRule/Definitions/Expressions/LanguageExpressions.cs:954\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ca5bfa0fe27eae5654207236352caa06862556698991cab6099defb84173c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/PSRule/Runtime/Assert.cs:630-635 | src/PSRule/Runtime/Assert.cs:648-653 | src/PSRule/Runtime/Assert.cs:1104-1109 | src/PSRule/Runtime/Assert.cs:1149-1154 | src/PSRule/Runtime/Assert.cs:1179-1184 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060false\u0060 to \u0060bool requireLetters =\u0060 in one and \u0060bool caseSensitive =\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ed32ede0b3db94d02aff876c67e3f4d29426c157777d8a5a7d1decc2f1292f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs:88-92 | src/PSRule/Runtime/LegacyRunspaceContext.cs:262-266 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs:88\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40fc4b326e8cb65ba3454754eefcf56b9923b316467da3ff577a6da4f1d7c5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:1023-1027 | src/PSRule/Runtime/Assert.cs:1047-1051 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/Assert.cs:1023\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060false\u0060 to \u0060bool unique =\u0060 in one and \u0060bool caseSensitive =\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fa78585014effdb41fe1b0b53c8102b882fcc28b508d0db9ee790b5fb8387f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/PSRule.Types/Expressions/PathHelpers.cs:20-24 | src/PSRule/Common/ExpressionHelpers.cs:427-431 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060path\u0060 to \u0060string?\u0060 in one and \u0060string\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Expressions/PathHelpers.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e736d8f2af32b22580f528390caa7d2ccaad7f119c34a4cb2fe3bd3fa8ac45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule/Definitions/Expressions/LanguageExpressions.cs:379-384 | src/PSRule/Runtime/Assert.cs:1056-1061 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Definitions/Expressions/LanguageExpressions.cs:379\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a09d2893728820f49b210a92ba592d1c05d55820231a560a81a0102792db5db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/PSRule/Host/HostHelper.cs:71-75 | src/PSRule/Host/HostHelper.cs:93-97 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/PSRule/Host/HostHelper.cs:98\u0060 calls \u0060AddRange\u0060, \u0060GetPSLanguageBlocks\u0060 and \u0060src/PSRule/Host/HostHelper.cs:76\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f916e15b0fd1994d59797443b236953c3d81675dd407954189ac8817723a1438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule/Runtime/Assert.cs:1151-1156 | src/PSRule/Runtime/Assert.cs:1279-1284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Runtime/Assert.cs:1151\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/PSRule/Runtime/Assert.cs:1279\u0060 calls \u0060GuardNullParam\u0060, \u0060nameof\u0060 and \u0060src/PSRule/Runtime/Assert.cs:1151\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Assert.cs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8703551f3f8d3da1c3f7414b7fdb921fb89125d86c32f02a931b00b831a68e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule.CommandLine/ClientContextExtensions.cs:13-18 | src/PSRule.CommandLine/ClientContextExtensions.cs:22-27 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule.CommandLine/ClientContextExtensions.cs:13\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/ClientContextExtensions.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1cbf8db46d153a99d6a318b3a512b66fbd1a83292078a5f52a8ed23195006c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:261-266 | src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:283-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs:261\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef702400769756efb9d7c0d1a0f62d4c1e29f8b663ae75bc37ab85a54e74218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 3): src/PSRule/Definitions/Expressions/ExpressionException.cs:17-66 | src/PSRule/Definitions/Expressions/ExpressionParseException.cs:18-64 | src/PSRule/Definitions/Expressions/ExpressionReferenceException.cs:18-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/ExpressionException.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5960edeb62fa962155dc3eda48b2e34250c792c4dce9835247505fe7ee1251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:581-586 | src/PSRule.Types/Data/SemanticVersion.cs:805-810 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"5deb955d5b8a60f60f9953f7229d67232a3a231eb33bf43763b8081e3f027f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule.Types/Data/DateVersion.cs:732-737 | src/PSRule.Types/Data/SemanticVersion.cs:959-964 \u2014 before extracting anything, compare \u0060src/PSRule.Types/Data/DateVersion.cs\u0060 and \u0060src/PSRule.Types/Data/SemanticVersion.cs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbfea39649d4db723e5a1bcd60c17f11049893b59507ea8a52a299638176066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/PSRule.Types/Definitions/StringMap_T.cs:156-166 | src/PSRule/Common/KeyMapDictionary.cs:216-226 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Definitions/StringMap_T.cs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"63025f0342c24a98f42b4e9f199bc2bf4e176310006159f8cbc7e8120067a4c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/PSRule.Types/Expressions/PathHelpers.cs:12-16 | src/PSRule/Common/ExpressionHelpers.cs:419-423 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Expressions/PathHelpers.cs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c693d49103cc409f354863cdfa2a7865b9d3a05f9e569c3cd8a273bcb55d70e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule.Types/Runtime/IConfigurationExtensions.cs:108-115 | src/PSRule/Runtime/Configuration.cs:111-118 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"924578123123f276a50ea69ad0dc0b9621d1951ad2982fb590c50c3762fd55cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule.Types/Runtime/IConfigurationExtensions.cs:119-126 | src/PSRule/Runtime/Configuration.cs:122-129 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b6b2b8985eac9c01c66d552dcbca86163b6de7a14150b9e64df8018e59c3f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/PSRule/Emitters/JsonEmitter.cs:111-115 | src/PSRule/Emitters/MarkdownEmitter.cs:98-102 | src/PSRule/Emitters/PowerShellDataEmitter.cs:106-110 | src/PSRule/Emitters/YamlEmitter.cs:91-95 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/JsonEmitter.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2caee57cc97207749a16a24b6515c1be5ae81314e802461e134ca73a64bcbbae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule/Emitters/MarkdownEmitter.cs:46-51 | src/PSRule/Emitters/PowerShellDataEmitter.cs:45-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/MarkdownEmitter.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"763c33f00c647cfc13e665d900cadb024dc6f0e2d6a014522038e3e898c75f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/PSRule/Emitters/MarkdownEmitter.cs:71-84 | src/PSRule/Emitters/PowerShellDataEmitter.cs:79-92 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/MarkdownEmitter.cs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"217149f8a2f31e4c8d8cad86bde8dd3b488f2b701d4259cc0a31011d9de808b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/PSRule/Pipeline/Formatters/AzurePipelinesFormatter.cs:38-47 | src/PSRule/Pipeline/Formatters/GitHubActionsFormatter.cs:40-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AzurePipelinesFormatter.cs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a292884707246585ef395b2940ca1d485d97851a248ff301a0aa5bf9199c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/PSRule/Pipeline/Runs/Run.cs:81-86 | src/PSRule/Runtime/LanguageScope.cs:85-90 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"570f2fa03a9723849f2af121204a974815771c5d03f73ed275ba322906398505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/PSRule.CommandLine/ClientHost.cs:45-52 | src/PSRule.EditorServices/Hosting/ServerHostContext.cs:34-41 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/ClientHost.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"111539865e4cb5f237ae8ebe1bf66fc39418f6ab18187551a79a4dfda736e27b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HostContext (LCOM4 4): HostContext\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/HostContext.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1867ea214d363083d05347a52606367728eae39b200cf11807306c78d9da84"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PipelineLoggerBase (LCOM4 4): PipelineLoggerBase\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineLoggerBase.cs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a78287041095af44813e0e2629dc1a6175b565e9f1c4427177c88459056cdf"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Run (LCOM4 4): Run\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cb1117736e27bce439643808b53e1140b992bdb0215aab22fc4628b745ca3d"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated: Microsoft.Extensions.DependencyInjection: Microsoft.Extensions.DependencyInjection 8.0.1 \u2192 11.0.0 available (referenced by PSRule)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/PSRule.csproj"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4691e731fc705cfcc951d75786de80bde48b0dddfa68917e0b490f6e98f4a5f"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated: Microsoft.Extensions.Hosting: Microsoft.Extensions.Hosting 8.0.1 \u2192 11.0.0 available (referenced by PSRule)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.BuildTool/PSRule.BuildTool.csproj"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff086aa9a203778c805e6a6687154bebe157d8e014f98d03892904ac28910d32"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated: Sarif.Sdk: Sarif.Sdk 2.4.16 \u2192 5.9.0 available (referenced by PSRule)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/PSRule.csproj"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4023a5caf150d12c4d692a1df3dd061ae663184b8842c4388f2368b4c01381a1"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated: System.Text.Json: System.Text.Json 8.0.5 \u2192 11.0.0 available (referenced by PSRule)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/PSRule.EditorServices.csproj"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e28d5010054189fca59361cbbd533ac0a315a3bf9cf8c07dc52a36310fbbdb"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: Manatee.Json: Manatee.Json 13.0.5 \u2014 Legacy"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/PSRule.csproj"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce22e53bf53525025500909683687f9ee6555bec2932210163275f87043c1e4"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: Microsoft.Extensions.CommandLineUtils: Microsoft.Extensions.CommandLineUtils 1.1.1 \u2014 Other,Legacy"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Benchmark/PSRule.Benchmark.csproj"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a47d13c0f554a6ea25a578d6cc26e7b8e0032c9b62cdc8f6ebd9546a79b1c0c"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: xunit: xunit 2.9.3 \u2014 Legacy \u2014 the publisher\u0027s replacement is \u0060xunit.v3\u0060; that is the next major line under a new package id, so the move is a breaking rename rather than a version bump \u2014 budget for API changes in the code that uses it, not only the reference swap."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/PSRule.Tests.csproj"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b632bb1991c326921ab71740ad38a49b19e91c3a42955bb8c11c8471b390d7c0"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: xunit: xunit 2.9.3 \u2014 Legacy \u2014 the publisher\u0027s replacement is \u0060xunit.v3\u0060; that is the next major line under a new package id, so the move is a breaking rename rather than a version bump \u2014 budget for API changes in the code that uses it, not only the reference swap."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tool.Tests/PSRule.Tool.Tests.csproj"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05202144adff9171e3e615d1e377f598ed15d54bb6cfac01b97b894cebb047a"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: xunit: xunit 2.9.3 \u2014 Legacy \u2014 the publisher\u0027s replacement is \u0060xunit.v3\u0060; that is the next major line under a new package id, so the move is a breaking rename rather than a version bump \u2014 budget for API changes in the code that uses it, not only the reference swap."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.CommandLine.Tests/PSRule.CommandLine.Tests.csproj"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f2ea9793c41ca12deb6734f77e7f9e223ec58cfefd869b7218d5054b5d7e34"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: xunit: xunit 2.9.3 \u2014 Legacy \u2014 the publisher\u0027s replacement is \u0060xunit.v3\u0060; that is the next major line under a new package id, so the move is a breaking rename rather than a version bump \u2014 budget for API changes in the code that uses it, not only the reference swap."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Types.Tests/PSRule.Types.Tests.csproj"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb0ff50973e57a0cf01cd533c3319f1a75dc39f7d4e8371eec929688681316a"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: xunit: xunit 2.9.3 \u2014 Legacy \u2014 the publisher\u0027s replacement is \u0060xunit.v3\u0060; that is the next major line under a new package id, so the move is a breaking rename rather than a version bump \u2014 budget for API changes in the code that uses it, not only the reference swap."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.EditorServices.Tests/PSRule.EditorServices.Tests.csproj"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa693766a3b25b432d5779d0df2a03011f8453f139847de84e8589e33e8d920"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: System.Collections.Immutable: System.Collections.Immutable 5.0.0 \u2014 Other,Legacy. It is resolved transitively in src/PSRule/packages.lock.json: no project of this repository references it directly, so the move is on the reference that pulls it in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/packages.lock.json"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f300e59e53c4425d44684a8000c08dbd2f2d03fd38ee691eda476ecf78d1617"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: System.Collections.Immutable: System.Collections.Immutable 5.0.0 \u2014 Other,Legacy. It is resolved transitively in src/PSRule.SDK/packages.lock.json: no project of this repository references it directly, so the move is on the reference that pulls it in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.SDK/packages.lock.json"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f29d4504d6061265921dc1c92dea3b0076289c9a5788720e2af23844daf61c1"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 10.5.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6a21a0f511e79bf1641d8781e0ca2d1a227ed4ef5f1fd822135ca3108ada0d"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: prebuild-install: prebuild-install 7.1.3 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022No longer maintained. Please contact the author of the relevant native addon; alternatives are available.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":5716}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf37fa194cf8bba083d3ee45aa6f104c0e62e5a3135c5862549d48e21468d242"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: whatwg-encoding: whatwg-encoding 3.1.1 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Use @exodus/bytes instead for a more spec-conformant and faster implementation\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":7087}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a276e49fe0eaf945a534f0b4adaaa8539f0daaf57cfcac46d9a750024342058"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private int _BorderPadding \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Badges/SvgBuilder.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"204915a55f209cbc150c112bf32d6d9026454b2cb98515d25fb24bec81744574"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CA1416 \u2014 the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line \u2014 what makes this site legitimately different \u2014 or fix what the rule is pointing at and delete the pair. A rationale in the member\u0027s documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.BuildTool/ClientBuilder.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"77137687a31f092c83d5903989a787d55c799ec309c5b590c74cb1edbe6aef08"}},{"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. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Handlers/ConfigurationChangeHandler.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea27801207c1eb50e76e6d9d6f5a608525c184837296f3de816fa8deb966711f"}},{"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. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/GitHelper.cs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e9c1997b9c04c2de741c97081eb438e43850b0a94b7797b6098a76e27e5fe8"}},{"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. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/CsvOutputWriter.cs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d0b830c6cb8e26b83886406614f0a0a589257b0be6844e941039c7adc1854d"}},{"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. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectHelper.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cab80d969172d19e0be3dbd10462f7678f2629b7f13a340fc449935abea8c2"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable IDE0001 \u2014 the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line \u2014 what makes this site legitimately different \u2014 or fix what the rule is pointing at and delete the pair. A rationale in the member\u0027s documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/StringArrayMapConverter.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca63600435a014f40c3a3fd5e4daf071fc0a77b4008906034119580f6b91198"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable IDE0001 \u2014 the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line \u2014 what makes this site legitimately different \u2014 or fix what the rule is pointing at and delete the pair. A rationale in the member\u0027s documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Yaml/StringMapYamlConverter.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"add0137f927b1aa05090dae0f30eef507290255a6f2f252d6e645228f56d504c"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable IDE0001 \u2014 the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line \u2014 what makes this site legitimately different \u2014 or fix what the rule is pointing at and delete the pair. A rationale in the member\u0027s documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a4941952de59971377fa71d6d7ff81514da4909dca004b2b068203cb84bbe2"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable IDE0001 \u2014 the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line \u2014 what makes this site legitimately different \u2014 or fix what the rule is pointing at and delete the pair. A rationale in the member\u0027s documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f89edc193b633a3654f1fc62a625c2be6f0ba7b391113878bfebc3f59ccfb85"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private string _Value \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"013d1ac3a4a58e7c4bcc6973407ed333cd0766ff33b6ea6648c428fb27129860"}},{"ruleId":"D17","level":"warning","message":{"text":"BarePragmaDisable: #pragma warning disable CA1822 \u2014 the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line \u2014 what makes this site legitimately different \u2014 or fix what the rule is pointing at and delete the pair. A rationale in the member\u0027s documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Emitters/EmptyEmitterConfiguration.cs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e407bd06bf6a9583595ea2e71183dd696d782d90fc33f762470e94f33f5914"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private bool _IncludeDisabled \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/DependencyGraphBuilder.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f50a724d51bd0c3a41f632d9b0015b11801b545e9bf10f045871f377b8e3e64"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private string _Path \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/ExpressionInfo.cs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc131b5e93ceea1e6f83dd8570be88bd3f0d40d6e2ecbf351d69a53801a294b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Propagate path \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":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"050e4e3b5e4b20bf1722fd257cb67d13f8f390f57916b576c67ede30222db2fe"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/MarkdownEmitter.cs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77e0a98f5d4ad3dada688d7caef8fa5a6955cdfdf18d21681d58ca22a565e60"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/PowerShellDataEmitter.cs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7dc7b2cfb4e04c9d12506e3b614acf252aa866dc68b47bb603c4bdff027fed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Looks like error, double check, will position be lost \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":"src/PSRule/Help/MarkdownReader.cs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"041094a48846196ddc674224095c75661ad04ba52d21b4ffaf3659fbe33562b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add scope wrapping for discovery. \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":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd917a580d0081a09e54f07a000896865c01040b3dfbb0364bc06b6de223175"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add scope wrapping for discovery. \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":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9c16f262f4366cb6baed7428996742c4098b983e7b8bb0e9dcea05fbd6ff47"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add scope wrapping for discovery. \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":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe6c7c49f80a26887e67233cc39e289daa3b94902ef86f07f32608923421fdb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Exit scope \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":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17a1873cce8ef5a03232dcbf8305506c3517861146fe20eec22af8faa04f410"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bd1079eea4598429550bba20a5812cacf2d9b67cd537473e6d791123464a57"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d90a1fbccc169f6a8493f4bff1c86d8d228c94fac5daca485f6dfada1f3efe4"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a149592d8e8e62f6f4e05b52c75f38436e15ef465bd2b3f04a7b0dc9cd3cab2"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4cabe40889e7b38780a6d9cad0f6c8da78c66e8ac14a09e5846bde0c2583f3"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f98401e619876bfb2028a0243435ec86e7d0e1b062b8ad56bbaf7e20ff423fd"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/Definitions/Selectors/SelectorVisitorTests.cs"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9aafd72cbd98c00f5bdf489e8d9d8325772946750722112e059324623dc434"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Temporary workaround to cast interface \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":"src/PSRule/Pipeline/GetTargetPipeline.cs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85066c7efdddf69b5f8fd8d49a7cdd8fd1984aaef16e08f5e219efb51169287"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Temporary workaround to cast interface \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":"src/PSRule/Pipeline/InvokeRulePipeline.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6814f608f5c98e22171a50be44d42ab59b4fb6b0eb30b98aa33055487926e7af"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 9 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e79e54115b90267d61846492a98da8128d6ce70d7d3e6dc3b1d6d69601e0390"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private List\u003Cstring\u003E _ConventionOrder \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"097314161f0162755f9b8905dfd5dc4df4cd160d51da9850f48b0359ebb971f7"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private LanguageMode _LanguageMode \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5756b3eaedc811472891122e191b95f1e626d3921e3e7d6a5030266169172454"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private bool _LogError \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineLogger.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba733a784fbccbc2bd8eb4ce2a76b2ef7dd27282fd0b5d4a13d2209909332c5"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private bool _LogWarning \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineLogger.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"799b670eeeb77ae0e0fb4ce21975c097b64aeb44d258dd3806316de098cb5183"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private bool _LogInformation \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineLogger.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b832672e20aa9d9fb43b22ef2dc20fd9ab0cb9c605479e5c9bc148db45839c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix event id 0 \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":"src/PSRule/Pipeline/PipelineWriterExtensions.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d9b5bd70800593764f9ce3356d4f973ed66a5e7735dc7c2eea7242d166e535"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 5 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df51ba159fd32e41d89bfac19eefd2b19ccdf588552b0487dd5ba876d20295c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should provide a more flexible delegate to configure this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunCollectionBuilder.cs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"dace6142cb94c45cb34d1360bc0cf68d337641e6c79c4036a1214a3d2cb4012b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Import dependencies \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":"src/PSRule/Pipeline/SourcePipelineBuilder.cs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e724cfd815170fba479137de7c9fdd543426949e21f555d14b947149602b369c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Look at scope caching, and a scope stack. \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":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d6c924a924cfd15a822f8a14f8ea06662a852c555d64d88786d5deb5c0f779"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check that configuration that is in a run is also accessible within a begin block. \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/PSRule.Tests/Pipeline/ConventionTests.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1443db89537879cde83afbaf732a423bec7e6ca1f0e16e0048a81cea121824f"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: NU5104 \u2014 this warning is switched off for the WHOLE project, including builds years from now. It is raised by the build itself \u2014 the packaging, restore or SDK step \u2014 about the project as a whole, not by the compiler or an analyzer at a line of code, so there is no call site to narrow it to and no per-site directive that could carry a reason: this element is the only place the decision can be recorded. Say WHY here, in a comment on the entry, or fix what the rule is reporting and drop the code from the list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/PSRule.CommandLine.csproj"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad053bd88f326db95b52d84277820572f9698990a17e0e2b2cc533b78f7da41b"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: IDE0250 \u2014 this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or \u2014 if some occurrences really are legitimate \u2014 narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Directory.Build.props"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfaeed98051325855d924ee10f99437c9643d2b5db4e11e939ef9af9aff9628"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj: IDE0251 \u2014 this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or \u2014 if some occurrences really are legitimate \u2014 narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Directory.Build.props"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4492afff11f56b453dc6ae8c42236152bc9d31bce28c497b802417051e39ce2d"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: CaseInsensitiveDictionaryConverter: NamedType CaseInsensitiveDictionaryConverter \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/JsonConverters.cs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"613c6ca44ef5334de7850d4aeb160c25935313e3609d839ce942f6e25ffc3bc3"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: TryValidateResourceAnnotation: Method TryValidateResourceAnnotation \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ResourceExtensions.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a9e2cefe971691c909807b5f29a0c1344919c82335efa8fa0fe0df532b44d5"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: WarnPropertyObsolete: Method WarnPropertyObsolete \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"31488aba5d3d05e6161018bf13e5952ec226ded0fec7e4da1e0611bde8192d1e"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: WarnDeprecatedOption: Method WarnDeprecatedOption \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"448800e43fd2813882295691aed793300d792496ad5e9c894a707168602e74c4"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: RequireAnnotation: Method RequireAnnotation \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/AnnotatedExtensions.cs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e828b463aef47d548489351bb9c58093c833d0f4b3d2604c96f5e8e9809668c"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: FunctionReader: NamedType FunctionReader \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/FunctionReader.cs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"119edd6af05e142f3d3d339a4ffb84fa3ace890be7d46124320b9d1b05d53948"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ArgumentsOutOfRange: Method ArgumentsOutOfRange \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d064bb0c9fbc20926bfbdbdf9a7d664fd6966bc9502d06753d3f7138036bf1d"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ArgumentFormatInvalid: Method ArgumentFormatInvalid \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7191224571323a8ff631fe20431c3fae0872898585f92cd4df9f3f09c2bbe053"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ArgumentInvalidInteger: Method ArgumentInvalidInteger \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"56abdd1e35b18f450979abc81fc9bad34989bc9e56f5589e61ea7b24a509e790"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ArgumentInvalidBoolean: Method ArgumentInvalidBoolean \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"6785725454b83f3d2bd4de4d29e77129b71a228bbce85b8d2eff6264c031079f"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ArgumentInvalidString: Method ArgumentInvalidString \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/Functions.cs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7386d94e31dfad43ed8e735bdbb8ea581546995de97f5b7cd607b4c0fd8d99be"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ResourceBuilder: NamedType ResourceBuilder \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/ResourceBuilder.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9594c651f54cdf79b16a0be3baed5c55571220014fbb166ec228b06c32bb2e"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: MetadataLexer: NamedType MetadataLexer \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Help/MetadataLexer.cs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b02e46d78339d128a63611a5045bacf31b73310554663e47ecf7c847f206b3"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: GetPSResources: Method GetPSResources \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7f6dfd958950c1e07ecf1d30ae721291c818720850503119c79ddfe3c1972a"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ExecutionScope: NamedType ExecutionScope \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ExecutionScope.cs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"8584294d04eb9fa1a33b697c78de68d2b648240123df1e93f52d0272fab48ded"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ErrorPreference: Field ErrorPreference \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3680a2d673691e836d8d3254fe79f2db7a3fe549f029717033394d2b8d33edee"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: WarningPreference: Field WarningPreference \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2137534c1465b1555abad70e29aa916093d3fbaa89d31164121e9e14fb4fbc51"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: VerbosePreference: Field VerbosePreference \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3beec3c3345033155e49aaccb79ff6d44ed5004a28523d2bd8ab51ee1a2d3399"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: DebugPreference: Field DebugPreference \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"36db4b255bd115fb62996c6fc5a8696ffe26c1c07107e1665d682de1d3dfc5f3"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: PipelineLogger: NamedType PipelineLogger \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineLogger.cs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b6b8d1ef916c42264b505e0b93a1d7d8183e6c0d237cbcb73293b6cf3370cc"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: UseExecutionContext: Method UseExecutionContext \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineLogger.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b232d6f9a76752cbcbd996ee4fa4fde389e03c722d740f5e62077f995a728b"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: TryBaselineRef: Method TryBaselineRef \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResourceCache.cs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4a7ba805d8920da70f5c3c0d33a1ecc8e367ee33cf749735ecb6fbf66bd275"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: RunRuleGraphBuilder: NamedType RunRuleGraphBuilder \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8926c33aec85b1826cf9e6965c4035b52fefa69d8d7d2411e3a2927ee13f8bcd"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: GetFiltered: Method GetFiltered \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ae95a03b52a8f76c6bf1c27934e04a1ee67ab228fb4c70fc1511dd98686492"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: SourceScope: NamedType SourceScope \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/SourceScope.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"439ffa70becd6929c6e5f3131dae09496f7e2ddf3627784baf454aaa8ecbfc40"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: IMetaResourceDiscoveryContext: NamedType IMetaResourceDiscoveryContext \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/IMetaResourceDiscoveryContext.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedfeef4426d2a42735726b22601f51ce228969fa4bafb67ce16480e538ce4f2"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: MockLanguageScope: NamedType MockLanguageScope \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule.Tests, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/MockLanguageScope.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e439840a483dc8d53509868277f5044e07b858596c553cdb274c3b4afbb815"}},{"ruleId":"D17","level":"warning","message":{"text":"Dead code: ServerHostContext: NamedType ServerHostContext \u2014 Roslyn\u0027s SymbolFinder walked every project the solution loads, including PSRule.EditorServices, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository \u2014 a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol\u0027s name, and any project the workspace could not load. This is \u0027no caller found by this walk\u0027, not a verdict that the symbol is unused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Hosting/ServerHostContext.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"253c2ca1c76b780efbfc4d9526faea9d4d29dea26aca8ba7b887136263268acc"}},{"ruleId":"D18","level":"note","message":{"text":"Thin analysable surface across projects: PSRule.MSBuild: 1 project(s) carry only a thin slice of real code; \u0060PSRule.MSBuild\u0060 has 29 significant line(s). The mean analysable-surface weight is 83 %; this project lowers Solution Shape by about 1.4 point(s). Consolidate it or grow it into a substantial, well-scoped assembly."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.MSBuild/PSRule.MSBuild.csproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"514f7bbd9ac54e9a281cac5460edf989136929552a355b1c0a03f2ad7988ae4b"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060PSRule\u0060 is a package (\u0060PackageId\u0060) and neither \u0060src/PSRule/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b0dd80a8a61f1f88d0c16f926cf917b294c3f6e3586f92fb4af7cf36ae6c15"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060PSRule.Badges\u0060 is a package (\u0060PackageId\u0060) and neither \u0060src/PSRule.Badges/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Badges/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b618d1c4ab826d0ffce93b1f3b7167ba55ccde70da44a539311b7efb061933"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060PSRule.Benchmark\u0060 is an executable (\u0060OutputType Exe\u0060) and neither \u0060src/PSRule.Benchmark/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Benchmark/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ad11ae9a8286ea44af8d3127390ea294d3b8ba98c41ba34491dd07f4ce25bf"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060PSRule.BuildTool\u0060 is an executable (\u0060OutputType Exe\u0060) and neither \u0060src/PSRule.BuildTool/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.BuildTool/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f4272678c7808bcb2052c2450435118feeb67701feba289b80449e7fa47751"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060PSRule.EditorServices\u0060 is an executable (\u0060OutputType Exe\u0060) and neither \u0060src/PSRule.EditorServices/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c92cbcfa3b4d32467c0192125c0efbb08c9a36c8acc78a5ff10f5eade690d40"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060PSRule.SDK\u0060 is a package (\u0060PackageId\u0060) and neither \u0060src/PSRule.SDK/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.SDK/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05faa332677d818437fda4c1958beb0cfd993c2eabcf70d2f0d9e2b200a201fd"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060PSRule.Tool\u0060 is an executable (\u0060OutputType Exe\u0060) and neither \u0060src/PSRule.Tool/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf627abfd9c26ad913c77d8d8cef7e0f750b6867b740478d40ccea2c95d3aab"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060PSRule.Types\u0060 is a package (\u0060PackageId\u0060) and neither \u0060src/PSRule.Types/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d9fcd31910979ad8327627ba900a969f6269b4bc56e9578b1f79bfae8f966f"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060src/PSRule.BuildTool/PSRule.BuildTool.csproj\u0060 makes this repository a deployable product (line 3)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.BuildTool/PSRule.BuildTool.csproj"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea5e92fb4c17b7d674cafef11dad281a549571c8c902cb16bd4374159e1c295"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060GetRelatedResourceID\u0060 spells \u0060ID\u0060 where 52 names in the project spell it \u0060Id\u0060: 52 of 53 names in project PSRule spell the token \u0060Id\u0060 (52 of 53; unit: names in project PSRule containing \u0060Id\u0060). Peers: RunspaceContextDiagnosticExtensions.DuplicateResourceId (src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs:42); RunspaceContextDiagnosticExtensions.DuplicateResourceId(duplicateId) (src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs:42); RunspaceContextDiagnosticExtensions.SuppressionGroupExpired(suppressionGroupId) (src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs:47); RunspaceContextDiagnosticExtensions.RuleExcluded(ruleId) (src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs:56); RunspaceContextDiagnosticExtensions.WarnAliasReference(targetId) (src/PSRule/Common/RunspaceContextDiagnosticExtensions.cs:87). Rename to \u0060GetRelatedResourceId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressionBuilder.cs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcd00124d850f55368853e0d868ea03a3dcf77d507ad70d9c9d81424288c006"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022If the error is a pipeline exception, set the last error code.\u0022 repeats the code it sits on: 6 of its 6 words (error, pipeline, exception, set, last, code) are already in \u0060_Context.SetLastErrorCode(pipelineException.EventId);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/ClientHost.cs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1882e5f3a471c7247f50d446e73db53e5179f0a430da7ae3b61e1adcb4060159"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Find the ideal version.\u0022 repeats the code it sits on: 3 of its 3 words (find, ideal, version) are already in \u0060var idealVersion = await FindVersionAsync(includeModule, moduleConstraint, null, null, cancellationToken);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b323e59a5f9f8f5ee27ced40567cb5cadc65c85c209b31b87f7212a7eec418d"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get a constraint if set from options.\u0022 repeats the code it sits on: 4 of its 4 words (get, constraint, set, options) are already in \u0060var moduleConstraint = requires.TryGetValue(module, out var c) ? c : ModuleConstraint.Any(module, includePrerelease: ope \u2026\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"646e231b67399eddc3d46248f9b20439a2703066f7812b834c8d4c40d9b59f43"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Find the ideal version.\u0022 repeats the code it sits on: 3 of its 3 words (find, ideal, version) are already in \u0060var idealVersion = await FindVersionAsync(module, moduleConstraint, targetVersion, null, cancellationToken);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18b26ee2fd0830746c02ca5c7879807d31575bebb7a50baae2a0f831c70b8a0"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Find the ideal version.\u0022 repeats the code it sits on: 3 of its 3 words (find, ideal, version) are already in \u0060var idealVersion = await FindVersionAsync(kv.Key, moduleConstraint, null, null, cancellationToken);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a47d4eaa3d3c9196297442677c6db78751a0b8e9240285ea41ec0e4f51fcf3b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Extract PSRule configuration from the settings\u0022 repeats the code it sits on: 5 of its 5 words (extract, ps, rule, configuration, settings) are already in \u0060var psruleConfig = ExtractPSRuleConfiguration(settings);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Handlers/ConfigurationChangeHandler.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb4251ce575990471a9ac868f33862675684aff427f7f5c57a5bdc649be2787"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get the configured options path from context\u0022 repeats the code it sits on: 4 of its 5 words (configured, options, path, context) are already in \u0060var configuredPath = _Context.OptionsPath;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Handlers/WorkspaceChangeWatcherHandler.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9278d703bdfc134824723c8601e446cacb9a076f57aeabc6825f955af5c04c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set the line ending\u0022 repeats the code it sits on: 3 of its 3 words (set, line, ending) are already in \u0060var ending = GetEnding(_Stream.SkipLineEnding(max: 2));\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Help/MarkdownReader.cs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aea6e2c3cd1e1245239a16216836a91193d091e33d7f45cb8cb1583d6091855"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set execution policy\u0022 repeats the code it sits on: 3 of its 3 words (set, execution, policy) are already in \u0060SetExecutionPolicy(state, executionPolicy: Microsoft.PowerShell.ExecutionPolicy.RemoteSigned);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostState.cs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f84a4e52c3bd7861c5c1b02f859827dc29b96b1832588151c3c2c84093e289"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set the language mode.\u0022 repeats the code it sits on: 3 of its 3 words (set, language, mode) are already in \u0060state.LanguageMode = languageMode == LanguageMode.FullLanguage ? PSLanguageMode.FullLanguage : PSLanguageMode.Constraine \u2026\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostState.cs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde7c060c244eed23143e11474e41139dc92aac064f67b73e3abb0e36c617fcf"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Add the result to the run.\u0022 repeats the code it sits on: 3 of its 3 words (add, result, run) are already in \u0060runData.Results.Add(result);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/SarifBuilder.cs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b43e2aa76426d3a20b223583aa305bf5ab82e689290f84d39aa952b3dd613b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get the rule descriptor.\u0022 repeats the code it sits on: 3 of its 3 words (get, rule, descriptor) are already in \u0060var id = record.Ref ?? record.RuleId;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/SarifBuilder.cs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68ce01db226b0e7c3eaa3831e69cf648ce407100ab79798307c033f9f29679b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get the tool component.\u0022 repeats the code it sits on: 3 of its 3 words (get, tool, component) are already in \u0060if (string.IsNullOrEmpty(record.Info.ModuleName) || !_Extensions.TryGetValue(record.Info.ModuleName, out var toolCompone \u2026\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/SarifBuilder.cs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"2300180dce3b3cd658a1540ea382b8d549a973b3a991be728039230107f6b4f7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Include paths from options\u0022 repeats the code it sits on: 3 of its 3 words (include, paths, options) are already in \u0060if (!_UseDefaultPath \u0026\u0026 option?.Include != null)\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/SourcePipelineBuilder.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3a583c28de4ee86c2358ca9aa1be768a1969336aefbe10841886826b815dcf"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Use qualified name\u0022 repeats the code it sits on: 3 of its 3 words (use, qualified, name) are already in \u0060if (_UseQualifiedName)\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Binding/TargetBindingContext.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25df6bd45dcbfbcd689a9f18c1d8178d7bcdc8228d799ab344a46100a5e8dee"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create the language client.\u0022 repeats the code it sits on: 3 of its 3 words (create, language, client) are already in \u0060const client = new lsp.LanguageClient(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/client.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"754331213c2e96d5d21b53826909337ed670f8d49c8fbb5083976a95b89b32b7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get current options path\u0022 repeats the code it sits on: 4 of its 4 words (get, current, options, path) are already in \u0060this._currentOptionsPath = configuration.get().optionsPath;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/client.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca5023dbac478326c3d4ecdaaedbcacff4d639001b3fad0e29849723d619b13"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Register proposed features\u0022 repeats the code it sits on: 3 of its 3 words (register, proposed, features) are already in \u0060client.registerProposedFeatures();\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/client.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9d550327a86e8c722b8593c3479c92529d5040f955279451c3d6cbc00f1d8b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get last version\u0022 repeats the code it sits on: 3 of its 3 words (get, last, version) are already in \u0060const lastVersion = context.globalState.get(extensionVersionKey);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/extension.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf7cbb8b68d6e0463a6ccbb27930acca2603ac007377c57a7df8f36b3c18465"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Register a task provider\u0022 repeats the code it sits on: 3 of its 3 words (register, task, provider) are already in \u0060this.providerRegistration = vscode.tasks.registerTaskProvider(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/tasks.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c299ed089c54863359e789a1c81c2d22f7867eb29ba2c007e27d3fa16ffb78"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if the language server binary exists.\u0022 repeats the code it sits on: 4 of its 5 words (check, language, server, exists) are already in \u0060if (!existsSync(languageServerPath))\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/utils.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"beea2c31d844ab063bacc6c3aaeaa93b712507ee8995403a1da5c5f83fbadd77"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create client context\u0022 repeats the code it sits on: 3 of its 3 words (create, client, context) are already in \u0060var context = CreateClientContext(optionsPath, testDir);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.EditorServices.Tests/HotReloadTests.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2045717222697d49a44257f19883bf85767803810f0c7103296c3fb92eba790"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create client context with first options\u0022 repeats the code it sits on: 4 of its 5 words (create, client, context, options) are already in \u0060var context = CreateClientContext(optionsPath1, testDir);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.EditorServices.Tests/HotReloadTests.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8967495c00d9bc0e3c40a85cf14c9c14bd10711d2f62dfaf202606983583027"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create client context with custom options path\u0022 repeats the code it sits on: 5 of its 6 words (create, client, context, options, path) are already in \u0060var context = CreateClientContext(optionsPath, testDir);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.EditorServices.Tests/HotReloadTests.cs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af165029dc2bc2d49bc3cf3d1cc6cf7f3f13aa4173a44e45061683b5e506411"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create client context with first options\u0022 repeats the code it sits on: 4 of its 5 words (create, client, context, options) are already in \u0060var context = CreateClientContext(optionsPath1, testDir);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.EditorServices.Tests/HotReloadTests.cs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"66127e9171827beeb80b5b8282fdf4f92a5d8ab44b672e6a4c7b99a180c1da18"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022InputFileInfo\u0022 repeats the code it sits on: 3 of its 3 words (input, file, info) are already in \u0060value = GetObject((name: \u0022FullName\u0022, value: new InputFileInfo(AppDomain.CurrentDomain.BaseDirectory, Path.Combine(AppDom \u2026\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/AssertTests.cs"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5428fd346c5d7576363ffbc5053a276eb8435111ab8e693e2e47f9fe2901af"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022InputFileInfo\u0022 repeats the code it sits on: 3 of its 3 words (input, file, info) are already in \u0060value = GetObject((name: \u0022FullName\u0022, value: new InputFileInfo(AppDomain.CurrentDomain.BaseDirectory, Path.Combine(AppDom \u2026\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/AssertTests.cs"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee5c15910cf4bc3fa4d86414e53ab80dfe7613a2636bc867895d4c3495c82b7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 8 comments in this file only repeat the code they sit on (lines 426, 441, 472, 487, 1374, 1385, 1400, 1411), for example \u0022Source Case sensitive\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/Definitions/Selectors/SelectorVisitorTests.cs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e65097127ee65af2245b0e4fadf072d1127cdd02baf71673a96b2d08c78b96"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create option context\u0022 repeats the code it sits on: 3 of its 3 words (create, option, context) are already in \u0060var builder = new OptionContextBuilder(GetOption());\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/OptionContextTests.cs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e55c68091bc6494918eac7afceca99df374c68ec2233c2193fdc12a8c240ad"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create option context\u0022 repeats the code it sits on: 3 of its 3 words (create, option, context) are already in \u0060var builder = new OptionContextBuilder(GetOption());\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/OptionContextTests.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a724bce555f886346bfaa31eb4b77e93e60fe3caa0fdb8932f6c83ad1b6235"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022With module default baseline\u0022 repeats the code it sits on: 3 of its 3 words (module, default, baseline) are already in \u0060builder.Baseline(ScopeType.Module, \u0022BaselineDefault\u0022, \u0022Module1\u0022, GetBaseline(targetType: [\u0022defaultType\u0022], ruleInclude: [ \u2026\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/OptionContextTests.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d0770aebcf9825c45a4f4d93454008edc06d03e2884e83aecc3015cdf7bb54"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Add a configuration option.\u0022 repeats the code it sits on: 3 of its 3 words (add, configuration, option) are already in \u0060option.Configuration.Add(\u0022option6\u0022, \u0022value6\u0022);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/OptionContextTests.cs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"125b4df059240a6b14fa87b01e6f364eae22520d1e44e3fd3077c1a705bde2ec"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set resource tags\u0022 repeats the code it sits on: 3 of its 3 words (set, resource, tags) are already in \u0060var resourceTags = new Hashtable();\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tests/RuleFilterTests.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"752abc8b02ca25e26fdd53dc1fd19687067796492acf9961ab89f4e9c81340cc"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 5 comments in this file only repeat the code they sit on (lines 17, 56, 92, 119, 155), for example \u0022Set up environment variables\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/PSRule.Tool.Tests/AzurePipelinesAdapterTests.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3116b884d696c9f6a34b00f5009c4ed5cb5a72c354bddf3215b7e40202b324b"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060PSRule\u0060 overshoots its size bounds (35222 LoC, 136 public types across 15 namespaces). 1 of 15 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/PSRule.csproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f319be0bea6947453a308c9af90760fb7ac3fe57fd19a762f27eb85dded27151"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"113f1a0411895d1eeae5f160e7abd524f8c1ef3923d19e4009608eb7a288c785"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"077cd6c75bdfdff7f09eb06b1402cf28960a49bc12db6c26d7a45395f1f957c4"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"b4d96270e5b7dba8117150f0d3af0468fe4cdc4ee3dc81a559f9d87626371415"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"71f84d3c2636583116409a0659eb28de2cd6e70c2271c294b60f1bb160dbccad"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8b97d4226fc62578cb5553cb270358bef4b076b1503b90ae2a6579d125c3ccc1"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"b83ac4ccfa5b22774edf962bc03db772f85cb0d8ae1b0bef29662f2e66a4e72a"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ab0d7298c8de82aaf396abc42b5cc726ae14efb56b7f03c196be7985bb5da3f2"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2537edbf80df88b7e4043cd6c2e706504ee66ed81748c6351d28272639f14d58"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e08c663ca1ff279a48a45c9f18d2105dd03a420c09ab2de9f621a4d638d53a5a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"12ed4c70c200fec58985e450143475d31c8b35f6726e1feed8f0e148f54620d7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"480f876517122b8c4785e29afb0ac80323231b3f039231b65405495a00ce0d75"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d7a0d4378f78fc3fb1da7acf5272a6c9cb601bfff45c3d12f1bd1fe32df68006"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"193cbe3273aff537a5dac457047eb059febc828d019d80ce9e03791221eee209"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"29e2f6f67805d37108802a9df1752278f7438df68c04fed61c2d6fb9dc9ab2e2"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3fd5040210d1cb62371ab43bb9ea960f219189c71e172f3d625a0a41378612cc"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9b9da6979bbc0767d1d034be7eb494f19412a28aef6fdab3b2e1983b7eeeaa70"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9e1360d2045a89d3429ab5257f14ab775aba7c379853ca89cdf75826a46a3756"},"properties":{"dependency":{"package":"@azure/msal-node","version":"5.6.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"7.1.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"87839f7289af0999d94a99db6eefa4a0c9cb8f6ea36e8599abd5bd35ced532c8"},"properties":{"dependency":{"package":"serialize-javascript","version":"6.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"7.0.3","relation":"separate-copy","declaredRange":"\u003E=7.1.4","reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"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":"d21cc6bb7ddd7ccc4ddacd2a075732912ee8d0578d90adc921f660eba1e268b2"},"properties":{"dependency":{"package":"picomatch","version":"2.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"9c64df919e956bde1614196a3a5de8dfade93ecf25844170e2a0d1901120d4d5"},"properties":{"dependency":{"package":"picomatch","version":"4.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"b441dc53eb1e8eef35ed0b94e315a02672e59613ad9e1d9ffe5987fcb928f6ca"},"properties":{"dependency":{"package":"glob","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"14.0.2","relation":"separate-copy","declaredRange":"^13.0.6","reachability":{"kind":"test-or-tooling","file":"src/vscode-ps-rule/test/suite/index.ts","line":6}}}},{"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":"a018d06589f265ef50438fef10c7e5f4a2035f64160f73075877e95fa6afb9f4"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"ed06cab2f056311d8f0d9d444963b8099119bd910df6596b0bf38f0c2772ca00"},"properties":{"dependency":{"package":"glob","version":"13.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"14.0.2","relation":"direct","declaredRange":"^13.0.6","reachability":{"kind":"test-or-tooling","file":"src/vscode-ps-rule/test/suite/index.ts","line":6}}}},{"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":"acdd3ee26e4b59163bc9da07c80b865b4a9800550ef266e5f9f7646499d6fd6d"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"03949ce0ad73a2a9d06d7a1b74b2e80440abe82fae87355ee698d3a8be0a827b"},"properties":{"dependency":{"package":"qs","version":"6.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"6.16.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2c2f7815bc2e3dc5c624dff5f3eb708691c4121a9eb5e23a9fac3c97c7d6a20"},"properties":{"dependency":{"package":"diff","version":"7.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"8.0.3","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: PipelineBuilder.cs \u2192 GetRuleHelpPipeline.cs, GetRulePipeline.cs, PipelineInputStream.cs, PipelineWriter.cs, RulePipeline.cs: \u0060src/PSRule/Pipeline/PipelineBuilder.cs\u0060 changes together with 5 other files \u2014 \u0060src/PSRule/Pipeline/GetRuleHelpPipeline.cs\u0060, \u0060src/PSRule/Pipeline/GetRulePipeline.cs\u0060, \u0060src/PSRule/Pipeline/PipelineInputStream.cs\u0060, \u0060src/PSRule/Pipeline/PipelineWriter.cs\u0060, \u0060src/PSRule/Pipeline/RulePipeline.cs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineBuilder.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae1347d93eebef8e4be3f80737f4a61745a20eb940f91b5b5ca57c4373f5517"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: NewRuleDefinitionCommand.cs \u2194 HostHelper.cs: \u0060src/PSRule/Commands/NewRuleDefinitionCommand.cs\u0060 and \u0060src/PSRule/Host/HostHelper.cs\u0060 change together 64% of the time (14 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060bea62ac5\u0060 Refactoring (#2982); \u0060697c89fd\u0060 Context refactoring (#2617); \u00601fd2d7c3\u0060 Context refactoring (#2524) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Commands/NewRuleDefinitionCommand.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6343931004aabfd18ed57282f9dbf7e7fb7ae8b7b93d3f510c53a7ba901190a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PipelineBuilderBase.cs \u2194 LegacyRunspaceContext.cs: \u0060src/PSRule/Pipeline/PipelineBuilderBase.cs\u0060 and \u0060src/PSRule/Runtime/LegacyRunspaceContext.cs\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00609b6a23cb\u0060 Refactoring resource cache (#3024); \u0060c56ffbcd\u0060 Fixes bugs with change files #1465 #2777 (#2799) (at that commit the file was still \u0060src/PSRule/Runtime/RunspaceContext.cs\u0060); \u0060454f0d8c\u0060 Code refactoring (#2647) (at that commit the file was still \u0060src/PSRule/Runtime/RunspaceContext.cs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineBuilderBase.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b6549f78a26685d10165b61f88704df037d1ab25c8be1dd7fef57dcc8cb4de"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: HostHelper.cs \u2194 LanguageScope.cs: \u0060src/PSRule/Host/HostHelper.cs\u0060 and \u0060src/PSRule/Runtime/LanguageScope.cs\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060bea62ac5\u0060 Refactoring (#2982); \u0060d2c41912\u0060 Refactoring of language scopes (#2601); \u0060cb7bc0fc\u0060 Fixed problem when binding not set locally #1473 (#1474) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b9e890717f7cb26b4c6ffe0d88b074fba2fb02d709ccf1ab3bc639969c9b39"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: HostState.cs \u2194 PipelineContext.cs: \u0060src/PSRule/Host/HostState.cs\u0060 and \u0060src/PSRule/Pipeline/PipelineContext.cs\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00609b6a23cb\u0060 Refactoring resource cache (#3024); \u0060bb41e561\u0060 Use SHA-512 for name generation #1155 (#1575) (at that commit the file was still \u0060src/PSRule/Host/Host.cs\u0060); \u0060cb799e15\u0060 Fixes could not load Microsoft.Management.Infrastructure #1249 (#1250) (at that commit the file was still \u0060src/PSRule/Host/Host.cs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostState.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3260dec9a87ef888f2ba966b10ecd4e9ed803d2455e9e36017c66c35b6959b78"}},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: ClientContext: \u0060ClientContext\u0060 is a singleton (one shared instance) but mutates instance state outside any lock (LastErrorCode, _OptionPath, Option; e.g. \u0060LastErrorCode\u0060 at line 112)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/ClientContext.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d72316a2b5935067e099da8a82cca5169a573596566e55734ee359b626ddae"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: VersionConstraint: \u0060VersionConstraint\u0060 keeps one instance of itself in the static \u0060Any\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (_Constraints; e.g. \u0060_Constraints\u0060 at line 127)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"beeb0a508a0660985076d7c37a9ab44dea6eae17b86ebae5d856f909f23f2482"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: VersionConstraint: \u0060VersionConstraint\u0060 keeps one instance of itself in the static \u0060Any\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (_ConstraintString, _Constraints; e.g. \u0060_ConstraintString\u0060 at line 142)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/SemanticVersion.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f955c7ccecd093f390474d09be1540bac049b5458db7b971269aefac2cc3717"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: BaselineOption: \u0060BaselineOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (Group; e.g. \u0060Group\u0060 at line 89)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/BaselineOption.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fc5ff036c3446057b7d1f0a09b58a364175e4edbe0d541850a40a7293f250f"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: CapabilityOption: \u0060CapabilityOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (Items; e.g. \u0060Items\u0060 at line 93)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/CapabilityOption.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"954d404fc5e19cf010e9c7919eb637df8ba7e0d32e395bcbada0914e5ba24c53"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: ExecutionOption: \u0060ExecutionOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (Break, HashAlgorithm, DuplicateResourceId, LanguageMode, InitialSessionState, NoMatchingRules; e.g. \u0060Break\u0060 at line 375)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/ExecutionOption.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91efc20008f3a3cd054358d9732d0c34f22fbca9e5285d4c8b5844558a7c3ae"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: OverrideOption: \u0060OverrideOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (Level; e.g. \u0060Level\u0060 at line 94)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/OverrideOption.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"191fcda4d8207ef4f738dd14af84005086077c739b81ed91d3494f081e549aab"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: RunOption: \u0060RunOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (Category, Description; e.g. \u0060Category\u0060 at line 109)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/RunOption.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"94972ee81968a344f88f15e30ddb18767df24f5f981d2fe0df68a4c2d60b6bd3"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: BindingOption: \u0060BindingOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (IgnoreCase, NameSeparator, TargetName, TargetType, UseQualifiedName, Field; e.g. \u0060IgnoreCase\u0060 at line 172)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/BindingOption.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0a8ddfef6e74490268234289ac9837dd82caca48548aadeda642913ad4cdbe"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: ConventionOption: \u0060ConventionOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (Include; e.g. \u0060Include\u0060 at line 80)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/ConventionOption.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf4bcf4069f43e977af3c1fa08a50c38bc8c8f00154063208343d14c1bd158a"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: IncludeOption: \u0060IncludeOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (Path, Module; e.g. \u0060Path\u0060 at line 95)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/IncludeOption.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6a4e9fcbcc59f8e4839c56ecfd27ad2bde3b133bd05e34ec92502d964e5591"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: InputOption: \u0060InputOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (FileObjects, StringFormat, IgnoreGitPath, IgnoreObjectSource, IgnoreRepositoryCommon, IgnoreUnchangedPath; e.g. \u0060FileObjects\u0060 at line 192)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/InputOption.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecca89def026368c53055471e7d218f58e5438798d4209878e47f3f55f1157d"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: OutputOption: \u0060OutputOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (As, Banner, Culture, CsvDetailedColumns, Encoding, Footer; e.g. \u0060As\u0060 at line 230)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/OutputOption.cs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fbf233d8bc33c006f93cba19980bd4c9068bba8d08bfb3fafa14f791e9906a"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: RepositoryOption: \u0060RepositoryOption\u0060 keeps one instance of itself in the static \u0060Default\u0060, so that one instance serves the whole process and is shared by every thread that reaches it \u2014 and it mutates instance state outside any lock (BaseRef, Url; e.g. \u0060BaseRef\u0060 at line 100)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/RepositoryOption.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a70724cb2e211633b6bfe502914b952052aa314c25e99a1818bf81ef04a10a1"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: ConstraintExpression: \u0060ConstraintExpression\u0060 is not registered, but the singleton \u0060VersionConstraint\u0060 creates it and keeps it in \u0060_Constraints\u0060, so one instance outlives every request and is shared by every caller that reaches it \u2014 and it mutates instance state outside any lock (_ExpressionString; e.g. \u0060_ExpressionString\u0060 at line 226)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/SemanticVersion.cs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a982da2d05779e7e807b964964c971f449d0cdd942139fe8a3314564ffaf65a"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: FieldMap: \u0060FieldMap\u0060 is not registered, but the singleton \u0060BindingOption\u0060 creates it and keeps it in \u0060Field\u0060, so one instance outlives every request and is shared by every caller that reaches it \u2014 and it mutates instance state outside any lock (_Map; e.g. \u0060_Map\u0060 at line 83)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/FieldMap.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d256a765cb617e639f06771b281821ec363149a3d0eae8bab5990efcb3df776"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: BaselineOption: \u0060BaselineOption\u0060 is not registered, but the singleton \u0060PSRuleOption\u0060 creates it and keeps it in \u0060Baseline\u0060, so one instance outlives every request and is shared by every caller that reaches it \u2014 and it mutates instance state outside any lock (Group; e.g. \u0060Group\u0060 at line 89)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/BaselineOption.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4a74c5c56c830e2fbf159ae46137beee5c65fb65f1a96868a31a40ab2803f4"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: CapabilityOption: \u0060CapabilityOption\u0060 is not registered, but the singleton \u0060PSRuleOption\u0060 creates it and keeps it in \u0060Capabilities\u0060, so one instance outlives every request and is shared by every caller that reaches it \u2014 and it mutates instance state outside any lock (Items; e.g. \u0060Items\u0060 at line 93)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/CapabilityOption.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd8cd8c5d0578dd5b07391b47014df939834fca2682d248ee06077a71056241"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: ExecutionOption: \u0060ExecutionOption\u0060 is not registered, but the singleton \u0060PSRuleOption\u0060 creates it and keeps it in \u0060Execution\u0060, so one instance outlives every request and is shared by every caller that reaches it \u2014 and it mutates instance state outside any lock (Break, HashAlgorithm, DuplicateResourceId, LanguageMode, InitialSessionState, NoMatchingRules; e.g. \u0060Break\u0060 at line 375)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/ExecutionOption.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e1e6378ad25d2ca7322b339239502c25323542db2b47b1ae7c1d961d9bb376"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: OverrideOption: \u0060OverrideOption\u0060 is not registered, but the singleton \u0060PSRuleOption\u0060 creates it and keeps it in \u0060Override\u0060, so one instance outlives every request and is shared by every caller that reaches it \u2014 and it mutates instance state outside any lock (Level; e.g. \u0060Level\u0060 at line 94)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/OverrideOption.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"245d40a8b91231b89b16893f19840d318efc35b7b6d2c836aa178e0e08c5dcbf"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: RunOption: \u0060RunOption\u0060 is not registered, but the singleton \u0060PSRuleOption\u0060 creates it and keeps it in \u0060Run\u0060, so one instance outlives every request and is shared by every caller that reaches it \u2014 and it mutates instance state outside any lock (Category, Description; e.g. \u0060Category\u0060 at line 109)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/RunOption.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93259eed148794a6044ff89b53a79924cd34f5e8f90d6a37fb53296476daed9"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful shared instance: SuppressionOption: \u0060SuppressionOption\u0060 is not registered, but the singleton \u0060PSRuleOption\u0060 creates it and keeps it in \u0060Suppression\u0060, so one instance outlives every request and is shared by every caller that reaches it \u2014 and it mutates instance state outside any lock (_Rules; e.g. \u0060_Rules\u0060 at line 42)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/SuppressionOption.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"684cedae97f5f055cd63c1813342e5e3f9d8730ddad344bf8226bf73342319d6"}},{"ruleId":"AX2","level":"warning","message":{"text":"Process-global static state: Environment: \u0060Environment\u0060 keeps mutable \u0060static\u0060 state \u2014 one slot for the whole process, shared by every thread that reaches the type however its instances are created \u2014 and mutates it outside any lock (_CurrentCulture, _GetWorkingPath; e.g. \u0060_CurrentCulture\u0060 at line 76). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Environment.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d962019326e856da819d76f4decc59b27be1bda46332b59dda3fa0166f38a77e"}},{"ruleId":"AX2","level":"warning","message":{"text":"Process-global static state: BadgeResources: \u0060BadgeResources\u0060 keeps mutable \u0060static\u0060 state \u2014 one slot for the whole process, shared by every thread that reaches the type however its instances are created \u2014 and mutates it outside any lock (_Char, _Width; e.g. \u0060_Char\u0060 at line 36). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Badges/BadgeResources.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacf3a1c8ae25d2304aa6b7f9378957f0742ea6b4abaf7e32753f38856aeba4a"}},{"ruleId":"AX3","level":"error","message":{"text":"Namespace dependency cycle: The namespaces PSRule \u2194 PSRule.Badges \u2194 PSRule.Configuration \u2194 PSRule.Definitions \u2194 PSRule.Definitions.Baselines \u2194 PSRule.Definitions.Conventions \u2194 PSRule.Definitions.Expressions \u2194 PSRule.Definitions.ModuleConfigs \u2194 PSRule.Definitions.Rules \u2194 PSRule.Definitions.Selectors \u2194 PSRule.Definitions.SuppressionGroups \u2194 PSRule.Emitters \u2194 PSRule.Help \u2194 PSRule.Options \u2194 PSRule.Pipeline \u2194 PSRule.Pipeline.Dependencies \u2194 PSRule.Pipeline.Formatters \u2194 PSRule.Pipeline.Output \u2194 PSRule.Pipeline.Runs \u2194 PSRule.Rules \u2194 PSRule.Runtime \u2194 PSRule.Runtime.Binding \u2194 PSRule.Runtime.ObjectPath \u2194 PSRule.Runtime.Scripting depend on each other. The lightest dependency in the cycle is PSRule \u2192 PSRule.Definitions.Expressions (PSRule.ExpressionContextExtensions \u2192 PSRule.Definitions.Expressions.IExpressionContext, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ExpressionContextExtensions.cs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"719ebbdf108b048b39fd9876f9490c19cb4ce37c7b3ef9aa7c1b37ce1a9dc614"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: IExecutionOption (16 members): \u0060IExecutionOption\u0060 declares 16 members: \u0060Break\u0060, \u0060DuplicateResourceId\u0060, \u0060HashAlgorithm\u0060, \u0060LanguageMode\u0060, \u0060InitialSessionState\u0060, \u0060NoMatchingRules\u0060, \u0060NoValidInput\u0060, \u0060NoValidSources\u0060, \u0060RestrictScriptSource\u0060, \u0060SuppressionGroupExpired\u0060, \u0060RuleExcluded\u0060, \u0060RuleSuppressed\u0060, \u0060AliasReference\u0060, \u0060RuleInconclusive\u0060, \u0060InvariantCulture\u0060, \u0060UnprocessedObject\u0060. Counted as the author wrote them \u2014 a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Options/IExecutionOption.cs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c766444fc24c61794eef5fef667829310fb1e407fe4080fdf24d59552e8d3b"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ILanguageScope (16 members): \u0060ILanguageScope\u0060 declares 16 members: \u0060Name\u0060, \u0060GetBindingComparer\u0060, \u0060Culture\u0060, \u0060Configure\u0060, \u0060TryConfigurationValue\u0060, \u0060WithFilter\u0060, \u0060GetFilter\u0060, \u0060AddService\u0060, \u0060ConfigureServices\u0060, \u0060GetService\u0060, \u0060GetEmitters\u0060, \u0060Bind\u0060, \u0060TryGetType\u0060, \u0060TryGetName\u0060, \u0060TryGetOverride\u0060, \u0060ToConfiguration\u0060. Counted as the author wrote them \u2014 a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ILanguageScope.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"432288376c91c468ac8524a95e4b5f2341438f006450564903e4d33721625cf0"}},{"ruleId":"AX9","level":"error","message":{"text":"Query handler writes persistent state 3 calls away, in PathBuilder.Add: Handlers.RunAnalysisCommandHandler: \u0060Handlers.RunAnalysisCommandHandler\u0060 is a read (query) handler but its body writes persistent state 3 calls away, in PathBuilder.Add \u2014 a query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Handlers/RunAnalysisCommandHandler.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9280f0adb849bef3e6bd427cf4491494dccbc95cd6e1ce797e04fec9b4740f"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Json/StringMapJsonConverter.cs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"01dfac810da1298af7fb35db6f1b79fd64cac0fbf5af9e515a9772694b90486e"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/JsonConverters.cs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"365aba1b47cb97b4d1fbc320ef4c74537fc7546b24f7d1fc68b8f63088fa9bd5"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"809edbddabed42244868db3ac9ebf956150ba1b979e4156219ef4c3c8080feda"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe3ba97c98a7cc2efa33d02e2e713622ee4605a653ed24371fb755907e247c4"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ae96d6ebb2a3d0ed7d191c14468bf9129e748830583da691af28cc864e8c14"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a207f6cd9ada59730834fe016c64e3269a5cbb396e82efe11a3e719763eb52d"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2482b71499c533f2a7368b29fcef1e7a156679ee62a6a18dd3e0af66a9f097a"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd859971254d9be1105b2bb93d04de1e6a02f27f2568d94383d126f98be59a37"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a171d8ad52bf73c2055b6a525ee0eeb81abea4b6e31e2ddcc7206f1c7478cb9"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"56211b5c7bc5f85213b65acabff77b265254e5a2a5af8dc17e27909fd74ffbae"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89c0af52c4b74b27b5ff7e936557dbe8b01493634472766e638b46439e5b08d"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6be354a9a0dce93780a1bbd1c03f1337b907af674f4cc12ea491f8e4558e08e"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e10e92f173d9a6bdd5b1fb0bdcd89c24545d7121945cbcd5f78240e8da3badb"}},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: A shipped member still throws NotImplementedException \u2014 generated scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c5ca7157e2cdcfc877dc5350d2c9fe717d067dc49b484c3ff392fbdf9cd7f5"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060ModuleListAsync\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"331d165d2ec0cd91b12cc147eafcf501a97f0827baf9c428774171915d2301a6"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060ModuleRemoveAsync\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"810a53450450d7226a622a60b6f01a93b7290b6884467159f100cf52cc247b68"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060ReadJson\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/Json/StringMapJsonConverter.cs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d48533813034a67f7686dd23180ef81f1257b6d837ef759bf62ba8bcf5a56b4"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060WriteJson\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/JsonConverters.cs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2397bd9e374c867293062a8fc59cc30d3b483a528d329734a71097fbb19be302"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060WriteYaml\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/YamlConverters.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfc4e1a74f0aac4bef43c268392852baf439022bfa026e47a759b7ffeb4fc8f"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060Invalid\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Expressions/LanguageExpressions.cs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1680b64f25d0fc046bd7db45f7731329e66ef256248869381a3fb022d49322"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060ReadAsync\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"496eb6f2fc05c66254d0c7cdce8e6261d54bddadcd2d5003edd26102fba3fd4a"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060ReadLineAsync\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c9efcf803983c4e842fdb2b179be55e56416f55d940d196b7afda961ed1754"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060ReadBlock\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92633ee2d9bc943460c309272738e4a84d51ff942347c14ab1af7cef5760de1"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060ReadBlockAsync\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"58142f3a0ffa1cead368667f7c8141d368317eddaf8dd078bcc108d2376ca734"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060ReadToEndAsync\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/ReplaceTextReader.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"029220ae79556baa31895291f198ee524891fe6861d94aa495ff3983c81f5b07"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060ConfigureBinding\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineBuilderBase.cs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"0234bf07e66043cee8f09813e9dced30e5348cc2677d065230ba852964a41c69"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished branch \u2014 throws NotImplementedException: The \u0060default:\u0060 section (reached by \u0060Unknown\u0060, \u0060SuppressionGroupExpired\u0060, \u0060AliasReference\u0060, \u0060RuleExcluded\u0060) throws \u0060NotImplementedException\u0060 while the member\u0027s other paths do the work \u2014 the branch was never written, so every input that reaches it fails at run time. Implement the branch, or reject the input where it enters with an exception that says it is not supported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd0260f21cc44a9f02fb22912bf64af3148939fc8c9212738cc0c9008b97c8e"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished branch \u2014 throws NotImplementedException: The \u0060default:\u0060 section (reached by \u0060Unknown\u0060, \u0060SuppressionGroupExpired\u0060) throws \u0060NotImplementedException\u0060 while the member\u0027s other paths do the work \u2014 the branch was never written, so every input that reaches it fails at run time. Implement the branch, or reject the input where it enters with an exception that says it is not supported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32a77c35f84cf95611d62b46fc236458c4d95f19ccf20dffb6f292789b7dde3"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060Kind\u0060 is a shipped property whose accessors only throw NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef15a2fc01ba145a7afbb65108a25912773ce36dad35b47d5bc093607189116a"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060LanguageScope\u0060 is a shipped property whose accessors only throw NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b65e40bd820c22cb17d0fa1e3b00d18cb10bce2ce2af2337430e54cb3aafd1"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished branch \u2014 throws NotImplementedException: The \u0060default:\u0060 section (reached by \u0060Unknown\u0060, \u0060SuppressionGroupExpired\u0060) throws \u0060NotImplementedException\u0060 while the member\u0027s other paths do the work \u2014 the branch was never written, so every input that reaches it fails at run time. Implement the branch, or reject the input where it enters with an exception that says it is not supported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"426f98b8b0f18bdc989666dd69c7a198b934077bafbeb37bed71b322eb6d8549"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060GetPathExpression\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe69e2c20c41c073ad90d0b10765a234f243a9a9ad3e41bad98109868aa12f2"}},{"ruleId":"IC1","level":"warning","message":{"text":"Unfinished stub \u2014 throws NotImplementedException: \u0060CachePathExpression\u0060 is a shipped member whose whole body throws NotImplementedException \u2014 scaffolding that was never completed. Implement it or remove the dead surface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"4547b6baf81048d63953a57571b434ad06e8e2f14db091229f9585a450177338"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae6bd93f4f3e944d34413ef2a1c2cc33e2064e4c6e1a58d69f6cd6655f157e1"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f9cc170d43c268ab6d99de6ac86c3a294480dd3ad975ffa1d569a890c73411"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/ITargetObjectExtensions.cs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de2fed32614c7af94164200bcb2f0793c19dedcdc7d260f001febbf9ef61e37"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/ITargetObjectExtensions.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"644c341ce07c6fc8a5d1f666497fb251c08cd9611b059d2a8220f58c4fbf3969"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Commands/ExportConventionCommand.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4642ba3455b174f2e6423f62cbf6ddf605c518b8fb8c3a991fbe9b6ee0987275"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Commands/NewRuleDefinitionCommand.cs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b500f983f394e52b37c12fd36bf328e70856663e5930f2b2cd04d5b4689742"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/MarkdownEmitter.cs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b0304e858695982c7224707aff3b40a8ee35b8e6693d50afef9da35212ead1"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/MarkdownEmitter.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c11a47ff14dc8859ce090f31b58adac4abbd6744158b581e0b40757d2bab9b7"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/MarkdownEmitter.cs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbada07b72ec98a6fe45444c031273601e32fa02b5d835274583b6cfcacc0f9"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/MarkdownEmitter.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf20ce1186ba24e7c3ce3e871a05faae5e03c2d9f4ac7d038d8a30ff12fbaf01"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/PowerShellDataEmitter.cs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f1803a3c6af1fdeaa4d38819462a1dd4716c677f8ba6062f77d4d5921fda2b"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/PowerShellDataEmitter.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f5a8bdbd8fa8eea936b1950566fc9888707768ce83d8f50ca007df122bfce4"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/PowerShellDataEmitter.cs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fa8f4e492bee89f81fd0a8716d9ddd1ba5c99bd774915663bed7eff3afcb85"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/PowerShellDataEmitter.cs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0eb81737ba2fe07028816482b901d902312968617167641ee1f8a73ca3a255"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/YamlEmitter.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ae307f804f827c7de49002aa4ff1224ffd32ca3dfb856436d7c91feda4d247"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/YamlEmitter.cs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7e17cf0c2a58ff425947a3558664db026ad3216afc3c2954da8b1bd977bc84"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/YamlEmitter.cs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"87576bf0f198fbf0f6afb34b094bf42fe7ac8732a86521ac4fc33b33e782ab11"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/YamlEmitter.cs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fa11f92fbfe9f602da3e6f4bf4ba78ada8ab9832b48ebc18e0b25371dbf6ae"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fefff1cfe5725d864af041bb2bead299ff23a5c0ca592727e08a62d8c69f853"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4afec527927928da0ca9406e2abdec36619ab692ed0991b450da7979a70d4b1"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"10932b9b443c3cf5a3ff5588de46bafd4fadbf865da9bdeb770122586e219f77"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae64b9c9c01f6b2e4c8c89fd1e89b229cd3a530e20c0a6431436a64b751c95b"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/InvokeRulePipeline.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"545705e26e710d3f7bc0b6c7c3bcf779112ddec48c34254ab4f96cb35e27b3d8"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/InvokeRulePipeline.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"af650a751a88cff9734589c5795da6156da2cc98b0bf470ea50dbc255200c138"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/InvokeRulePipeline.cs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e46b2d25798452c5e2303183b599d24735051b317376673e6ecf10155209d46"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"78817421b1b3d5d7dccc1fd03944fb624f0697b3b14332ffd68c383040174184"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c465792d2def76cc9468a800e354f2b67f27c43c75b3c92bd5887c8c15179a6"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a0f551b0f2f3043c2a74041e784c4654570bf41dcc8467ff37550b5f625dd7"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"913259e67fee01a5a3422b9b0915d68c87b256c4054cf5be64d535d6a2ab2652"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a6c4c5a7f46782b9644f3ebc06c3e5ad27fd5d0aea756f59d94ceab6ca90c0"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98e63bad7472e45c035a8f40edc56cad74dcdcf90f2199c55bec95de5be3b16"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4bf5c1f2332ab18ab5faba021f47cf9a1e0657ee171d317fc83d53207173ca"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e816516c09182802a2e79de89fe5a158e6968ea7b69ef97576d18c93b99ff7e9"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49910f8ad2a01b7c11cf55df020b394a6e52608c8bf2c8babbbdef9e3bd0a61"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/OptionContextBuilder.cs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1c5656a384ed294d097dfefe606e2f114f39cac6429a1895734691c275bd77"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PSHostContext.cs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13f5c555009de2f4daf2eaa3b653d8123ac333cd452fcbe45f62dee148d32bb"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineBuilderBase.cs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a6c9ed41ff67fbd3a2da96e343405007d8612bb56500768aec1c7bdab7fbfe"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineBuilderBase.cs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"774c9947640bb85969da3a0d5c0d54c23df80f19d40370fdfe3f3eacd3860405"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f13b87fd8a834294c0ddea2205a8d90d52583c09bf67e6ea08e1cfecba9eeb"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b3c08e38ce149278347f636bc34501e058cc059492f39745079c5262d48d5a"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f502561be23231313715f1f949dd7cbc831f8ef0d1ce0376aa62cc6fb66942a"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"264c1d57814a3b09199a0cb4ff04f90e2977c02a8137a7db62aefc8077026762"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e24303f51dad085cfbee19badea2c05c31e2bf1ca5905881a3f633b26cb7ac7"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec8194366cd87305e35ea8c79c3d0ca6b10164c77e75d2748e07b1f4ad9f507"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResourceCache.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bbb09be01b5876f8b2324312eee195bf62ad35afd2213ff456726324b075fe"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"616783a0b229323e6ff649f3626fcc029baab4c4980d72d60f04474e76176ff6"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"439d68a15d97194f9f02181ea139d08cb37a23ba8b0daa59afeaa7766039ed3d"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eebcbcdbac7247d295405ed30887fdab540659b676ea9d4b96c1e7fad10e7b0"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9b94b9fab5ad4a83a447ac108774ad88cd5a76734360534d1fde578c8d4331"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"686fcbedb91306c12fa39bd18e24f8fc25778a76ff9ded806473ae3a9ab634e8"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b20da62bdea5cd43c1fdf1db4ce93ed8d4ae9df696bf2361d81584809083e8e"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bbb53dcad982aeb4a98d8682eca6fd740cb55e48a14ef7994d1f502e3f8e46"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeed438c2ab67b2ad80134a6e28fadc507509b158f1ea93337295e1b345bcada"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba92fa91bb63002eb6c77d0342c7e8fae348295d1695c748c13fdc57ed2b3779"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde6860542fc5b55b3ac6762629de2dd6a674c3c237d755fbbb59619a533e06e"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f3c46a2ea813a34a8436fd81e28cad4b0b4022b268801391b5feb4ef88798b"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6fce40b265d36a7f74caa3b848ac570eae05d4fbdd89b5fe98fff610d604bc"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunRuleGraphBuilder.cs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2d4a0520fb76729becda2a49f79ffc2ec4a69876912f061c1616393abbee3d"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/SourcePipelineBuilder.cs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3806e1501cdf65a6ce99c33d5756169cbfc9c2e353fc40ae58aa1b9a7ea48a0a"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/SourcePipelineBuilder.cs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b836b2bb8db8ee6fcd08e6816b67a8771d40c1d166225866171acf4613221ff"}},{"ruleId":"IC1","level":"note","message":{"text":"Commented-out code: A line of code has been commented out rather than removed \u2014 dead weight that rots and confuses. Delete it (version control remembers)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"db446afcf72ea4163c016de35494ff80abf2b196bad0510659e865faddeb4639"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.EditorServices.Handlers.RunAnalysisCommandHandler\u0060 (src/PSRule.EditorServices/Handlers/RunAnalysisCommandHandler.cs:19) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.EditorServices.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Handlers/RunAnalysisCommandHandler.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbb5949fed8a20543438947de9816c709472ae71562f6fe0a466758341d522e"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.EditorServices.Handlers.UpgradeDependencyCommandHandler\u0060 (src/PSRule.EditorServices/Handlers/UpgradeDependencyCommandHandler.cs:18) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.EditorServices.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Handlers/UpgradeDependencyCommandHandler.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f66fa8f77b983a14b846b0e54c1343c14f5031f2a86796931dcdcce35f944a"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.EditorServices.Handlers.WorkspaceChangeWatcherHandler\u0060 (src/PSRule.EditorServices/Handlers/WorkspaceChangeWatcherHandler.cs:16) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.EditorServices.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Handlers/WorkspaceChangeWatcherHandler.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4220143e89778accdd3a04c7f6f9e136973a2404ed8ceaf66961e57cb647f7a7"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.ReadOnlyHashtable\u0060 (src/PSRule/Common/ReadOnlyHashtable.cs:11) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ReadOnlyHashtable.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6938fa0d5b22a39e9bffa43e126cd46231b79a3bcd12095df22129feb510bd35"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.Configuration.BindTargetName\u0060 (src/PSRule/Configuration/PipelineHook.cs:9) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/PipelineHook.cs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e920811426d1887d06094426bb125d122ba8a44ac199a2c323ab6128417fb591"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.Definitions.IScopeConfig\u0060 (src/PSRule/Definitions/IScopeConfig.cs:13) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/IScopeConfig.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"131da3c022d2553d2e36f44e7d895329a6184a72953eafa13f78ee034d7d35dd"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.Definitions.ResourceObject\u0060 (src/PSRule/Definitions/ResourceObject.cs:13) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/ResourceObject.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"11eb5c2a3ffef5d97e3fdb2685e66c235289c47cba481884afe44af393ef1ba8"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.Definitions.ResultReason\u0060 (src/PSRule/Definitions/ResultReason.cs:11) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/ResultReason.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ec1b44230ff0482096d120580445ec286ede7962d2c55aa355e0499f632006"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.Rules.RuleSummaryRecord\u0060 (src/PSRule/Rules/RuleSummaryRecord.cs:15) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Rules/RuleSummaryRecord.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"35998b4380207e74a1c6649da0cc64d6e9cb3000b61bf71aca3df0b7c58c669d"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.Runtime.LocalizedData\u0060 (src/PSRule/Runtime/LocalizedData.cs:13) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LocalizedData.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7f19aab0269da1980b2df045abdaf2e51404b94452aa15d0c8f5db68703353"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.Runtime.PSRule\u0060 (src/PSRule/Runtime/PSRule.cs:18) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/PSRule.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67d24547e54d56101914ad1077611f07c9e1b1bcc9d05e0d1b771aba0a76625"}},{"ruleId":"P10","level":"note","message":{"text":"Public type used only inside its own library: \u0060PSRule.Runtime.Rule\u0060 (src/PSRule/Runtime/Rule.cs:11) is public, and the library\u0027s own code uses it, but no other project in this repository uses it (read: \u0060PSRule.Benchmark\u0060, \u0060PSRule.CommandLine\u0060, \u0060PSRule.CommandLine.Tests\u0060, \u0060PSRule.EditorServices\u0060, \u0060PSRule.EditorServices.Tests\u0060, \u0060PSRule.SDK\u0060, \u0060PSRule.Tests\u0060, \u0060PSRule.Tool\u0060, \u0060PSRule.Tool.Tests\u0060) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/Rule.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2569165005ea601abf1dbe67cf8ceba5095cd5f2c5fa02b648d04986e8bc3879"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060cp.spawnSync\u0060 in \u0060callback to window.withProgress\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/initLock.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08dbbecd6f8e85e1f4803693a164f14964328c2c2179efee73c51cbeab414c6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fse.existsSync\u0060 in \u0060getOptionFile\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/openOptionsFile.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"533b2637e043ba66dda1c4ef3a1cd2cb498f22d95cb274322371a9c8597cfaa1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060cp.spawnSync\u0060 in \u0060callback to window.withProgress\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/restore.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfc5b5b075b54f4b282a8810c74de5e17736f6c726b276ad14e5061fa179dbc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fse.readdirSync\u0060 in \u0060callback to workspacePaths.map\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/features/scanQuickpick/scanQuickpick.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c440d716e0fd2b6f9d2dc7ca7c3bd14623e02ae7a13e35d4cacc0506158800"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060cp.spawnSync\u0060 in \u0060getLanguageServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/utils.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69d6a8c9477a61317c9d53c499557aea9b163212c1326b6eeb75040c1cf669a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): Only 0/18 awaits in library code use ConfigureAwait(false). A library that captures the caller\u0027s context can stall or deadlock its host \u2014 the classic way a dependency drags an app down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9409e0163ea155fbf96ac6090b9aebd32c62808d0aee4aa2a31f3d049418befc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await FindVersionAsync(module, null, targetVersion, null, cancellationToken)\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dcdc2cb4ac8c61f0ac1a04bb9e62069a01678c05ab99489c6e46b719cbefc7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await InstallVersionAsync(clientContext, module, idealVersion, kv.Value.Integrity, ...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29ec21a78a22cdc0e11e1c2a51f9fe897d266c0e20b0a2dc19300f7d14f194c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await FindVersionAsync(includeModule, moduleConstraint, null, null, cancellationToken)\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ad7812390638370fe7176f8c7f3cbd4cf68f128f3d9db0b0c483369e827dcc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await InstallVersionAsync(clientContext, includeModule, idealVersion, null, cancell...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e4aaade1e3c9d359cdd92925e93d41d83ffb4faec5f40a89ba8eb0f873dde1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await FindVersionAsync(includeModule, moduleConstraint, null, null, cancellationToken)\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a3f4d07427e4ce274cf7d4017773aec4b245a6beff440557d48cbba4743b43"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await InstallVersionAsync(clientContext, includeModule, idealVersion, null, cancell...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f667c3d8d8bb92af5da775243695653f573d8ba452740385bea6c090bfdb69b7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await FindVersionAsync(module, moduleConstraint, targetVersion, null, cancellationT...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9ff55781662f6baa6723f7934aaea8f6dd190450e053586c9f9bedab19ac9d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await InstallVersionAsync(clientContext, module, idealVersion, null, cancellationTo...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"154353cb8d04ed4fd1c895d5e6217f00a9acadfe06d6e15c25598736e308866c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await FindVersionAsync(kv.Key, moduleConstraint, null, null, cancellationToken)\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6566fa04674c9106ba7e522ebe8dce76a36d68be941923bc091b8f46cc434b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await InstallVersionAsync(clientContext, kv.Key, idealVersion, null, cancellationTo...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b89036206a028bf7c2dd00113ccb4f93af13ec45afea795a2d069c9421c20c1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await GetSourceRepositoryAsync()\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"005c189552e9c0cc073df03122dfe79f366f784680d0816322b55e25a31a28a6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await resource.GetAllVersionsAsync(module, cache, logger, cancellationToken)\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ecbf6f2461d9d6a293a3b89a7154176070be660eabf75d472881d9fb64d86e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await GetSourceRepositoryAsync()\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c70da7e7b94659091d9d413d39492bae13c60a88541c99b09a6824e23e211b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await resource.CopyNupkgToStreamAsync( name, packageVersion, packageStream, cache, ...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"929cc30ddd7cded8bca10e8204c15036f18ab530dc1f189f9e61d8d47166d42a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await packageReader.GetNuspecReaderAsync(cancellationToken)\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed36accb2e5887086373ca4e371bf14a302e1cd319b1ad0fb79d4d43569bbcb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await repository.GetResourceAsync\u003CFindPackageByIdResource\u003E()\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d45b4ea6dbba927abf8978dc16d9299473d2601812f778e5a140483e874929"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await ModuleCommand.ModuleRestoreAsync(new RestoreOptions { Path = operationOptions...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/RunCommand.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c3ab53672c59881ea774d2ef63afe6a0206a37a5d1586b5c88e0708fec4256"}},{"ruleId":"PF3","level":"warning","message":{"text":"Awaits without ConfigureAwait(false): \u0060await Task.FromResult(new CommandResult\u003CIReadOnlyCollection\u003CInvokeResult\u003E\u003E(exitCode...\u0060 resumes on the caller\u0027s captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock \u2014 append \u0060.ConfigureAwait(false)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/RunCommand.cs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"26246db5ad1ff6747742ef834676957c7f74d34767ae8513edf21c3ff030ff19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (40 matched lines \u00D7 2 locations): src/vscode-ps-rule/dependencyLens.ts:26 \u00B7 src/vscode-ps-rule/docLens.ts:38 \u2014 the two spans are one implementation copied and then locally edited \u2014 301 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/dependencyLens.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"364dbaeefecfe75e1b234650877552e251b86ec593a6d1dac6a9165ad4dea624"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): src/vscode-ps-rule/commands/initLock.ts:14 \u00B7 src/vscode-ps-rule/commands/restore.ts:14 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/initLock.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b61fe4b952af9066b0503676c9b6657dd4a857c2daa278bba3e2d1f31a76873"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/vscode-ps-rule/extension.ts:255 \u00B7 src/vscode-ps-rule/extension.ts:285 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/extension.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb21dc0fb5e9a180d085068dc89618c7ee6076bf807b39e19dc1e2dfd5bc8568"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/vscode-ps-rule/commands/createOptionsFile.ts:32 \u00B7 src/vscode-ps-rule/commands/createOrEditDocumentation.ts:30 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/createOptionsFile.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bd496b6febd9849fe00afbebb074d5e723a0250921ade61548dd61bcf40979"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/vscode-ps-rule/utils.ts:66 \u00B7 src/vscode-ps-rule/utils.ts:87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/utils.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1872e6b2dcbd6aeadc4aa94411dab679f98042ec00b84aa686d94b6cb3fb5d4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function upgradeDependency (cyclomatic 19, cognitive 30): upgradeDependency has cyclomatic complexity 19 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/upgradeDependency.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"29561a3a76211b0b7d6ed5332b76ff37032fa0881b902883e6d5de0258f0df5d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getCmdTooling (cyclomatic 18, cognitive 21): getCmdTooling has cyclomatic complexity 18 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/runner.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"352d3bcaae871600426ade333397b575c6adad7494521df75f647f4449dfa69f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createOptionsFile (cyclomatic 12, cognitive 16): createOptionsFile has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/createOptionsFile.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96882d58d9944aeec8dc7fa9e8fb0c94ef9e4ef6ebc91e708e14459d13a60a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getOptionFile (cyclomatic 11, cognitive 9): getOptionFile has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/commands/openOptionsFile.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"494ea3aa352bd9c841466f70b02f70e2371b22b1d0d4a983d3c07ad0d9174056"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"esbuild.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c923e5394364a322ed8750b441dee5314105578e0108ed6cac0374ab6a728050"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5da7af697d9cb5d8a732577158c4b965366863e6f54eebfe9ce68b7367ba47"}},{"ruleId":"R6","level":"warning","message":{"text":"This package\u0027s lint script runs in no CI job: The root package declares the lint script \u0060zzz_lint\u0060 (\u0060eslint . --ext .ts,.tsx\u0060), but no step of this repository\u0027s CI runs it, by name, through another script, a Makefile target or a workspace runner, and no CI step runs the linter over the package itself. The rules it sets are enforced nowhere a pull request can fail. Run it in CI: a step that runs \u0060npm run zzz_lint\u0060 in \u0060.\u0060 (or the workspace\u0027s task runner)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a99e059e3a0cba570f525a46a8aa11293b8fdff66bdcbb6aab0186748d534a1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027docLensProvider\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/extension.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"49767bacc233767817cf7e720ed455e76c8ffc9c58360510e810ddc9dd317770"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027lockLensProvider\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/extension.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"def5fd97fb17601a47de32928ac7fb5eb66e9784513a7c572c133c82182456fd"}},{"ruleId":"R7","level":"note","message":{"text":"Write-only private field \u0027context\u0027: This private field is assigned but never read: every reference in its class is a plain assignment, no string key or test reads it by name, and the instance never escapes as a whole (so nothing serialises or destructures it). The value it holds is dead state \u2014 read it where it was meant to take effect, or remove the field and its assignments."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/dependencyLens.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa5fa01be7157a05a90cb0c1ebd8821364eaa780ddd6d83e77d164e9b94e7df"}},{"ruleId":"R7","level":"note","message":{"text":"Write-only private field \u0027context\u0027: This private field is assigned but never read: every reference in its class is a plain assignment, no string key or test reads it by name, and the instance never escapes as a whole (so nothing serialises or destructures it). The value it holds is dead state \u2014 read it where it was meant to take effect, or remove the field and its assignments."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/docLens.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c503a583e569d165e89b1b6b71b261d24fdd667312956722be44a33e504c0d02"}},{"ruleId":"R7","level":"note","message":{"text":"Unused private field \u0027sharedState\u0027: Nothing in its class reads or assigns this private field (for a constructor parameter property: it is stored and never read), and no string key or test reaches it by name. Remove it, or use it where it was meant to take effect."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/tasks.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a40a5cf52c53d12c6b353c3e7f684ecd7e686fcdade08462ad1a6fb55eec12"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): src/vscode-ps-rule/client.ts \u2192 src/vscode-ps-rule/extension.ts \u2192 src/vscode-ps-rule/client.ts (one verified cycle inside a mutually-dependent group of 17 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vscode-ps-rule/client.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"10314f96d749b499c42cef8a857937e0b8024941dd38c88c67af8f465a9eda4b"}},{"ruleId":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060https://giscus.app/client.js\u0060 is executed by this page with no Subresource Integrity. Whoever can answer that request \u2014 the CDN, anyone who compromises it, anyone on the network path \u2014 runs arbitrary script in this page\u0027s origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time \u2014 the executed bytes can change with nobody touching this repository. 2 such include(s) across the repository\u0027s markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"overrides/partials/giscus.html"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"28039f18036a966dc04aa78fb50043730d692b04a2d57edc0779c7d300961b8f"}},{"ruleId":"X1","level":"warning","message":{"text":"Blocking \u0060ModuleCommand.Retry\u0060 inside an \u0060async\u0060 method: \u0060ModuleCommand.Retry\u0060 is a synchronous helper that blocks (\u0060Thread.Sleep\u0060): called from an \u0060async\u0060 method it parks the thread exactly as the inline call would. Make the helper \u0060async\u0060 and \u0060await\u0060 it (\u0060await Task.Delay\u0060, \u0060SemaphoreSlim.WaitAsync\u0060, a \u0060TaskCompletionSource\u0060 instead of the poll)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ff8d6e19338a36f7d194f762a05b40684e76770d1a4d937cf7a4cd26d2eb21"}},{"ruleId":"X1","level":"warning","message":{"text":"Blocking \u0060ModuleCommand.Retry\u0060 inside an \u0060async\u0060 method: \u0060ModuleCommand.Retry\u0060 is a synchronous helper that blocks (\u0060Thread.Sleep\u0060): called from an \u0060async\u0060 method it parks the thread exactly as the inline call would. Make the helper \u0060async\u0060 and \u0060await\u0060 it (\u0060await Task.Delay\u0060, \u0060SemaphoreSlim.WaitAsync\u0060, a \u0060TaskCompletionSource\u0060 instead of the poll)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a852149072df0a1f8719e5d5c4109459e9044fa2497ac54e1e108fdce044218"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!EOF \u0026\u0026 IsPrereleaseChar(_Current, ref numeric)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca245dfb4a2af9058e8b2275c321fbc7942f0cf740723dc06a942690bd3b1bbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!RequireModules() || !RequireWorkspaceCapabilities() || !RequireSources()\u0060 appears character-identically in 2 files \u2014 src/PSRule/Pipeline/AssertPipelineBuilder.cs, src/PSRule/Pipeline/InvokePipelineBuilderBase.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/AssertPipelineBuilder.cs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e632a1ecb71eca58fa7e54867a270d9e51720dfb940aeb4881752102be55162c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_IncludePrerelease \u0026\u0026 Stable \u0026\u0026 !IsStable(prid)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf13219ec1873aaaba9e19177d4432efc11b3a61d77f26ec3fc1c4278a09be94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_RaisedUsingInvariantCulture \u0026\u0026 (cultures == null || cultures.Length == 0)\u0060 appears character-identically in 3 files \u2014 src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs, src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs, src/PSRule/Runtime/LegacyRunspaceContext.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"908a3cc22fa45c8a7c302ac8435a9b007e6fcd0b7c8c6374d39aa406276e5825"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!string.IsNullOrEmpty(key) \u0026\u0026 _Map.TryGetValue(key, out var value)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/KeyMap.cs, src/PSRule.Types/Data/StringArrayMap.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/KeyMap.cs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb2de3ace75f1ef8252955f0a509e7d5513adf6e3333a8441df733f29922a5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(_Current == SPACE || _Current == PIPE) \u0026\u0026 !EOF\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3bfa103c25d82ffc0c7bca3b2288105a2b4f33a1ab3899d760fd1ff959a2cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(nc \u003E= 0x41 \u0026\u0026 nc \u003C= 0x5a) || (nc \u003E= 0x61 \u0026\u0026 nc \u003C= 0x7a)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"012803d854f44cfef38bfd76f05a670813bb39f9bf23d1c3077e87ff4a5e4c51"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryString(\u0022INPUT_BASELINE\u0022, out var baseline) \u0026\u0026 !string.IsNullOrWhiteSpace(baseline)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7f2d1cf9a1e555f9d42ec94c51587a3f362c7f26de639403815496c29b4392"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryString(\u0022INPUT_INCLUDEPATH\u0022, out var includePath) \u0026\u0026 !string.IsNullOrWhiteSpace(includePath)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ae5c7ae89d03453cb099447ee0b040ed078107c8d701cdf912cb2ecc5bee5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryString(\u0022INPUT_INPUTPATH\u0022, out var inputPath) \u0026\u0026 !string.IsNullOrWhiteSpace(inputPath)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"827ebd81da44599ca846639976c78a0043de5e755d1713aebaa9c16284650113"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryString(\u0022INPUT_OPTION\u0022, out var option) \u0026\u0026 !string.IsNullOrWhiteSpace(option)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"97971cfe186c2482517310f237dd9c79972a53082b15aedf1c0233602e21a165"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryString(\u0022INPUT_OUTCOME\u0022, out var outcome) \u0026\u0026 !string.IsNullOrWhiteSpace(outcome)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74ec0f7f6e90bb7770a6789a7ce28cbbc5a80e28053f9e7455fcdb618d911d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryString(\u0022INPUT_OUTPUTFORMAT\u0022, out var outputFormat) \u0026\u0026 !string.IsNullOrWhiteSpace(outputFormat)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f24ab305339dc9eedfc8077285412e29880c85705bc6f51d81b070b1faeca75"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryString(\u0022INPUT_OUTPUTPATH\u0022, out var outputPath) \u0026\u0026 !string.IsNullOrWhiteSpace(outputPath)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfccd9f3daa4eebb0af1d7b6366493401725ed412896342c8a4623b909f3057c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryStringArray(\u0022INPUT_CONVENTIONS\u0022, [COMMA], out var conventions) \u0026\u0026 conventions != null\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"230c74191c6e9b604be625c91c43525cce48ee2160c47495de61a48cd0b79724"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryStringArray(\u0022INPUT_FORMATS\u0022, [COMMA], out var formats) \u0026\u0026 formats != null\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8c6de537e9371ad490dca4fcc1c2fbc3b362dc08dec5e31b4b69e4e5645f97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Environment.TryStringArray(\u0022INPUT_MODULES\u0022, [COMMA], out var modules) \u0026\u0026 modules != null\u0060 appears character-identically in 2 files \u2014 src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs, src/PSRule.Tool/Adapters/GitHubActionsAdapter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AzurePipelinesAdapter.cs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"00da3dbb1be2d501c3b4705422d627459c46db4c707939b2811af0df7d8d9a78"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HasFlag(FLAG_PRE) || HasFlag(FLAG_PRERELEASE)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"1455140d1a88dc2bb443978af0c8696157c7fbb75468ef304cd01e6bc441f268"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060IsVersionDigit(c) || IsSeparator(c) || IsWildcard(c) || IsIdentifier(c)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe91b29b2c10b746c5eabfd3bd4639bfb55df442a0629a0e345bd03f896519c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060LegacyRunspaceContext.CurrentThread.IsScope(RunspaceScope.Rule) || LegacyRunspaceContext.CurrentThread.IsScope(RunspaceScope.Precondition)\u0060 appears character-identically in 2 files \u2014 src/PSRule/Commands/RuleKeyword.cs, src/PSRule/Runtime/Assert.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Commands/RuleKeyword.cs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d9e9609ea83d2b0219aa99e715af64534eb4d9a87433c813c3bf5f725818dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Outcome == RuleOutcome.Pass || Outcome == RuleOutcome.None\u0060 appears character-identically in 2 files \u2014 src/PSRule/Rules/RuleRecord.cs, src/PSRule/Rules/RuleSummaryRecord.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Rules/RuleRecord.cs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad7831a81ab30d6dc6459b969aa760cb6f9b00f854a1f25b9a8f9cb8759e726"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Prerelease != null \u0026\u0026 !Prerelease.Stable\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"079daeca4a752ea2788ad78313360cf320cc1a2e1d3eef7a6ec14736b75a25ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060TryChangedFiles(out var files) \u0026\u0026 files != null\u0060 appears character-identically in 2 files \u2014 src/PSRule/Pipeline/GetTargetPipelineBuilder.cs, src/PSRule/Pipeline/InvokePipelineBuilderBase.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/GetTargetPipelineBuilder.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a2615c93902707842237c426b141f9e56e12262713c0e25839f10282c36937"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_Constraints == null || _Constraints.Count == 0\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"90471ac989760b0bedc9cb5605070fcedbccb75e80e9771a9e1dd5f132251875"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_Constraints[i].Join == JoinOperator.Or \u0026\u0026 \u002B\u002Bi \u003C _Constraints.Count\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe38cd32d7da3d40cb509b65094453b1f948a1896d9fbd62c8a4ed9b8829c04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_Override.TryGetValue(id.Value, out value) || _Override.TryGetValue(id.Name, out value)\u0060 appears character-identically in 2 files \u2014 src/PSRule/Pipeline/Runs/Run.cs, src/PSRule/Runtime/LanguageScope.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/Run.cs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"326ed31e815d5e6b060a7598a38a4054f7f7ffe02328aa308a154a609f205f93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_ReplacementTokens == null || _ReplacementTokens.Length == 0\u0060 appears character-identically in 4 files \u2014 src/PSRule/Emitters/JsonEmitter.cs, src/PSRule/Emitters/MarkdownEmitter.cs, src/PSRule/Emitters/PowerShellDataEmitter.cs, src/PSRule/Emitters/YamlEmitter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/JsonEmitter.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"754974d73a5390c4d7640894645f48b73b18af3ea932130d2cf433980906827d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_WildcardMatch != null \u0026\u0026 _WildcardMatch.IsMatch(name)\u0060 appears character-identically in 2 files \u2014 src/PSRule/Definitions/Baselines/BaselineFilter.cs, src/PSRule/Definitions/Conventions/ConventionFilter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Baselines/BaselineFilter.cs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fe7aeb930bff70be85ff6fa7a519fd10f5d22b764bb689efc229a911ec2bf4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060char.IsDigit(c) || IsLetter(c) || c == DASH || c == DOT\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3865d95034b8d07a5c830b8bb8ff509840c8287efe522f29ed88f9d5481feb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060convert \u0026\u0026 TryBool(o, false, out var b_value)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Converters/TypeConverter.cs, src/PSRule/Common/ExpressionHelpers.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa7c18fc76ff2a915b2707586f23d1f00e9704bd833bab441afad4579cd39a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060convert \u0026\u0026 TryInt(o, false, out var i_value)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Converters/TypeConverter.cs, src/PSRule/Common/ExpressionHelpers.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"da41abeda3d2076ef317f377aa3bbbd6388e13cd2c4f469c18a412442797140d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060convert \u0026\u0026 TryLong(o, false, out var l_value)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Converters/TypeConverter.cs, src/PSRule/Common/ExpressionHelpers.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Converters/TypeConverter.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b700fb768c3fc2212ab6ac9f6749ab17e55e4ddd5c277479c7976c4b5ac9dc87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cultures == null || cultures.Length == 0\u0060 appears character-identically in 3 files \u2014 src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs, src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs, src/PSRule/Runtime/LegacyRunspaceContext.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResourceCacheDiscoveryContext.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3dbdfad8c367191e6974d2ca41221d2395341f734207b7f4c0832edeed2d35"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060doc != null \u0026\u0026 IsHeading(stream.Current, RULE_ENTRIES_HEADING_LEVEL)\u0060 appears character-identically in 2 files \u2014 src/PSRule/Help/ResourceHelpLexer.cs, src/PSRule/Help/RuleHelpLexer.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Help/ResourceHelpLexer.cs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9a86a8d9b214aed594bce010f09379ec8c21936515812253e1589d1c79c737"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expectedValue != null \u0026\u0026 i \u003C expectedValue.Length\u0060 appears character-identically in 2 files \u2014 src/PSRule/Common/ExpressionHelpers.cs, src/PSRule/Definitions/Expressions/LanguageExpressions.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/ExpressionHelpers.cs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"000a9964751c25f34bee1b0c20554f42514af2241f0e3d6dcc6563b3f766c4e0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060filter == null || filter.Match(resource)\u0060 appears character-identically in 3 files \u2014 src/PSRule/Definitions/Baselines/BaselineExtensions.cs, src/PSRule/Definitions/Selectors/SelectorExtensions.cs, src/PSRule/Runtime/LegacyRunspaceContext.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Baselines/BaselineExtensions.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c63ce8cedbad90c87fcd95190de6019841b9407e6770e5a0de2ff163be3b375"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hashtable == null || hashtable.Count == 0\u0060 appears character-identically in 3 files \u2014 src/PSRule/Configuration/PSRuleOption.cs, src/PSRule/Definitions/ResourceLabels.cs, src/PSRule/Definitions/ResourceTags.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/PSRuleOption.cs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbaf13c04a67e18c2a15cb39ad85229076eb970dbef06e248cc8dbfa14314b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060include != null \u0026\u0026 include.Length \u003E 0 \u0026\u0026 WildcardPattern.ContainsWildcardCharacters(include[0])\u0060 appears character-identically in 2 files \u2014 src/PSRule/Definitions/Baselines/BaselineFilter.cs, src/PSRule/Definitions/Conventions/ConventionFilter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Baselines/BaselineFilter.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec5f32a752f2c0d26620b531c040f7ed875ab1cacf967280c4dabfe85cb67c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060info != null \u0026\u0026 info.Extension != null \u0026\u0026 _Types.Contains(info.Extension)\u0060 appears character-identically in 4 files \u2014 src/PSRule/Emitters/JsonEmitter.cs, src/PSRule/Emitters/MarkdownEmitter.cs, src/PSRule/Emitters/PowerShellDataEmitter.cs, src/PSRule/Emitters/YamlEmitter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/JsonEmitter.cs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ed4ff3eba5d60aac12df8c8dfd6c61f8c62717115488b0d4a634dc2ffed2d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060logLevel == LogLevel.Error || logLevel == LogLevel.Critical\u0060 appears character-identically in 5 files \u2014 src/PSRule/Pipeline/AssertWriter.cs, src/PSRule/Pipeline/HostContext.cs, src/PSRule/Pipeline/Output/HostPipelineWriter.cs, src/PSRule/Pipeline/PSHostContext.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/AssertWriter.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"724d257b2d94b0266dd56d3d519acf91c774a9a1542fc7c4a82e33d0ed8dc7c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060numeric \u0026\u0026 id.Length \u003E 1 \u0026\u0026 id[0] == ZERO\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b30272dd468029aeb499bf2b39b5961968db63172f7ca03f76813e706280214"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060o is bool result || (o is string s \u0026\u0026 bool.TryParse(s, out result))\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Runtime/IConfigurationExtensions.cs, src/PSRule/Runtime/Configuration.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c024a0db378bfcd5fb738461f3b47086be0624cadfd76b9c5a862f6cd68ea8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060o is int result || (o is string s \u0026\u0026 int.TryParse(s, out result))\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Runtime/IConfigurationExtensions.cs, src/PSRule/Runtime/Configuration.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Runtime/IConfigurationExtensions.cs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e112b293a1bc9f61d753e9e5253f2a697121253d995e3facfefd6030df46ee1f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060obj is Version version \u0026\u0026 Equals(version)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb0d38908727d8251b15fd3c5a5bf3ebc58f74a73c94c789efc8af7e39e43aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060obj.BaseObject == null || obj.HasNoteProperty()\u0060 appears character-identically in 2 files \u2014 src/PSRule/Common/BaselineJsonSerializationMapper.cs, src/PSRule/Common/BaselineYamlSerializationMapper.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/BaselineJsonSerializationMapper.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd46d7d6ec539a1560e7bc413a2845d0d7f9317279ea188fe7a461d04efda36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path.Length \u003E= basePath.Length \u0026\u0026 path.StartsWith(basePath, caseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Expressions/PathHelpers.cs, src/PSRule/Common/ExpressionHelpers.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Expressions/PathHelpers.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1e7d22e665df8d57e6f742f9866d3b53779aacbce31514ae549de140c3f259"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reader.TokenType != JsonToken.StartObject || !reader.Read()\u0060 appears character-identically in 2 files \u2014 src/PSRule/Common/JsonConverters.cs, src/PSRule/Converters/Json/ResourceObjectJsonConverter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/JsonConverters.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d46ee6045508846ccf351eb9a498911b9337a5a9428212cd89262eff5b03e95"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reader.TryConsume\u003CScalar\u003E(out var scalar) \u0026\u0026 scalar != null\u0060 appears character-identically in 2 files \u2014 src/PSRule/Converters/Yaml/LanguageExpressionDeserializer.cs, src/PSRule/Converters/Yaml/ResourceNodeDeserializer.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Converters/Yaml/LanguageExpressionDeserializer.cs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89c04f485fdc616ca0f8a80e03a982a1c1821430be2d0f114dce80d4436659d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060record.Reason != null \u0026\u0026 record.Reason.Length \u003E 0\u0060 appears character-identically in 2 files \u2014 src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs, src/PSRule/Pipeline/Output/NUnit3OutputWriter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Formatters/AssertFormatterBase.cs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"a097d134f00a369b1fe7dde739e12087921b826604a2090a43e6b9eee9065352"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result \u0026\u0026 _Constraints[i].Join == JoinOperator.And \u0026\u0026 \u002B\u002Bi \u003C _Constraints.Count\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d062bf67215bf41a3aefc41c002f0570bec6e12c1fb725c164d7eb0337d23147"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result \u0026\u0026 _Constraints[i].Join == JoinOperator.Or\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b08808057111f20d64750cfc1b11cd5f64916fab0f6391770be75351521d12"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result == JoinOperator.None \u0026\u0026 _Current == SPACE\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82695038a2670a95fc59fa6fc690d397692c2b8698538e27af642c4886fa973"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sendToPipeline is InvokeResult \u0026\u0026 Option.Output.As == ResultFormat.Summary\u0060 appears character-identically in 2 files \u2014 src/PSRule/Pipeline/ResultOutputWriter.cs, src/PSRule/Pipeline/SerializationOutputWriter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ResultOutputWriter.cs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"94236cfd8ddbdcc1f598e7d81c41d9f62aa5a55e3d0358e5bcbf655fc9451c66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stream.Info != null \u0026\u0026 !string.IsNullOrEmpty(stream.Info.Path)\u0060 appears character-identically in 2 files \u2014 src/PSRule/Emitters/JsonEmitter.cs, src/PSRule/Emitters/YamlEmitter.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/JsonEmitter.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4d105cf71b35b6beaa4b8b49f2d5ad4efb571dc2a189ebaaa6fde419c1dd8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060string.IsNullOrEmpty(path) || string.IsNullOrEmpty(culture)\u0060 appears character-identically in 2 files \u2014 src/PSRule/Definitions/Rules/RuleExtensions.cs, src/PSRule/Host/HostHelper.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Definitions/Rules/RuleExtensions.cs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3dfc4bfd6c56d8e6c4ab8109abc8c4781666eef7f16e89c9b228cca47185a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value == null || string.IsNullOrEmpty(value)\u0060 appears character-identically in 3 files \u2014 src/PSRule.Types/Data/DateVersion.cs, src/PSRule.Types/Data/SemanticVersion.cs, src/PSRule/Configuration/BaselineOption.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/DateVersion.cs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1810029cce04d4240b8600946617f9e17a40bff33f360df077ec100a9c54196"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x == null || y == null || StringComparer.OrdinalIgnoreCase.Equals(x, y)\u0060 appears character-identically in 2 files \u2014 src/PSRule.Types/Definitions/ResourceId.cs, src/PSRule.Types/Definitions/ResourceIdEqualityComparer.cs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Definitions/ResourceId.cs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"622c4c813635e6deb8967bebe6666a82870e5df71444fab13d663e6b60ac8488"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposes a dependency it does not own: \u0060Writer\u0060 is never created by \u0060PipelineContext\u0060 \u2014 every assignment to it takes a constructor parameter \u2014 yet this type disposes it here (line 214). Its declared type \u0060IPipelineWriter\u0060 is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object\u0027s lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner\u0027s later \u0060Dispose()\u0060 runs a second time on an object already disposed. Drop the call \u2014 a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineContext.cs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5101dc7910c2be1cbe784be07500e96b65469b6035b72985c1c0d968b741dbeb"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposes a dependency it does not own: \u0060_Inner\u0060 is never created by \u0060PipelineWriter\u0060 \u2014 every assignment to it takes a constructor parameter \u2014 yet this type disposes it here (line 81). Its declared type \u0060IPipelineWriter\u0060 is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object\u0027s lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner\u0027s later \u0060Dispose()\u0060 runs a second time on an object already disposed. Drop the call \u2014 a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PipelineWriter.cs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"778672bfa9d6e50287346f5a825f7489285dac7ac9259066dfb5dada3305c36d"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposes a dependency it does not own: \u0060Condition\u0060 is never created by \u0060RuleBlock\u0060 \u2014 every assignment to it takes a constructor parameter \u2014 yet this type disposes it here (line 143). Its declared type \u0060ICondition\u0060 is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object\u0027s lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner\u0027s later \u0060Dispose()\u0060 runs a second time on an object already disposed. Drop the call \u2014 a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Rules/RuleBlock.cs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed94f48dc406fbed01f564a8c4e6616bccfb3f9a0a30c7446723003829a52f77"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async methods take a CancellationToken: Only 18/20 async methods accept a CancellationToken, so in-flight work can\u0027t be stopped early when the caller gives up \u2014 whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice \u2014 judge against your hosting model."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bf623a92fb752b336427856888a9b386c434e686662a2cdc1bba21832c0a048c"}},{"ruleId":"X2","level":"warning","message":{"text":"Async delegate without CancellationToken: TryAdapter: Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one \u2014 that work can\u0027t be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (\u0060Func\u003CCancellationToken, Task\u003E\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Adapters/AdapterBuilder.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cabcf15e8eb4166bf136bc07de6cba7455c81a6122dfcab2b53d9ab5fa2c232"}},{"ruleId":"X2","level":"warning","message":{"text":"Async method without CancellationToken: GetSourceRepositoryAsync: No CancellationToken parameter \u2014 this work can\u0027t be stopped early once started."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/Commands/ModuleCommand.cs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"811ec5e46a54fcb3a7158ba89b06361de447c5c23e6a8ca51d5ea227da5a4d22"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 22 admits \u0060module\u0060 only when \u0060!string.IsNullOrEmpty(module)\u0060 holds, and its other branch, line 22, reports every rejection as \u0060ArgumentNullException\u0060 \u2014 but that branch is also reached when \u0060!string.IsNullOrEmpty(module)\u0060 is false, and it is false of an EMPTY \u0060module\u0060, which is not null. So a caller who passes a present but empty argument is told it was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Data/ModuleConstraint.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0739d7635b42320947b506d6250bc8092ebd1ba257cbd00320d6cefcc5413eea"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 58 rejects \u0060scope\u0060 and line 58 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrEmpty(scope)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060scope\u0060, and on that path \u0060scope\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/EmitterBuilder.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6981f2ec8828d6e48e1032962f6ad6efe046dd49e4cce43aff80a9eabb9ac42"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 74 rejects \u0060scope\u0060 and line 74 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrEmpty(scope)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060scope\u0060, and on that path \u0060scope\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/EmitterBuilder.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fccc6452b06374893502bac443c7d89eff3c7515abcd7b914d35d280e726182"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 92 rejects \u0060scope\u0060 and line 92 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrEmpty(scope)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060scope\u0060, and on that path \u0060scope\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Emitters/EmitterBuilder.cs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"441b47bef4efd46f90e43ee67437610dbcc3daea8bead34bb29864142b958ec5"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 20 rejects \u0060basePath\u0060 and line 20 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrEmpty(basePath)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060basePath\u0060, and on that path \u0060basePath\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ChangedFilesPathFilter.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f9a8d16be92fabd5aff3799ceceecb0432ffd61615b5429c836c658aa0d4e9"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 299 rejects \u0060expression\u0060 and line 300 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrEmpty(expression)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060expression\u0060, and on that path \u0060expression\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/PathFilter.cs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b82286d0256fec5acd9a0ba161d0c46ef7480ea4fc3578308f808565c6b864c"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 53 rejects \u0060ruleName\u0060 and line 54 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrEmpty(ruleName)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060ruleName\u0060, and on that path \u0060ruleName\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Rules/SuppressionFilter.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e1e6721b948047b063085e9c8825e71e743595943579e14d6605a0702eb233"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 56 rejects \u0060targetName\u0060 and line 57 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrEmpty(targetName)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060targetName\u0060, and on that path \u0060targetName\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Rules/SuppressionFilter.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2aaa0a9f89ffa2fb7f5a8d678dd639f5b8b610cf3e5f0ba7a07bcaa486f7525"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 41 rejects \u0060name\u0060 and line 41 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrEmpty(name)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060name\u0060, and on that path \u0060name\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LanguageScopeSetBuilder.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e118cb55b0b9c1de0cca74393e701744369fcd066012df57bdf0c2a833307b47"}},{"ruleId":"X20","level":"warning","message":{"text":"Argument guard throws the exception its own condition disproves: The guard on line 33 rejects \u0060scope\u0060 and line 33 reports that rejection as \u0060ArgumentNullException\u0060 \u2014 but the condition\u0027s own test \u0060string.IsNullOrWhiteSpace(scope)\u0060 is true of a value that is NOT null: it is satisfied by an EMPTY \u0060scope\u0060, and on that path \u0060scope\u0060 was already proven non-null by the very expression that decided it (\u0060||\u0060 short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching \u0060ArgumentNullException\u0060 to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose \u2014 \u0060ArgumentNullException.ThrowIfNull\u0060 and \u0060ArgumentException.ThrowIfNullOrEmpty\u0060 are two helpers because they are two failures. Throw \u0060ArgumentException\u0060 (or \u0060ArgumentOutOfRangeException\u0060 for a bound) for what the condition actually tests, or split the guard and throw each on its own condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/RuntimeFactoryBuilder.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"04032923ef14fd5a739724fa6c752a144e103b70230a89d45fe47baa26fe4d42"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Common/GitHelper.cs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a398fa2a5d0b1b3a368e50d225ec26b283ea79ee62f9179724dc707ff4c722"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/CsvOutputWriter.cs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0d3e616eeef5d7ed6241cf0f47d16ac8cffaad069f9f9f6438ad5515a7012e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/ObjectHelper.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fd1f437869f586d4dfd592f86cb2ca4663edaa9734ab5daf0cefb757321825"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Handlers/ConfigurationChangeHandler.cs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a54f02b6f9396d50ec24fb5bcfe8a0ae725f6aab8385c7be7ea77da77503a9"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: This method contradicts itself about \u0060result\u0060: line 237 writes \u0060result?.Output\u0060, which says \u0060result\u0060 can be null, but line 228 then dereferences it directly as \u0060result.Baseline\u0060 with no null test between them and no guard around it. If the \u0060?.\u0060 is right, that dereference throws NullReferenceException on the input it was written for; if \u0060result\u0060 truly cannot be null here, the \u0060?.\u0060 is misleading. Settle it one way \u2014 test \u0060result\u0060 once before the first use and handle the null case, or drop the \u0060?.\u0060 \u2014 rather than leaving the two readings side by side."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Configuration/PSRuleOption.cs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7916c80ce81d80a44e5f87d7aef833b77ff4fbca21a7a702bb9501eb74011fd"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: This method contradicts itself about \u0060context\u0060: line 38 writes \u0060context?.Pipeline\u0060, which says \u0060context\u0060 can be null, but line 34 then dereferences it directly as \u0060context.Pipeline\u0060 with no null test between them and no guard around it. If the \u0060?.\u0060 is right, that dereference throws NullReferenceException on the input it was written for; if \u0060context\u0060 truly cannot be null here, the \u0060?.\u0060 is misleading. Settle it one way \u2014 test \u0060context\u0060 once before the first use and handle the null case, or drop the \u0060?.\u0060 \u2014 rather than leaving the two readings side by side."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Host/HostHelper.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"675a2c56c3256ccf47f066d7bb2ec97ba790085ee5f0e5594d40d221b15f7aa2"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: This method contradicts itself about \u0060resourceIssue\u0060: line 87 writes \u0060resourceIssue?.\u0060, which says \u0060resourceIssue\u0060 can be null, but line 73 then dereferences it directly as \u0060resourceIssue.Type\u0060 with no null test between them and no guard around it. If the \u0060?.\u0060 is right, that dereference throws NullReferenceException on the input it was written for; if \u0060resourceIssue\u0060 truly cannot be null here, the \u0060?.\u0060 is misleading. Settle it one way \u2014 test \u0060resourceIssue\u0060 once before the first use and handle the null case, or drop the \u0060?.\u0060 \u2014 rather than leaving the two readings side by side."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Runs/RunCollectionBuilderContext.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf268bffa19bbfed8db89e5e857de6d2deb6883df3c778c723fc0509b0ef610a"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: This method contradicts itself about \u0060k2\u0060: line 76 assigns it with \u0060as SuppressionKey\u0060, which hands back null rather than throwing when the value is not a \u0060SuppressionKey\u0060, but line 77 then dereferences it directly as \u0060k2._HashCode\u0060 with no null test between them and no guard around it. If the \u0060as\u0060 is right, that dereference throws NullReferenceException on the input it was written for \u2014 and the NullReferenceException names neither the cast nor the type that failed. Settle it one way \u2014 test \u0060k2\u0060 once before the first use and handle the null case, or cast with \u0060(SuppressionKey)\u0060 so the failure is reported where it happens \u2014 rather than leaving the two readings side by side."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Rules/SuppressionFilter.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"729ccf6458f5f40768cada45d090d2e5831b91364805cd4e70a0b5eb64c3f6e3"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: This method contradicts itself about \u0060issue\u0060: line 261 writes \u0060issue?.\u0060, which says \u0060issue\u0060 can be null, but line 247 then dereferences it directly as \u0060issue.Type\u0060 with no null test between them and no guard around it. If the \u0060?.\u0060 is right, that dereference throws NullReferenceException on the input it was written for; if \u0060issue\u0060 truly cannot be null here, the \u0060?.\u0060 is misleading. Settle it one way \u2014 test \u0060issue\u0060 once before the first use and handle the null case, or drop the \u0060?.\u0060 \u2014 rather than leaving the two readings side by side."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Runtime/LegacyRunspaceContext.cs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d350841d2613de3dc113f7fc712a80671138167cef40e188cd583336db66b2e7"}},{"ruleId":"X5","level":"note","message":{"text":"Nullable reference types not enabled everywhere: 6/8 NRT-eligible project(s) enable \u003CNullable\u003Eenable\u003C/Nullable\u003E (projects targeting a pre-C#-8 framework are excluded \u2014 NRTs aren\u0027t available there). NRTs catch a whole class of null-deref bugs at compile time."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"80b24de9378624a0ce4846d60457395befcaec8e109ea81d289a370c9f7bfd5d"}},{"ruleId":"X5","level":"note","message":{"text":"Null-forgiving operator (\u0060!\u0060) suppressions override nullable warnings: ~0.5 \u0060!\u0060 suppressions per 1k syntax nodes \u2014 94 suppression(s) across the 201978 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a \u0060!\u0060 can suppress anything in (a \u0060!\u0060 under \u0060#nullable disable\u0060 is inert and is not counted, and its file\u0027s nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ae9a4afaefbfeb512a0b9a87d1bd44cd285ab1e804e4b89c8cf80f255687dfd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060Parse\u0060 falls back to \u0060default\u0060 when \u0060TryParse(id, kind, out var value) \u0026\u0026 value != null\u0060 is false, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Types/Definitions/ResourceId.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3f5ce387b627b0b39d1bd4e4f444cf4737fc4cf28feb50b6a03a2abf8e5046"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060ReadJson\u0060 falls back to \u0060default\u0060 when \u0060reader.TokenType == JsonToken.String \u0026\u0026 SemanticVersion.TryParseVersion(reader.V\u2026\u0060 is false, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Converters/Json/SemanticVersionJsonConverter.cs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4f6baca369ba2b83b6b4915c39ebcc32e883e3eb9f7e36525a1797530afd5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060IsBlocked\u0060 swallows every exception into \u0060return false;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/InvokePipelineBuilderBase.cs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1ce75d2364fb21f0a6e7de721fd74e2ace51e9deb110b0696a98d0dfbc7815"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060Compare\u0060 falls back to \u00600\u0060 when \u0060SemanticVersion.TryParseVersion(y_name, out _)\u0060 is false, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/ModulePathComparer.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"16be93b1ee09ba94d3b79072c2a3b62c0840a7036871ab5228c4a24be33adf01"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060VisitFixture\u0060 falls back to \u0060\u0022Failure\u0022\u0060 when \u0060fixture.Success\u0060 is false, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/NUnit3OutputWriter.cs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8031a40444efe80184ce5e989ae3001802752950dc6c048e648f7ab82d90eee3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060VisitTestCase\u0060 falls back to \u0060\u0022Failure\u0022\u0060 when \u0060testCase.Success\u0060 is false, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule/Pipeline/Output/NUnit3OutputWriter.cs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03cef2b91802a5eddd72860871acfb963613d0cef69705078bf4031f22c73fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060WaitForDebuggerAsync\u0060 swallows every exception into \u0060return false;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.Tool/Program.cs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b906d7540837d11ae85a179bd5b9b03bae2f4043d685a00d92c9b3f8db566676"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060ToOutputFormat\u0060 falls back to \u0060OutputFormat.None\u0060 when \u0060value != null \u0026\u0026 Enum.TryParse\u003COutputFormat\u003E(value, true, out var result)\u0060 is false, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.CommandLine/StringExtensions.cs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0005b558ee1049f227ab88f3db432dd77189207e75c2eea53ef496f27cbba9c5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060WaitForDebuggerAsync\u0060 swallows every exception into \u0060return false;\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PSRule.EditorServices/Commands/ListenCommand.cs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"50425a76e4fed8678ab028783510da7315a961270f706bd86102e8ceadd4cb61"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-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":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":31,"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."]}]}