public ChromiumSourceFiles(IConfigurationFileProvider configurationFileProvider) { var configurationSectionProvider = new ConfigurationFileSectionProvider(configurationFileProvider); _chromiumCodingStylePatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationStyleFilenames.ChromiumCodingStyleIgnore); _chromiumDiscoveryProvider = new ChromiumDiscoveryWithCache <FullPathName>(configurationSectionProvider); }
public static bool IsChromiumSourceDirectory(FullPath path, IPathPatternsFile chromiumEnlistmentPatterns) { // We need to ensure that all pattern lines are covered by at least one file/directory of |path|. IList<string> directories; IList<string> files; NativeFile.GetDirectoryEntries(path.Value, out directories, out files); return chromiumEnlistmentPatterns.GetPathMatcherLines() .All(item => MatchFileOrDirectory(item, directories, files)); }
public static bool IsChromiumSourceDirectory(FullPathName path, IPathPatternsFile chromiumEnlistmentPatterns) { // We need to ensure that all pattern lines are covered by at least one file/directory of |path|. IList <string> directories; IList <string> files; NativeFile.GetDirectoryEntries(path.FullName, out directories, out files); return(chromiumEnlistmentPatterns.GetPathMatcherLines() .All(item => MatchFileOrDirectory(item, directories, files))); }
public ChromiumSourceFiles(IConfigurationFileProvider configurationFileProvider) { var configurationSectionProvider = new ConfigurationFileSectionProvider(configurationFileProvider); _chromiumCodingStylePatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationStyleFilenames.ChromiumCodingStyleIgnore); _chromiumDiscoveryProvider = new ChromiumDiscoveryWithCache<FullPathName>(configurationSectionProvider); }
public ChromiumDiscovery(IConfigurationSectionProvider configurationSectionProvider) { _chromiumEnlistmentPatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationFilenames.ChromiumEnlistmentDetectionPatterns); }
public ChromiumDiscovery(IConfigurationSectionProvider configurationSectionProvider, IFileSystem fileSystem) { _fileSystem = fileSystem; _chromiumEnlistmentPatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationFilenames.ChromiumEnlistmentDetectionPatterns); }