Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #11736: Support qualified annotation names for MissingJavadocTy…
…peCheck
- Loading branch information
Showing
9 changed files
with
170 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...e/checks/javadoc/missingjavadoctype/InputMissingJavadocTypeFullyQualifiedAnnotation1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
MissingJavadocType | ||
scope = (default)public | ||
excludeScope = (default)null | ||
skipAnnotations = (default)Generated | ||
tokens = INTERFACE_DEF | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype; | ||
|
||
public class InputMissingJavadocTypeFullyQualifiedAnnotation1 { | ||
public @interface SomeAnnotation { } | ||
|
||
@SomeAnnotation // violation | ||
public interface A { } | ||
|
||
@InputMissingJavadocTypeFullyQualifiedAnnotation1.SomeAnnotation // violation | ||
public interface B { } | ||
|
||
@com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype. // violation | ||
InputMissingJavadocTypeFullyQualifiedAnnotation1.SomeAnnotation | ||
public interface C { } | ||
} |
25 changes: 25 additions & 0 deletions
25
...e/checks/javadoc/missingjavadoctype/InputMissingJavadocTypeFullyQualifiedAnnotation2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
MissingJavadocType | ||
scope = (default)public | ||
excludeScope = (default)null | ||
skipAnnotations = SomeAnnotation | ||
tokens = INTERFACE_DEF | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype; | ||
|
||
public class InputMissingJavadocTypeFullyQualifiedAnnotation2 { | ||
public @interface SomeAnnotation { } | ||
|
||
@SomeAnnotation // ok | ||
public interface A { } | ||
|
||
@InputMissingJavadocTypeFullyQualifiedAnnotation2.SomeAnnotation // violation | ||
public interface B { } | ||
|
||
@com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype. // violation | ||
InputMissingJavadocTypeFullyQualifiedAnnotation2.SomeAnnotation | ||
public interface C { } | ||
} |
25 changes: 25 additions & 0 deletions
25
...e/checks/javadoc/missingjavadoctype/InputMissingJavadocTypeFullyQualifiedAnnotation3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
MissingJavadocType | ||
scope = (default)public | ||
excludeScope = (default)null | ||
skipAnnotations = InputMissingJavadocTypeFullyQualifiedAnnotation3.SomeAnnotation | ||
tokens = INTERFACE_DEF | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype; | ||
|
||
public class InputMissingJavadocTypeFullyQualifiedAnnotation3 { | ||
public @interface SomeAnnotation { } | ||
|
||
@SomeAnnotation // violation | ||
public interface A { } | ||
|
||
@InputMissingJavadocTypeFullyQualifiedAnnotation3.SomeAnnotation // ok | ||
public interface B { } | ||
|
||
@com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype. // violation | ||
InputMissingJavadocTypeFullyQualifiedAnnotation3.SomeAnnotation | ||
public interface C { } | ||
} |
26 changes: 26 additions & 0 deletions
26
...e/checks/javadoc/missingjavadoctype/InputMissingJavadocTypeFullyQualifiedAnnotation4.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
MissingJavadocType | ||
scope = (default)public | ||
excludeScope = (default)null | ||
skipAnnotations = com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype.\ | ||
InputMissingJavadocTypeFullyQualifiedAnnotation4.SomeAnnotation | ||
tokens = INTERFACE_DEF | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype; | ||
|
||
public class InputMissingJavadocTypeFullyQualifiedAnnotation4 { | ||
public @interface SomeAnnotation { } | ||
|
||
@SomeAnnotation // violation | ||
public interface A { } | ||
|
||
@InputMissingJavadocTypeFullyQualifiedAnnotation4.SomeAnnotation // violation | ||
public interface B { } | ||
|
||
@com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype. // ok | ||
InputMissingJavadocTypeFullyQualifiedAnnotation4.SomeAnnotation | ||
public interface C { } | ||
} |