Coverage

100%
10
10
0

lib/core.js

100%
10
10
0
LineHitsSource
11var gonzales = require('gonzales-pe');
21var minimatch = require('minimatch');
31var vow = require('vow');
41var vfs = require('vow-fs');
5
6/**
7 * @param {Array} predefinedOptions
8 * @constructor
9 * @name Comb
10 */
111var Comb = function() {
12 // nani
13};
14
151Comb.prototype = {
16 // List of file paths that should be excluded from processing:
17 excludedPaths_: [],
18
19 /**
20 * Checks if path is present in `exclude` list.
21 *
22 * @param {String} path
23 * @returns {Boolean} False if specified path is present in `exclude` list.
24 * Otherwise returns true.
25 */
26 shouldProcess_: function shouldProcess(path) {
272 var excludedPaths = this.excludedPaths_;
28
292 path = path.replace(/^\.\//, '');
30 for (var i = excludedPaths.length; i--;) {
31 if (excludedPaths[i].match(path)) return false;
32 }
331 return true;
34 }
35};
36
371module.exports = Comb;
38
39