Oliver Burn
4795a2b485
Applied patch 1292684 from Maarten Coene.
2005-10-08 00:43:16 +00:00
Oliver Burn
d17dc3ab28
Fixing up my brain dead assertions. Moral, run the code with the assertions enabled. ;-)
2005-10-08 00:18:30 +00:00
Oliver Burn
d9f789a649
Applied patch 1309516.
2005-10-06 14:18:14 +00:00
Oliver Burn
8fe7c3a914
Fix for infrastructure class loader. Needs to be verified by Lars (of
...
Eclipse plug-in fame! :-)
2005-09-25 10:50:56 +00:00
Oliver Burn
85413204e1
Added Spanish messages (patch 1250329).
2005-09-21 11:31:53 +00:00
Oliver Burn
db5bacf5e4
Fix release number
2005-09-15 11:56:44 +00:00
Oleg Sukhodolsky
8f46a8cf8c
Fix for 1289067 - removing docs about usage.
2005-09-15 10:41:56 +00:00
Oleg Sukhodolsky
b046184f90
French messages for some checks (bug 1262825, contributed by Fabrice Bellingard)
2005-09-12 11:18:14 +00:00
Oleg Sukhodolsky
77235d01aa
making "target" absolute path.
2005-09-12 07:43:28 +00:00
Oleg Sukhodolsky
1214dd0e74
fix for 1284682: enum constant are treated the same way as final fields.
2005-09-12 07:20:17 +00:00
Oleg Sukhodolsky
9cbee6a57e
i18n support for HideUtilityClassCtor and ArrayTypeStyle checks (bug 1262825)
2005-09-08 12:32:35 +00:00
Oliver Burn
11939b72a5
Code correction.
2005-09-07 21:37:47 +00:00
Oleg Sukhodolsky
89f764baad
grammar changes for (SUPER_)CTOR_CALL
2005-09-07 15:56:51 +00:00
Oleg Sukhodolsky
51628343a3
fixed documentation (bug 1275988)
2005-08-30 03:51:15 +00:00
Oleg Sukhodolsky
4c70d9a5dd
Hope I finally was able to write correct javadoc for RBRACK >:-(
2005-08-17 09:39:38 +00:00
Oleg Sukhodolsky
8383617e84
It's a good idea to run gump. Fixed javadoc for new token.
2005-08-17 07:04:54 +00:00
Oleg Sukhodolsky
865ba5284a
Changes for grammer to keep as much text in AST tree as we can.
...
For now I do nothing with this/super in (SUPER_)CTOR_CALL.
Should think more about this.
Also I've changed grammer to not generate extends/implement cleases
if there is no such in the code.
Made some refactoring for build.xml to make possible to redirect build
output to custom directory (and we used too much hardcoded paths there
:)
It looks like this is my last commit before vacation, so I hope
I will break nothing :)
2005-08-17 06:55:20 +00:00
Lars Kühne
4f2f342589
backed out Olegs changes for #1257344 as per discussion on dev list
2005-08-16 04:08:28 +00:00
Oleg Sukhodolsky
81a2263fef
PropertyCacheFile & StringArrayReader are public now (bug1257344). I think it's worth to support someone who knows Ada :)
2005-08-14 17:53:53 +00:00
Oliver Burn
357adf02b1
Major update to the documentation look and feel. It is based *very*
...
heavily on the TWiki.org documentation.
2005-08-14 13:23:39 +00:00
Oleg Sukhodolsky
2e2047a853
Fixed 1257599 - RequireThis should know that there are enum and inteface definitions :)
2005-08-14 09:38:04 +00:00
Oliver Burn
63695b43c3
Remove reference to usage checks.
2005-08-11 22:07:14 +00:00
Oleg Sukhodolsky
e9704e1342
we do not need to exclude MyAnnotation.java from compilation anymore
2005-08-11 07:48:26 +00:00
Oleg Sukhodolsky
38d50c6344
fix for gump failure (renaming MyAnnotation to MyAnnotation[2-4] :)
2005-08-09 12:59:51 +00:00
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