jaumard/generator-homey

View on GitHub

Showing 3 of 3 total issues

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 prompting has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      prompting() {
        // Have Yeoman greet the user.
        this.log(yosay(
          'Welcome to the awe-inspiring ' + chalk.red('generator-homey') + ' app generator!'
        ))
    Severity: Minor
    Found in generators/driver/index.js - About 1 hr 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
        Severity
        Category
        Status
        Source
        Language