|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.codenarc.rule.AbstractRule
groovy.org.codenarc.rule.naming.PackageNameMatchesFilePathRule
class PackageNameMatchesFilePathRule extends AbstractRule
A package source file's path should match the package declaration.
To find the package-relevant sub-path in the file path the groupId needs to be configured. It is expected to appear in every package declaration.| Property Summary | |
|---|---|
String |
groupId
|
String |
name
|
int |
priority
|
| Method Summary | |
|---|---|
void
|
applyTo(SourceCode sourceCode, List violations)
|
boolean
|
isReady()
|
| Property Detail |
|---|
String groupId
String name
int priority
| Method Detail |
|---|
@Override void applyTo(SourceCode sourceCode, List violations)
@Override boolean isReady()
Groovy Documentation