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,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