diff --git a/src/dscanner/analysis/useless_initializer.d b/src/dscanner/analysis/useless_initializer.d index e8f448c1..bd353ca0 100644 --- a/src/dscanner/analysis/useless_initializer.d +++ b/src/dscanner/analysis/useless_initializer.d @@ -382,6 +382,13 @@ public: int a = 0; ubyte a = 0x0; /+ ^^^ [warn]: X +/ + + @("nolint(other_check, useless_initializer, another_one)") + int a = 0; + + @nolint("other_check", "another_one", "useless_initializer") + int a = 0; + }, sac); stderr.writeln("Unittest for UselessInitializerChecker passed.");