Commit Graph

643 Commits

Author SHA1 Message Date
Rick Giles 288d01d86c checks for whitespace after COMMA and TYPECAST 2002-11-11 11:48:45 +00:00
Lars Kühne 7e083cf6cb cache ResourceBundles, approx 8% perf improvement 2002-11-10 21:58:34 +00:00
Oliver Burn 10bae67ca1 removed unused code 2002-11-10 21:21:21 +00:00
Rick Giles 45ee1cb1ab replaced by NoWhitespaceAfterCheck and
NoWhitespaceBeforeCheck
2002-11-10 20:51:43 +00:00
Rick Giles 9eb9d9b3ea replaced NoWhiteSpaceAroundCheck by NoWhitespaceAfterCheck and
NoWhitespaceBeforeCheck
2002-11-10 20:48:33 +00:00
Rick Giles d4415f4b2d fixed checkstyle error 2002-11-10 20:35:47 +00:00
Rick Giles bed446244a added NoWhitespaceBefore, NoWhitespaceAfter checks 2002-11-10 20:35:13 +00:00
Rick Giles bf1b699ef0 cleanup after NoWhitespaceBefore, NoWhitespaceAfter checks 2002-11-10 20:28:33 +00:00
Rick Giles 8afddb6af3 no whitespace checks for unary operators 2002-11-10 19:54:31 +00:00
Rick Giles 851bdcdfa5 corrected checkstyle errors 2002-11-10 19:46:24 +00:00
Rick Giles 333e944de5 added check for wrap of assignment operators at eol 2002-11-10 19:45:25 +00:00
Rick Giles f679235665 added assignment operators to acceptable tokens 2002-11-10 19:44:31 +00:00
Lars Kühne ff85de8f28 improve test coverage 2002-11-10 13:31:49 +00:00
Lars Kühne c2d424bf4c improved test coverage of HeaderCheck
added TODO comment about desired behaviour of HeaderCheck
2002-11-10 12:20:51 +00:00
Lars Kühne b041e53ae8 improve test coverage of StringArrayReader 2002-11-10 12:00:31 +00:00
Lars Kühne 12e8a3664b precalculate the StringBuffer size to avoid calls to expandCapacity
speedup of OpenOrb check by about 2.5%
2002-11-10 11:33:39 +00:00
Rick Giles 7f9305442f removed assignment operators from default tokens 2002-11-10 10:10:38 +00:00
Oliver Burn debcf7e6af remove dead code 2002-11-10 05:53:14 +00:00
Oliver Burn 747e4847a8 remove dead code 2002-11-10 05:48:15 +00:00
Oliver Burn 136702f978 remove dead code 2002-11-10 05:26:45 +00:00
Oliver Burn 75f0ef8a42 remove dead code 2002-11-09 22:13:50 +00:00
Oliver Burn 4b754899a4 remove dead code 2002-11-09 22:00:17 +00:00
Rick Giles ecaaaeb254 added operator wrap check 2002-11-09 20:24:22 +00:00
Rick Giles 58517365db modified to use an array of names for improved performance 2002-11-09 17:39:51 +00:00
Rick Giles d5c0ea5395 removed unecessary IGNORE check 2002-11-09 14:51:31 +00:00
Rick Giles 468541ac37 added check for 'instanceof'
refactored to a new variable
removed redundant IGNORE option
2002-11-09 14:50:49 +00:00
Oliver Burn 36af550d96 Changes for clover 2002-11-09 10:32:31 +00:00
Oliver Burn df9f4920a3 Fixed checkstyle errors 2002-11-09 10:31:53 +00:00
Rick Giles 8505901864 port operator wrap policy 2002-11-08 19:20:56 +00:00
Rick Giles 8c80de1692 cleanup from ConstantNameCheck 2002-11-08 10:53:10 +00:00
Rick Giles faeb93df42 added test to increase code coverage of JavadocMethodCheck 2002-11-08 00:41:27 +00:00
Rick Giles 0b38b65f91 strengthened to also check fields of outer classes, and to check
parameters by default.
improved code coverage.
2002-11-08 00:12:20 +00:00
Oliver Burn 215db57b5f changed I added to support Clover - still need to re-factor slightly. 2002-11-07 20:49:40 +00:00
Lars Kühne fc6eea95b8 added if without block to increase test coverage of EmptyBlockCheck 2002-11-07 20:04:14 +00:00
Lars Kühne f454aa6d90 added whitespace to improve code coverage in NoWhiteSpaceAroundCheckTest 2002-11-07 19:45:54 +00:00
Lars Kühne e6571e6f57 removed paranoia checks to increase code coverage 2002-11-07 19:10:10 +00:00
Lars Kühne 26fcfecd43 added if without else to increase test coverage 2002-11-07 19:05:29 +00:00
Lars Kühne 0eded9de9c removed unused throws declaration, Exception is never thrown inside method body 2002-11-07 19:03:28 +00:00
Rick Giles 3db24e2377 clarified comment for method inCodeBlock 2002-11-07 18:31:30 +00:00
Rick Giles d93f403e8f added comments 2002-11-07 18:03:08 +00:00
Rick Giles 5057b2c44f added coverage to test interfaces 2002-11-07 17:22:18 +00:00
Rick Giles d2a0e41072 fixed bug in checking an interface. 2002-11-07 17:21:41 +00:00
Rick Giles 74989ba011 Checks whether a local variable or parameter shadows a field.
This is the cause for one of the most common logic errors of beginners.
2002-11-07 10:20:55 +00:00
Oliver Burn b19d1056bb Moved the Scope class into the API package. 2002-11-06 07:26:26 +00:00
Oliver Burn 1321eda54e remove dead code 2002-11-06 07:12:58 +00:00
Oliver Burn 5fc3ff2bfb Please ensure you thoroughly test code before committing it. As a sanity test,
ensure that the target "checkstyle.checkstyle" will run! If in doubt, do not
commit, but instead said a patch to the devel mailing list for a review.

Finished the port of the ClassResolver code. Even though it compiled, it had
no chance of working due to class casting problems. They have not been
fixed. Also needed to ensure the correct class loader is being used.
2002-11-06 03:57:58 +00:00
Oliver Burn e7556f4af6 Fixed more Checkstyle errors. 2002-11-06 02:52:12 +00:00
Oliver Burn fc358e2da0 Fixed Javadoc errors 2002-11-06 00:47:21 +00:00
Oliver Burn 267bdf5417 Refactor to improve the AbstractOptionCheck code. 2002-11-06 00:40:26 +00:00
Oliver Burn 903f780d58 Added a getAbstractOption() method. I am going to change the design of this
class to improve the following:

- Not have protected member variables that are accessed directly. Checkstyle
  reports this error.

- By default the mOption member is not initialised to a default value. This is
  causing strange behaviour in the EmptyBlockCheck when no option is specified,
  as it does nothing. It should default to statement.
2002-11-06 00:23:32 +00:00