4.5.0
New sniffs:
SuperfluousExceptionNamingSniff: Reports usage of superfluous suffixExceptionfor exceptionsSuperfluousAbstractClassNamingSniff: Reports usage of superfluous prefix or suffixAbstractfor abstract classesSuperfluousInterfaceNamingSniff: Reports usage of superfluous prefix or suffixInterfacefor interfacesUseSpacingSniff: Enforces configurable number of lines before firstuse, after lastuseand between two different types ofuse(eg. betweenuse functionanduse const)EmptyCommentSniff: Reports empty commentsDocCommentSpacing: Enforces configurable number of lines before first content (description or annotation), after last content (description or annotation), between description and annotations, between two different annotations typesDisallowOneLinePropertyDocCommentSniff: Require comments with single-line content to be written as multi-liners (thanks to @Majkl578)RequireOneLinePropertyDocCommentSniff: Require comments with single-line content to be written as one-liners (thanks to @Majkl578)TypeCastSniff: Enforces using shorthand cast operators, forbids use of unset and binary cast operators (thanks to @Majkl578)
Improvements:
EarlyExitSniff: New check "Remove useless elseif to reduce code nesting"UnusedUsesSniff:ignoredAnnotationNames- To ignore specified annotation names (thanks to @xificurk)ReferenceUsedNamesOnlySniff: Improved annotations parsingFullyQualifiedClassNameInAnnotationSniff: Improved annotations parsingForbiddenAnnotationsSniff: Improved annotations parsingAlphaneticallySortedUsesSniff: Make error message more clear (thanks to @brettdorrans)
Fixes:
EarlyExitSniff: Reportelsewhen all conditions contain early exit