diff --git a/grunt/config/complexity.js b/grunt/config/complexity.js index dd5978b7e7..865c365373 100644 --- a/grunt/config/complexity.js +++ b/grunt/config/complexity.js @@ -1,5 +1,11 @@ +var grunt = require('grunt'); + module.exports.generic = { - src: ['./build/modules/**/*.js'], + src: grunt.file.expand({ + filter: function(path){ + return !(/__\w+__|\btest\b/).test(path); + } + }, ['./build/modules/**/*.js']), options: { errorsOnly: false, // show only maintainability errors cyclomatic: 3,