/*
 * grunt-cli-config
 * https://github.com/henvic/grunt-cli-config
 *
 * Copyright (c) 2014 Henrique Vicente
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function exports(grunt) {
    grunt.initConfig({
        jshint: {
            all: [
                'Gruntfile.js',
                'tasks/*.js',
                '<%= nodeunit.tests %>'
            ],
            options: {
                jshintrc: '.jshintrc'
            }
        },
        nodeunit: {
            tests: ['test/*_test.js']
        },
        complexity: {
            generic: {
                src: ['Gruntfile.js', 'tasks/config_options.js'],
                options: {
                    breakOnErrors: true,
                    errorsOnly: false,
                    cyclomatic: 3,
                    halstead: 8,
                    maintainability: 70,
                    hideComplexFunctions: false
                }
            }
        }
    });

    grunt.loadTasks('tasks');

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-nodeunit');
    grunt.loadNpmTasks('grunt-complexity');

    grunt.registerTask('test', ['jshint', 'nodeunit', 'complexity']);
    grunt.registerTask('default', ['test']);

};

/*
 * grunt-cli-config
 * https://github.com/henvic/grunt-cli-config
 *
 * Copyright (c) 2014 Henrique Vicente
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function exports(grunt) {
    grunt.initConfig({
        jshint: {
            all: [
                'Gruntfile.js',
                'index.js',
                'tasks/*.js',
                '<%= nodeunit.tests %>'
            ],
            options: {
                jshintrc: '.jshintrc'
            }
        },
        nodeunit: {
            tests: ['test/*_test.js']
        },
        complexity: {
            generic: {
                src: ['Gruntfile.js', 'index.js', 'tasks/*.js'],
                options: {
                    breakOnErrors: true,
                    errorsOnly: false,
                    cyclomatic: 3,
                    halstead: 8,
                    maintainability: 70,
                    hideComplexFunctions: false
                }
            }
        }
    });

    grunt.loadTasks('tasks');

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-nodeunit');
    grunt.loadNpmTasks('grunt-complexity');

    grunt.registerTask('test', ['jshint', 'nodeunit', 'complexity']);
    grunt.registerTask('default', ['test']);

};

Add index.js to the tests / complexity runner
Add index.js to the tests / complexity runner

Signed-off-by: Henrique Vicente <d390f26e2f50ad5716a9c69c58de1f5df9730e3b@gmail.com>
