checkstyle / News: Recent posts

Checkstyle 6.11.2

Checkstyle 6.11.2 - http://checkstyle.sourceforge.net/releasenotes.html#Release_6.11.2

Bug fixes:

Make ConfigurationLoader.loadConfiguration public.

Notes:

Create UT to check that all checkstyle modules have xdocs.
Split config.html into few pages.
Create xdoc documentation for FileContentsHolder.
Add GENERIC_START and GENERIC_END into list of acceptable tokens in xdocs of NoWhiteSpaceAfter and WhiteSpaceAround.
Add COMMA into list of acceptable tokens in xdocs of NoWhiteSpaceBefore.
minor refactoring, helper method was added.
fixed jgit resource leaks in commit validation.
Ilja Dubinin was added as developer.
Add WILDCARD_TYPE into list of acceptable tokens in xdocs of WhitespaceAround.

Posted by Roman Ivanov 2015-10-05

Checkstyle 6.11.1

Release 6.11.1 - http://checkstyle.sourceforge.net/releasenotes.html#Release_6.11.1

Bug fixes:

Add lambda support to Indentation check.

Notes:

Coverage has been increased to 100% in 'checks' package.
Resolve Doxia Site Renderer warnings.
Update plexus-compiler-javac-errorprone to 2.6.
Update JGit to 4.0.2.201509141540-r.
Fix release failure due to unknown Javadoc tag.

Posted by Roman Ivanov 2015-10-02

Sevntu.checkstyle 1.14.0

Sevntu.checkstyle 1.14.0 - http://sevntu-checkstyle.github.io/sevntu.checkstyle/#1.14.0

just upgrade to latest Eclispe-CS version - 6.9.0

Posted by Roman Ivanov 2015-09-28

Checkstyle 6.11

Checkstyle 6.11

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.11

Breaking backward compatibility:

Restore 'url' option for ImportControl.

New:

New option 'requiredTranslations' to Translation check.
New option 'switchBlockAsSingleDecisionPoint' for CyclomaticComplexityCheck.

Bug fixes:

Fix java grammar for unicode escape.
Add basic thread-safety to Javadoc checks.
Fixed NPE in FinalLocalVariableCheck.
NoWhitespaceAfter, NoWhitespaceBefore and WhitespaceAround don't support GENERIC_START nor GENERIC_END tokens.
Add support of lambdas which parameter types are omitted for HiddenFieldCheck.
Fix RedundantModifier check at final classes in interfaces.
Print missing cause of exception to console on error.
Fix not working excludeScope in JavadocMethod check.
Fix RedundantModifier check to recognise inner classes accessible from global scope.
CustomImportOrderCheck rule priorities.
Fix false negative in AtclauseOrder check.
Fix IllegalStateException in JavadocTypeCheck.
Allow COMMA again in NoWhiteSpaceBefore.
Fix HiddenField false positive violations for anonymous classes.
Added support of logging severity for all audit events.
Allow @return tags from annotation types.
Fixed redundant modifier false positive for abstract classes in interfaces.
Ignore classes nested in interaces or annotations in Final Class Check.
Detect nested enums marked as static in RedundantModifier check.
Fixed NPE in MutableExceptionCheck.isExtendedClassNamedAsException.
Change message in SummaryJavadocCheck.... read more

Posted by Roman Ivanov 2015-09-28

Sevntu Checkstyle 1.13.6

Sevntu Checkstyle 1.13.6

http://sevntu-checkstyle.github.io/sevntu.checkstyle/#1.13.6

Fix for bugs:

LogicConditionNeedOptimizationCheck doesn't give violation when it is expected.
AvoidNotShortCircuitOperatorsForBooleanCheck: NullPointerException occurred during the analysis.
Cannot set property 'blockTypes' in module ChildBlockLength.

Posted by Roman Ivanov 2015-09-08

Checkstyle 6.10.1

Checkstyle 6.10.1

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.10.1

Bug fixes:

resolve broken compatibility with maven-checkstyle-plugin:2.15 at checkstyle:6.10.
Posted by Roman Ivanov 2015-09-01

Checkstyle 6.10

Checkstyle 6.10

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.10

Breaking backward compatibility:

'ignoreMethods' option has been removed from DeclarationOrderCheck.
fix typos in properties names.

New:

Added new Check: CommentsIndentationCheck.

Bug fixes:

fixed problem with lexical order in CustomImportOrder.
Extended messages for CustomImportOrder.
Changed SAME_PACKAGE rule for CustomImportOrderCheck.
reimplement EqualsAvoidNullCheck.
enforce all checks to override getRequiredTokens, getAcceptableTokens methods.
IllegalType: add 'validateAbstractClassNames' option.
Marked 'maxLineLength' as '@Deprecated' at LeftCurlyCheck.
Detect public constructors in non-public classes in RedundantModifier.
Fixes logic bug in gui ParseTreeInfoPanel making linesToPositions assign lines to inappropriate positions .
Fix RightCurlyCheck with same option not to rise expression in single-line blocks .
Fix UnsupportedOperationException in GUI.... read more

Posted by Roman Ivanov 2015-09-01

Checkstyle 6.9

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.9

Breaking backward compatibility:

Change default value of property "format" to "^Abstract.*$" in AbstractClassNameCheck.

New:

New option for MagicNumber: constantWaiverParentToken. Solution to not detected properly numbers.

Bug fixes:

Fixed NPE in MultipleVariableDeclarationsCheck Issue.
Added column number into violation messages for RightCurlyCheck and LeftCurlyCheck.
Fix BooleanExpressionComplexity check violations in Checkstyle code.
Add new option for RightCurlyCheck.
Updated configuration for Eclipse Mars in xdoc.
updated Xdoc and Javadoc for ImportOrder and CustomImportOrder.
Remove from dependecies deprecated jar commons-beanutils-core.jar .
RedundantModifier for inner classes and enum constructors.
Add missing xdocs for allowMultipleEmptyLines property of EmptyLineSeparatorCheck.
Add setter for 'ignoreEnums' in LeftCurlyCheck.
JavadocType does not check parameters in inner classes.
ImportOrderCheck. Fix separation for static imports.
Fix for SuperClone and SuperFinalize checks reporting violations on native methods.
Fix FallThroughCheck fails on if with no else.
fix JavadocParagraph allows new line before the next paragraph.
Fix RegexpHeader causing exception with default config.
Fix OneStatementPerLine on multiple field initialization bug.
extend target list fo SuppressWarningsHolder.
provide human message for SuppressWarningsHolder.
Raising exception for CustomImportOrder.SAME_PACKAGE.... read more

Posted by Roman Ivanov 2015-08-07

Checkstyle 6.8.2

Checkstyle Release 6.8.2 - http://checkstyle.sourceforge.net/releasenotes.html#Release_6.8.2

Bug fixes:

Incorrect xml structure at google_checks.xml.

Posted by Roman Ivanov 2015-08-05

Checkstyle 6.8.1

Checkstyle Release 6.8.1 - http://checkstyle.sourceforge.net/releasenotes.html#Release_6.8.1

Bug fixes:

Cannot use config file bundled in jar.
NullPointerException at java.util.regex.Pattern from com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions.getPattern.
StackOverflow at java.util.regex.* .
StackOverflow in com.puppycrawl.tools.checkstyle.checks.regexp.MultilineDetector.findMatch.
RightCurly: Curly brace '}' should be on line by itself not reported for method with annotation.

Posted by Roman Ivanov 2015-07-01

Checkstyle 6.8

Release 6.8 - http://checkstyle.sourceforge.net/releasenotes.html#Release_6.8

Breaking backward compatibility:

Detect only label as illegal token in IllegalToken check, default token set is changed to TokenTypes.LABELED_STAT.
Add possibility to configure targets for ParenPad check, LPAREN and RPAREN were removed from acceptable tokens.
Set default value of max property to 4 (from 1) for ThrowsCountCheck and update javadoc/xdoc.
Restoring method FileContents.getFileName() to keep backward compatibility for some time.
Rename CheckStyleTask to CheckstyleAntTask, Rename and move checkstyletask.properties.
Remove AnnotationUtility and ScopeUtils from API package. ... read more

Posted by Roman Ivanov 2015-06-29

Sevntu Checkstyle 1.13.2

Sevntu Checkstyle Release 1.13.2

http://sevntu-checkstyle.github.io/sevntu.checkstyle/#1.13.2

fix for bugs:
- DiamondOperatorForVariableDefinitionCheck throws NullPointerException.
- PublicReferenceToPrivateTypeCheck fails on all files in eclipse-cs.

Posted by Roman Ivanov 2015-06-07

Checkstyle 6.7

Release 6.7 - http://checkstyle.sourceforge.net/releasenotes.html#Release_6.7

Breaking backward compatibility:

Remove FastStack from API.
Util classes should be moved out of api package.
method TreeWalker.setClassloader() was renamed to TreeWalker.setClassLoader() with deprecation of old method.

New:

New "ignorePrivateMethods" property for ThrowsCount check to skip private methods.
New "crlf" option for lineSeparator property in NewlineAtEndOfFile check.... read more

Posted by Roman Ivanov 2015-05-31

Sevntu Checkstyle 1.13.0

All details: http://roman-ivanov.blogspot.com/2015/05/sevntu-checkstyle-release-1130.html

Braking backward compatibility:
VariableDeclarationUsageDistanceCheck was moved to Checkstyle library .
AbbreviationAsWordInNameCheck was moved to Checkstyle library .

New:
New Check RequiredParameterForAnnotationCheck
New Check UselessSuperCtorCallCheck
New Check EmptyPublicCtorInClassCheck
New Check NameConventionForJunit4TestClassesCheck
New Check UselessSingleCatchCheck
New Check AvoidConditionInversion
New Check NestedSwitchCheck

Bugs:
fix for NPE in ConfusingConditionCheck.
Fixed false positive in check ForbidReturnInFinallyBlockChech.
Diamond operator - fixed violations on anonymous classes.

Posted by Roman Ivanov 2015-05-17

Checkstyle is looking for projects to be used in regression testing

if you own open-source project that use Checkstyle extensively and
have no violations at release point, you could apply to become a regression testing target for us, we will make sure that regression will NOT happen from release to release on your sources (we will try to validate each functional changes on your project).

All we need from candiate:
- link to sources repository
- command line of how to run checkstyle

Posted by Roman Ivanov 2015-04-30

Checkstyle Release 6.6

Checkstyle Release 6.6

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.6

New:

New option for MagicNumber to ignore magic numbers in field declarations
New option for ModifiedControlVariable Check to ignore validation of variables defined in for which are not change in for iterator part

Bug fixes:

Extend LeftCurly check to verify static initializers
Extend EmptyBlock check to verify synchronized blocks
Fix generics with arrays handling in NoWhitespaceAfter
Fix upper/lower case conversation, enhance tests
Introduce new handler SynchronizedHandler for checking identation
added validation for header in setHeader in RegexpHeaderCheck.java to provide better feedback when an invalid Pattern is specified... read more

Posted by Roman Ivanov 2015-04-27

Checkstyle Release 6.5

Checkstyle Release 6.5

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.5

Breaking backward compatibility:

  • Class checkstyle.api.Utils was moved to checkstyle.Utils.

New:

  • New sortStaticImportsAlphabetically property for ImportOrder check that allows alphabetical grouping order in static group.
  • New allowSingleLineStatement property for NeedBraces check to allow one-line statements.
  • New ignoreAnnotationCanonicalNames property for VisibilityModifier check, to ignore fields with particular annotations.
  • New validateEnhancedForLoopVariable property for FinalLocalVariable check to enforce final variables in for each clause.... read more
Posted by Roman Ivanov 2015-03-28

Checkstyle Release 6.4.1

Checkstyle Release 6.4.1

Bug fixes:

Visibility Modifier Check, updated option setter.
Generic Whitespace Check, updated method references processing.

Notes:

Hidden Field Check, updated docs for 'ignoreFormat' option.
Clarified all Indentation Input files for certain expected values.
Update of maven plugins.
Fix incorrect author anf typos in release notes for issue.
Posted by Roman Ivanov 2015-03-04

Checkstyle Release 6.4

Release 6.4

New:

New Check: Empty Catch Block Check for Google Style Guide.
New option for Visibility Modifier Check, to allow public immutable fields.

Bug fixes:

Added support of Windows line separator to Javadoc parser. Fixed UTs.
Fix NPE when setting classpath field.
Illegal Type Check, updated memberModifiers option setting.
Boolean Expression Complexity Check, fixed NPE.
Final Local Variable Check, fixed false-positive.
Abstract Class Name Check, updated default regex.
Empty Line Separator Check, fixed Exception if file doesn't have header.
BooleanExpressionComplexity misidentifies integer expression as boolean expression. ... read more

Posted by Roman Ivanov 2015-02-28

Checkstyle development plan 2015 , survey results

results of 1 question survey of users preferences for new features in 2015 year - https://www.surveymonkey.com/results/SM-8MYVFYL7/ ,

Survey is still in progress https://www.surveymonkey.com/s/VYFNSG3 (no registration is required), please vote and reshare with colleges.

Survey will stop at end of February.

Posted by Roman Ivanov 2015-02-03

Checkstyle Release 6.3

Release 6.3

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.3

New:

New option to HiddenField, to skip builder methods - setterCanReturnItsClass.
New option to Checker and TreeWalker to specify file extensions.
New option to Empty Line Separator Check, for managing empty lines between class members.
New option to Indentation to avoid C style.
New option to Illegal Throws Check due to twitter custom checks.
New option to Javadoc Method Name Check - ignore method name regex.
New option to Illegal Type Check to control valiadtion baseon modifiers - memberModifiers, updated default illegal types.... read more

Posted by Roman Ivanov 2015-02-02

Development plan for 2015, we need your feedback

please participate in 1 question survey https://www.surveymonkey.com/s/VYFNSG3 to let our team know what we should focus on at 2015 year (no registration is required)

Posted by Roman Ivanov 2015-01-30

Checkstyle 6.2

Checkstyle Release 6.2

Bug fixes:

Serious compatibility problems with versions 5.9, 6.0 and 6.1 .
Added basenameSeparator configuration option for TranslationCheck
Added google and sun configs to jar.
Added UT for lambda expressions for InnerAssignmentCheck.
Build and install the tests jar artifact.
Final Local Variable Check, fixed false-positive - native method's param should be declared final.
Final Parameters Check, added option allows ignoring primitive types as params.
Unsatisfiable Indentation module scenario with difficult annotations.
Fixed false-positive in GenericWhitespaceCheck.
Fix InnerAssignment check for lambda expressions.
Generic Whitespace Check, fixed bug - '>' is followed by an illegal character.
InnerTypeLast within methods.
AnnotationUseStyle closingParens check failed.
RequireThis triggers when try-with-resources defines resource with same name as method.
NullPointerException with SuppressWarningsHolder and enum fields.
ParameterNumber check option to ignore methods with an @Override.
MutableException check requires class to explicitly extend some other class.
Need Braces, added option which allows one line if-statements without braces.
Redundant Modifier Check fixed bug with warning on final variables in default methods.
Redundant Modifier Check, fixed false-positive Redundant modifier final error for @SafeVarargs method.
Summary Javadoc Check, added 'specify period' option.
Suppress Warnings Check, annotation param in constant.... read more

Posted by Roman Ivanov 2014-12-28

Checkstyle Release 6.1.1

Checkstyle Release 6.1.1

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.1.1

Bug fixes:

Generics in postfix expression before method referencec can be parsed now.
ArrayIndexOutOfBoundsException if Indentation and FileContentsFolder are enabled.
Create ParseErrorMessage if error message is null during Javadoc parsing.
Added $ to all identifier definitions at javadoc grammar.
Fixed NumberFormatException while logging in AbstractJavadocCheck.
Indentation check fails for switch statements.
"-v" CLI flag for querying the installed Checkstyle version.... read more

Posted by Roman Ivanov 2014-11-27

Checkstyle Release 6.1

Checkstyle Release 6.1

http://checkstyle.sourceforge.net/releasenotes.html#Release_6.1

Bug fixes:

Multidimensional arrays can be parsed now.
Huge performance optimization for JavaDoc parsing. In scope of issue #49. Caching DetailNode trees in AbstractJavadocCheck .
"FileContents.getLines()" performance fix.
Fix for MultiMap empty collections garbage.
Preformance fix for RegexpCheck.
Removing unnecessary char[] copying to reduce GC-pressure.
Using BitSet for indent levels for performance.
Various documentation/spelling issues with AnnotationLocationCheck.... read more

Posted by Roman Ivanov 2014-11-14

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks