{
"id": "fastapi-db-session-not-closed",
"language": "python",
"group": "maintainability",
"listingTitle": "Review db session not closed",
"title": "Review db session not closed",
"mvvm": false,
"defaultSeverity": "info",
"legacyGroup": "maintainability",
"why": "A database session that is not closed can exhaust the connection pool.",
"suggestion": "Close the session from a finally block or context-managed dependency.",
"version": 1,
"semanticMaturity": "project",
"securityKind": "none",
"taxonomy": [
"maintainability"
],
"requirements": [
"sourceText"
],
"packs": [
"fastapi"
],
"implementation": "src/rules/frameworks/fastapi.rs",
"languages": [
"python"
],
"frameworks": [
"fastapi"
],
"languageVersions": [],
"limitations": [
"Only explicit FastAPI decorators, common middleware, SQLAlchemy, JWT, and dependency patterns are resolved.",
"Framework wrappers, generated routes, runtime registrations, and external infrastructure cannot be resolved."
]
}