Skip to content

Commit

Permalink
UDA to disable linting: more unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardaxel committed Oct 11, 2023
1 parent f492b15 commit f2497f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dscanner/analysis/useless_initializer.d
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit f2497f1

Please sign in to comment.