mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
filter out tests from complexity report
This commit is contained in:
1 parent
2b3e97b5a4
commit
c222c46146
1 file changed
+7
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user