mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-26 05:10:03 +03:00
Fix nolint in StyleChecker (#171)
This commit is contained in:
parent
a6ea37ce9c
commit
76cf434549
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue