{"version": "2.1.0", "$schema": "https://json.schemastore.org/sarif-2.1.0.json", "runs": [{"tool": {"driver": {"name": "Repobility", "informationUri": "https://repobility.com", "rules": [{"id": "scanner-731460e8ade0d68f", "name": "Possibly dead Python function: patched_supports_color", "shortDescription": {"text": "Possibly dead Python function: patched_supports_color"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-141b30a41e03817b", "name": "No license file detected", "shortDescription": {"text": "No license file detected"}, "fullDescription": {"text": "No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-3ab5d313dda8e5f9", "name": "Debug logging residue appears in source files", "shortDescription": {"text": "Debug logging residue appears in source files"}, "fullDescription": {"text": "Found 118 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-b9088664ace7f748", "name": "Composite production-readiness gap", "shortDescription": {"text": "Composite production-readiness gap"}, "fullDescription": {"text": "Multiple low-cost hardening controls are missing together: license, ci. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-749d4bc1bd66df5f", "name": "Agent instructions exist but release-hardening basics are missing", "shortDescription": {"text": "Agent instructions exist but release-hardening basics are missing"}, "fullDescription": {"text": "AI-coder instruction files were found, but the repo is missing license, ci. Treat this as a contract gap: the agent is guided, but the generated output is not yet guarded by the controls that make it repeatable."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-a8666a74ad145068", "name": "Likely N+1 query: `for pack in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:45", "shortDescription": {"text": "Likely N+1 query: `for pack in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:45"}, "fullDescription": {"text": "The loop iterates a Django queryset and accesses `pack.items.all` per row, which fires an additional database query each iteration. Add `.select_related('<fk_field>')` for FK / O2O relations or `.prefetch_related('<m2m_or_reverse>')` for many-related lookups, to load everything in 1-2 queries instead of N."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-dc97ca7d7b7bc1f8", "name": "Likely N+1 query: `for pack in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:189", "shortDescription": {"text": "Likely N+1 query: `for pack in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:189"}, "fullDescription": {"text": "The loop iterates a Django queryset and accesses `pack.items.all` per row, which fires an additional database query each iteration. Add `.select_related('<fk_field>')` for FK / O2O relations or `.prefetch_related('<m2m_or_reverse>')` for many-related lookups, to load everything in 1-2 queries instead of N."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-7fbcad9091a37426", "name": "Likely N+1 query: `for item in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:197", "shortDescription": {"text": "Likely N+1 query: `for item in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:197"}, "fullDescription": {"text": "The loop iterates a Django queryset and accesses `item.medication.name` per row, which fires an additional database query each iteration. Add `.select_related('<fk_field>')` for FK / O2O relations or `.prefetch_related('<m2m_or_reverse>')` for many-related lookups, to load everything in 1-2 queries instead of N."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}]}}, "automationDetails": {"id": "repobility/28174"}, "properties": {"repository": "nazifia/HMS", "repoUrl": "https://github.com/nazifia/HMS", "branch": "main"}, "results": [{"ruleId": "scanner-731460e8ade0d68f", "level": "note", "message": {"text": "Possibly dead Python function: patched_supports_color"}, "properties": {"repobilityId": "8841c38935aa0868", "scanner": "scanner-primary", "fingerprint": "731460e8ade0d68f", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "manage.py:20"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "1386a4d1a3f5fcd2", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-3ab5d313dda8e5f9", "level": "note", "message": {"text": "Debug logging residue appears in source files"}, "properties": {"repobilityId": "5cb72cdabf10703f", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-b9088664ace7f748", "level": "note", "message": {"text": "Composite production-readiness gap"}, "properties": {"repobilityId": "b04a85165f7a0063", "scanner": "scanner-primary", "fingerprint": "b9088664ace7f748", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["production-readiness", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-749d4bc1bd66df5f", "level": "warning", "message": {"text": "Agent instructions exist but release-hardening basics are missing"}, "properties": {"repobilityId": "26e9c69375214dba", "scanner": "scanner-primary", "fingerprint": "749d4bc1bd66df5f", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["agent-instructions", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-a8666a74ad145068", "level": "warning", "message": {"text": "Likely N+1 query: `for pack in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:45"}, "properties": {"repobilityId": "d9cba52340026001", "scanner": "scanner-primary", "fingerprint": "a8666a74ad145068", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "n-plus-one", "performance"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "populate_stock_quantities.py"}, "region": {"startLine": 45}}}]}, {"ruleId": "scanner-dc97ca7d7b7bc1f8", "level": "warning", "message": {"text": "Likely N+1 query: `for pack in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:189"}, "properties": {"repobilityId": "1589a521d3b676e1", "scanner": "scanner-primary", "fingerprint": "dc97ca7d7b7bc1f8", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "n-plus-one", "performance"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "populate_stock_quantities.py"}, "region": {"startLine": 189}}}]}, {"ruleId": "scanner-7fbcad9091a37426", "level": "warning", "message": {"text": "Likely N+1 query: `for item in \u2026` triggers a query per row \u2014 populate_stock_quantities.py:197"}, "properties": {"repobilityId": "8d5a4af70537f5bf", "scanner": "scanner-primary", "fingerprint": "7fbcad9091a37426", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "n-plus-one", "performance"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "populate_stock_quantities.py"}, "region": {"startLine": 197}}}]}]}]}