ychulovskyy
ecd7ee879a
Issue #257 RequireThis triggers when try-with-resources defines resource with same name as method
2014-12-24 11:34:24 -08:00
ychulovskyy
f0c6c6ad7c
Issue #131 AnnotationUseStyle closingParens check failed
2014-12-22 16:34:40 -08:00
alexkravin
49ae6cf81b
Final Parameters Check, added option allows ignoring primitive types as params, issue #446
2014-12-22 08:09:13 -08:00
Michal Kordas
4297ca50a9
MutableException check requires class to explicitly extend some other class (for issue #60 )
2014-12-20 10:12:45 -08:00
maxvetrenko
17ebdc5c37
Fixed cases with difficult annotations. #321
2014-12-19 22:22:35 -08:00
Michal Kordas
86e743f605
Remove StrictDuplicateCodeCheck and whole package #523
2014-12-20 02:49:25 +01:00
alexkravin
85c205ca68
Abstract Aware Type Check marked as deprecated, removed Redundant Throws Check, issue #473
2014-12-19 09:41:46 -08:00
alexkravin
f6b38038d1
Summary Javadoc Check, added 'specify period' option, issue #472
2014-12-20 16:53:48 +04:00
alexkravin
095fa6743c
No Whitespace After Check - added support of array declarations, issue #68
2014-12-18 11:51:48 -08:00
alexkravin
169729f60b
Suppress Warnings Check, annotation param in constant, issue #268
2014-12-18 11:44:29 -08:00
alexkravin
37e0bc051f
Generic Whitespace Check, fixed bug - '>' is followed by an illegal character, issue #350
2014-12-18 11:41:48 -08:00
alexkravin
688dc9c547
Need Braces, added option which allows one line if-statements without braces, issue #300
2014-12-18 11:40:18 -08:00
alexkravin
7e36b3cbd1
Translation Check - update changes due to new option, issue #149
2014-12-18 11:37:40 -08:00
pulse00
284b505ace
added basenameSeparator configuration option for TranslationCheck
2014-12-18 11:37:40 -08:00
alexkravin
cf5686783f
Fixed false-positive in GenericWhitespaceCheck issue #51
2014-12-17 07:43:35 -08:00
alexkravin
deb4d7a388
Final Local Variable Check, fixed false-positive - native method's param should be declared final, issue #158
2014-12-15 22:09:33 -08:00
Michal Kordas
46d57c9ca5
Partial fix for #46 - Sonarqube found problems in Checkstyle
...
Sonarqube issues 'Constants should be declared "final static" rather than merely "final"' and 'Constant names should comply with a naming convention' are fixed
2014-12-15 21:54:58 -08:00
Michal Kordas
7aa061665c
Partial fix for #47 - Add missing @Override annotations
2014-12-14 22:33:24 -08:00
Michal Kordas
0e04e5088c
Fix for typos in Javadoc
2014-12-14 22:31:13 -08:00
alexkravin
4ee80e7898
Redundant Modifier Check, fixed false-positive Redundant modifier final error for @SafeVarargs method issue #301
2014-12-14 15:27:52 +04:00
Evan Cahill
f798a441fc
Fix InnerAssignment check for lambda expressions.
...
Assignments statements in single statement lambda expressions are not
inner assignments.
Fixes #377 .
2014-12-11 12:55:07 -08:00
alexkravin
0aab6d6243
Redundant Modifier Check fixed bug with warning on final variables in default methods issue #364
2014-12-08 21:48:51 -08:00
ychulovskyy
9b45e78bb5
Issue #457 remove JUnitTestCase from Checkstyle
2014-12-07 09:44:18 -08:00
ychulovskyy
aa829d408f
Issue #353 NullPointerException with SuppressWarningsHolder and enum fields
2014-12-06 21:41:42 +01:00
ychulovskyy
4c384214a9
InnerTypeLast within methods #6
2014-12-02 07:08:07 -08:00
Ivan Sopov
7b3a329cf8
removing ignoreDirectoryName option from PackageDeclarationCheck
...
This option duplicates compilation error and has no sense to be run
on successfully compiled java sources.
2014-11-30 08:53:08 -08:00
Baratali Izmailov
be6a7ca77b
Create ParseErrorMessage if error message is null. Added comments for a few methods.
2014-11-24 16:22:33 -08:00
Ilja Dubinin
9b17ce22d2
#358 (or #92 ) fixed. Attention, some checks might be linked with deleted node.
2014-11-24 01:18:18 +03:00
ychulovskyy
bbd59b7b88
#9 -v CLI flag for querying the installed Checkstyle version
...
Fixed formatting issue.
2014-11-22 08:50:15 +01:00
ychulovskyy
f85edb7127
#9 -v CLI flag for querying the installed Checkstyle version
2014-11-21 20:52:15 +01:00
Baratali Izmailov
5c481899d4
Issue #371 . Fixed NumberFormatException while logging in AbstractJavadocCheck
2014-11-20 07:39:41 -08:00
maxvetrenko
d70ad3db63
Fixed javadoc in NonEmptyAtclauseDescription #365
2014-11-18 17:29:43 -08:00
maxvetrenko
97b99c6528
Fixed javadoc in SummaryJavadocCheck #365
2014-11-18 17:28:58 -08:00
maxvetrenko
4ddb7df073
Fixed javadoc in ParagraphJavadocCheck #365
2014-11-18 17:27:58 -08:00
maxvetrenko
82c3f19cdc
Indentation check fails for switch statements #341
2014-11-17 14:28:58 -08:00
maxvetrenko
bae7fdded6
Fixed javadoc in JavadocTagContinuationIndentationCheck #365
2014-11-17 07:06:40 -08:00
maxvetrenko
f2e7c40f5d
Fixed javadoc in AtclauseOrderCheck #365
2014-11-16 17:55:27 +03:00
Roman Ivanov
485e05db23
fix for checkstyle violation
2014-11-13 09:14:25 -08:00
Roman Ivanov
791be6ce00
extenting of javadoc in PropertyChaceFile
2014-11-12 21:44:33 -08:00
Roman Ivanov
93f02998d4
AnnotationLocationCheck was moved from javadoc to annotation package, changes in xdoc for default value, #356
2014-11-11 16:48:21 -08:00
Baratali Izmailov
7b6785343e
Fixed ArrayIndexOutOfBoundsException and StringIndexOutOfBoundsException while logging
2014-11-11 07:05:26 -08:00
Roman Ivanov
f9e79c3905
Various documentation/spelling issues with AnnotationLocationCheck, #356
2014-11-10 20:44:01 -08:00
Baratali Izmailov
2e1382c5bb
Issue #49 . Caching DetailNode trees in AbstractJavadocCheck
2014-11-08 01:24:35 +03:00
Vladimir Sitnikov
ae9d1d6217
removing unnecessary char[] copying to reduce GC-pressure
2014-11-06 21:25:29 -08:00
Vladimir Sitnikov
f2b19f1080
fix for MultiMap empty collections garbage
2014-11-04 17:30:14 -08:00
Vladimir Sitnikov
bc36fe40fc
using BitSet for indent levels for performance
2014-11-02 22:22:45 -08:00
Vladimir Sitnikov
1ca93bdf66
preformance fix for RegexpCheck
2014-11-02 21:36:36 -08:00
sopov.ivan
cba6fc8b0a
FileContents.getLines performance fix
2014-11-02 11:48:16 -08:00
maxvetrenko
54ed230519
Fix false positives in JavadocParagraphCheck #335
2014-10-23 08:01:25 -07:00
Roman Ivanov
8aa747f8ac
additional fixed for javadoc/xdoc of SingleLineJavadocCheck
2014-10-23 07:57:29 -07:00
maxvetrenko
0e90cc00c8
New Check: SingleLineJavadocCheck #332
2014-10-23 15:24:18 +04:00
maxvetrenko
e56f3d21ee
Update for existing Check: JavadocMethodCheck #319
2014-10-23 03:42:30 +04:00
maxvetrenko
443b98cf24
Update google_checks.xml and minor refactoring. #320
2014-10-22 11:25:19 -07:00
maxvetrenko
371c73fe60
Fix NullPointerException in case package-info.java #326
2014-10-22 11:16:02 -07:00
maxvetrenko
ca34984cc3
Fix false positives in JavaDocTagContinuationIndentationCheck #323
2014-10-22 07:07:36 -07:00
maxvetrenko
d9c4e779fb
JavaDocParagraph #315
2014-10-20 23:57:03 -07:00
maxvetrenko
fe628e5bbd
AtclauseOrderCheck #306
2014-10-20 23:49:26 -07:00
Roman Ivanov
d3b013d073
SummaryJavaDocCheck #307 by Max Vetrenko
2014-10-20 23:12:28 -07:00
maxvetrenko
cc9e00d9a0
JavaDocTagСontinuationIndentation #308
2014-10-20 22:00:40 -07:00
maxvetrenko
ccd54f4506
NonEmptyAtclauseDescriptionCheck #309
2014-10-21 01:26:27 +04:00
Baratali Izmailov
ff12c1b012
Issue #49 . Added support of Javadoc comments. Extended API to create Javadoc Checks.
2014-10-20 00:32:41 +04:00
Baratali Izmailov
185e730e93
Issue #49 . Added ANTLR4 grammar for parsing Javadoc comments.
2014-10-20 00:32:41 +04:00
maxvetrenko
02655f16a0
AnnotationLocationCheck fixed. #302
2014-10-19 08:53:15 -07:00
Baratali Izmailov
3bd25d71c9
Issue #49 . Edited TodoCommentCheck to use new comment nodes in AST
2014-10-17 22:19:10 -07:00
Baratali Izmailov
a24df47caf
Issue #49 . Added support of single-line and block comments
2014-10-17 22:19:10 -07:00
Baratali Izmailov
59014fa753
Issue #49 . Added comments support to antlr grammar. Added new token types to TokenTypes class.
...
TreeWalker treats comment nodes as hidden (skips them). Changed superclass of DetailAST to CommonASTWithHiddenTokens.
2014-10-17 22:19:10 -07:00
maxvetrenko
f2e716b5e7
Fixed IndexOutOfBoundsException in CustomImportOrderCheck #296
2014-10-13 17:15:50 -07:00
maxvetrenko
e3a48d1527
Update for IndentationCheck. #294
2014-10-13 16:21:51 -07:00
Ilja Dubinin
343e946b07
#297 Fixed bug in DefaultComesLast check. Now it supports java 8 default methods.
2014-10-13 23:03:58 +04:00
Ilja Dubinin
373c90a109
#282 fixed. Since Java 8 we can have methods body in interfaces.
2014-10-10 22:15:19 +04:00
Ilja Dubinin
e57633e801
#284 fixed. Default modifier has been added to modifier list.
2014-10-10 22:15:19 +04:00
Ilja Dubinin
47ce2a333d
Fixed NPE when NewHandler is used with java 8 method reference
2014-10-10 22:15:19 +04:00
Ryszard Wiśniewski
839cd1b10e
Fixed IllegalInstantiationCheck, so it won't recognize a constructor reference (Java8) as instantiation.
...
Also added a test for it.
2014-10-10 22:15:18 +04:00
Ilja Dubinin
a75e6d670f
Fix for compilation on openjdk8
2014-10-10 22:15:15 +04:00
Ilja Dubinin
e162b5a265
minor for pass mvn verify
2014-10-10 16:55:24 +04:00
Ilja Dubinin
6a9bc9181c
Issue 10. Lambda support has been added.
2014-10-10 16:55:24 +04:00
Ilja Dubinin
a70800ea2f
Issue 10. Method references are implemented.
2014-10-10 16:55:24 +04:00
Ilja Dubinin
de52fa1d34
Issue 10. Support of default methods in interface has been added.
2014-10-10 16:55:24 +04:00
Andrew Gaul
8d8f85faa6
Correct OverloadMethodsDeclarationOrder name
2014-10-08 20:38:51 -07:00
ychulovskyy
7ed4071252
Implemented #98 Add ignore option to the JavadocVariable check
2014-09-17 19:40:42 +02:00
ychulovskyy
615c6f26cd
Fixed javadoc issues (strange that project checker didn't catch it during verify phase)
2014-09-14 18:11:49 +02:00
ychulovskyy
f43e7ca4ca
Fixed issue #105 WhitespaceAroundCheck: fix for anonymous inner class
2014-09-13 16:56:57 +02:00
Sergiu Dumitriu
ca9644638d
MemberNameCheck should not validate interface constants, that's ConstantNameCheck's role
2014-09-12 16:36:13 -07:00
Sergiu Dumitriu
781f8b9a0f
Issue #155 : RequireThis triggers for static interface fields
...
Fixed.
2014-09-12 16:05:43 -07:00
ychulovskyy
cf3879aa53
Fixed issue #29 Abstract Interface Should not be Allowed in RedundantModifier
2014-09-12 15:12:56 -07:00
ychulovskyy
08ea556aed
Issue 134: Exception thrown when parsing numeric constant "3.14_15F"
2014-09-08 15:21:22 -07:00
Roman Ivanov
f768a8f8cc
fix for Checkstyle's violations
2014-09-07 21:41:21 -07:00
Roman Ivanov
638dfe14bc
fixes for javadoc problems that are found by java8
2014-09-07 21:35:24 -07:00
Roman Ivanov
8e91e39beb
fix for Checkstyle violations
2014-09-07 18:39:37 -07:00
Roman Ivanov
465efcd6e0
fix for javadoc problems acording to java8
2014-09-07 18:39:23 -07:00
maxvetrenko
f632a5e318
Javadoc in GenericWhitespaceCheck was updated #254
2014-08-28 00:16:22 +04:00
Max
12a1aec080
RightCurly. Force line break before '}' in case SAME option. #250
2014-08-14 21:11:42 +04:00
Max
a123763c92
Left curly update. Force line break #247
2014-08-13 14:15:36 -07:00
Max
6f6179fb52
OuterTypeFilenameCheck. Update Check logic #248
2014-08-13 15:15:13 +04:00
Max
2628fc197d
Update for MemberNameCheck #244
2014-08-12 11:27:53 -07:00
Baratali Izmailov
78ccdd54ce
Fixed mistakes in Javadoc comments
2014-08-12 11:40:44 +04:00
Max
a0012d03eb
Fixed TODO need to handle LITERAL_SWITCH #235
2014-08-11 16:02:31 -07:00
Max
daf8230919
Fix false positive with ANNOTATION_DEF #237
2014-08-11 16:01:12 -07:00
Max
9324fdcf34
VariableDeclarationUsageDistanceCheck was update. Create new extended message in case ignoreFinal=true #239
2014-08-11 15:57:42 -07:00
Max
fb1407c204
Fix NPE in AbbreviationAsWordInNameCheck #241
2014-08-11 17:54:20 +04:00
Max
2a3be6769c
CustomImportOrder was introduced #231
2014-08-10 15:52:59 +04:00
Max
0518b753a4
Update for EmptyLineSeparatorCheck #227
2014-08-08 13:44:58 -07:00
Max
39f40e5785
Fixed AvoidUnicodeChars #216 . Fix NPE in case when allowByTailComment=true, fix false positive in case when allowEscapesForControlCharacters=true
2014-08-07 14:31:24 -07:00
Max
3a51c61b4a
OverrideMethodsDeclarationOrderCheck #32
2014-08-07 20:23:03 +04:00
Max
c4e886312a
VariableDeclarationUsageDistanceCheck was imported #223
2014-08-06 22:50:45 -07:00
Max
a5031acb33
EmptyLineSeparatorCheck was updated #218
2014-08-06 22:49:05 -07:00
Roman Ivanov
001d9cc213
issue #129 : make a handler for INDEX_OP so child method call gets a proper suggested indent level
2014-08-04 16:06:35 -07:00
Roman Ivanov
7c5f94aafd
AbbreviationAsAWordInName moved to naming package , documentation was rewritten, mTarget was removed from Check (fix after non problematic rebase)
2014-08-02 12:42:12 -07:00
Roman Ivanov
9c9ba5466d
AbbreviationAsAWordInName moved to naming package , documentation was rewritten, mTarget was removed from Check
2014-08-02 10:54:49 -07:00
Max
0ceec15029
AbbreviationAsWordInName. #212
2014-08-02 10:54:49 -07:00
Vaclav Chalupa
c3f856aba5
Enable array initialisation indentation settings
...
- created new 'arrayInitIndent' property to set
different indentation than basic offset
2014-08-01 08:13:59 +02:00
Roman Ivanov
02e6ed4038
TODO was removed
2014-07-30 17:44:09 -07:00
Jarmo Isotalo
85265a9b28
Added the missing period
2014-07-30 17:43:02 -07:00
Joni Salmi
dc787c89fd
Added method to clear cache
2014-07-30 17:43:02 -07:00
Max
39ad631113
Fixed false positive. #213
2014-07-30 16:09:33 -07:00
Thomas Jensen
f3d433723b
Support annotations in TypeNameCheck
2014-07-28 22:55:39 +02:00
Max
f39f224203
InterfaceTypeParameterNameCheck was introdused. #202
2014-07-26 21:02:23 +04:00
Ilja Dubinin
023b564417
Issue 165 fixed. New rule only for catch types has been added. IllegalCatchCheck has been extended to use catch with few exception types.
2014-07-25 02:08:00 +04:00
Max
522a6b31b6
Allowed empty anonymous classes. Was updated allowEmptyTypes property. #197
2014-07-24 16:23:58 +04:00
Baratali Izmailov
dfb851e673
Javadoc comments were fixed
2014-07-22 23:44:50 +04:00
Dominic Jones
238bacaf90
Adding ANNOTATION_DEF to the valid list of parentASTs for the SuppressWarningsHolder. Without this, any @SuppressWarnings (checkstyle or not) present on an annotation definition class will fail.
2014-07-20 17:22:00 +04:00
Max
154016d609
AvoidEscapedUnicodeCharactersCheck #194 . Avoided using Unicode escapes.
2014-07-18 08:36:53 -07:00
Max
32ca737edc
LocalVariableNameUpdate #192 . Allowed one char variables in
...
initialization expressions in FOR loop
2014-07-16 17:14:40 -07:00
Max
ec19316322
RightCurly was updated #182 . Added option to check line break after the closing brace if that brace terminates a statement or the body of a method, constructor or named class.
2014-07-16 17:12:54 -07:00
Max
af8d57317f
EmptyBlockUpdate #190 . Were updated UT and input. Corrected link in EmptyLineSeparatorCheck
2014-07-16 23:06:07 +04:00
Max
d9452c8d5e
EmptyLineSeparatorCheck #186 . Exactly one blank line separates each section that is present.
2014-07-15 20:08:17 -07:00
Max
05211d164a
SeparatorWrapCheck #179 . Covers separators like ',', '.'.
2014-07-15 19:57:57 -07:00
Christoph Kutzinski
902fa7302c
Use a thread-safe map implementation to keep the compiled patterns.
...
Note that the comment about Pattern itself not being thread-safe was
wrong, only the Matcher instances created from a Pattern are not
thread-safe, but that's in the responsibility of the caller.
2014-07-13 11:52:25 +02:00
Maroontress Fast Software
8c1b62313f
Fix style of existing code.
...
Fix style for the enhancement to pass “mvn verify.”
2014-07-09 10:17:27 +09:00
Maroontress Fast Software
d4c8bd11ed
Enhance WhitespaceAroundCheck
...
Enhance WhitespaceAroundCheck to check DO_WHILE and LITERAL_SWITCH
tokens.
2014-07-09 09:50:55 +09:00
Tobias Baum
7dc94ba7ab
Fixed AbstractTypeAwareCheck for generics in interfaces (issue #473 )
2014-07-06 14:50:08 +02:00
Max
55c2560774
Update for existing Check: WhitespaceAround #170
2014-07-05 09:30:16 -07:00
Max
9d93afb1f3
OneTopLevelClass #172
2014-07-05 06:58:45 -07:00
Max
f9b6da329f
NoLineWrap #173
2014-07-05 06:55:27 -07:00
Ivan Sopov
dcd4e9148c
fix for #47
2014-07-02 15:46:15 +04:00
Max
6cd89ebeba
Update for existing Check: DeclarationOrder #4
2014-06-30 21:37:30 -07:00
Roman Ivanov
3994e36e8d
fix for build failure
2014-06-14 23:07:59 -07:00
Roman Ivanov
5b9f1c1141
Java doc was extended for Docklets to explain their role in project
2014-06-14 21:44:11 -07:00
James Gorman
e196edcf8b
Update UnusedImportsCheck to correctly detect classes in parameters and inline tags nested within block tags.
...
fixing checkstyle issues
Fixing even more checkstyle issues
2014-06-10 22:01:59 -07:00
theqaguy
2ed89e1e58
Fix for issue #119 "HTML comments break the Javadoc style HTML check" error in TagParser
2014-03-29 22:13:32 -07:00
Jacob Tomaw
208e0208ca
Enhance WhitespaceAroundCheck to ignore Annotation Array Initialization curlies as it does for Array Initialization outside of annotations.
2014-03-27 16:19:52 -07:00
Ilja Gubins
dfde8d0ffd
Adding u HTML tag to list of allowed tags in JavaDoc. Fixes issue #58 .
2014-03-27 16:15:31 -07:00
Ilja Gubins
19b80e2938
Fixed JavaDoc wrong method reference
2014-03-16 16:42:41 +02:00
Ivan Sopov
f1efb27670
moving to standard directory layout
2014-03-04 19:18:11 +02:00