trufflesuite/truffle

View on GitHub
packages/resolver/lib/sources/abi.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function resolve has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async resolve(
    importPath: string,
    importedFrom: string = "",
    options: { compiler?: { name: string; version: string } } = {}
  ) {
Severity: Minor
Found in packages/resolver/lib/sources/abi.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return {
            filePath,
            body: emptySolidity
          };
    Severity: Major
    Found in packages/resolver/lib/sources/abi.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status