meilke/nudossi

View on GitHub

Showing 2 of 2 total issues

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

module.exports = function(grunt) {
  var files = [ 'tasks/**/*.js', 'test/**/*.js' ];

  var packageName = grunt.option('packageName');
  var newVersion = grunt.option('newVersion');
Severity: Minor
Found in Gruntfile.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

      if ( !options ||
           !options.packageName || options.packageName === '' ||
           !options.newVersion || options.newVersion === '' ||
           !options.path || options.path === '') {
        throw new Error('Bad configuration!');
    Severity: Major
    Found in tasks/nudossi.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language