diff options
author | rillig <rillig@pkgsrc.org> | 2015-12-05 21:00:42 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2015-12-05 21:00:42 +0000 |
commit | 576e28830879dd1e62f4d61c31a43700bc131bc7 (patch) | |
tree | 2e6a8efc293e74847195bed19e888a38c47a7fee /pkgtools/pkglint/files/vartypecheck.go | |
parent | ea98471d28cf713a88e308a2711c29ecd9553369 (diff) | |
download | pkgsrc-576e28830879dd1e62f4d61c31a43700bc131bc7.tar.gz |
Code reorganization, unit test for loading tool definitions
A run of "pkglint -r -Wall -Call" over the whole pkgsrc tree produces
identical output as before, therefore the version number is kept.
Diffstat (limited to 'pkgtools/pkglint/files/vartypecheck.go')
-rw-r--r-- | pkgtools/pkglint/files/vartypecheck.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgtools/pkglint/files/vartypecheck.go b/pkgtools/pkglint/files/vartypecheck.go index 9b8d8078063..8179173e7e5 100644 --- a/pkgtools/pkglint/files/vartypecheck.go +++ b/pkgtools/pkglint/files/vartypecheck.go @@ -532,7 +532,7 @@ func (cv *VartypeCheck) SedCommands() { for i := 0; i < nwords; i++ { word := words[i] - checklineMkShellword(cv.line, word, true) + NewMkShellLine(cv.line).checkShellword(word, true) switch { case word == "-e": @@ -551,8 +551,8 @@ func (cv *VartypeCheck) SedCommands() { "", "This way, short sed commands cannot be hidden at the end of a line.") } - checklineMkShellword(line, words[i-1], true) - checklineMkShellword(line, words[i], true) + NewMkShellLine(line).checkShellword(words[i-1], true) + NewMkShellLine(line).checkShellword(words[i], true) NewMkLine(line).checkVartypePrimitive(cv.varname, CheckvarSedCommand, cv.op, words[i], cv.comment, cv.listContext, cv.guessed) } else { line.errorf("The -e option to sed requires an argument.") @@ -573,12 +573,12 @@ func (cv *VartypeCheck) SedCommands() { } func (cv *VartypeCheck) ShellCommand() { - NewMkShellLine(cv.line).checklineMkShelltext(cv.value) + NewMkShellLine(cv.line).checkShelltext(cv.value) } func (cv *VartypeCheck) ShellWord() { if !cv.listContext { - checklineMkShellword(cv.line, cv.value, true) + NewMkShellLine(cv.line).checkShellword(cv.value, true) } } |