webdevian/generator-style-guider

View on GitHub
generators/component/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

  writing () {
    // Create the schema entry
    this._template('schema.js', 'schema/components/' + this.props.name + '.js', this.props)

    if (this.props.docs) {
Severity: Minor
Found in generators/component/index.js - About 1 hr to fix

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

      prompting () {
        this.log('Creating a new component for your style-guider!')
        const prompts = [{
          type: 'input',
          name: 'name',
    Severity: Minor
    Found in generators/component/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status