C# Class JTC.SharpLinter.Config.FilePathMatcher

Show file Open project: revdotcom/SharpLinter Class Usage Examples

Public Methods

Method Description
MatchFiles ( IEnumerable patterns, IEnumerable names, bool exclude ) : IEnumerable
MatchFiles ( string pattern, IEnumerable names, bool exclude ) : IEnumerable

Returns only the files from names that match pattern, unless exclude, in which case only those that don't match

Private Methods

Method Description
FileNamePart ( string pattern ) : string
MatchPathOnly ( string pattern, string path ) : bool
PathPart ( string pattern ) : string

Method Details

MatchFiles() public static method

public static MatchFiles ( IEnumerable patterns, IEnumerable names, bool exclude ) : IEnumerable
patterns IEnumerable
names IEnumerable
exclude bool
return IEnumerable

MatchFiles() public static method

Returns only the files from names that match pattern, unless exclude, in which case only those that don't match
public static MatchFiles ( string pattern, IEnumerable names, bool exclude ) : IEnumerable
pattern string
names IEnumerable
exclude bool
return IEnumerable