Checkstyle Results

The following document contains the results of Checkstylerss feed

Summary

FilesInfos InfosWarnings WarningsErrors Errors
30083123

Files

FilesInfosWarningsErrors
org/apache/maven/plugins/enforcer/AbstractBanDependencies.java024
org/apache/maven/plugins/enforcer/AbstractNonCacheableEnforcerRule.java030
org/apache/maven/plugins/enforcer/AbstractRequireFiles.java017
org/apache/maven/plugins/enforcer/AbstractStandardEnforcerRule.java001
org/apache/maven/plugins/enforcer/AbstractVersionEnforcer.java055
org/apache/maven/plugins/enforcer/AlwaysFail.java001
org/apache/maven/plugins/enforcer/AlwaysPass.java001
org/apache/maven/plugins/enforcer/BannedDependencies.java008
org/apache/maven/plugins/enforcer/BannedPlugins.java020
org/apache/maven/plugins/enforcer/DefaultEnforcementRuleHelper.java090
org/apache/maven/plugins/enforcer/DependencyConvergence.java064
org/apache/maven/plugins/enforcer/EvaluateBeanshell.java014
org/apache/maven/plugins/enforcer/NoSnapshots.java001
org/apache/maven/plugins/enforcer/RequireActiveProfile.java013
org/apache/maven/plugins/enforcer/RequireFilesDontExist.java001
org/apache/maven/plugins/enforcer/RequireFilesExist.java001
org/apache/maven/plugins/enforcer/RequireFilesSize.java038
org/apache/maven/plugins/enforcer/RequireJavaVersion.java014
org/apache/maven/plugins/enforcer/RequireMavenVersion.java011
org/apache/maven/plugins/enforcer/RequireNoRepositories.java018
org/apache/maven/plugins/enforcer/RequireOS.java0415
org/apache/maven/plugins/enforcer/RequirePluginVersions.java01517
org/apache/maven/plugins/enforcer/RequireProperty.java005
org/apache/maven/plugins/enforcer/RequireReleaseDeps.java077
org/apache/maven/plugins/enforcer/RequireReleaseVersion.java033
org/apache/maven/plugins/enforcer/RequireUpperBoundDeps.java014
org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java063
org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java006
org/apache/maven/plugins/enforcer/utils/PluginWrapper.java0111

Rules

RulesViolationsSeverity
FileLength0Errors Error
RegexpHeader
  • headerFile: "target/checkstyle-header.txt"
3Errors Error
FileTabCharacter
  • eachLine: "true"
12Errors Error
LeftCurly
  • option: "nl"
0Errors Error
RightCurly
  • option: "alone"
0Errors Error
LineLength
  • max: "120"
  • ignorePattern: "@version|@see|@todo|TODO"
16Errors Error
MemberName0Errors Error
JavadocMethod
  • scope: "protected"
82Warnings Warning
JavadocType
  • scope: "protected"
2Errors Error
JavadocVariable
  • scope: "protected"
0Infos Info
ConstantName1Errors Error
LocalFinalVariableName0Errors Error
LocalVariableName1Errors Error
MethodName0Errors Error
PackageName0Errors Error
ParameterName0Errors Error
StaticVariableName0Errors Error
TypeName0Errors Error
AvoidStarImport0Errors Error
IllegalImport0Errors Error
RedundantImport0Errors Error
UnusedImports1Errors Error
MethodLength1Errors Error
ParameterNumber0Errors Error
EmptyForIteratorPad
  • option: "space"
0Errors Error
OperatorWrap12Errors Error
ParenPad
  • option: "space"
2Errors Error
WhitespaceAfter0Errors Error
WhitespaceAround2Errors Error
ModifierOrder1Errors Error
RedundantModifier0Errors Error
AvoidNestedBlocks0Errors Error
EmptyBlock
  • option: "text"
2Errors Error
NeedBraces0Errors Error
DoubleCheckedLocking0Errors Error
EmptyStatement0Errors Error
EqualsHashCode0Errors Error
HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
1Warnings 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
RedundantThrows29Errors Error
SimplifyBooleanExpression0Errors Error
SimplifyBooleanReturn0Errors Error
InterfaceIsType0Errors Error
VisibilityModifier
  • packageAllowed: "true"
  • protectedAllowed: "true"
35Errors Error
UpperEll0Errors Error

Details

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

ViolationMessageLine
ErrorsUnable to get class information for EnforcerRuleException.51
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
ErrorsUnable to get class information for EnforcerRuleException.119

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/AbstractRequireFiles.java

ViolationMessageLine
WarningsMissing a Javadoc comment.67
ErrorsUnable to get class information for EnforcerRuleException.68
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
WarningsUnused @throws tag for 'MojoExecutionException'.63
ErrorsLine is longer than 120 characters.66
WarningsUnable to get class information for @throws tag 'EnforcerRuleException'.67
ErrorsUnable to get class information for EnforcerRuleException.67
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/AlwaysFail.java

ViolationMessageLine
ErrorsUnable to get class information for EnforcerRuleException.38

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

ViolationMessageLine
ErrorsUnable to get class information for EnforcerRuleException.38

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
ErrorsUnable to get class information for EnforcerRuleException.65
ErrorsUnable to get class information for EnforcerRuleException.92
ErrorsUnable to get class information for EnforcerRuleException.132
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
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
ErrorsLine does not match expected header line of '^\s*$'.21
WarningsMissing a Javadoc comment.57
ErrorsLine is longer than 120 characters.64
ErrorsUnable to get class information for EnforcerRuleException.73
WarningsMissing a Javadoc comment.105
ErrorsUnable to get class information for EnforcerRuleException.106
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/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
ErrorsUnable to get class information for EnforcerRuleException.52
ErrorsUnable to get class information for EnforcerRuleException.86

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

ViolationMessageLine
ErrorsUnable to get class information for EnforcerRuleException.43

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
ErrorsUnable to get class information for EnforcerRuleException.53

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
ErrorsUnable to get class information for EnforcerRuleException.59
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
ErrorsUnable to get class information for EnforcerRuleException.50
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
ErrorsUnable to get class information for EnforcerRuleException.44

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
ErrorsUnable to get class information for EnforcerRuleException.84
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
ErrorsUnable to get class information for EnforcerRuleException.93
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
ErrorsUnable to get class information for EnforcerRuleException.161
WarningsExpected an @return tag.345
WarningsExpected @param tag for 'uncheckedPlugins'.345
WarningsExpected @param tag for 'plugins'.345
WarningsExpected @throws tag 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
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
ErrorsEmpty catch block.531
ErrorsEmpty catch block.534
ErrorsLine is longer than 120 characters.593
Warnings'phases' hides a field.756
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
ErrorsVariable 'regex' must be private and have accessor methods.39
ErrorsVariable 'regexMessage' must be private and have accessor methods.42
ErrorsUnable to get class information for EnforcerRuleException.51
Errors'+' should be on a new line.78

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
ErrorsUnable to get class information for EnforcerRuleException.76
ErrorsUnable to get class information for EnforcerRuleException.116
ErrorsUnable to get class information for EnforcerRuleException.133
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
ErrorsUnable to get class information for EnforcerRuleException.50
ErrorsUnable to get class information for EnforcerRuleException.82
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
ErrorsUnable to get class information for EnforcerRuleException.73
WarningsMissing a Javadoc comment.105
ErrorsUnable to get class information for EnforcerRuleException.106

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

ViolationMessageLine
ErrorsLine does not match expected header line of '^\s*$'.21
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
ErrorsLine is longer than 120 characters.87
WarningsMissing a Javadoc comment.121

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
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