forked from checkstyle/checkstyle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue checkstyle#9531: update WriteTagCheckTest to use unique Input file Issue checkstyle#9746: update AbstractClassNameCheckTest Inp Issue checkstyle#9746: update AbstractClassNameCheckTest Inp Issue checkstyle#9746: update AbstractClassNameCheckTest Inp Issue checkstyle#9746: update AbstractClassNameCheckTest Inp
- Loading branch information
Showing
6 changed files
with
132 additions
and
24 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
21 changes: 21 additions & 0 deletions
21
...m/puppycrawl/tools/checkstyle/checks/naming/abstractclassname/InputAbstractClassName.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,21 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.naming.abstractclassname; | ||
|
||
import java.io.Serializable; | ||
import java.util.LinkedHashMap; | ||
|
||
import org.w3c.dom.Node; | ||
|
||
/* Config: | ||
* pattern = "^Abstract.+$" | ||
*/ | ||
abstract class AbstractClassName { // ok | ||
} | ||
|
||
abstract class InputAbstractClassName { // violation | ||
} | ||
|
||
abstract class NonAbstractClassName { // violation | ||
} | ||
|
||
abstract class NonAbstractInnerClass { // violation | ||
} |
30 changes: 30 additions & 0 deletions
30
...l/tools/checkstyle/checks/naming/abstractclassname/InputAbstractClassNameAllVariants.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,30 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.naming.abstractclassname; | ||
|
||
|
||
|
||
import java.io.Serializable; | ||
import java.util.LinkedHashMap; | ||
|
||
import org.w3c.dom.Node; | ||
|
||
/* Config: | ||
* pattern = "^Abstract.+$" | ||
* modifier = abstract | ||
*/ | ||
abstract class AbstractClassName { // ok | ||
} | ||
|
||
abstract class InputAbstractClassName { // violation | ||
} | ||
|
||
abstract class NonAbstractClassName { // violation | ||
} | ||
|
||
abstract class NonAbstractInnerClass { // violation | ||
} | ||
|
||
class AbstractClass { // violation | ||
} | ||
|
||
class AbstractInnerClass { // violation | ||
} |
18 changes: 18 additions & 0 deletions
18
...awl/tools/checkstyle/checks/naming/abstractclassname/InputAbstractClassNameClassType.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,18 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.naming.abstractclassname; | ||
|
||
import java.io.Serializable; | ||
import java.util.LinkedHashMap; | ||
|
||
import org.w3c.dom.Node; | ||
|
||
/* Config: | ||
* modifier = abstract | ||
*/ | ||
abstract class AbstractClassName { // ok | ||
} | ||
|
||
class AbstractClass { // violation | ||
} | ||
|
||
class AbstractInnerClass { // violation | ||
} |
21 changes: 21 additions & 0 deletions
21
...ycrawl/tools/checkstyle/checks/naming/abstractclassname/InputAbstractClassNameCustom.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,21 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.naming.abstractclassname; | ||
|
||
import java.io.Serializable; | ||
import java.util.LinkedHashMap; | ||
|
||
import org.w3c.dom.Node; | ||
|
||
/* Config: | ||
* pattern = "^NonAbstract.+$" | ||
*/ | ||
abstract class NonAbstractClassName { // ok | ||
} | ||
|
||
abstract class InputAbstractClassName { // violation | ||
} | ||
|
||
abstract class AbstractClassOther { // violation | ||
} | ||
|
||
abstract class AbstractClassName2 { // violation | ||
} |
16 changes: 16 additions & 0 deletions
16
...checkstyle/checks/naming/abstractclassname/InputAbstractClassNameFormerFalsePositive.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,16 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.naming.abstractclassname; | ||
|
||
import java.io.Serializable; | ||
import java.util.LinkedHashMap; | ||
|
||
import org.w3c.dom.Node; | ||
|
||
/* Config: | ||
* modifier = abstract | ||
*/ | ||
abstract class AbstractClassName { // ok | ||
} | ||
|
||
class AbstractClass { // violation | ||
} | ||
|