mirror of
https://github.com/react/react.git
synced 2026-10-15 03:05:10 +08:00
filter out tests from complexity report
This commit is contained in:
@@ -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