[BACK]Return to redundantscope_test.go CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint / files

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/pkgtools/pkglint/files/redundantscope_test.go between version 1.12 and 1.13

version 1.12, 2019/12/30 16:27:13 version 1.13, 2020/02/05 04:09:00
Line 1445  func (s *Suite) Test_RedundantScope__is_
Line 1445  func (s *Suite) Test_RedundantScope__is_
                 scope := NewRedundantScope()                  scope := NewRedundantScope()
                 scope.IsRelevant = func(mkline *MkLine) bool {                  scope.IsRelevant = func(mkline *MkLine) bool {
                         // See checkfilePackageMakefile.                          // See checkfilePackageMakefile.
                         if !G.Infrastructure && !G.Opts.CheckGlobal {                          return G.Opts.CheckGlobal || !G.Pkgsrc.IsInfra(mkline.Filename)
                                 return !G.Pkgsrc.IsInfra(mkline.Filename)  
                         }  
                         return true  
                 }                  }
   
                 scope.Check(mklines)                  scope.Check(mklines)

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

CVSweb <webmaster@jp.NetBSD.org>