Checkstyle Results

The following document contains the results of Checkstylerss feed

Summary

FilesInfos InfosWarnings WarningsErrors Errors
37012983

Files

FilesInfosWarningsErrors
org/apache/maven/plugins/enforcer/AbstractBanDependencies.java027
org/apache/maven/plugins/enforcer/AbstractNonCacheableEnforcerRule.java030
org/apache/maven/plugins/enforcer/AbstractPropertyEnforcerRule.java082
org/apache/maven/plugins/enforcer/AbstractRequireFiles.java011
org/apache/maven/plugins/enforcer/AbstractStandardEnforcerRule.java021
org/apache/maven/plugins/enforcer/AbstractVersionEnforcer.java032
org/apache/maven/plugins/enforcer/BanDuplicatePomDependencyVersions.java012
org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java021
org/apache/maven/plugins/enforcer/BannedDependencies.java005
org/apache/maven/plugins/enforcer/BannedPlugins.java020
org/apache/maven/plugins/enforcer/DefaultEnforcementRuleHelper.java090
org/apache/maven/plugins/enforcer/DependencyConvergence.java061
org/apache/maven/plugins/enforcer/EvaluateBeanshell.java033
org/apache/maven/plugins/enforcer/RequireActiveProfile.java052
org/apache/maven/plugins/enforcer/RequireEnvironmentVariable.java041
org/apache/maven/plugins/enforcer/RequireFilesSize.java031
org/apache/maven/plugins/enforcer/RequireJavaVersion.java010
org/apache/maven/plugins/enforcer/RequireMavenVersion.java010
org/apache/maven/plugins/enforcer/RequireNoRepositories.java077
org/apache/maven/plugins/enforcer/RequireOS.java069
org/apache/maven/plugins/enforcer/RequirePluginVersions.java01716
org/apache/maven/plugins/enforcer/RequirePrerequisite.java004
org/apache/maven/plugins/enforcer/RequireProperty.java022
org/apache/maven/plugins/enforcer/RequireReleaseDeps.java094
org/apache/maven/plugins/enforcer/RequireReleaseVersion.java031
org/apache/maven/plugins/enforcer/RequireSameVersions.java011
org/apache/maven/plugins/enforcer/RequireUpperBoundDeps.java011
org/apache/maven/plugins/enforcer/utils/ArtifactMatcher.java084
org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java063
org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java021
org/apache/maven/plugins/enforcer/utils/PluginWrapper.java0111

Rules

RulesViolationsSeverity
FileLength0Errors Error
RegexpHeader
  • headerFile: "target/checkstyle-header.txt"
1Errors Error
FileTabCharacter
  • eachLine: "true"
0Errors Error
LeftCurly
  • option: "nl"
0Errors Error
RightCurly
  • option: "alone"
0Errors Error
LineLength
  • max: "120"
  • ignorePattern: "@version|@see|@todo|TODO"
25Errors Error
MemberName0Errors Error
JavadocMethod
  • scope: "protected"
127Warnings Warning
JavadocType
  • allowUnknownTags: "true"
  • scope: "protected"
3Errors Error
JavadocVariable
  • scope: "protected"
0Infos Info
ConstantName1Errors Error
LocalFinalVariableName0Errors Error
LocalVariableName0Errors Error
MethodName0Errors Error
PackageName0Errors Error
ParameterName0Errors Error
StaticVariableName0Errors Error
TypeName0Errors Error
AvoidStarImport0Errors Error
IllegalImport0Errors Error
RedundantImport0Errors Error
UnusedImports3Errors Error
MethodLength1Errors Error
ParameterNumber0Errors Error
EmptyForIteratorPad
  • option: "space"
0Errors Error
OperatorWrap0Errors Error
ParenPad
  • option: "space"
0Errors Error
WhitespaceAfter0Errors Error
WhitespaceAround8Errors Error
ModifierOrder0Errors Error
RedundantModifier0Errors Error
AvoidNestedBlocks0Errors Error
EmptyBlock
  • option: "text"
2Errors Error
NeedBraces0Errors Error
DoubleCheckedLocking0Errors Error
EmptyStatement0Errors Error
EqualsHashCode0Errors Error
HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
2Warnings Warning
IllegalInstantiation0Errors Error
InnerAssignment0Errors Error
MagicNumber
  • ignoreNumbers: "-4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 32, 64, 100, 128, 256, 512, 1000, 1024"
3Errors Error
MissingSwitchDefault0Errors Error
RedundantThrows0Errors Error
SimplifyBooleanExpression0Errors Error
SimplifyBooleanReturn1Errors Error
InterfaceIsType0Errors Error
VisibilityModifier
  • packageAllowed: "true"
  • protectedAllowed: "true"
35Errors Error
UpperEll0Errors Error

Details

org/apache/maven/plugins/enforcer/AbstractBanDependencies.java

ViolationMessageLine
ErrorsLine is longer than 120 characters.78
ErrorsLine is longer than 120 characters.81
WarningsMissing a Javadoc comment.116
WarningsMissing a Javadoc comment.121
Errors'if' is not followed by whitespace.127
Errors'for' is not followed by whitespace.134
Errors'if' is not followed by whitespace.151
Errors'for' is not followed by whitespace.154
Errors'if' is not followed by whitespace.158

org/apache/maven/plugins/enforcer/AbstractNonCacheableEnforcerRule.java

ViolationMessageLine
WarningsMissing a Javadoc comment.40
WarningsMissing a Javadoc comment.50
WarningsMissing a Javadoc comment.60

org/apache/maven/plugins/enforcer/AbstractPropertyEnforcerRule.java

ViolationMessageLine
ErrorsVariable 'regex' must be private and have accessor methods.43
ErrorsVariable 'regexMessage' must be private and have accessor methods.52
WarningsMissing a Javadoc comment.54
WarningsUnused @param tag for 'the'.62
WarningsExpected @param tag for 'regex'.64
WarningsExpected an @return tag.136
WarningsExpected an @return tag.141
WarningsExpected an @return tag.149
WarningsExpected @param tag for 'helper'.149
WarningsExpected @throws tag for 'EnforcerRuleException'.150

org/apache/maven/plugins/enforcer/AbstractRequireFiles.java

ViolationMessageLine
WarningsMissing a Javadoc comment.67
Errors'31' is a magic number.146

org/apache/maven/plugins/enforcer/AbstractStandardEnforcerRule.java

ViolationMessageLine
ErrorsVariable 'message' must be private and have accessor methods.38
WarningsMissing a Javadoc comment.40
WarningsMissing a Javadoc comment.45

org/apache/maven/plugins/enforcer/AbstractVersionEnforcer.java

ViolationMessageLine
ErrorsVariable 'version' must be private and have accessor methods.58
ErrorsLine is longer than 120 characters.69
WarningsMissing a Javadoc comment.159
WarningsMissing a Javadoc comment.178
WarningsMissing a Javadoc comment.189

org/apache/maven/plugins/enforcer/BanDuplicatePomDependencyVersions.java

ViolationMessageLine
WarningsMissing a Javadoc comment.54
ErrorsLine is longer than 120 characters.174
ErrorsLine is longer than 120 characters.186

org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java

ViolationMessageLine
WarningsMissing a Javadoc comment.139
Warnings'helper' hides a field.139
ErrorsLine is longer than 120 characters.192

org/apache/maven/plugins/enforcer/BannedDependencies.java

ViolationMessageLine
ErrorsLine is longer than 120 characters.45
ErrorsVariable 'excludes' must be private and have accessor methods.53
ErrorsLine is longer than 120 characters.56
ErrorsVariable 'includes' must be private and have accessor methods.66
ErrorsLine is longer than 120 characters.167

org/apache/maven/plugins/enforcer/BannedPlugins.java

ViolationMessageLine
WarningsMissing a Javadoc comment.36
WarningsMissing a Javadoc comment.42

org/apache/maven/plugins/enforcer/DefaultEnforcementRuleHelper.java

ViolationMessageLine
WarningsMissing a Javadoc comment.86
WarningsMissing a Javadoc comment.96
WarningsMissing a Javadoc comment.106
WarningsMissing a Javadoc comment.117
WarningsMissing a Javadoc comment.128
WarningsMissing a Javadoc comment.139
WarningsMissing a Javadoc comment.150
WarningsMissing a Javadoc comment.161
WarningsMissing a Javadoc comment.172

org/apache/maven/plugins/enforcer/DependencyConvergence.java

ViolationMessageLine
WarningsMissing a Javadoc comment.58
ErrorsLine is longer than 120 characters.65
WarningsMissing a Javadoc comment.106
WarningsExpected an @return tag.205
WarningsExpected an @return tag.215
WarningsExpected an @return tag.228
WarningsExpected @param tag for 'rule'.228

org/apache/maven/plugins/enforcer/EvaluateBeanshell.java

ViolationMessageLine
ErrorsUnused import - java.util.List.22
ErrorsName 'bsh' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.43
ErrorsVariable 'condition' must be private and have accessor methods.51
WarningsMissing a Javadoc comment.53
WarningsMissing a Javadoc comment.58
WarningsMissing a Javadoc comment.68

org/apache/maven/plugins/enforcer/RequireActiveProfile.java

ViolationMessageLine
ErrorsVariable 'profiles' must be private and have accessor methods.47
ErrorsVariable 'all' must be private and have accessor methods.55
WarningsMissing a Javadoc comment.57
WarningsMissing a Javadoc comment.62
WarningsMissing a Javadoc comment.67
WarningsMissing a Javadoc comment.72
WarningsMissing a Javadoc comment.82

org/apache/maven/plugins/enforcer/RequireEnvironmentVariable.java

ViolationMessageLine
ErrorsVariable 'variableName' must be private and have accessor methods.37
WarningsMissing a Javadoc comment.51
WarningsMissing a Javadoc comment.63
WarningsMissing a Javadoc comment.69
WarningsMissing a Javadoc comment.76

org/apache/maven/plugins/enforcer/RequireFilesSize.java

ViolationMessageLine
Errors'10000' is a magic number.42
WarningsMissing a Javadoc comment.58
WarningsMissing a Javadoc comment.91
WarningsMissing a Javadoc comment.101

org/apache/maven/plugins/enforcer/RequireJavaVersion.java

ViolationMessageLine
WarningsMissing a Javadoc comment.49

org/apache/maven/plugins/enforcer/RequireMavenVersion.java

ViolationMessageLine
WarningsMissing a Javadoc comment.43

org/apache/maven/plugins/enforcer/RequireNoRepositories.java

ViolationMessageLine
ErrorsVariable 'banRepositories' must be private and have accessor methods.54
ErrorsVariable 'banPluginRepositories' must be private and have accessor methods.62
ErrorsVariable 'allowedRepositories' must be private and have accessor methods.70
ErrorsVariable 'allowedPluginRepositories' must be private and have accessor methods.78
ErrorsVariable 'allowSnapshotRepositories' must be private and have accessor methods.86
ErrorsVariable 'allowSnapshotPluginRepositories' must be private and have accessor methods.94
WarningsMissing a Javadoc comment.96
WarningsMissing a Javadoc comment.101
WarningsMissing a Javadoc comment.106
WarningsMissing a Javadoc comment.111
WarningsMissing a Javadoc comment.116
WarningsMissing a Javadoc comment.121
WarningsMissing a Javadoc comment.131
ErrorsLine is longer than 120 characters.230

org/apache/maven/plugins/enforcer/RequireOS.java

ViolationMessageLine
ErrorsVariable 'family' must be private and have accessor methods.66
ErrorsVariable 'name' must be private and have accessor methods.74
ErrorsVariable 'version' must be private and have accessor methods.82
ErrorsVariable 'arch' must be private and have accessor methods.90
ErrorsVariable 'display' must be private and have accessor methods.98
WarningsMissing a Javadoc comment.113
ErrorsLine is longer than 120 characters.121
ErrorsLine is longer than 120 characters.134
Errors'50' is a magic number.143
ErrorsLine is longer than 120 characters.197
WarningsMissing a Javadoc comment.351
WarningsMissing a Javadoc comment.356
WarningsMissing a Javadoc comment.366
WarningsMissing a Javadoc comment.394
WarningsMissing a Javadoc comment.405

org/apache/maven/plugins/enforcer/RequirePluginVersions.java

ViolationMessageLine
ErrorsVariable 'banLatest' must be private and have accessor methods.93
ErrorsVariable 'banRelease' must be private and have accessor methods.101
ErrorsVariable 'banSnapshots' must be private and have accessor methods.109
ErrorsVariable 'banTimestamps' must be private and have accessor methods.117
ErrorsVariable 'phases' must be private and have accessor methods.127
ErrorsVariable 'additionalPlugins' must be private and have accessor methods.138
ErrorsVariable 'unCheckedPlugins' must be private and have accessor methods.148
ErrorsVariable 'unCheckedPluginList' must be private and have accessor methods.159
ErrorsMethod length is 175 lines (max allowed is 150).196
WarningsMissing a Javadoc comment.196
WarningsExpected an @return tag.382
WarningsExpected @param tag for 'uncheckedPlugins'.382
WarningsExpected @param tag for 'plugins'.382
WarningsExpected @throws tag for 'MojoExecutionException'.383
WarningsExpected an @return tag.402
ErrorsLine is longer than 120 characters.402
WarningsExpected @param tag for 'uncheckedPlugins'.402
WarningsExpected @param tag for 'uncheckedPluginsList'.402
WarningsExpected @param tag for 'pluginString'.461
WarningsExpected @throws tag for 'MojoExecutionException'.462
ErrorsEmpty catch block.569
ErrorsEmpty catch block.572
ErrorsLine is longer than 120 characters.631
Warnings'phases' hides a field.794
ErrorsLine is longer than 120 characters.1081
ErrorsLine is longer than 120 characters.1092
ErrorsLine is longer than 120 characters.1130
WarningsMissing a Javadoc comment.1254
WarningsMissing a Javadoc comment.1259
WarningsMissing a Javadoc comment.1264
WarningsMissing a Javadoc comment.1269
WarningsMissing a Javadoc comment.1274
WarningsMissing a Javadoc comment.1279

org/apache/maven/plugins/enforcer/RequirePrerequisite.java

ViolationMessageLine
Errors'if' is not followed by whitespace.66
Errors'if' is not followed by whitespace.71
Errors'if' is not followed by whitespace.76
ErrorsLine is longer than 120 characters.87

org/apache/maven/plugins/enforcer/RequireProperty.java

ViolationMessageLine
ErrorsUnused import - java.util.List.22
ErrorsVariable 'property' must be private and have accessor methods.43
WarningsMissing a Javadoc comment.46
WarningsMissing a Javadoc comment.67

org/apache/maven/plugins/enforcer/RequireReleaseDeps.java

ViolationMessageLine
ErrorsVariable 'onlyWhenRelease' must be private and have accessor methods.56
ErrorsVariable 'failWhenParentIsSnapshot' must be private and have accessor methods.67
ErrorsVariable 'excludes' must be private and have accessor methods.77
ErrorsVariable 'includes' must be private and have accessor methods.87
WarningsMissing a Javadoc comment.177
WarningsMissing a Javadoc comment.205
WarningsMissing a Javadoc comment.210
WarningsMissing a Javadoc comment.215
WarningsMissing a Javadoc comment.220
WarningsMissing a Javadoc comment.225
WarningsMissing a Javadoc comment.230
WarningsMissing a Javadoc comment.235
WarningsMissing a Javadoc comment.240

org/apache/maven/plugins/enforcer/RequireReleaseVersion.java

ViolationMessageLine
ErrorsVariable 'failWhenParentIsSnapshot' must be private and have accessor methods.46
WarningsMissing a Javadoc comment.53
WarningsMissing a Javadoc comment.99
WarningsMissing a Javadoc comment.104

org/apache/maven/plugins/enforcer/RequireSameVersions.java

ViolationMessageLine
WarningsMissing a Javadoc comment.55
ErrorsLine is longer than 120 characters.79

org/apache/maven/plugins/enforcer/RequireUpperBoundDeps.java

ViolationMessageLine
ErrorsLine is longer than 120 characters.80
WarningsMissing a Javadoc comment.121

org/apache/maven/plugins/enforcer/utils/ArtifactMatcher.java

ViolationMessageLine
ErrorsMissing a Javadoc comment.40
WarningsMissing a Javadoc comment.46
WarningsMissing a Javadoc comment.71
ErrorsLine is longer than 120 characters.115
ErrorsConditional logic can be removed.127
ErrorsLine is longer than 120 characters.142
WarningsUnused @throws tag for 'NullPointerException'.161
WarningsExpected @param tag for 'patterns'.163
WarningsExpected @param tag for 'ignorePatterns'.163
WarningsExpected an @return tag.195
WarningsExpected @param tag for 'artifact'.195
WarningsExpected @throws tag for 'InvalidVersionSpecificationException'.196

org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java

ViolationMessageLine
ErrorsLine does not match expected header line of '^\s*$'.21
ErrorsUnused import - org.apache.maven.artifact.ArtifactUtils.27
ErrorsMissing a Javadoc comment.32
WarningsMissing a Javadoc comment.41
WarningsMissing a Javadoc comment.47
WarningsMissing a Javadoc comment.52
WarningsMissing a Javadoc comment.58
WarningsMissing a Javadoc comment.73
WarningsMissing a Javadoc comment.120

org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java

ViolationMessageLine
ErrorsLine is longer than 120 characters.263
WarningsMissing a Javadoc comment.362
WarningsMissing a Javadoc comment.371

org/apache/maven/plugins/enforcer/utils/PluginWrapper.java

ViolationMessageLine
ErrorsMissing a Javadoc comment.28
WarningsMissing a Javadoc comment.38
WarningsMissing a Javadoc comment.64
WarningsMissing a Javadoc comment.72
WarningsMissing a Javadoc comment.80
WarningsMissing a Javadoc comment.85
WarningsMissing a Javadoc comment.90
WarningsMissing a Javadoc comment.95
WarningsMissing a Javadoc comment.100
WarningsMissing a Javadoc comment.105
WarningsMissing a Javadoc comment.110
WarningsMissing a Javadoc comment.115