Commit Graph

37 Commits

Author SHA1 Message Date
Baratali Izmailov ff12c1b012 Issue #49. Added support of Javadoc comments. Extended API to create Javadoc Checks. 2014-10-20 00:32:41 +04:00
Baratali Izmailov 185e730e93 Issue #49. Added ANTLR4 grammar for parsing Javadoc comments. 2014-10-20 00:32:41 +04:00
Baratali Izmailov a24df47caf Issue #49. Added support of single-line and block comments 2014-10-17 22:19:10 -07:00
Ivan Sopov f1efb27670 moving to standard directory layout 2014-03-04 19:18:11 +02:00
picomancer 788f87df4d chmod all files to 644 2013-10-05 00:22:22 -04:00
Oliver Burn fbe0d8d932 Apply patch# #156 Check suppression with @SuppressWarnings 2013-06-12 21:28:08 +10:00
Oliver Burn 05453b9442 Fix checkstyle errors 2010-10-17 21:56:16 +11:00
Oliver Burn 7d5d0f8d2a tighten up the suppression 2010-10-06 13:01:25 +11:00
Oliver Burn 31299bf1b2 Treating the Unit Tests as *real* code. 2010-10-06 12:55:47 +11:00
Oliver Burn ceb894bc7a Treating the Unit Tests as *real* code. 2010-10-06 12:44:39 +11:00
Oliver Burn a15b62b572 use immutablemap where possible 2009-04-27 12:35:19 +00:00
Oliver Burn 211e2414ae Added the SuppressWithNearbyCommentFilter filter that uses nearby comments to suppress audit events. Thanks to Mick Killianey for providing patch #2354424. 2009-03-08 04:21:41 +00:00
Oliver Burn 13b7c63433 A large refactoring to move the functionality of open/reporting on files into Checker and out of FileSetCheck. The advantages are:
- reduces the logic required in each implementation of FileSetCheck.

- reduces, but not eliminates, the number of times a file is reported as being audited.

- reduces the amount of times a file needs to be read in from the file system.

The motivation is the desire to move more checks to be purely FileSetCheck based, like the TabCharacter check.

I still need to do some tidying up of the documentation, and make Checker support "charset".
2008-11-09 09:37:27 +00:00
Oliver Burn 27cb05b945 final changes for patch [ 1917420 ] Allow custom, parametrized check messages 2008-07-16 06:52:24 +00:00
Oliver Burn d2af4accdd Apply parts of patch #1952556 fixing some FindBugs bugs. Thanks to Travis Schneeberger 2008-07-02 03:16:04 +00:00
Oliver Burn 7552a0b72e Drinking the "Google Collections" Kool-Aid.
I like the reduced duplication.
2008-04-22 12:28:07 +00:00
Oliver Burn fd90bd5aa5 Get rid of needless {@inheritDoc} 2008-01-14 07:42:28 +00:00
Oliver Burn f38d8abd42 Removed a native array in favour of a List<File> -- was it worth it??
Added @Override where possible -- did this as I got bitten by a subtle bug when making the first change. The @Override would have prevented it.
2007-12-20 06:21:11 +00:00
Oliver Burn e50e1fcd1c Use the new syntactic sugar "for loop".
End of the cosmetic changes.
2007-12-15 10:28:47 +00:00
Oliver Burn f1afaf83f3 Finish of adding generics. 2007-12-15 08:14:40 +00:00
Oliver Burn 08638b5f73 Start of adding generics. 2007-12-15 06:36:58 +00:00
Oliver Burn 262209477f Start of adding generics. 2007-12-15 05:40:56 +00:00
Oliver Burn 7c20c36cea Turn off all checks for Generated code. Fixes issue with using Eclipse plug-in as this is the only way to ignore certain files. 2007-12-15 05:01:10 +00:00
Oliver Burn 788b41973d Changes to make it possible to identify a module by an id, and then to
suppress messages based on the id. The motivation is to allow for finer
grained suppressions. For example, can enable multiple instances of the
Regexp check, and suppress on the individual instance.
2005-12-29 12:35:00 +00:00
Oleg Sukhodolsky 9d8134f4e8 Applied patch 1348873 which implements rfe 1345691 2005-11-10 13:38:44 +00:00
Oleg Sukhodolsky 73e2e24fca added antlib.xml with checkstyle task definition. Also fixed line numbers in suppressions.xml 2005-10-31 11:12:23 +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 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 a69a0461d2 fix for 1168408 (RedundantThrows and JavadocMethodCheck with nested exception) 2005-06-13 21:18:08 +00:00
Oliver Burn 94d7b67c30 Fix Checkstyle errors 2005-06-07 09:48:44 +00:00
Oleg Sukhodolsky e27489c772 initial replacing RE by Pattern (need to update docs) 2005-05-11 16:48:11 +00:00
Oliver Burn bc66e150c2 All these changes are because I wanted to fix a small documentation
bug. Ended up having to move the RedundantModifierCheck around.
2005-03-23 12:15:08 +00:00
Oliver Burn 836e4d1b12 Support for suppressing errors about missing Javadoc on property accessor
methods. Still need to document it in xdocs.
2005-03-16 13:21:23 +00:00
Oleg Sukhodolsky 621d9a9bf7 UnusedPrivateMethod check should allow serialization-related methods (rfe 1036387) 2005-01-31 13:53:22 +00:00
Oleg Sukhodolsky 7aacf525ce remove unnecessary suppresions 2005-01-24 16:30:03 +00:00
Oliver Burn 6e731d17e0 Fixed errors I introduced. 2005-01-18 11:31:32 +00:00
Oliver Burn 258c680408 Bringing across from v3-branch 2004-12-05 04:43:03 +00:00