Commit Graph

323 Commits

Author SHA1 Message Date
Michal Kordas b83375fc6d Fix EmptyLineSeparator violations for methods, issue #1040 2015-05-02 01:32:53 +02:00
Michal Kordas bc573aaaaf Fix EmptyLineSeparator violations for classes, issue #1040 2015-05-02 01:32:53 +02:00
Michal Kordas 31421dcdda Fix EmptyLineSeparator violations for packages, issue #1040 2015-05-02 01:32:48 +02:00
Michal Kordas 463bf8d92e Move test input files to resources, issue #1040
These files have to be moved to be excluded from Checkstyle analysis.
2015-05-02 00:49:38 +02:00
Michal Kordas 4f9b3cdad8 Fix EmptyCatchBlock violations in Checkstyle codebase, issue #945 2015-05-01 15:19:10 +02:00
Michal Kordas c0e9bd2df7 Remove FastStack from API, issue #989 2015-04-30 17:53:29 -07:00
Michal Kordas a15e6af728 Include enums in CovariantEquals check analysis, issue #1011 2015-04-30 17:42:41 -07:00
Michal Kordas cf4f4b5357 Improve standard package regexp for CustomImportOrder check, issue #1020 2015-04-30 17:27:42 -07:00
Roman Ivanov 949f78ab60 OneTopLevelClass check example is broken and documentation missing, for 'tokens' property. Issue #1017 2015-04-30 20:08:04 -04:00
Michal Kordas 260490c05b Fix NPE in ModifiedControlVariable check, issue #1012 2015-04-30 16:30:46 -07:00
Michal Kordas 4208891158 Repair ignored test, issue #994 2015-04-26 13:43:14 -07:00
Michal Kordas 51b2114e61 Fix AnnotationLocation violation in Checkstyle codebase, issue #945 2015-04-26 09:15:13 -07:00
Michal Kordas b29ca6b5f6 Fix and suppress PMD violations from ShortClassName rule, issue #982 2015-04-24 23:09:13 +02:00
Roman Ivanov 589c5a261a added validation for header in setHeader in RegexpHeaderCheck.java to provide better feedback when an invalid Pattern is specified (was InvocationTargetException only before). Changes are made base on @krichter722 commit. Issue #897 2015-04-24 09:10:26 -07:00
Michal Kordas 9399831eea Extend LeftCurly check to verify static initializers, issue #966 2015-04-23 13:11:19 -07:00
Mehmet Can Cömert 335d28b494 issue969: Fix upper/lower case conversation, enhance tests 2015-04-23 12:43:24 -07:00
Michal Kordas 9ea33d0720 Extend EmptyBlock check to verify synchronized blocks, issue #964 2015-04-23 21:24:55 +02:00
Roman Ivanov dd6b080a16 all TODO/FIXME were removed , some of them converted to issues 2015-04-23 13:38:31 -04:00
Michal Kordas ba4f230c35 Fix generics with arrays handling in NoWhitespaceAfter, issue #931 2015-04-18 23:38:54 -07:00
liscju ffde404dba Introduce new handler SynchronizedHandler for checking identation. Fixes Issue #580 2015-04-16 11:34:11 -07:00
Michal Kordas b798438ecd Add test for non existing cache file, issue #921 2015-04-15 11:02:39 -07:00
Michal Kordas 63b127c70d Add tests to increase coverage after changes, issue #871 2015-04-13 14:43:00 -07:00
Roman Ivanov 702a1a9576 fix for Findbugs violation DM_DEFAULT_ENCODING. Issue #778 2015-04-08 22:37:46 -07:00
Michal Kordas 95fc97c6d8 Fix PMD violations from 'typeresolution' ruleset, issue #875 2015-04-08 21:11:54 +02:00
Roman Ivanov 914bf53cd0 resolving PMD issues with braces, removing dead code conditions that are impossible to test, coverage become 100% 2015-04-03 00:25:32 -07:00
ychulovskyy 7a1b0b12a6 Issue #148 magic number detection: option to ignore magic numbers in field declarations 2015-04-03 00:25:05 -07:00
liscju 5026b7228d Added option in ModifiedControlVariable Check to ignore validation of variables defined in for which are not change in for iterator part, fix issue #286 2015-04-01 14:44:18 -07:00
Michal Kordas 3a20dbe8ed Use use Java 7 instead of custom logic for relative paths, issue #857 2015-03-31 11:25:03 -07:00
Damian Szczepanik 97f0829897 Added test method for Utils.isPatternValid method
Pull #861
2015-03-27 15:34:34 -07:00
Damian Szczepanik ebd4afdebe Deleted cache from Utils class + unified setters with patterns
Issue #845
2015-03-27 22:39:02 +01:00
Michal Kordas 8a24026433 Add unit tests for class base name util to improve coverage 2015-03-26 20:36:15 +01:00
Michal Kordas cbfe72383b CustomImportOrder checks import sorting according to ASCII order, fixes #847
Previously used 'ignoreCase' order is different than required ASCII order.
2015-03-25 21:00:55 -07:00
Michal Kordas 5b4a81a4e1 Invoke private constructors to increase coverage, issue #840 2015-03-24 06:25:58 -07:00
ychulovskyy d347f55756 Issue #26 SuppressionCommentFilter does not suppress StrictDuplicateCode Warnings 2015-03-18 22:30:23 -07:00
Roman Ivanov e36ae750f6 Revert "Added support of logging severity for all audit events, issue #67"
This reverts commit ca3ffb73ab.
2015-03-17 22:15:57 -07:00
alexkravin d44cb066cb Annotation Use Style Check, issue #28 2015-03-17 14:29:23 -07:00
alexkravin bcb4096366 Removed AvailableChecks page, updated corresponding UT, updated README 2015-03-17 09:29:37 -07:00
alexkravin 5bd22fd613 Import Order Check, added option allows alphabetical grouping order in static group, issue #12 2015-03-16 22:44:30 -07:00
alexkravin 5512e6fdba Final Local Variable Name Check, fixed bug with lambda's params, issue #747 2015-03-15 20:45:01 -07:00
Michal Kordas a135b0952a Fix non-compiling input for CustomImportOrder check
There are no classes directly under `com.google.common` package - such import was illegal.
2015-03-15 15:11:38 -07:00
alexkravin 1c15b6a36b Moved all methods from checkstyle.api.utils to checkstyle.utils, issue #661 2015-03-15 14:22:16 -07:00
Michal Kordas 9c4cd707e3 Add test to verify that all checks are present on website, issue #783 2015-03-15 14:17:03 -07:00
alexkravin ca3ffb73ab Added support of logging severity for all audit events, issue #67 2015-03-14 23:32:11 -07:00
Bhavik Patel bca42a91b4 Coverage Improvement on FinalLocalVariableCheck 2015-03-12 23:23:40 +05:30
Michal Kordas 1bd30555ea Remove useless parentheses to fix PMD violations, issue #744
Parentheses are considered unnecessary if the evaluation order of an expression remains unchanged if the parentheses are removed.
2015-03-10 22:36:38 +01:00
liscju b9f232ffe0 Fix bug with multiple imports, part of issue #706 2015-03-10 12:58:34 -07:00
Michal Kordas 49a23751eb Remove obsolete double spaces 2015-03-09 23:26:22 -07:00
Michal Kordas aef1f36b5a Fix HiddenField ignoreSetter propery not working for one letter fields, issue #730 2015-03-09 23:22:16 -07:00
alexkravin b436b3cd98 Need Braces Check, one-line statements option, issue #300 2015-03-07 17:23:26 -08:00
alexkravin 5f68bb50fd Visibility Modifier Check, ignore annotated fields 2015-03-07 17:14:51 -08:00