コード例 #1
0
 public bool it_excludes_raw_names(string pattern, string file)
 {
     var sut = new FileGlobber();
     sut.AddPattern("*");
     sut.IgnorePattern(pattern);
     return sut.ShouldCheckFile(file);
 }
コード例 #2
0
 public bool case_does_not_matter_with_ignores(string pattern, string file)
 {
     var sut = new FileGlobber();
     sut.AddPattern("*");
     sut.IgnorePattern(pattern);
     return !sut.ShouldCheckFile(file);
 }
コード例 #3
0
 public bool it_includes_globs_using_the_asterik(string pattern, string file)
 {
     var sut = new FileGlobber();
     sut.AddPattern(pattern);
     return sut.ShouldCheckFile(file);
 }
コード例 #4
0
 public bool case_does_not_matter(string pattern, string file)
 {
     var sut = new FileGlobber();
     sut.AddPattern(pattern);
     return sut.ShouldCheckFile(file);
 }
コード例 #5
0
ファイル: NetLint.cs プロジェクト: tkellogg/NetLint
 private static void StandardIgnores(FileGlobber g)
 {
     foreach (var pattern in FileGlobber.StandardIgnores)
     {
         g.IgnorePattern(pattern);
     }
 }
コード例 #6
0
ファイル: NetLint.cs プロジェクト: tkellogg/NetLint
 private static FileGlobber GetCoreGlobber()
 {
     var g = new FileGlobber();
     foreach (var pattern in FileGlobber.StandardIncludes)
     {
         g.AddPattern(pattern);
     }
     return g;
 }
コード例 #7
0
ファイル: FluentConfig.cs プロジェクト: tkellogg/NetLint
 public FluentConfig()
 {
     this.globber = new FileGlobber();
     this.launchers = new List<ILaunchableConfiguration>();
 }
コード例 #8
0
 public ProjectScanConfigExpression()
 {
     Globber = new FileGlobber();
 }