Debian Codegraph @

Gruntfile.js

raw symbols SCIP
1 /*jshint node:true */
2 module.exports = function(grunt) {
3 'use strict';
4
5 grunt.initConfig({
6 pkg: grunt.file.readJSON('package.json'),
7
8 complexity: {
9 options: {
10 errorsOnly: false,
11 cyclomatic: 10,
12 halstead: 30,
13 maintainability: 85
14 },
15 generic: {
16 src: [
17 'mousetrap.js'
18 ]
19 },
20 plugins: {
21 src: [
22 'plugins/**/*.js',
23 '!plugins/**/tests/**',
24 '!plugins/**/*.min.js'
25 ]
26 }
27 }
28 });
29
30 grunt.loadNpmTasks('grunt-complexity');
31
32 grunt.registerTask('default', [
33 'complexity'
34 ]);
35 };