[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.3 and 1.4

version 1.3, 2019/12/09 20:38:16 version 1.4, 2019/12/30 16:27:13
Line 142  func (ck *MkVarUseChecker) checkVarname(
Line 142  func (ck *MkVarUseChecker) checkVarname(
         if varname == "LOCALBASE" && !G.Infrastructure && time == VucRunTime {          if varname == "LOCALBASE" && !G.Infrastructure && time == VucRunTime {
                 fix := ck.MkLine.Autofix()                  fix := ck.MkLine.Autofix()
                 fix.Warnf("Please use PREFIX instead of LOCALBASE.")                  fix.Warnf("Please use PREFIX instead of LOCALBASE.")
                 fix.ReplaceRegex(`\$\{LOCALBASE\b`, "${PREFIX", 1)                  fix.ReplaceAfter("${", "LOCALBASE", "PREFIX")
                 fix.Apply()                  fix.Apply()
         }          }
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>