Checkstyle Results

The following document contains the results of Checkstylerss feed

Summary

FilesInfos InfosWarnings WarningsErrors Errors
412110180

Files

FilesInfosWarningsErrors
org/apache/maven/enforcer/rule/api/EnforcerRuleHelper.java005
org/apache/maven/plugins/enforcer/AbstractBanDependencies.java022
org/apache/maven/plugins/enforcer/AbstractNonCacheableEnforcerRule.java030
org/apache/maven/plugins/enforcer/AbstractPropertyEnforcerRule.java062
org/apache/maven/plugins/enforcer/AbstractRequireFiles.java016
org/apache/maven/plugins/enforcer/AbstractStandardEnforcerRule.java001
org/apache/maven/plugins/enforcer/AbstractVersionEnforcer.java054
org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java023
org/apache/maven/plugins/enforcer/BannedDependencies.java005
org/apache/maven/plugins/enforcer/BannedPlugins.java020
org/apache/maven/plugins/enforcer/DefaultEnforcementRuleHelper.java096
org/apache/maven/plugins/enforcer/DependencyConvergence.java062
org/apache/maven/plugins/enforcer/DisplayInfoMojo.java122
org/apache/maven/plugins/enforcer/EnforceMojo.java147
org/apache/maven/plugins/enforcer/EnforceOnceMojo.java013
org/apache/maven/plugins/enforcer/EvaluateBeanshell.java012
org/apache/maven/plugins/enforcer/RequireActiveProfile.java012
org/apache/maven/plugins/enforcer/RequireEnvironmentVariable.java031
org/apache/maven/plugins/enforcer/RequireFilesDontExist.java001
org/apache/maven/plugins/enforcer/RequireFilesExist.java001
org/apache/maven/plugins/enforcer/RequireFilesSize.java037
org/apache/maven/plugins/enforcer/RequireJavaVersion.java013
org/apache/maven/plugins/enforcer/RequireMavenVersion.java010
org/apache/maven/plugins/enforcer/RequireNoRepositories.java017
org/apache/maven/plugins/enforcer/RequireOS.java0414
org/apache/maven/plugins/enforcer/RequirePluginVersions.java01546
org/apache/maven/plugins/enforcer/RequireProperty.java011
org/apache/maven/plugins/enforcer/RequireReleaseDeps.java074
org/apache/maven/plugins/enforcer/RequireReleaseVersion.java031
org/apache/maven/plugins/enforcer/RequireUpperBoundDeps.java012
org/apache/maven/plugins/enforcer/util/EnforcerUtils.java001
org/apache/maven/plugins/enforcer/utils/ArtifactMatcher.java0818
org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java063
org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java0017
org/apache/maven/plugins/enforcer/utils/PluginWrapper.java0111

Rules

RulesViolationsSeverity
FileLength0Errors Error
RegexpHeader
  • headerFile: "target/checkstyle-header.txt"
5Errors Error
FileTabCharacter
  • eachLine: "true"
12Errors Error
LeftCurly
  • option: "nl"
0Errors Error
RightCurly
  • option: "alone"
0Errors Error
LineLength
  • max: "120"
  • ignorePattern: "@version|@see|@todo|TODO"
21Errors Error
MemberName0Errors Error
JavadocMethod
  • scope: "protected"
108Warnings Warning
JavadocType
  • allowUnknownTags: "true"
  • scope: "protected"
3Errors Error
JavadocVariable
  • scope: "protected"
2Infos Info
ConstantName1Errors Error
LocalFinalVariableName0Errors Error
LocalVariableName1Errors 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
OperatorWrap11Errors Error
ParenPad
  • option: "space"
2Errors Error
WhitespaceAfter0Errors Error
WhitespaceAround4Errors Error
ModifierOrder1Errors Error
RedundantModifier0Errors Error
AvoidNestedBlocks0Errors Error
EmptyBlock
  • option: "text"
2Errors Error
NeedBraces12Errors 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
RedundantThrows61Errors Error
SimplifyBooleanExpression0Errors Error
SimplifyBooleanReturn1Errors Error
InterfaceIsType0Errors Error
VisibilityModifier
  • packageAllowed: "true"
  • protectedAllowed: "true"
36Errors Error
UpperEll0Errors Error

Details

org/apache/maven/enforcer/rule/api/EnforcerRuleHelper.java

ViolationMessageLine
ErrorsUnable to get class information for ComponentLookupException.65
ErrorsUnable to get class information for ComponentLookupException.77
ErrorsUnable to get class information for ComponentLookupException.90
ErrorsUnable to get class information for ComponentLookupException.102
ErrorsUnable to get class information for ComponentLookupException.114

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

ViolationMessageLine
Errors'+' is not preceded with whitespace.83
WarningsMissing a Javadoc comment.90
WarningsMissing a Javadoc comment.95
Errors'protected' modifier out of order with the JLS suggestions.118

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.39
ErrorsVariable 'regexMessage' must be private and have accessor methods.44
WarningsMissing a Javadoc comment.46
WarningsExpected an @return tag.86
WarningsExpected an @return tag.91
WarningsExpected an @return tag.99
WarningsExpected @param tag for 'helper'.99
WarningsExpected @throws tag for 'EnforcerRuleException'.100

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

ViolationMessageLine
WarningsMissing a Javadoc comment.67
ErrorsLine contains a tab character.72
ErrorsLine contains a tab character.74
ErrorsLine contains a tab character.80
ErrorsLine contains a tab character.82
ErrorsLine contains a tab character.83
Errors'31' is a magic number.144

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

ViolationMessageLine
ErrorsVariable 'message' must be private and have accessor methods.32

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

ViolationMessageLine
ErrorsUnused import - org.apache.maven.plugin.MojoExecutionException.30
ErrorsVariable 'version' must be private and have accessor methods.54
WarningsUnable to get class information for @throws tag 'MojoExecutionException'.63
WarningsUnused @throws tag for 'MojoExecutionException'.63
ErrorsLine is longer than 120 characters.66
Errors'+' should be on a new line.106
WarningsMissing a Javadoc comment.154
WarningsMissing a Javadoc comment.173
WarningsMissing a Javadoc comment.184

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

ViolationMessageLine
ErrorsUnable to get class information for InvalidVersionSpecificationException.75
WarningsMissing a Javadoc comment.139
Warnings'helper' hides a field.139
ErrorsUnable to get class information for ComponentLookupException.188
ErrorsLine is longer than 120 characters.191

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

ViolationMessageLine
ErrorsLine is longer than 120 characters.45
ErrorsVariable 'excludes' must be private and have accessor methods.49
ErrorsLine is longer than 120 characters.52
ErrorsVariable 'includes' must be private and have accessor methods.58
ErrorsLine is longer than 120 characters.159

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
ErrorsUnable to get class information for ExpressionEvaluationException.107
WarningsMissing a Javadoc comment.117
ErrorsUnable to get class information for ComponentLookupException.118
WarningsMissing a Javadoc comment.128
ErrorsUnable to get class information for ComponentLookupException.129
WarningsMissing a Javadoc comment.139
ErrorsUnable to get class information for ComponentLookupException.140
WarningsMissing a Javadoc comment.150
ErrorsUnable to get class information for ComponentLookupException.151
WarningsMissing a Javadoc comment.161
ErrorsUnable to get class information for ComponentLookupException.162
WarningsMissing a Javadoc comment.172

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

ViolationMessageLine
ErrorsLine does not match expected header line of '^\s*$'.21
WarningsMissing a Javadoc comment.57
ErrorsLine is longer than 120 characters.64
WarningsMissing a Javadoc comment.105
WarningsExpected an @return tag.204
WarningsExpected an @return tag.214
WarningsExpected an @return tag.225
WarningsExpected @param tag for 'arg0'.225

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

ViolationMessageLine
InfosMissing a Javadoc comment.70
WarningsMissing a Javadoc comment.72
ErrorsUnable to get class information for ContextException.73
WarningsExpected @throws tag for 'MojoExecutionException'.82
ErrorsUnable to get class information for MojoExecutionException.82

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

ViolationMessageLine
InfosMissing a Javadoc comment.119
WarningsMissing a Javadoc comment.121
ErrorsUnable to get class information for ContextException.122
WarningsExpected @throws tag for 'MojoExecutionException'.131
ErrorsUnable to get class information for MojoExecutionException.131
ErrorsLine is longer than 120 characters.194
ErrorsLine is longer than 120 characters.211
ErrorsLine is longer than 120 characters.218
WarningsExpected an @return tag.234
WarningsExpected @param tag for 'rule'.234
Errors'+' is not preceded with whitespace.246
Errors'+' is not followed by whitespace.246

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

ViolationMessageLine
ErrorsLine does not match expected header line of '^/\*\s*$'.3
WarningsMissing a Javadoc comment.39
ErrorsUnable to get class information for MojoExecutionException.40
ErrorsLine is longer than 120 characters.42

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

ViolationMessageLine
ErrorsName 'bsh' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.41
ErrorsVariable 'condition' must be private and have accessor methods.44
WarningsMissing a Javadoc comment.51

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

ViolationMessageLine
ErrorsVariable 'profiles' must be private and have accessor methods.42
ErrorsVariable 'all' must be private and have accessor methods.45
WarningsMissing a Javadoc comment.52

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

ViolationMessageLine
ErrorsVariable 'variableName' must be private and have accessor methods.37
WarningsMissing a Javadoc comment.46
WarningsMissing a Javadoc comment.52
WarningsMissing a Javadoc comment.59

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

ViolationMessageLine
ErrorsLine contains a tab character.38

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

ViolationMessageLine
ErrorsLine contains a tab character.38

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
Errors'(' is not followed by whitespace.111
Errors')' is not preceded with whitespace.111
Errors'+' should be on a new line.134
Errors'+' should be on a new line.135
Errors'+' should be on a new line.136
Errors'+' should be on a new line.137

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

ViolationMessageLine
WarningsMissing a Javadoc comment.49
ErrorsName 'java_version' must match pattern '^[a-z][a-zA-Z0-9]*$'.52
Errors'+' should be on a new line.61
Errors'+' should be on a new line.62

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.51
ErrorsVariable 'banPluginRepositories' must be private and have accessor methods.56
ErrorsVariable 'allowedRepositories' must be private and have accessor methods.61
ErrorsVariable 'allowedPluginRepositories' must be private and have accessor methods.66
ErrorsVariable 'allowSnapshotRepositories' must be private and have accessor methods.71
ErrorsVariable 'allowSnapshotPluginRepositories' must be private and have accessor methods.76
WarningsMissing a Javadoc comment.83
ErrorsLine is longer than 120 characters.174

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

ViolationMessageLine
ErrorsVariable 'family' must be private and have accessor methods.62
ErrorsVariable 'name' must be private and have accessor methods.65
ErrorsVariable 'version' must be private and have accessor methods.68
ErrorsVariable 'arch' must be private and have accessor methods.71
ErrorsVariable 'message' must be private and have accessor methods.74
ErrorsVariable 'display' must be private and have accessor methods.77
WarningsMissing a Javadoc comment.92
ErrorsLine is longer than 120 characters.100
Errors'+' should be on a new line.110
Errors'+' should be on a new line.111
Errors'+' should be on a new line.112
ErrorsLine is longer than 120 characters.113
Errors'50' is a magic number.120
Errors'+' should be on a new line.141
ErrorsLine is longer than 120 characters.174
WarningsMissing a Javadoc comment.333
WarningsMissing a Javadoc comment.361
WarningsMissing a Javadoc comment.372

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

ViolationMessageLine
ErrorsVariable 'banLatest' must be private and have accessor methods.87
ErrorsVariable 'banRelease' must be private and have accessor methods.90
ErrorsVariable 'banSnapshots' must be private and have accessor methods.93
ErrorsVariable 'banTimestamps' must be private and have accessor methods.96
ErrorsVariable 'phases' must be private and have accessor methods.102
ErrorsVariable 'additionalPlugins' must be private and have accessor methods.109
ErrorsVariable 'unCheckedPlugins' must be private and have accessor methods.116
ErrorsVariable 'unCheckedPluginList' must be private and have accessor methods.123
ErrorsMethod length is 174 lines (max allowed is 150).160
WarningsMissing a Javadoc comment.160
WarningsExpected an @return tag.345
WarningsExpected @param tag for 'uncheckedPlugins'.345
WarningsExpected @param tag for 'plugins'.345
WarningsExpected @throws tag for 'MojoExecutionException'.346
ErrorsUnable to get class information for MojoExecutionException.346
WarningsExpected an @return tag.365
ErrorsLine is longer than 120 characters.365
WarningsExpected @param tag for 'uncheckedPlugins'.365
WarningsExpected @param tag for 'uncheckedPluginsList'.365
ErrorsUnable to get class information for MojoExecutionException.394
Errors'for' is not followed by whitespace.398
WarningsExpected an @return tag.423
WarningsExpected @param tag for 'pluginString'.423
WarningsExpected @param tag for 'field'.423
WarningsExpected @throws tag for 'MojoExecutionException'.424
ErrorsUnable to get class information for MojoExecutionException.424
ErrorsEmpty catch block.531
ErrorsEmpty catch block.534
ErrorsUnable to get class information for PluginNotFoundException.553
ErrorsRedundant throws: 'LifecycleExecutionException' listed more then one time.553
ErrorsUnable to get class information for LifecycleExecutionException.553
ErrorsLine is longer than 120 characters.593
ErrorsUnable to get class information for PluginNotFoundException.686
ErrorsRedundant throws: 'LifecycleExecutionException' listed more then one time.686
ErrorsUnable to get class information for LifecycleExecutionException.686
ErrorsUnable to get class information for LifecycleExecutionException.747
Warnings'phases' hides a field.756
ErrorsUnable to get class information for BuildFailureException.785
ErrorsRedundant throws: 'LifecycleExecutionException' listed more then one time.785
ErrorsUnable to get class information for LifecycleExecutionException.785
ErrorsUnable to get class information for LifecycleExecutionException.806
ErrorsRedundant throws: 'PluginNotFoundException' listed more then one time.806
ErrorsUnable to get class information for PluginNotFoundException.806
ErrorsUnable to get class information for LifecycleExecutionException.865
ErrorsRedundant throws: 'PluginNotFoundException' listed more then one time.865
ErrorsUnable to get class information for PluginNotFoundException.865
ErrorsUnable to get class information for LifecycleExecutionException.915
ErrorsRedundant throws: 'PluginNotFoundException' listed more then one time.915
ErrorsUnable to get class information for PluginNotFoundException.915
ErrorsUnable to get class information for LifecycleExecutionException.967
ErrorsRedundant throws: 'PluginNotFoundException' listed more then one time.967
ErrorsUnable to get class information for PluginNotFoundException.967
ErrorsUnable to get class information for ArtifactResolutionException.1018
ErrorsRedundant throws: 'ArtifactNotFoundException' listed more then one time.1018
ErrorsUnable to get class information for ArtifactNotFoundException.1018
ErrorsRedundant throws: 'XmlPullParserException' listed more then one time.1018
ErrorsUnable to get class information for XmlPullParserException.1018
ErrorsLine is longer than 120 characters.1042
ErrorsLine is longer than 120 characters.1052
WarningsMissing a Javadoc comment.1231
WarningsMissing a Javadoc comment.1236

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

ViolationMessageLine
ErrorsVariable 'property' must be private and have accessor methods.36
WarningsMissing a Javadoc comment.54

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

ViolationMessageLine
ErrorsVariable 'onlyWhenRelease' must be private and have accessor methods.51
ErrorsVariable 'failWhenParentIsSnapshot' must be private and have accessor methods.58
ErrorsVariable 'excludes' must be private and have accessor methods.64
ErrorsVariable 'includes' must be private and have accessor methods.70
WarningsExpected @param tag for 'helper'.75
WarningsExpected @throws tag for 'EnforcerRuleException'.76
WarningsMissing a Javadoc comment.157
WarningsMissing a Javadoc comment.185
WarningsMissing a Javadoc comment.190
WarningsMissing a Javadoc comment.195
WarningsMissing a Javadoc comment.200

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

ViolationMessageLine
ErrorsVariable 'failWhenParentIsSnapshot' must be private and have accessor methods.42
WarningsMissing a Javadoc comment.49
WarningsMissing a Javadoc comment.94
WarningsMissing a Javadoc comment.99

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

ViolationMessageLine
ErrorsLine does not match expected header line of '^\s*$'.21
ErrorsLine is longer than 120 characters.64
WarningsMissing a Javadoc comment.105

org/apache/maven/plugins/enforcer/util/EnforcerUtils.java

ViolationMessageLine
ErrorsMissing a header - not enough lines in file.1

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

ViolationMessageLine
ErrorsUnused import - org.apache.maven.plugins.enforcer.BanTransitiveDependencies.30
ErrorsMissing a Javadoc comment.41
WarningsMissing a Javadoc comment.47
Errors'if' construct must use '{}'s.49
Errors'if' construct must use '{}'s.56
Errors'if' construct must use '{}'s.61
WarningsMissing a Javadoc comment.66
ErrorsUnable to get class information for InvalidVersionSpecificationException.67
Errors'if' construct must use '{}'s.69
Errors'if' construct must use '{}'s.81
Errors'if' construct must use '{}'s.91
ErrorsLine is longer than 120 characters.99
Errors'if' construct must use '{}'s.106
Errors'if' construct must use '{}'s.110
ErrorsConditional logic can be removed.110
Errors'else' construct must use '{}'s.112
WarningsUnused @throws tag for 'NullPointerException'.133
WarningsExpected @param tag for 'patterns'.135
WarningsExpected @param tag for 'ignorePatterns'.135
Errors'if' construct must use '{}'s.137
Errors'if' construct must use '{}'s.139
WarningsExpected an @return tag.164
WarningsExpected @param tag for 'artifact'.164
WarningsExpected @throws tag for 'InvalidVersionSpecificationException'.165
ErrorsUnable to get class information for InvalidVersionSpecificationException.165
Errors'if' construct must use '{}'s.173

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 contains a tab character.106
ErrorsLine contains a tab character.107
ErrorsLine contains a tab character.109
ErrorsUnable to get class information for XmlPullParserException.140
ErrorsUnable to get class information for ArtifactResolutionException.175
ErrorsRedundant throws: 'ArtifactNotFoundException' listed more then one time.175
ErrorsUnable to get class information for ArtifactNotFoundException.175
ErrorsRedundant throws: 'XmlPullParserException' listed more then one time.175
ErrorsUnable to get class information for XmlPullParserException.175
ErrorsUnable to get class information for ArtifactResolutionException.236
ErrorsRedundant throws: 'ArtifactNotFoundException' listed more then one time.236
ErrorsUnable to get class information for ArtifactNotFoundException.236
ErrorsRedundant throws: 'XmlPullParserException' listed more then one time.236
ErrorsUnable to get class information for XmlPullParserException.236
ErrorsLine is longer than 120 characters.261
ErrorsLine contains a tab character.297
ErrorsLine contains a tab character.307

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