summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/buildlink3_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/buildlink3_test.go')
-rw-r--r--pkgtools/pkglint/files/buildlink3_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgtools/pkglint/files/buildlink3_test.go b/pkgtools/pkglint/files/buildlink3_test.go
index a6c409288d1..220953d17bf 100644
--- a/pkgtools/pkglint/files/buildlink3_test.go
+++ b/pkgtools/pkglint/files/buildlink3_test.go
@@ -600,10 +600,9 @@ func (s *Suite) Test_Buildlink3Checker_checkMainPart__if_else_endif(c *check.C)
t.CheckOutputEmpty()
}
-// Since the buildlink3 checker does not use MkLines.ForEach, it has to keep
-// track of the nesting depth of .if directives.
-//
-// TODO: Use MkLines.ForEach.
+// The buildlink3 checker does not use MkLines.ForEach since that would make
+// the code more difficult to understand. Without MkLines.ForEach, it has to
+// keep track of the nesting depth of .if directives itself.
func (s *Suite) Test_Buildlink3Checker_checkMainPart__nested_if(c *check.C) {
t := s.Init(c)