Skip to content

Commit

Permalink
fix PHPStorm @noinspection causes Missing Import warning #190
Browse files Browse the repository at this point in the history
  • Loading branch information
Haehnchen committed Jun 1, 2020
1 parent 3782a03 commit d3a7450
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public class AnnotationUtil {
add("@Required");
add("@Attributes");
add("@Attribute");
add("@test");
add("@noninspection");
add("@noinspection");
}};

public static boolean isAnnotationClass(@NotNull PhpClass phpClass) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,17 @@ public void testThatBlacklistedAnnotationDoesNotProvideInpsectionMessage() {
"}",
AnnotationMissingUseInspection.MESSAGE
);

assertLocalInspectionContainsNotContains("test.php", "<?php\n" +
"\n" +
"\n" +
"/**\n" +
" * @noinspe<caret>ction()\n" +
" */\n" +
"class Foo\n" +
"{\n" +
"}",
AnnotationMissingUseInspection.MESSAGE
);
}
}

0 comments on commit d3a7450

Please sign in to comment.