Commit Graph

244 Commits

Author SHA1 Message Date
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