Showing 2 of 2 total issues
Function exports
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
var files = [ 'tasks/**/*.js', 'test/**/*.js' ];
var packageName = grunt.option('packageName');
var newVersion = grunt.option('newVersion');
Consider simplifying this complex logical expression. Open
Open
if ( !options ||
!options.packageName || options.packageName === '' ||
!options.newVersion || options.newVersion === '' ||
!options.path || options.path === '') {
throw new Error('Bad configuration!');