Showing 3 of 3 total issues
Function prompting
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prompting() {
this.options.needRootFolder = true
if (!this.options.id) {
this.options.needRootFolder = false
this.options.id = this.env.cwd.split(path.sep).pop()
Function prompting
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prompting() {
// Have Yeoman greet the user.
this.log(yosay(
'Welcome to the awe-inspiring ' + chalk.red('generator-homey') + ' app generator!'
))
Function writing
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
writing() {
const root = this.options.needRootFolder ? this.options.id + '/' : ''
this.fs.copy(
this.templatePath('app.js'),
this.destinationPath(root + 'app.js')