jaumard/generator-homey

View on GitHub
generators/app/index.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function prompting has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  prompting() {
    this.options.needRootFolder = true
    if (!this.options.id) {
      this.options.needRootFolder = false
      this.options.id = this.env.cwd.split(path.sep).pop()
Severity: Major
Found in generators/app/index.js - About 2 hrs to fix

    Function writing has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      writing() {
        const root = this.options.needRootFolder ? this.options.id + '/' : ''
        this.fs.copy(
          this.templatePath('app.js'),
          this.destinationPath(root + 'app.js')
    Severity: Minor
    Found in generators/app/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status