Exemplo n.º 1
0
        private bool ShouldExclude(string packagePath)
        {
            if (_pathsToExclude == null)
            {
                _pathsToExclude = new HashSet <string>(PathsToExclude.NullAsEmpty().Select(NormalizePath), StringComparer.OrdinalIgnoreCase);
            }

            return(ShouldSuppress(packagePath) || ProbePath(packagePath, _pathsToExclude));
        }
Exemplo n.º 2
0
        private bool ShouldExclude(string packagePath)
        {
            if (_pathsToExclude == null)
            {
                _pathsToExclude = PathsToExclude.NullAsEmpty().Select(EnsureDirectory).ToArray();
            }

            return(ShouldSuppress(packagePath) ||
                   _pathsToExclude.Any(p => packagePath.StartsWith(p, StringComparison.OrdinalIgnoreCase)));
        }
Exemplo n.º 3
0
 private bool ShouldExclude(string packagePath)
 {
     return(ShouldSuppress(packagePath) || (PathsToExclude != null &&
                                            PathsToExclude.Any(p => packagePath.StartsWith(p, StringComparison.OrdinalIgnoreCase))));
 }