frontend: disable warnings for test modules
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 6 Jun 2017 05:16:27 +0000 (01:16 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 6 Sep 2017 22:58:06 +0000 (18:58 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/frontend/no_warning.nit

index 97efb63..54d9a01 100644 (file)
@@ -48,8 +48,8 @@ private class NoWarningPhase
 
                var modelbuilder = toolcontext.modelbuilder
 
-               # Disable `missing-doc` for `test_suite`
-               if source != null and not nmoduledecl.get_annotations("test_suite").is_empty then
+               # Disable `missing-doc` for `test`
+               if source != null and not nmoduledecl.get_annotations("test").is_empty then
                        toolcontext.warning_blacklist[source].add("missing-doc")
                end