Commit Graph

2080 Commits

Author SHA1 Message Date
Oliver Burn 528dca02c7 update version number 2005-08-09 12:18:12 +00:00
Oliver Burn 89f8ecc0fe Suppression compilation error in Unit Tests. 2005-08-09 11:37:40 +00:00
Michael Studman 30d725458e Fix for 1230751 2005-08-09 01:04:13 +00:00
Michael Studman d6175fd6c9 Fix for 1220036 2005-08-09 00:18:56 +00:00
Oleg Sukhodolsky cbe38280ad Fixed 1249707: AbstractTypeAwareCheck doesn't work with types from typeparm
Some pretty big refactoring for typeaware checks performed.
Also added handling for type params.  Current handling algorithm
has some preconditions and restriction, but it works for most cases
(not sure I've covered all situation when type param will have name
of real exception, but I do not think it is critical for now :)

Also, I've added column number for JavadocTag (mainly to be able use
ClassInfo for it).  So, JavadocTypeCheck also affected.

And I've added new logger for TreeWalker (if we have loggers we should
use them :)
2005-08-05 13:33:31 +00:00
Oliver Burn b95ced53e3 Final updates for a beta release 2005-08-04 12:05:26 +00:00
Oliver Burn 507bfaff53 Handle when getting a new file to process. 2005-08-03 22:05:19 +00:00
Oliver Burn 46b4a93da5 Remove documentation for implemented ideas. 2005-08-03 13:37:07 +00:00
Oliver Burn ec4f7b40c6 Finished unit testing - now need to do documentation. 2005-08-03 13:34:48 +00:00
Oliver Burn dc3fa902da Added unit tests for ImportControlCheck. 2005-08-03 12:35:04 +00:00
Oliver Burn a0a11388c6 another import check 2005-08-03 11:44:32 +00:00
Oliver Burn 695cf143a0 fix imports 2005-08-03 11:37:54 +00:00
Oliver Burn 0f12e6e3c3 Added unit tests. 2005-08-03 11:32:47 +00:00
Oliver Burn a5d30bf353 Added a lot more configuration options for the ImportControlCheck that
came out of using at work. I still need to improve the unit tests and
properly document the support options. Wanted to check in now for
backup.
2005-07-31 12:27:44 +00:00
Oliver Burn 28c5d6f062 Updated documentation. 2005-07-27 20:44:30 +00:00
Oliver Burn 1951594e90 Added the ImportControl check. This is a check that can be used to
enforce which packages can import which packages. I was required to
develop this for a large project to enforce application layering rules.

The check is fairly basic at the moment, but is still sufficiently
powerful to be useful. I am sure there will be feature requests in the
future.
2005-07-27 20:29:28 +00:00
Oleg Sukhodolsky e3929c641c Fixed implementation of DetailAST so getPreviousSibling() works for
all nodes in AST tree (bug 1244994)
Now we set next sibling during tree creation, instead of calculating
it (the calculation doesn't work if parent is null as for toplevel
nodes such as package, import and class definition).
Added test which verify correct tree structure for all testinputs.
2005-07-26 22:56:20 +00:00
Oleg Sukhodolsky fa9bf2e0ef I tired from these horrable long stack traces, so I've added iterative
implementation of tree processing, now we can activate it by setting
checkstyle.use.recursive.algorithm to false (by default checkstyle
still uses recursive algorithm).

Also I've chenged build.xml so it will be possible to use it from any
location and user will be able to specify filter for tests.
2005-07-23 21:18:27 +00:00
Oleg Sukhodolsky bcbd31a5ec some additional refactoring (to remove code duplication) 2005-07-23 09:18:36 +00:00
Oleg Sukhodolsky 50559c6876 fix for 1232822 and some refactoring in indentation check 2005-07-23 08:44:00 +00:00
Oleg Sukhodolsky 43fe1ad269 FinalLocalVariable should check if variable is used in left side of assignment (bug 1241722) 2005-07-21 13:25:13 +00:00
Oleg Sukhodolsky b78fa7ddd8 fixed example for FinalLocalVariable 2005-07-20 17:47:49 +00:00
Oliver Burn ed8417e1ad Make the documentation match the code. :-) 2005-07-20 11:08:10 +00:00
Oliver Burn b0e77dd317 Introduce a new check called IllegalThrowsCheck which checks for illegal
throws declarations. I have added as I really need it for my work at the
moment.
2005-07-19 12:45:52 +00:00
Oliver Burn cbabd6b314 Fix Javadoc errors 2005-07-19 12:43:44 +00:00
Oleg Sukhodolsky 864c681eef Applied fix for cache file from patch 1012389 2005-07-18 16:35:45 +00:00
Oleg Sukhodolsky 33b703a724 Fixed 1193848, added handler for class fields. 2005-07-18 07:12:17 +00:00
Oliver Burn adce874628 Added patch (id 1193251) to suppress processing of checks with 'ignore'
severity. From Lars Koedderitzsch.
2005-07-17 11:03:40 +00:00
Oleg Sukhodolsky ddd153f707 Fixed documentation and added one more test for WhitespaceAround 2005-07-08 06:26:23 +00:00
Lars Kühne 46fc598003 added unit tests for StrictDuplicateCode 2005-07-03 10:12:15 +00:00
Lars Kühne b106eab041 fixed typo in javadoc 2005-07-03 09:37:59 +00:00
Oleg Sukhodolsky c8aae6e57e Applied patches:
916971 - Add useFile property to formatter element in Ant task
1061458 - Trivial fix for SuppressionsLoaderTest.testBadInt()
2005-06-29 14:47:40 +00:00
Oliver Burn 28193fd5f0 Moving the usage checks to the contrib directory. I have cloned the
directory structure that was used.
2005-06-28 12:59:34 +00:00
Oleg Sukhodolsky 3d281a9683 fix for 1223290 (LocalFinalVariableNameCheck fail on catch variable) 2005-06-24 21:02:25 +00:00
Oleg Sukhodolsky 5fa648f830 missed testinput :( 2005-06-20 12:48:29 +00:00
Oliver Burn b53e53311d Fix corrupt checkin 2005-06-18 13:27:18 +00:00
Oliver Burn 0843c51a8c Included the open source tool EMMA into the build process to generate a
code coverage report when ever the unit tests are run. The report can be
found in target/emma/report.

I have been using EMMA for a while at work and am very happy with the
results. It is not quite as polished as Clover, but you get what you pay
for. I think it is good to be able to get a code coverage report
whenever the tests are run.
2005-06-18 13:16:40 +00:00
Oliver Burn bd1fdcf559 Version 2.0.5312 of EMMA. 2005-06-18 13:06:31 +00:00
Oleg Sukhodolsky c977c274a7 fix for 1220726 2005-06-17 12:04:08 +00:00
Oleg Sukhodolsky 8376cd4108 TypecastParenPad and ParenPad are now smarter in detectingif paren is part of typecast (bug 1217798) 2005-06-15 12:24:37 +00:00
Lars Kühne 5bce643edb added german translation for inline.conditional.avoid 2005-06-14 20:54:57 +00:00
Oliver Burn a054eca6fd Fix I18N bug 2005-06-14 10:40:48 +00:00
Oleg Sukhodolsky fcbd40f3ce applied patch 1045127 2005-06-13 21:31:58 +00:00
Oleg Sukhodolsky a69a0461d2 fix for 1168408 (RedundantThrows and JavadocMethodCheck with nested exception) 2005-06-13 21:18:08 +00:00
Oleg Sukhodolsky 8c4184bfc9 add compiled testinputs to classpath for our tests 2005-06-13 19:18:25 +00:00
Oleg Sukhodolsky 3e210b4283 Applied patch 1079192 (thanks to Dave Brosius) 2005-06-12 20:05:49 +00:00
Oleg Sukhodolsky 9f39a76cd5 Fix for 1084512 (Parameters of abstract methods hide fields)
Added ignoreAbstractMethods property to allow configure HiddenField
  check to ignore params of abstract methods.

Now test inputs (almost all) will be compiled as part of
run.test.suite and run.tests targets (this compilation requires
jdk1.5 or higher)
2005-06-12 19:43:06 +00:00
Michael Studman 82b9499604 1216844: Unit test for regression detection 2005-06-09 07:02:32 +00:00
Michael Studman 11fcc82d7c 1217275: Fixed bug where \u0000 .. \u0002 characters in string literals caused parse failures. 2005-06-09 06:57:45 +00:00
Michael Studman 209836dce9 1217275: Fixed bug where \u0000 .. \u0002 characters in string literals caused parse failures. 2005-06-09 06:56:54 +00:00