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

filter out tests from complexity report

Thomas Aylott committed Dec 3, 2013 at 16:01 UTC c222c46146e2c81ff8ff2bd9dc45e2b9454ff656
1 file changed +7 -1
grunt/config/complexity.js
+7 -1
@@ -1,5 +1,11 @@
1 +var grunt = require('grunt');
2 +
3 module.exports.generic = {
2 - src: ['./build/modules/**/*.js'],
4 + src: grunt.file.expand({
5 + filter: function(path){
6 + return !(/__\w+__|\btest\b/).test(path);
7 + }
8 + }, ['./build/modules/**/*.js']),
9 options: {
10 errorsOnly: false, // show only maintainability errors
11 cyclomatic: 3,