fixjs/define.js

View on GitHub
build/define.tasks.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

module.exports = function (grunt) {
  'use strict';

  var requirejs = require('./r'),
    pkg = grunt.file.readJSON('package.json'),
Severity: Major
Found in build/define.tasks.js - About 3 hrs to fix

    Function compileAll has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function compileAll(name, path, contents) {
          var amdName;
          // Detect variable modules
          if (/.\/var\//.test(path)) {
            contents = '  ' + contents
    Severity: Minor
    Found in build/define.tasks.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status