diff options
Diffstat (limited to 'pkgtools/pkglint/files/mklineparser.go')
-rw-r--r-- | pkgtools/pkglint/files/mklineparser.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/mklineparser.go b/pkgtools/pkglint/files/mklineparser.go index 549796ebad0..1d8ef7cad1d 100644 --- a/pkgtools/pkglint/files/mklineparser.go +++ b/pkgtools/pkglint/files/mklineparser.go @@ -16,7 +16,6 @@ func NewMkLineParser() MkLineParser { return MkLineParser{} } func (p MkLineParser) Parse(line *Line) *MkLine { text := line.Text - // XXX: This check should be moved somewhere else. NewMkLine should only be concerned with parsing. if hasPrefix(text, " ") && line.Basename != "bsd.buildlink3.mk" { line.Warnf("Makefile lines should not start with space characters.") line.Explain( @@ -135,7 +134,7 @@ func (p MkLineParser) MatchVarassign(line *Line, text string, splitResult *mkLin value := trimHspace(lexer.Rest()) parsedValueAlign := condStr(commented, "#", "") + lexer.Since(mainStart) - valueAlign := p.getRawValueAlign(line.raw[0].orignl, parsedValueAlign) + valueAlign := p.getRawValueAlign(line.raw[0].Orig(), parsedValueAlign) if value == "" { valueAlign += splitResult.spaceBeforeComment splitResult.spaceBeforeComment = "" |