Skip to content

Commit c222c46

Browse files
filter out tests from complexity report
1 parent 2b3e97b commit c222c46

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

grunt/config/complexity.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
var grunt = require('grunt');
2+
13
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']),
39
options: {
410
errorsOnly: false, // show only maintainability errors
511
cyclomatic: 3,

0 commit comments

Comments
 (0)