repowiseparse-community/parse-server

parse-community / parse-server

javascriptalpha278f33a147.6K linessynced on Sep 23, 2026

Code health

6.5out of 10Fair

Hotspots average 3.6, the place fixes pay off most.

Explore this codebase

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)
  • 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)

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
    worth a check
  • Tidy the code shape this week's commits left: 1 finding in src/GraphQL/ParseGraphQLServer.js

    1 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

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

Everything we found

6 areas