Commit Graph

4294 Commits

Author SHA1 Message Date
Andrei Selkin 782da01103 Fixed overly strong type cast, issue #1555. 2015-08-08 06:59:27 +03:00
Dave Moloney 4d526a44a7 Minor typo: have -> has the 2015-08-08 06:18:24 +03:00
Dave Moloney 7f90c5aef3 Minor typo on site homepage: 'desig' -> 'design' 2015-08-08 06:18:24 +03:00
Roman Ivanov 3c5d80db4c 6.10-SNAPSHOT 2015-08-07 16:57:36 +03:00
Roman Ivanov 2ad80f4e9e [maven-release-plugin] prepare for next development iteration 2015-08-07 15:20:43 +03:00
Roman Ivanov 75be892cb1 [maven-release-plugin] prepare release checkstyle-6.9 2015-08-07 15:20:41 +03:00
Roman Ivanov e04257c669 release notes 6.9 2015-08-07 06:46:50 +03:00
Roman Ivanov f727a3d885 release notes for 6.8.2 2015-08-07 05:53:19 +03:00
Michal Kordas b0d1f7fd52 Remove redundant characters from regular expressions. #1555
Fixes:
* Obsolete single repetition
* Redundant character escapes
2015-08-06 06:32:36 +03:00
Michal Kordas 1df3af1d42 Add tag required by schema to Cobertura configuration. #1555
Fixes IntelliJ IDEA MavenModelInspection violation.
2015-08-06 06:31:48 +03:00
Michal Kordas d2b16c06ed Collapse empty tags in XML. #1555 2015-08-06 06:30:42 +03:00
Baratali Izmailov dd5562f6dc Issue #1293: Improved coverage for ReturnCountCheck 2015-08-06 06:29:22 +03:00
Roman Ivanov 75ddaad1c5 fix for build on windows. #1294 2015-08-06 06:17:12 +03:00
Roman Ivanov ead1a5e5dc 100% UTs coverage for Checker (no way to reproduce/mock IOException). #1294 2015-08-05 17:06:17 +03:00
Roman Ivanov 3fe08f2968 UT coverage for Checker. #1294 2015-08-05 16:27:10 +03:00
Roman Ivanov a2da840df3 100% UTs coverage for TreeWalker. #1294 2015-08-05 15:39:51 +03:00
Roman Ivanov b2d7013e9e UT coverage for TreeWalker. #1294 2015-08-05 08:04:48 +03:00
Andrei Selkin ddafe73dda Fixed incorrect Google Java Style links, issue #751. 2015-08-04 12:02:40 +03:00
Ilja Dubinin 78fbe6abf4 Coverage has been increased to 100% in DescedantTokensCheck. Issue #1290 2015-08-03 20:54:04 -07:00
Andrei Selkin d282d5b8db Refactoring of RightCurlyCheck, issue #1511. 2015-08-03 12:03:09 +03:00
Michal Kordas ef422e76c6 Remove redundant throws declarations. #1542 2015-08-02 18:54:23 -07:00
Michal Kordas c6df309827 Access static members via class reference. #1542 2015-08-02 18:54:23 -07:00
Michal Kordas 59fa63c67d Remove unnecessary qualifiers for statically imported elements. #1542 2015-08-02 18:54:23 -07:00
Michal Kordas f0d637e28c Remove redundant constructor. #1542 2015-08-02 18:54:23 -07:00
Michal Kordas 2880edd655 Decrease scope of variables. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas d49eaaf2e4 Extract increment operations to separate expressions. #1538
While increment or decrement expressions nested inside other expressions are admirably terse, such expressions may be confusing, and violate the general design principle that a given construct should do precisely one thing.
2015-08-02 18:48:58 -07:00
Michal Kordas 85ba2a3dce Replace assignment with operator assignment. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas 4b26a472cc Replace manual array unboxing with ArrayUtils.toPrimitive(). #1538 2015-08-02 18:48:58 -07:00
Michal Kordas 0a6026c9ab Remove unnecessary unboxing. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas 111bd4b1df Collapse 'catch' blocks. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas e6538f822f Replace 'for' loop with 'foreach'. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas 0dc308ff69 Remove unnecessary 'return' statement. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas bf64651a0d Remove redundant if statement. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas 49404dbd70 Replace for loop with simpler while statement. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas 6fd60de0a4 Remove confusing else branches. #1538 2015-08-02 18:48:58 -07:00
Michal Kordas 693e8820d5 Remove fully qualified class names which can be shortened. #1538 2015-08-02 18:48:57 -07:00
Michal Kordas 940eb6509f Remove unnecessary uses of the super qualifier. #1538
A super qualifier is unnecessary when the field or method of the super class is not overridden in the calling class.
2015-08-02 18:48:57 -07:00
Michal Kordas 5c9e55ae70 Use .isEmpty() method instead of comparisons to 0. #1538 2015-08-02 18:48:57 -07:00
Michal Kordas 30438ebdf9 Mark fields final where possible. #1538 2015-08-02 18:48:57 -07:00
Michal Kordas 1ce6badd8f Replace new array expressions with an array initializer. #1538
Array initializers omit the type declaration because that is already specified by the declaration of the variable the expression is assigned to.
2015-08-02 18:48:57 -07:00
Michal Kordas fd794d428c Remove unnecessary consecutive lines in Checkstyle code. #1534 2015-08-02 18:41:32 -07:00
Ilja Dubinin 2e1ab8dd86 100% coverage in OuterType check. Issue #1290 2015-08-02 18:33:12 -07:00
Ilja Dubinin 688d428e55 Coverage has been increased to 100% in TrailingCommentCheck. Issue 1290 2015-08-02 18:32:09 -07:00
Baratali Izmailov d6a255f365 Issue #1539: Fixed NPE in MultipleVariableDeclarationsCheck 2015-08-02 18:30:15 -07:00
Baratali Izmailov b097b3f002 Issue #1293: Improved coverage for FinalLocalVariableCheck 2015-08-02 18:27:52 -07:00
Ruslan Diachenko e794bd04c7 Issue #1296: 'SuppressionsLoader' refactored, UT coverage improved 2015-08-02 16:04:50 +01:00
Michal Kordas 9d2cc769f0 Fix SonarQube violations in pom.xml. #46 2015-08-01 22:46:44 +02:00
Michal Kordas 068702d695 Replace StringBuffer with StringBuilder. #46
Fixes squid:S1149 violations.
2015-08-01 13:26:53 -07:00
Michal Kordas 58473e4e73 Make method "static". #46
Fixes squid:S2325 violation.
2015-08-01 13:26:53 -07:00
Michal Kordas 24d8ecc0ae Return expression without assigning it to temporary variable. #46
Fixes squid:S1488 violation.
2015-08-01 13:26:53 -07:00