Fix nolint in StyleChecker (#171)

This commit is contained in:
Vladiwostok 2024-11-10 19:38:05 +02:00 committed by Vladiwostok
parent a6ea37ce9c
commit 76cf434549

View file

@ -11,7 +11,6 @@ import std.conv : to;
import std.format : format;
import std.regex;
// TODO: Fix NoLint
extern (C++) class StyleChecker(AST) : BaseAnalyzerDmd
{
mixin AnalyzerInfo!"style_check";
@ -31,6 +30,9 @@ extern (C++) class StyleChecker(AST) : BaseAnalyzerDmd
override void visit(AST.Module moduleNode)
{
if (shouldIgnoreDecl(moduleNode.userAttribDecl(), KEY))
return;
super.visit(moduleNode);
if (moduleNode.md is null)