{"$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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 28): main.main has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/main.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead853b4e24ca4fcc9446e2f6f3e33f30d5071e7dbc1d797c8818d2a90b8ee99"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 27): main.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 27. 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":"demo/main.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c9fd396275668cdd37578bece8576e68892e414c7d28c5131e10a96df32268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): demo/auction.go:18-37 | demo/request.go:75-94 | demo/user.go:45-64 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/auction.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afe698e08dc9b841d268907a5475685399d5a2e0c2220ddf98c503e252d4bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): demo/bid.go:22-41 | demo/request.go:23-42 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/bid.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c934480fdf28fe5de9794058c2f7c63af111bbf4301fbacaa73c6d9858f793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): integration-test/helper.go:145-161 | integration-test/helper.go:262-278 \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":"integration-test/helper.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb3194fd1096e28c5c1cef2e7be4e01fd3bccce21151868235c2a5ac1123f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): integration-test/helper.go:223-239 | demo/helper.go:126-142 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"integration-test/helper.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d66fc7c97b358b301eafa2d1a494d50f9728861f42212a24f5d34360be4e135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): demo/helper.go:44-60 | demo/helper.go:85-101 \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":"demo/helper.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ddfe3c0a99eae1dc7359ca677f621b873cb9e0fb7c9770a13c6b41b58164b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): services/request-service/internal/repository/request/request_postgres.go:106-121 | services/request-service/internal/repository/request/request_postgres.go:167-182 \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":"services/request-service/internal/repository/request/request_postgres.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d54ff34a4e0fd2cf7a0a9fdaa9f0eed20de3d93f61fe79d404f2b1bda780ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): services/auction-service/internal/repository/auction/auction_postgres.go:295-310 | services/auction-service/internal/repository/auction/auction_postgres.go:357-372 \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":"services/auction-service/internal/repository/auction/auction_postgres.go"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3335f6ec216063a0ac21553e347ff43e3eec3f7c3d04341b8d528a91b5e5c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): services/bidding-service/internal/repository/bid/bid_postgres.go:63-77 | services/bidding-service/internal/repository/bid/bid_postgres.go:103-117 | services/auction-service/internal/repository/auction/auction_postgres.go:41-55 | services/auction-service/internal/repository/auction/auction_postgres.go:102-116 | services/auction-service/internal/repository/auction/auction_postgres.go:206-220 | services/auction-service/internal/repository/auction/auction_postgres.go:422-436 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/repository/bid/bid_postgres.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae58d16ecb0e575d2ce6e0872dc9288298de0a582afce2d5cb8ddaebc006a7f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): demo/main.go:88-102 | demo/main.go:116-130 \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":"demo/main.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"171af1a72a4aa06390611ea82e34638f5da3c01f8057ee0f4383b7eb3d3e13d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): services/bidding-service/internal/repository/auction/auction_postgres.go:62-75 | services/auction-service/internal/repository/auction/auction_postgres.go:142-155 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/repository/auction/auction_postgres.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ed8dcf7a1432a49c3d92feedfe7d89851d66c79e1b853c3c6461ca6a0d7254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): services/bidding-service/internal/routes/events/request/controller.go:33-46 | services/auction-service/internal/routes/events/request/controller.go:33-46 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/routes/events/request/controller.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4ffd740743f582ad728c9a1b87114cf53a739f0c461f3cdeb639599c3ce279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): services/bidding-service/internal/app/app.go:60-72 | services/auction-service/internal/app/app.go:60-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/app/app.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3293c5b556e9bfffc5372e48ee5567a16e5fb7b17c8da9939053fc1ac59c68b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): services/request-service/internal/app/app.go:53-65 | services/user-service/internal/app/app.go:52-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/request-service/internal/app/app.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97a9d666aa0335cd9a17b96c26cfbc85b2d7a72775be4bc5fbb911be8c8d9f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): services/user-service/internal/routes/http/user/controller.go:130-142 | services/user-service/internal/routes/http/user/controller.go:191-203 \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":"services/user-service/internal/routes/http/user/controller.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0163e040e4bbf77cad1837612f69d1caac381d3ab0c59fd8e8d0cbf3661b954b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): integration-test/helper.go:184-196 | integration-test/helper.go:223-235 \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":"integration-test/helper.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ed672d771c53f1c2a4c0d86a462a2dc2e82a5ce0e57e7cceeda33bf0cb9fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): services/request-service/internal/routes/http/request/controller.go:99-110 | services/request-service/internal/routes/http/request/controller.go:148-159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/request-service/internal/routes/http/request/controller.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c6a2cf9a3322de7de250cdd9e929f6c7c12f934a32692dd4ce0ed785c720f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): services/request-service/internal/routes/http/routes.go:24-35 | services/auction-service/internal/routes/http/routes.go:24-35 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/request-service/internal/routes/http/routes.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"388ed47f300d251f0a8fe73754f1f68217ea66555acf609b0e264d139a77884d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): services/bidding-service/internal/app/app.go:27-37 | services/request-service/internal/app/app.go:25-35 | services/auction-service/internal/app/app.go:27-37 | services/user-service/internal/app/app.go:24-34 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/app/app.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"05046fc650f446795f5558abd61c0dc932eaaf7fdaff9f54132b0822e3fa1a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): services/bidding-service/internal/repository/bid/bid_postgres.go:81-91 | services/bidding-service/internal/repository/bid/bid_postgres.go:121-131 \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":"services/bidding-service/internal/repository/bid/bid_postgres.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf700b1c4c3cd36f528d8341089a290e48102af7642aa045d99fb093161977be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): services/request-service/internal/routes/http/request/controller.go:122-131 | services/request-service/internal/routes/http/request/controller.go:148-157 | services/request-service/internal/routes/http/request/controller.go:177-186 \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":"services/request-service/internal/routes/http/request/controller.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4403968ecd4dce11391d863fefb1f8aee8b49e85e900f6336711d09ecfd5b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): services/auction-service/internal/routes/http/auction/controller.go:108-117 | services/auction-service/internal/routes/http/auction/controller.go:189-198 | services/auction-service/internal/routes/http/auction/controller.go:300-309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auction-service/internal/routes/http/auction/controller.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34a5f325f412e226868d1bb666ce634bc0506da5e4ae00a2077275a842bc2e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/bidding-service/internal/repository/auction/auction_postgres.go:24-33 | services/auction-service/internal/repository/auction/auction_postgres.go:24-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/repository/auction/auction_postgres.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"878863bc188ee2aab8554fc736286b87e725d0acc75c92bcc68b0df7bc0baa59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/bidding-service/internal/routes/http/bid/controller.go:136-145 | services/auction-service/internal/routes/http/auction/controller.go:97-106 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/routes/http/bid/controller.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b540d6bde89f89f9617e6e0c4861e96d8018dc09d888d81bd7d1b27805af0aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/request-service/internal/routes/http/request/controller.go:198-207 | services/auction-service/internal/routes/http/auction/controller.go:301-310 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/request-service/internal/routes/http/request/controller.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"123711f4de9ada100a5833282122fe02e4049d9f6d00dc4c69a1d01d09a76a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/auction-service/internal/routes/http/auction/controller.go:220-229 | services/auction-service/internal/routes/http/auction/controller.go:243-252 \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":"services/auction-service/internal/routes/http/auction/controller.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f7a60a69ed781a53801edc87ce3fe4346934716278dd3fc1fd33ffbe21ea79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): services/bidding-service/internal/routes/http/routes.go:16-24 | services/auction-service/internal/routes/http/routes.go:16-24 | services/user-service/internal/routes/http/routes.go:18-26 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/routes/http/routes.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dbe13a674e0aa192e2914b9da5f3d843d221c77a808d1bbaac79ca17453fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): services/auction-service/internal/repository/auction/auction_postgres.go:59-67 | services/auction-service/internal/repository/auction/auction_postgres.go:120-128 | services/auction-service/internal/repository/auction/auction_postgres.go:440-448 \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":"services/auction-service/internal/repository/auction/auction_postgres.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"74709f92cf05f47c3fb150b525a80ce2ff37cb4b58db7e09181761700288a361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): services/bidding-service/internal/routes/http/bid/controller.go:119-127 | services/auction-service/internal/routes/http/auction/controller.go:80-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/bidding-service/internal/routes/http/bid/controller.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdc3a88d91775b0c36f8ba8de854f83218ac9d4aa6eb82462064c486424c236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): services/request-service/internal/routes/http/request/controller.go:186-195 | services/auction-service/internal/routes/http/auction/controller.go:290-298 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/request-service/internal/routes/http/request/controller.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"809c685f0c514073f0cc0a08ce8221d7c8a382e35fcddd5c6aacc8e0831f1522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): services/request-service/internal/routes/http/request/controller.go:159-167 | services/auction-service/internal/routes/http/auction/controller.go:272-279 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/request-service/internal/routes/http/request/controller.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee63b32b5b94d2a9f1a710ec3040c6e59f4885fb3a2afb1231b1386eb67ac2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): services/request-service/internal/repository/request/request_postgres.go:125-131 | services/request-service/internal/repository/request/request_postgres.go:190-196 \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":"services/request-service/internal/repository/request/request_postgres.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d7cd1b44fd02dc80769284c571177390e8b1dc15f1ea148632d8cfe85a4e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): services/auction-service/internal/repository/auction/auction_postgres.go:314-320 | services/auction-service/internal/repository/auction/auction_postgres.go:380-386 \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":"services/auction-service/internal/repository/auction/auction_postgres.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e38048556d5ce21bc8cd0e043c266f7676b30755a473eb844d931016a888dbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): services/user-service/internal/routes/http/user/controller.go:62-68 | services/user-service/internal/routes/http/user/controller.go:114-120 \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":"services/user-service/internal/routes/http/user/controller.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2466fb20b67a6670244299fce990078338f8b4e2e7962497999455e4d3615ed"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 30 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D19","level":"note","message":{"text":"The overview mentions microservices architecture but does not state which specific services or how they interconnect in terms of API contracts or data flow.: Add a brief note on the service-to-service contract (e.g. REST endpoints, gRPC, GraphQL) and how clients access each microservice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f31fbe1d59c45df654a1436b7a66953cd1f9f64b74f2c81fe060aaa03866b3"}},{"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":"f00b80a02e19ea275d2b819fe144d96098ab71236b396fe7825cb664c327dd06"},"taxa":[{"id":"CWE-326","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"43e194b03852e6f3925e584811ad82c2c87b10352007166b299167a64115234d"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ac21b1c5ee73a449a487213cac67111cc1a357f906d40c06543778812261076"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8a1e40ea33738399fdfac1f3217934c3b7dbb10b655b175418a02a74b191ca8f"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2d50b1328a936621ea34631ba1900aea06a3593bbaa7eaa7ac7cda351b5cd42"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37c1baf62666ff45f6b5f888e59cd9b4fa80767f725ac8b6ec437b86a9f452db"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8962e0164e01da980a17ab4bf0d3e71d97d70ae10cfcc81bcd106a057a3f9072"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"542ac35f464633a790cd93e8a8302869b45cadb1a828a87a17e8c57d22c63c6d"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a4a2bd21359f8f94af417b8a7d6784bd9dad4ff8565779f6c7f11af0d686b07"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"43c09320484fe5689ecbd1850ffbe1a8680d8b79a1a64ac82827d053669be1e0"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e16be415f9ddd9144003210a11a15d15de16e3d857faaf52e6615e4df9c2d395"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe915aa2dd1e224d011eb7d6d633768f5cd9d83e37c4663035a6a7876276b8c3"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4504a396e6794064d9930aa8f39fe63dc1a2c1fca1fdc862935c2d46706c37db"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"873c1d5c7b5255bd4b824330ed4abd8fe4f8de39da47930321312967f720ee0e"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"08dbec469506ead422efe17e0507e20ada95d809504e30280807b1754803048a"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8540ae90c4410b8264d0244f86a1157c666439d42addbd2c3b97de480f5c08b3"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db4106314504d80b001e5af09fc998cf94e8a6d7fa8a22798a3652c10e709021"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4e63315c89fa47d45c7ad12391cc37617447869a7fb0b82d14131f65f4f5a81b"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 30 of 30 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 30 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: repository.go \u2194 routes.go: \u0060services/auction-service/internal/repository/auction/repository.go\u0060 and \u0060services/auction-service/internal/routes/http/routes.go\u0060 change together 60% of the time (18 of the 30 commits that touched the less-changed of the two, renames followed) with no explicit dependency \u2014 a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auction-service/internal/repository/auction/repository.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83af76ff71ef1053d5a3cf22472f9b4abc7d403427409ef01055c8bcfec29fdc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: routes.go \u2194 request.go: \u0060services/auction-service/internal/routes/http/routes.go\u0060 and \u0060services/request-service/internal/service/request.go\u0060 change together 56% of the time (15 of the 27 commits that touched the less-changed of the two, renames followed) with no explicit dependency \u2014 a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auction-service/internal/routes/http/routes.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d3e3e71b73da1b75abe6dad1ea914db68d6ef25a293c39fa8d651382f2dfbb"}}],"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-1004","guid":"872195c9-bb07-cf51-8a32-865f4bb753ca","name":"CWE-1004","shortDescription":{"text":"CWE-1004"},"helpUri":"https://cwe.mitre.org/data/definitions/1004.html"},{"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-326","guid":"7ee78bef-7589-f65f-a9d7-619f3485e844","name":"CWE-326","shortDescription":{"text":"CWE-326"},"helpUri":"https://cwe.mitre.org/data/definitions/326.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"CWE-328","shortDescription":{"text":"CWE-328"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-614","guid":"faa8a6a5-7e9d-5d5e-afc9-020ff49d250a","name":"CWE-614","shortDescription":{"text":"CWE-614"},"helpUri":"https://cwe.mitre.org/data/definitions/614.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":18,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}