[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.5 and 1.6

version 1.5, 2020/01/04 19:53:14 version 1.6, 2020/02/15 13:48:40
Line 42  func (ck *MkVarUseChecker) checkUndefine
Line 42  func (ck *MkVarUseChecker) checkUndefine
         varname := varuse.varname          varname := varuse.varname
   
         switch {          switch {
         case !G.Opts.WarnExtra,          case !G.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(),
                 // TODO: At load time, check ck.MkLines.loadVars instead of allVars.                  // TODO: At load time, check ck.MkLines.loadVars instead of allVars.
Line 153  func (ck *MkVarUseChecker) checkVarname(
Line 153  func (ck *MkVarUseChecker) checkVarname(
 //  //
 // See checkVarassignLeftPermissions.  // See checkVarassignLeftPermissions.
 func (ck *MkVarUseChecker) checkPermissions(vuc *VarUseContext) {  func (ck *MkVarUseChecker) checkPermissions(vuc *VarUseContext) {
         if !G.Opts.WarnPerm {          if !G.WarnPerm {
                 return                  return
         }          }
         if G.Infrastructure {          if G.Infrastructure {
Line 448  func (ck *MkVarUseChecker) warnToolLoadT
Line 448  func (ck *MkVarUseChecker) warnToolLoadT
 // checkVarUseWords checks whether a variable use of the form ${VAR}  // checkVarUseWords checks whether a variable use of the form ${VAR}
 // or ${VAR:modifiers} is allowed in a certain context.  // or ${VAR:modifiers} is allowed in a certain context.
 func (ck *MkVarUseChecker) checkQuoting(vuc *VarUseContext) {  func (ck *MkVarUseChecker) checkQuoting(vuc *VarUseContext) {
         if !G.Opts.WarnQuoting || vuc.quoting == VucQuotUnknown {          if !G.WarnQuoting || vuc.quoting == VucQuotUnknown {
                 return                  return
         }          }
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>