parse-community / parse-server
Code health
Hotspots average 3.6, the place fixes pay off most.
Explore this codebase
- Code health map4hotspots across 454 files
- Ownership109sole-owned files: one author, no second reader
- Architecture9modules, 11 entry points
- Decisions33recorded, of which 0 in force and 33 background
- Refactoring57open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4
4 things worth doing in the week to Sep 23, the last indexed commit, 2 of them now.
Now
- High
Start breaking up matchesKeyConstraints (CCN 81, 233 lines): first lift lines 354-371
src/LiveQuery/QueryTools.js:354
matchesKeyConstraints is complex and keeps changing, which also removes a duplicate; function changed in 8 commits; its file is imported by 2 files.
- gain
- +0.7 health on this file(inferred)
- health recoverable
- +0.7(inferred)
- size
- CCN 81, 233 lines, nests 5 deep
- steps
- 1 (1 mechanical)
Small effort - High
Start breaking up buildWhereClause (CCN 142, 551 lines): first lift lines 497-556
src/Adapters/Storage/Postgres/PostgresStorageAdapter.js:497
buildWhereClause is complex and keeps changing, which also removes a duplicate; function changed in 10 commits; its file is imported by 3 files.
- gain
- +0.8 health on this file(inferred)
- health recoverable
- +0.8(inferred)
- size
- CCN 142, 551 lines, nests 7 deep
- steps
- 3 (3 mechanical)
Medium effort
Worth planning
Start breaking up transformConstraint (CCN 83, 287 lines): first lift lines 661-673
src/Adapters/Storage/Mongo/MongoTransform.js:661
transformConstraint nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 5 commits; its file is imported by 1 file.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 83, 287 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 1 finding in
src/GraphQL/ParseGraphQLServer.js1 commit in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/GraphQL/ParseGraphQLServer.js(1 finding): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 1
- files
- 1
- commits
- 1
Medium effort
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
6 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health1,044 open findingsCriticalFunction hotspot · src/Routers/UsersRouter.js33 findings · 7.8 deducted
- Refactoring57 open opportunitiesMediumgetDatabaseOptionsFromURI+1.3 health, M effort · src/Adapters/Storage/Postgres/PostgresConfigParser.js
- Doc drift3MediumREADME.mdLink points at #parameters-1, which README.md no longer declares.
- Decisions0 drifting from the codeMediumspec/vulnerabilities.spec.jsHigh-churn file with no governing decision
- Ownership109 sole-owned filesMediumspec/vulnerabilities.spec.jsOne author, no second reader
- Dead code5Lowsrc/cli/parse-server.jsUnreachable symbol (20 lines)