@samitouri / QOS-React-2 / commits / e9c00b1bae

Remove grunt-complexity

The report itself is more or less useful because it detects stuff like big objects (e.g. CSSProperty) as being too complicated. Furthermore, afaik nobody refactors the code based on what the report says =).

Cheng Lou committed Apr 16, 2014 at 10:53 UTC e9c00b1bae2f8e4ffe875fc1002439ac3c8b55db
3 files changed +1 -19
Gruntfile.js
+1 -2
@@ -27,8 +27,7 @@ module.exports = function(grunt) {
27 npm: require('./grunt/config/npm'),
28 clean: ['./build', './*.gem', './docs/_site', './examples/shared/*.js', '.module-cache'],
29 jshint: require('./grunt/config/jshint'),
30 - compare_size: require('./grunt/config/compare_size'),
31 - complexity: require('./grunt/config/complexity')
30 + compare_size: require('./grunt/config/compare_size')
31 });
32
33 grunt.config.set('compress', require('./grunt/config/compress'));
grunt/config/complexity.js deleted
-16
@@ -1,16 +0,0 @@
1 -"use strict";
2 -var grunt = require('grunt');
3 -
4 -module.exports.generic = {
5 - src: grunt.file.expand({
6 - filter: function(path){
7 - return !(/__\w+__|\btest\b/).test(path);
8 - }
9 - }, ['./build/modules/**/*.js']),
10 - options: {
11 - errorsOnly: false, // show only maintainability errors
12 - cyclomatic: 3,
13 - halstead: 8,
14 - maintainability: 100
15 - }
16 -};
package.json
-1
@@ -47,7 +47,6 @@
47 "grunt": "~0.4.2",
48 "grunt-cli": "~0.1.9",
49 "grunt-compare-size": "~0.4.0",
50 - "grunt-complexity": "~0.1.3",
50 "grunt-contrib-clean": "~0.5.0",
51 "grunt-contrib-compress": "~0.6.0",
52 "grunt-contrib-connect": "~0.6.0",