6792 Commits

Author SHA1 Message Date
1de9f7cd49 pmd: Reindent and whitespaces 2012-11-14 22:06:19 +01:00
412322567e pmd: removes invalid call to System.exit() 2012-11-14 21:29:15 +01:00
37ec2f505b Add supported languages to generate usage/help text for CLI 2012-08-06 20:25:22 +02:00
8709ade69f Add a positive value validator for the threads option 2012-08-06 19:54:57 +02:00
a66133e053 Remove now useless classes 2012-08-04 17:41:36 +02:00
a0236ee67f Move all CLI related logic into a class in the subpackage 'cli' - mostly to simplify and clarifiy PMD main class code. 2012-08-04 17:41:27 +02:00
f0b17e35ce Add a new Parameters class to hold all the parameters of PMD CLI 2012-08-04 17:37:02 +02:00
bd23033a82 Add jcommander as a dependency, in order to rework PMD CLI with it 2012-08-04 17:36:12 +02:00
5d3f5f3ff4 Move XPathCLI to appropriate CLI subpackage 2012-08-04 17:35:17 +02:00
a248ca7da3 Whitespaces 2012-08-04 17:33:54 +02:00
e5083d3f59 Fix tests data directory, to ensure all files are properly generated inside the directory 2012-08-04 12:01:13 +02:00
094e1bd490 Add unit test for CLI 2012-08-03 15:49:08 +02:00
969678015d Modify PMD run to allow unit test to workaround the call to exit() - and retrieve the status code (using env's properties 2012-08-03 15:49:08 +02:00
42ba8815b4 Add an handy public method to search for a pattern in a file 2012-08-03 15:49:08 +02:00
30281b78af Add a handy class to iterate over a file, line by line (to be used in unit test, while checking result file) 2012-08-03 15:49:08 +02:00
baf4a9d903 Fix 3539117 - jnlp link for CPD is wrong. Thanks to Marcin Milkowski for spotting and reporting this. 2012-08-02 22:44:52 +02:00
2b7bc6d300 Repository move to github 2012-07-29 16:43:36 +02:00
094291e8ed pmd/bgastviewer: Moved the strings to the resources directory.
* removed accidentally added eclipse .project file, added .gitignore.
2012-07-26 20:19:25 +02:00
2d9b4b400f Merge branch 'master' of https://github.com/victorbucutea/pmd into victorbucutea-master 2012-07-23 20:17:06 +02:00
2b21c3e060 removed unwanted orig file 2012-07-23 19:00:38 +03:00
1a8e374fbb Commit improved JSP parser + fix for ./bgastviewer 2012-07-23 18:52:40 +03:00
8d2c08d5cb pmd: bugfix for 3484404 (Invalid NPath calculation in return statement)
Thanks to Prabhjot Singh for the patch.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7706 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-19 16:48:18 +00:00
6926ba0647 pmd: added test for bug 3484404 (NPathComplexity and return statements)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7705 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-19 16:47:43 +00:00
c629e28711 Delete the empty lib folder
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7704 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-03 08:07:45 +00:00
7e9ef50cfe Clean up some empty folders
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7703 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-03 08:02:30 +00:00
58ae0344ff 3539585 AvoidLiteralsInIfCondition must NOT consider null
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7702 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-03 07:29:40 +00:00
faedbdd9b3 Site: Add link to a Gregorian translation recently contributed
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7701 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-12 15:56:35 +00:00
eab43fee83 Site: add documentation for new run.sh script (unices only)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7700 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-12 15:56:12 +00:00
732bb2de1f pmd: add test for bug 3524607 (annotated package)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7699 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-11 17:47:36 +00:00
ad2017a073 pmd (site): renamed cpd.xml to cpd-usage.xml so that we can have a cpd report of PMD.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7698 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-11 17:47:11 +00:00
8b586a5375 pmd: fix developer info in pom.xml
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7697 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-11 17:46:45 +00:00
f89c68a3bf pmd: added another test case for the parser
* see: http://jira.codehaus.org/browse/MPMD-126

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7696 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-11 17:46:25 +00:00
bdb16fb1b5 minor cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7695 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 17:59:07 +00:00
d447509c16 This class is quasi-obsolete, we should be transforming the XML renderer output instead, tagged with a FIXME.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7694 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 17:43:15 +00:00
38a959d939 minor tweak
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7693 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 17:26:23 +00:00
eefb81a056 rm redundant methods
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7692 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 17:14:31 +00:00
c61a4f1543 pmd: configuring maven site
* removing the broken dependency icu4j - seems not to be needed
 * adding pmd report

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7691 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:11:03 +00:00
b5614ce718 pmd: added sourceforge tracking icons to the website
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7690 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:10:47 +00:00
0e86ee33a4 pmd: make the output encoding of XMLRenderer of CPD and PMD more
easily configurable

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7689 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:10:25 +00:00
d04e8d32e9 pmd: ignoring tests with @Ignore, avoiding a little bit of configuration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7688 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:09:54 +00:00
9573085a9a pmd: filter the ruleset xml files to bring in the correct website URL
for the externalInfoU.

The website URL for snapshots and releases is different and now
controlled via the property pmd.website.baseurl.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7687 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:09:16 +00:00
ef057d6fc7 pmd: adding me as developer in the POM :)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7686 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:07:49 +00:00
c2d113ead8 pmd: added additional parser tests for java 7
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7685 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:07:34 +00:00
e6e5c6dd7d pmd: fixed bug #2410201 False+ AvoidReassigningParameters
This is indeed a lack of the symbol table and type resolution, which is
not finished yet. We now stop trying to resolve the variables, once we
did not find the declaration in the middle.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7684 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:06:56 +00:00
eb6c0c8d31 pmd: fixed bug #3526212 with immutable field and compound assignment
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7683 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:05:50 +00:00
196a5f15ea pmd: fixed bug #3526992 False + UselessParentheses
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7682 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:04:59 +00:00
4ffeda09cf pmd: cleanup with the namespace handling in the ruleset files
noNameSpaceLocation is not needed as we use our namespace as
the default one. If we use anything else, we anyway need to
declare what we use.

Copied the schema and dtd to website.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7681 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:03:49 +00:00
40c2a5d768 cpd: fixed bug #3523614, preserving the newlines in the XML report
Excluding the transitive xalan dependency and adding the missing saxon-dom
dependency, so that we have saxon complete and only one XML library.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7680 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:00:55 +00:00
9eab491f2a pmd: fixed bug #3516101 (InsufficientStringBufferDeclaration fails to parse hex)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7679 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:00:14 +00:00
2ec09b626a pmd: Strings.InefficientStringBuffering: fixed bugs #1503099 and #3109408
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7678 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-31 18:22:48 +00:00