Galooshi/import-js

View on GitHub
lib/Watcher.js

Summary

Maintainability
A
3 hrs
Test Coverage
F
28%

Function subscribe has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  subscribe({
    client,
    fbWatch,
    relativePath,
  }: {
Severity: Major
Found in lib/Watcher.js - About 2 hrs to fix

    Function poll has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      poll(): Promise<void> {
        return new Promise((resolve: Function, reject: Function) => {
          findAllFiles(this.workingDirectory, this.excludes)
            .then((files: Array<Object>) => {
              const mtimes = {};
    Severity: Minor
    Found in lib/Watcher.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status