Galooshi/import-js

View on GitHub
lib/findJsModulesFor.js

Summary

Maintainability
B
4 hrs
Test Coverage
A
95%

Function findJsModulesFromModuleFinder has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function findJsModulesFromModuleFinder(
  config: Configuration,
  normalizedName: string,
  variableName: string,
  finder: ModuleFinder,
Severity: Major
Found in lib/findJsModulesFor.js - About 2 hrs to fix

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

    export default function findJsModulesFor(
      config: Configuration,
      variableName: string,
      options?: FindJsModulesForOptionsType,
    ): Promise<Array<JsModule>> {
    Severity: Minor
    Found in lib/findJsModulesFor.js - About 1 hr to fix

      Function findJsModulesFromModuleFinder has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        config: Configuration,
        normalizedName: string,
        variableName: string,
        finder: ModuleFinder,
        pathToCurrentFile: string,
      Severity: Minor
      Found in lib/findJsModulesFor.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status