[BACK]Return to mkvarusechecker.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/mkvarusechecker.go between version 1.1 and 1.2

version 1.1, 2019/12/08 00:06:38 version 1.2, 2019/12/08 22:03:38
Line 45  func (ck *MkVarUseChecker) checkUndefine
Line 45  func (ck *MkVarUseChecker) checkUndefine
         case !G.Opts.WarnExtra,          case !G.Opts.WarnExtra,
                 // Well-known variables are probably defined by the infrastructure.                  // Well-known variables are probably defined by the infrastructure.
                 vartype != nil && !vartype.IsGuessed(),                  vartype != nil && !vartype.IsGuessed(),
                 ck.MkLines.vars.IsDefinedSimilar(varname),                  // TODO: At load time, check ck.MkLines.loadVars instead of allVars.
                   ck.MkLines.allVars.IsDefinedSimilar(varname),
                 ck.MkLines.forVars[varname],                  ck.MkLines.forVars[varname],
                 ck.MkLines.vars.Mentioned(varname) != nil,                  ck.MkLines.allVars.Mentioned(varname) != nil,
                 G.Pkg != nil && G.Pkg.vars.IsDefinedSimilar(varname),                  G.Pkg != nil && G.Pkg.vars.IsDefinedSimilar(varname),
                 containsVarRef(varname),                  containsVarRef(varname),
                 G.Pkgsrc.vartypes.IsDefinedCanon(varname),                  G.Pkgsrc.vartypes.IsDefinedCanon(varname),
Line 61  func (ck *MkVarUseChecker) checkUndefine
Line 62  func (ck *MkVarUseChecker) checkUndefine
 }  }
   
 func (ck *MkVarUseChecker) checkModifiers() {  func (ck *MkVarUseChecker) checkModifiers() {
         varuse := ck.use          if len(ck.use.modifiers) == 0 {
         mods := varuse.modifiers  
         if len(mods) == 0 {  
                 return                  return
         }          }
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>