private-dreamnet/dreamtime

View on GitHub
src/modules/file.js

Summary

Maintainability
B
4 hrs
Test Coverage

File has 24 functions (exceeds 20 allowed). Consider refactoring.
Open

export class File extends EventEmitter {
  /**
   * File name without extension.
   * @type {string}
   */
Severity: Minor
Found in src/modules/file.js - About 2 hrs to fix

    Function save has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      save(defaultPath) {
        if (!fs.existsSync(this.path)) {
          throw new Warning(
            'The photo no longer exists.',
            'Could not save the photo because it has been deleted, this could be caused due to cleaning or antivirus programs.',
    Severity: Minor
    Found in src/modules/file.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status