{"$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":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PhpMigCommand.bootstrapMigrations (cyclomatic 23): PhpMigCommand.bootstrapMigrations 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/Console/Commands/PhpMigCommand.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef748cb774be5c8cf64e9a124ad5889fce4a311a4a248fa2e186dfcf65c2ee92"}},{"ruleId":"D1","level":"warning","message":{"text":"core.normalize_url (cyclomatic 16): core.normalize_url 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/Helpers/core.php"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a92bb7b2f491ebbb7ba62b62d5d0a7776bc5fe3486dfcd6094ff71826bb54e"}},{"ruleId":"D2","level":"warning","message":{"text":"PhpMigCommand.bootstrapMigrations (cognitive 32): PhpMigCommand.bootstrapMigrations has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, boolean chains 6, loops 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/Console/Commands/PhpMigCommand.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb5d741f9c329d5cc804b73a0ad23e1b5227575c0a12205f3e1491fef839a46"}},{"ruleId":"D2","level":"warning","message":{"text":"core.mail (cognitive 26): core.mail has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, ternaries 5, loops 4, boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Helpers/core.php"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"789c4f0af9c4453b043fcae201e3a091a48d95d8e7985e11bd78a3956522f029"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrateCommand.handle (cognitive 24): MigrateCommand.handle has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Console/Commands/MigrateCommand.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7fd3f6c76759c05675a0c974b3b22414c9bac3d5a4a1a2d763b48b344c1e05"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrateGenerateCommand.handle (cognitive 24): MigrateGenerateCommand.handle has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Console/Commands/MigrateGenerateCommand.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"636eb092b5a7ae17840695584cd3753f0ddc4d3f8258e7c223f6ff1e20ba37d8"}},{"ruleId":"D2","level":"warning","message":{"text":"MakeCommandAware.resolveStubContentPlaceholders (cognitive 21): MakeCommandAware.resolveStubContentPlaceholders has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 8 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Console/Commands/Traits/MakeCommandAware.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"679755745966071e21a5d383445c0a32e8f8759a52e95dda9ca402bba39e3788"}},{"ruleId":"D2","level":"warning","message":{"text":"core.normalize_url (cognitive 20): core.normalize_url has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Helpers/core.php"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"a832e212a53ccda5d2cabdfa28d3461eb48df53854939eda1bedd956aa12488f"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreatDetector.detect (cognitive 19): ThreatDetector.detect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Security/Firewall/ThreatDetector.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebcf4867d80ca1b78bc505033f831401044d1866f4ade77524aad43b69da70a"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrateRollbackCommand.handle (cognitive 16): MigrateRollbackCommand.handle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 3, ternaries 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into 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/Console/Commands/MigrateRollbackCommand.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0529a2a3de5af2fa342013eeef4719dc9d78ee31f38efba47239e9bea471682"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Application: TooManyMethods \u2014 63 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Application.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc3737533dc12d5a1d8fd77228fb04893d3503ed051692e162eba9a279a9929"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExpressionAware: TooManyMethods \u2014 43 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Scheduler/Traits/ExpressionAware.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"364984d8d9d6124fccccf6beb768ba53b1845ea56f692f15e18e29a8e9515bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/Security/Firewall/ThreatPatternRegistry.php:370-392 | src/Security/Firewall/ThreatPatternRegistry.php:447-466 \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/Security/Firewall/ThreatPatternRegistry.php:370\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/Security/Firewall/ThreatPatternRegistry.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"8431e09137348d704ff9294e59e3f5db777d7167d50c542477d78791627a7079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Security/Firewall/ThreatPatternRegistry.php:344-357 | src/Security/Firewall/ThreatPatternRegistry.php:421-434 \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/Security/Firewall/ThreatPatternRegistry.php:344\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/Security/Firewall/ThreatPatternRegistry.php"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"979fc20d64548122c2d7eef23eff4bfa3956cfe3729b339dc9349b4ac06c5028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Console/Commands/MigrateCommand.php:40-51 | src/Console/Commands/MigrateRollbackCommand.php:41-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Console/Commands/MigrateCommand.php:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/Console/Commands/MigrateCommand.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dde890e19da1f43b88da551a035dcae7bebcd76d752c0d2e1dd2faa92d8aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Console/Commands/VendorPublishCommand.php:98-109 | src/Console/Commands/VendorPublishCommand.php:233-244 \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/Console/Commands/VendorPublishCommand.php:98\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/Console/Commands/VendorPublishCommand.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2897ed433e2f9dd9ac7d2de0997c1a66186fe6c3da4c17be18bb8b32a37785bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Http/Request/FormRequest.php:234-245 | src/Validation/HttpInputValidator.php:142-153 \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/Http/Request/FormRequest.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd5721a0eddb345ae74ca977e5fd85bdad481747e0b1e9619340e31e0081ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Console/Commands/DatabaseSeedCommand.php:101-111 | src/Console/Commands/MigrateFreshCommand.php:85-95 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Console/Commands/DatabaseSeedCommand.php:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/Console/Commands/DatabaseSeedCommand.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c448571f94f02ba9a5099e4e8e2cc760cd9a94c62c5dfff9cac9603686f22c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/Scheduler/Expressions/Daily.php:28-36 | src/Scheduler/Expressions/WeekDays.php:30-42 | src/Scheduler/Expressions/WeekEnds.php:30-42 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Scheduler/Expressions/WeekDays.php: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. 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/Scheduler/Expressions/Daily.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"688e29bae20fa15d7a7fb32d1a006141787eff6446b4b4343a49ea2d8df4e25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Scheduler/Traits/ExpressionAware.php:131-139 | src/Scheduler/Traits/ExpressionAware.php:183-191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Scheduler/Traits/ExpressionAware.php"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f82fbf6aa665755e3f884ad56f413dacb18a659ec75bee43f6b3e30119f5869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Console/Commands/MigrateDownCommand.php:38-45 | src/Console/Commands/MigrateRedoCommand.php:39-46 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Console/Commands/MigrateDownCommand.php:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Console/Commands/MigrateDownCommand.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c03062ee7aaf09177556caf47365183152ce49472687736fc8e126d8fccef12"}},{"ruleId":"D16","level":"note","message":{"text":"Small-team knowledge concentration: 45 file(s) are concentrated to one author \u2014 the ambient state with 2 active author(s), not 45 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa75b6daa18f1b578387fa04036c50b3163d47f957c8f5601bf083ed4489b0c"}}],"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}