コード例 #1
0
        public ChromiumSourceFiles(IConfigurationFileProvider configurationFileProvider)
        {
            var configurationSectionProvider = new ConfigurationFileSectionProvider(configurationFileProvider);

            _chromiumCodingStylePatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationStyleFilenames.ChromiumCodingStyleIgnore);
            _chromiumDiscoveryProvider   = new ChromiumDiscoveryWithCache <FullPathName>(configurationSectionProvider);
        }
コード例 #2
0
 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));
 }
コード例 #3
0
        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)));
        }
コード例 #4
0
 public ChromiumSourceFiles(IConfigurationFileProvider configurationFileProvider)
 {
     var configurationSectionProvider = new ConfigurationFileSectionProvider(configurationFileProvider);
       _chromiumCodingStylePatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationStyleFilenames.ChromiumCodingStyleIgnore);
       _chromiumDiscoveryProvider = new ChromiumDiscoveryWithCache<FullPathName>(configurationSectionProvider);
 }
コード例 #5
0
 public ChromiumDiscovery(IConfigurationSectionProvider configurationSectionProvider)
 {
     _chromiumEnlistmentPatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationFilenames.ChromiumEnlistmentDetectionPatterns);
 }
コード例 #6
0
 public ChromiumDiscovery(IConfigurationSectionProvider configurationSectionProvider, IFileSystem fileSystem)
 {
     _fileSystem = fileSystem;
       _chromiumEnlistmentPatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationFilenames.ChromiumEnlistmentDetectionPatterns);
 }