trufflesuite/truffle

View on GitHub
packages/db/src/resources/networks/resolvePossibleRelations.ts

Summary

Maintainability
B
5 hrs
Test Coverage

Function resolvePossibleRelations has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function resolvePossibleRelations(
  relationship: "ancestor" | "descendant"
) {
  const { queryName, heightFilter, heightOrder } = relationshipProperties(
    relationship
Severity: Major
Found in packages/db/src/resources/networks/resolvePossibleRelations.ts - About 3 hrs to fix

    Function findPossibleNetworks has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const findPossibleNetworks = async (options: {
        network: Resource<"networks">;
        limit: number;
        alreadyTried: string[];
        workspace: Workspace;
    Severity: Minor
    Found in packages/db/src/resources/networks/resolvePossibleRelations.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status