yoctore/yocto-grunt-apidoc

View on GitHub

Showing 4 of 19 total issues

Function createApiFile has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Generator.prototype.createApiFile = function (theTemplate, jsonModel, jsonApiDoc, destFile) {

  var commentFile = '';

  // Retrieve each methods on jsonApiDoc for generate an bloc with all necessary values
Severity: Major
Found in src/generator.js - About 2 hrs to fix

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

    Generator.prototype.startProcess = function (src, docs, destFile, done, grunt) {
    
      // Save grunt instance
      this.grunt = grunt;
    
    
    Severity: Minor
    Found in src/generator.js - About 1 hr to fix

      Function exports has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(grunt) {
      
        // Project configuration.
        grunt.initConfig({
      
      
      Severity: Minor
      Found in Gruntfile.js - About 1 hr to fix

        Function startProcess has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        Generator.prototype.startProcess = function (src, docs, destFile, done, grunt) {
        Severity: Minor
        Found in src/generator.js - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language