Compare commits

...
Author SHA1 Message Date
Andreas Dangel e1cc5d44b5 Prepare release pmd-eclipse-plugin 4.0.2.v20131031-1124 2013-10-31 12:35:23 +01:00
Andreas Dangel 490adf7276 pmd-eclipse: update release procedure 2013-10-31 12:30:13 +01:00
Andreas Dangel 283da27ffe pmd-eclipse: fix #1148 After changing exclude filters violations are not cleared 2013-10-31 12:08:27 +01:00
Andreas Dangel dadf519728 pmd-eclipse: add i18n for the new checkbox 2013-10-30 21:02:51 +01:00
Andreas Dangel 5e6d85ed5c pmd-eclipse: store the global rule management setting 2013-10-30 21:01:26 +01:00
Andreas Dangel e95c1f8460 pmd-eclipse: add checkbox to enable/disable global rule management 2013-10-29 22:27:33 +01:00
Andreas Dangel 71d7b5b7c8 cpd: fix #1144 CPD encoding argument has no effect
Thanks to Peter Bruin
2013-10-29 20:12:01 +01:00
Andreas Dangel 181e130b63 pmd-eclipse: fix rule selection in preferences dialog 2013-10-27 19:04:06 +01:00
Andreas Dangel 963e334cd7 website: use sections 2013-10-26 20:31:27 +02:00
Andreas Dangel d6fc01aad3 website: use foundation for pmd's main website 2013-10-26 19:05:34 +02:00
Andreas Dangel a0dbc1e6df pmd: fix #1123 failure in help examples 2013-10-19 21:13:49 +02:00
Andreas Dangel b9336cb674 pmd: update changelog with new rule PositionLiteralsFirstInCaseInsensitiveComparisons 2013-10-18 19:31:51 +02:00
Andreas Dangel 60de79ab6f Merge branch 'master' of https://github.com/larrydiamond/pmd 2013-10-18 19:27:16 +02:00
Larry Diamond 6627815c27 second shot at adding all this stuff 2013-10-17 15:38:25 -04:00
Larry Diamond a9bfdc1f15 second shot at adding all this stuff 2013-10-17 15:38:13 -04:00
Larry Diamond 7c84050b56 first shot at adding all this stuff 2013-10-17 15:27:19 -04:00
Larry Diamond c6d0a4238a first shot at adding all this stuff 2013-10-17 15:27:14 -04:00
Larry Diamond 0416a8a934 first shot at adding all this stuff 2013-10-17 15:27:03 -04:00
Larry Diamond 3c7d5fe0ce first shot at adding all this stuff 2013-10-17 15:26:52 -04:00
Andreas Dangel 9ae5c754bc pmd: ecmascript ASTTryStatement - deprecated isFinally() and isCatch()
Updated AttributeAxisIterator to ignore deprecated properties.
2013-10-17 20:39:20 +02:00
Andreas Dangel 858308aa8f pmd: fix #1140 public EcmascriptNode getBody(int index) 2013-10-17 20:37:13 +02:00
Larry Diamond 6d5160a857 add PositionLiteralsFirstInCaseInsensitiveComparisons rule
most of this rule is the same as PositionLiteralsFirstInComparisons
2013-10-17 13:38:06 -04:00
Andreas Dangel 32bf09ffd7 pmd: fix #1135 CheckResultSet ignores results set declared outside of try/catch 2013-10-16 20:43:26 +02:00
Andreas Dangel 64ca9b6f01 pmd: fix #1141 ECMAScript: getFinallyBlock() is buggy.
fix #1142 ECMAScript: getCatchClause() is buggy.
2013-10-15 23:20:32 +02:00
Andreas Dangel c1907339b3 pmd-eclipse: fix #1132 plugin does not execute custom xpath rules
Actually changing the behaviour of the global rule preferences,
so that all built-in rules of PMD are active by default and
all "unknown" (aka. custom) rules are active by default, too.
The filtering is therefore adjusted to filter out any inactive
rules rather then retaining the active ones.
2013-10-14 22:01:23 +02:00
Andreas Dangel 2da0cb94f9 pmd: fix #1131 CloseResource should complain if code betwen declaration of resource and try 2013-10-13 19:16:02 +02:00
Andreas Dangel 475e49f68a pmd: verify #1127 False positive: Constructor Calls Overridable Method 2013-10-12 18:42:45 +02:00
Andreas Dangel 74e8e41d15 pmd: fix #1121 NullPointerException when invoking XPathCLI 2013-10-11 19:31:03 +02:00
Andreas Dangel 64e35caa50 pmd: fix #1136 ECAMScript: NullPointerException in getLeft() and getRight() 2013-10-10 11:44:41 +02:00
Andreas Dangel b329e32fcc pmd: fix #1106 PMD 5.0.4 fails with NPE on parsing java enum with inner class instance creation 2013-10-09 23:33:39 +02:00
Andreas Dangel 7fe7695da1 pmd: update changelog for #1130 and correct test case 2013-10-09 22:32:27 +02:00
Andreas Dangel 499520ae9c Merge branch 'master' of https://github.com/albfernandez/pmd 2013-10-09 22:09:08 +02:00
Andreas Dangel a1a736c325 pmd: update changelog for #1134 2013-10-09 22:01:35 +02:00
Andreas Dangel 62e3bcdbad Merge branch 'UseStringBufferLengthEqualsEmptyStringFix' of https://github.com/acanda/pmd 2013-10-09 22:00:33 +02:00
Andreas Dangel 49ee265855 pmd: add test case for #881 2013-10-09 21:49:03 +02:00
Andreas Dangel b90e87b548 Merge branch 'master' of https://github.com/awhitford/pmd into awhitford-master 2013-10-09 21:40:34 +02:00
Andreas Dangel ed60fde269 pmd-cpd: applied patch #272, thanks to Delmas. This adds the "--exclude"
option similar to "--files".
2013-09-29 16:03:10 +02:00
Andreas Dangel 4ad6ecd8d2 pmd-emacs: simplify execution of pmd using wildcard class path
* update default rule names
* update default location of pmd to be ~/pmd
* use compilation-start instead of deprecated compile-internal
2013-09-29 15:12:21 +02:00
Ernst Reissner 0b29963d8c pmd-emacs: update pmd.el to work with PMD 5.0.2 and 5.0.5 2013-09-29 15:12:21 +02:00
alberto a24cbf034b Recognize custom close method #1130 2013-09-21 17:53:06 +02:00
Philip Graf 46620058e2 pmd: fix #1134 UseStringBufferLength false positives 2013-09-19 23:33:17 +02:00
Torsten Kleiber 61aa42f2d1 pmd-jdeveloper: eliminate files from bundle classpath 2013-09-03 21:50:20 +02:00
Torsten Kleiber 28bac21b4f pmd-jdeveloper: update JDeveloper documentation for the website 2013-09-03 20:32:21 +02:00
Torsten Kleiber 9b7d234cae pmd-jdeveloper: eleminate warnings in the extension 2013-09-03 20:31:22 +02:00
Torsten Kleiber 91c0502178 pmd-jdeveloper: Add missing files 2013-09-03 20:18:01 +02:00
Anthony Whitford 16bf1c5c99 Bug 881 - Skipping the setter check for final fields for the BeanMembersShouldSerialize rule. 2013-09-02 11:15:26 -07:00
Torsten Kleiber 2cce739814 Updated PMD version to 5.0.5 for JDeveloper 11.1.1 to 11.1.2 2013-08-29 15:50:53 +02:00
Andreas Dangel e0f664e9f4 pmd: update release procedure to fix #1119 PMD jar missing in pmd-bin-5.0.5.zip 2013-08-12 20:31:09 +02:00
Andreas Dangel 6e55c514ee pmd-eclipse: update release notes and mention release notes in release procedure 2013-08-11 13:27:37 +02:00
Andreas Dangel 617813a6ae pmd-eclipse: fix release notes 2013-08-11 13:21:39 +02:00
Andreas Dangel ba401c1761 pmd-eclipse: Prepare next pmd-eclipse-plugin development version 4.0.2-SNAPSHOT 2013-08-11 13:01:58 +02:00
Andreas Dangel 61dffa5f01 pmd-eclipse: update release procedure 2013-08-11 12:58:46 +02:00
Andreas Dangel 0babfc13ff pmd-eclipse: update to use pmd 5.0.5 2013-08-11 12:55:00 +02:00
Andreas Dangel d0ad6ae6ce pmd: update the release process 2013-08-11 12:49:16 +02:00
Andreas Dangel a7f842c92e pmd: Prepare pmd release 5.0.5 2013-08-11 12:29:13 +02:00
Andreas Dangel 4ccb814cf1 pmd-eclipse: fix #988 Build path exclusions not honored 2013-08-11 00:17:31 +02:00
Andreas Dangel 90590dce93 pmd-eclipse: fix #1070 Properties page: "Rule-Selection" should be disabled if project-local config is selected 2013-08-10 22:59:50 +02:00
Andreas Dangel 99a0c59b98 pmd: fix #1095 AvoidFinalLocalVariable false positive 2013-08-10 21:19:29 +02:00
Andreas Dangel acc799e79d pmd-eclipse: fix #1079 Exclude pattern does not work 2013-08-10 18:36:15 +02:00
Andreas Dangel 97ace24df0 pmd-eclipse: update documentation for reporting bugs. 2013-08-10 18:22:41 +02:00
Andreas Dangel ead58c6f49 pmd-eclipse: fix #1061 PMD Eclipse: How to ... documentation missing
Basically extracted doc.zip and made it available in the eclipse help system.
2013-08-10 18:08:49 +02:00
Andreas Dangel 3677ce0235 pmd-eclipse: add back the PMD icon in eclipse about dialog.
Update feature's about text.
2013-08-10 17:26:47 +02:00
Andreas Dangel 4194855e8c pmd-eclipse: another update site link 2013-08-10 15:24:30 +02:00
Andreas Dangel 4f627b9d43 pmd-eclipse: upgrade tycho to 0.18.1 2013-08-10 15:15:56 +02:00
Andreas Dangel b33075a280 pmd-eclipse: fix #1112 Eclipse log file will not be filled 2013-08-10 15:02:01 +02:00
Andreas Dangel e0cf43a60d pmd-eclipse: active default rules and renderer for a fresh workspace
The rules, that are active by default are the ones from
java-basic, java-imports and java-unusedcode.
The active renderer by default is text.
2013-08-10 15:00:26 +02:00
Andreas Dangel ebe526ca10 pmd-eclipse: fix #1052 right click to add reviewed comment missing 2013-08-10 13:54:52 +02:00
Andreas Dangel 2a3c0a648a pmd-eclipse: discover the language of the file to process to avoid parse exception, if it happens to be not a java file. 2013-08-10 12:24:20 +02:00
Andreas Dangel 2107bef4ee pmd-eclipse: better fix for #1071 Violations are reported multiple times
The markers for a file are now cleared always before new markers are created/added to the file.
2013-08-10 11:13:24 +02:00
Andreas Dangel e1e03f8645 pmd-eclipse: fix #1096 SWTError: No more handles on Violation Outline View
Actually caching the shape images created by ShapePainter instead
of creating always new ones.
2013-08-09 20:16:27 +02:00
Andreas Dangel dd0d435511 pmd (site): execute move-index-and-delete-generated-xdocs ealier, at pre-site.
This is to make jenkin's site archive working.
2013-08-07 21:38:25 +02:00
Andreas Dangel 46f3110bcc pmd-eclipse: update site location 2013-08-07 19:20:14 +02:00
Andreas Dangel e25162b8d5 pmd: fix #1069 Eclipse plugin does not accept project-local config
This is about the RuleSetReferenceId and how we resolve such a
id to a real ruleset.
It is mostly backwards compatible.
2013-08-07 19:20:06 +02:00
Andreas Dangel 9215e37ff4 pmd: fix #1114 CPD - Tokenizer not initialized with requested properties
There was a similar problem with CPD GUI.
Also resetting the properties, so that unchecking the checkboxes has actually an effect.
2013-08-05 08:42:44 +02:00
Andreas Dangel 6bba7d3546 pmd: fix #1091 file extension for fortran seems to be wrong in cpdgui tools 2013-08-03 22:12:19 +02:00
Andreas Dangel e8887e828a pmd: fix #1102 False positive: shift operator parenthesis 2013-08-03 22:05:23 +02:00
Andreas Dangel 78c32afade pmd: fix #1099 UseArraysAsList false positives 2013-08-03 22:00:23 +02:00
Andreas Dangel 8a32b8e8c4 pmd: fixed #1107 PMD 5.0.4 couldn't parse call of parent outer java class method from inner class 2013-08-03 21:38:16 +02:00
Andreas Dangel 2ad3e5152b pmd: fix for comment required rule - class cast exception 2013-08-03 21:30:38 +02:00
Andreas Dangel 1dc6b18fae pmd-eclipse: fix #1071 Violations are reported multiple times 2013-08-03 19:43:55 +02:00
Andreas Dangel 1110318832 pmd: fix #1092 Wrong Attribute "excludemarker" in Ant Task Documentation 2013-08-03 18:57:09 +02:00
Andreas Dangel dc100d00bc pmd: fix #1084 NPE at UselessStringValueOfRule.java:36 2013-08-03 18:50:33 +02:00
Andreas Dangel e47d7cd1c8 Merge pull request #21
Merge branch 'master' of https://github.com/michalborek/pmd into michalborek-master
2013-08-03 18:42:57 +02:00
Andreas Dangel 69348714e4 pmd: fix #1104 IdempotentOperation false positive 2013-08-03 17:53:14 +02:00
Andreas Dangel 390c3778cf pmd: verify #1108 False +: Regression on bug 884 (DCL) 2013-08-03 17:40:34 +02:00
Andreas Dangel 2e5d6c214f pmd: applied #1109 Patch to build with Javacc 5.0 2013-08-03 17:19:53 +02:00
Andreas Dangel bcf567e3b3 pmd: fix #1111 False positive: Useless parentheses 2013-08-03 17:13:38 +02:00
Andreas Dangel ed8497a82d pmd-eclipse: fix #1117 An internal error occurred during: "RenderReport" 2013-08-03 16:45:42 +02:00
Andreas Dangel 98e27294f0 pmd: fix #1115 commentRequiredRule in pmd 5.1 is not working properly 2013-08-03 15:47:38 +02:00
Andreas Dangel 9255e26c70 pmd: fix #1118 ClassCastException in pmd.lang.ecmascript.ast.ASTElementGet 2013-08-03 14:17:11 +02:00
Andreas Dangel 66e8cfc622 pmd: #991 is for 5.0.5 2013-08-03 13:05:57 +02:00
Andreas Dangel a1edabfca3 pmd: fix #1114 CPD - Tokenizer not initialized with requested properties 2013-08-03 12:15:10 +02:00
Andreas Dangel 69c41f451a maven-plugin-pmd-build: fix maven warning about parent path 2013-08-01 21:56:19 +02:00
Andreas Dangel 4f02afb30e pmd: more clover 2013-08-01 21:21:33 +02:00
Andreas Dangel 890dfac22f pmd: correct checkstyle report 2013-08-01 20:31:25 +02:00
Andreas Dangel 9a1829cf1d pmd: remove maven warning about parent pom path 2013-08-01 20:28:45 +02:00
Andreas Dangel fe7ace9507 pmd: take clover into account 2013-08-01 20:28:27 +02:00
U-Michal-Komputer\Michal ffc5b6f2a8 Fixed problem #1110 Selecting non-duplicates during import doesn't work. 2013-07-30 22:40:54 +02:00
Andreas Dangel cdf3d2a9cb pmd: update changelog etc. with new rule ConsecutiveAppendsShouldReuse 2013-07-30 21:00:52 +02:00
Andreas Dangel ff21265893 Merge branch 'master' of https://github.com/jbaris/pmd into jbaris-master
Merges pull request #2.
2013-07-30 20:52:13 +02:00
Andreas Dangel 83bb14e28e pmd-eclipse: update documentation about the "official" update site 2013-07-23 21:37:04 +02:00
Andreas Dangel 1df96cb2e7 pmd-eclipse: fix #1116 PMD Eclipse plugin doesn't analyze project if it has non-existing source folders 2013-07-23 21:36:58 +02:00
Juan Ignacio Barisich 3cb34969eb ConsecutiveAppendsShouldReuse rule 2013-07-19 12:05:24 -03:00
Juan Ignacio Barisich bef2183dc7 ConsecutiveAppendsShouldReuse rule 2013-07-19 12:02:37 -03:00
Andreas Dangel 989672f8fb pmd: update changelog for new rule AvoidProtectedMethodInFinalClassNotExtending 2013-06-22 17:25:14 +02:00
Andreas Dangel 090f2af516 Merge pull request #19
Merge branch 'master' of https://github.com/frizbog/pmd into frizbog-master
2013-06-22 17:12:32 +02:00
Andreas Dangel 559d72a9fe cpd: update changelog and site for new command line option 2013-06-22 17:11:41 +02:00
Pelisse Romain 97762a57ba Merge pull request #20 from farmaazon/master
Possibility of non-scanning subdirectories in CPD command line interface
2013-05-22 15:27:46 -07:00
Adam Obuchowicz d176e8b51c pmd/cpd: Added non-recursive option 2013-05-21 14:01:28 +02:00
Matt Harrah (frizbog) 44e7bb6354 New rule: AvoidProtectedMethodsInFinalClassNotExtending 2013-05-17 10:21:37 -04:00
Andreas Dangel 95e0c7bca2 pmd-eclipse: update release howto, remove jgit timestamp provider
* the jgit timestamp provider wasn't of much help: For releases
we set the version manually anyway. While developing it's confusing
if you forget to commit locally first and build right away.
2013-05-10 10:59:06 +02:00
Andreas Dangel 914a1a771e pmd-eclipse: Prepare next pmd-eclipse-plugin development version 4.0.1-SNAPSHOT 2013-05-10 10:02:03 +02:00
Andreas Dangel 73aa908c69 pmd-eclipse: add release notes 2013-05-10 09:56:41 +02:00
Andreas Dangel a3550d17ec pmd-eclipse: update copyright years 2013-05-09 20:13:17 +02:00
Andreas Dangel 7f08a8f7c4 pmd-eclipse: add about section in preferences to display the plugin's version and the used PMD version. 2013-05-09 20:03:06 +02:00
Andreas Dangel dcd2ac2166 pmd-eclipse: upgrade to pmd 5.0.4 2013-05-09 18:17:39 +02:00
Hooperbloob 45d6a710bc Merge pull request #18 from adangel/eclipse-tycho
Use Maven Tycho to build pmd-eclipse-plugin
2013-05-04 17:47:34 -07:00
Andreas Dangel 3cc3c6993b Update readme 2013-05-01 14:56:22 +02:00
Andreas Dangel 3b49640920 pmd: added missing 5.0.3 release links to the website 2013-05-01 14:11:40 +02:00
Andreas Dangel ae5ae2646e pmd: Prepare pmd release 5.0.4 2013-05-01 11:58:01 +02:00
Andreas Dangel 850d7bfd00 pmd: fix #1089 When changing priority in a custom ruleset, violations reported twice 2013-05-01 11:32:39 +02:00
Andreas Dangel 25777937c2 pmd: fix #794 False positive on PreserveStackTrace with anonymous inner 2013-04-28 10:13:21 +02:00
Andreas Dangel 2a161c533c pmd: fix #1063 False+: ArrayIsStoredDirectly 2013-04-28 10:13:16 +02:00
Andreas Dangel 2aad65138a pmd: let failing rules fail the unit tests again
so that we can early detect any introduced exceptions (like NPE).
2013-04-27 10:03:10 +02:00
Andreas Dangel 66fed8d9cc pmd: fix #1085 NullPointerException by at net.sourceforge.pmd.lang.java.rule.design.GodClassRule.visit(GodClassRule.java:313) 2013-04-25 19:11:01 +02:00
Andreas Dangel e1b8334e5e pmd: fix #1087 PreserveStackTrace (still) ignores initCause()
one more test, extended documentation example
2013-04-25 18:35:06 +02:00
Andreas Dangel 8cf1cc4113 pmd: fix #1087 PreserveStackTrace (still) ignores initCause() 2013-04-24 21:29:18 +02:00
Andreas Dangel 29b294e2b1 pmd: fix #1086 Unsupported Element and Attribute in Ant Task Example 2013-04-22 20:23:13 +02:00
Andreas Dangel c66c01e0ce pmd-eclipse: add missing export for net.sourceforge.pmd.lang.rule, needed by m2e-code-quality 2013-04-21 19:45:10 +02:00
Andreas Dangel 8d3ed164fb pmd-eclipse: Use last stable PMD version 5.0.3. 2013-04-21 16:31:09 +02:00
Andreas Dangel 7e8f558263 pmd-eclipse: Document build and release process for the pmd-eclipse-plugin 2013-04-21 16:31:08 +02:00
Andreas Dangel 4c9e714380 pmd-eclipse: Prepare release and publish of the eclipse update site. 2013-04-21 16:31:08 +02:00
Andreas Dangel 75503ffa40 pmd-eclipse: Renaming the source folders to use default locations for src and target. 2013-04-21 16:31:08 +02:00
Andreas Dangel 02a723391d pmd-eclipse: Renaming the folders and submodules according to their artifact id. 2013-04-21 16:31:07 +02:00
Andreas Dangel 25c47c651c pmd-eclipse: Delete obsolete build files. 2013-04-21 16:31:06 +02:00
Andreas Dangel 36b0d87186 pmd-eclipse: Update tests and disable the tests that need an OSGI context.
tycho-surefire is completely disabled now and only the simple junit tests
are enabled.
2013-04-21 16:31:06 +02:00
Andreas Dangel 396509e75a pmd-eclipse: Added dependency plugin to fetch required dependencies for pmd.
Removed the jar files from the repo.
2013-04-21 16:31:06 +02:00
Andreas Dangel 3443fe549b pmd-eclipse: Added tycho configuration and delete eclipse project files 2013-04-21 16:30:59 +02:00
Andreas Dangel 144a4e152d pmd: fix #254 False+ : UnusedImport with Javadoc @throws 2013-04-15 21:33:49 +02:00
Andreas Dangel 60aa0b1778 pmd: correct documentation for pmd's ant task to select the language
and adding more unit tests.
2013-04-15 21:00:14 +02:00
Andreas Dangel 37a4144bc6 Updated website with new project description. Added "Fork me on github" ribbon. 2013-04-14 18:31:41 +02:00
Andreas Dangel 030eb40e01 pmd: fix #1080 net.sourceforge.pmd.cpd.CPDTest test failing
The symlinks are simply removed now from the source code and
created by the test, when needed.
The test runs only under unix systems, not under windows.
2013-04-14 17:26:50 +02:00
Andreas Dangel 4be223bde4 pmd: adding more entries to gitignore and to exclude while creating the source zip file. 2013-04-14 17:01:56 +02:00
Andreas Dangel bd5ec60a9f pmd: fix #1082 CPD performance issue on larger projects 2013-04-14 13:33:00 +02:00
Andreas Dangel cfa21c106c pmd: fix #1081 Regression: CPD skipping all files when using relative paths 2013-04-12 23:02:40 +02:00
Andreas Dangel 0d9d09b9dd pmd: improve release documentation 2013-04-05 20:45:41 +02:00
Andreas Dangel 159d9523db pmd: correct the command line examples 2013-04-05 19:19:30 +02:00
Andreas Dangel 503b41e40f pmd: prepare pmd release 5.0.3 2013-04-05 18:48:02 +02:00
Andreas Dangel 0dc8d20800 pmd: use the released pmd-build plugin 0.8 2013-04-05 18:26:17 +02:00
Andreas Dangel f9484aa2d2 [maven-release-plugin] prepare for next development iteration 2013-04-05 18:17:20 +02:00
785 changed files with 31020 additions and 4650 deletions

No files matched your search

+24 -5
View File
@@ -1,8 +1,27 @@
# PMD
[![PMD - Don't shoot the messenger][PMDLogo]][website]
PMD is a source code analyzer. It finds unused variables,
empty catch blocks, unnecessary object creation, and so forth.
PMD
===
For more information, visit http://pmd.sourceforge.net
About
-----
PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks,
unnecessary object creation, and so forth. It supports Java, JavaScript, XML, XSL.
Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in
Java, C, C++, C#, PHP, Ruby, Fortran, JavaScript.
To see the current status of this repo, visit https://buildhive.cloudbees.com/job/pmd/
Source
------
Our latest source of PMD can be found on [GitHub]. Fork us!
The current status of this repo can be seen at [BuildHive].
News and Website
----------------
More information can be found on our [Website] and on [SourceForge].
[PMDLogo]: http://pmd.sourceforge.net/pmd_logo.png
[GitHub]: https://github.com/pmd/pmd
[BuildHive]: https://buildhive.cloudbees.com/job/pmd/
[Website]: http://pmd.sourceforge.net
[SourceForge]: https://sourceforge.net/projects/pmd/
+3 -2
View File
@@ -6,12 +6,13 @@
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
<relativePath/>
</parent>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-build</artifactId>
<name>PMD Build Plugin</name>
<version>0.8</version>
<version>0.9-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<description>
<![CDATA[
@@ -41,7 +42,7 @@ only if you modify the java code.
<connection>scm:git:git://github.com/pmd/pmd.git</connection>
<developerConnection>scm:git:ssh://git@github.com/pmd/pmd.git</developerConnection>
<url>https://github.com/pmd/pmd</url>
<tag>pmd-build/0.8</tag>
<tag>HEAD</tag>
</scm>
<developers>
-36
View File
@@ -1,36 +0,0 @@
Compilation
===========
'ant plugin' will generate a new version in the 'build' directory.
Setup
=====
If the default configuration is not accurate for your setup, customization
can be done in local.properties to point to the Eclipse installation directory
and the pde and launcher versions:
----- local.properties example -----------------
eclipse.home=/usr/java/eclipse
# find $eclipse.home -name "*pde*" -type d
eclipse.pde.version=3.8.2.v20121114-140810
# find $eclipse.home -name "*equinox.launcher*" -type f
eclipse.launcher.version=1.3.0.v20120522-1813
------ end -------------------------------------
Importing the projects in Eclipse
=================================
In the Java perspective, select "Import" -> "Existing Java projects", select
the directory where this file is located. The next panel should have four
projects:
net.sourceforge.pmd.eclipse
net.sourceforge.pmd.eclipse.plugin
pmd-eclipse-test
pmd-eclipse-test-fragment
+122
View File
@@ -0,0 +1,122 @@
PMD Eclipse Plugin
==================
Compilation
-----------
Simply run `mvn clean install`. The plugin's update site will be generated in
`net.sourceforge.pmd.eclipse.p2updatesite/target/repository`. You can use this directory as
an update site to install the new plugin version directly into your Eclipse.
Importing the projects in Eclipse
---------------------------------
Make sure you have the Maven Integration (m2e - http://eclipse.org/m2e/) installed. Then you can
import *Existing Maven Projects*.
You should see 6 projects:
* net.sourceforge.pmd.eclipse - that's the feature
* net.sourceforge.pmd.eclipse.p2updatesite - generates the update site
* net.sourceforge.pmd.eclipse.parent - the parent pom project
* net.sourceforge.pmd.eclipse.plugin - the actual plugin code
* net.sourceforge.pmd.eclipse.plugin.test - the (unit) tests for the plugin
* net.sourceforge.pmd.eclipse.plugin.test.fragment - an example extension of the plugin used during the tests
Releasing and updating the official eclipse update site
-------------------------------------------------------
# Pick a release BUILDQUALIFIER (e.g. v20130420-0001) and update versions
E.g. version is: "4.0.0" and BUILDQUALIFIER is "v20130420-0001".
The complete version of the plugin will be "4.0.0.v20130420-0001
export BUILDQUALIFIER=$(date -u +v%Y%m%d-%H%M) && echo $BUILDQUALIFIER
# Pick the version of the new release and the next development version
export VERSION=4.0.0
export NEXT=4.0.1
# Define the location of the local copy of the update site
export UPDATE_SITE_MIRROR=/location/of/local/update-site/
# Define your sourceforge login
export SFUSER=sf-user
# First get a copy of the current update site
rsync -avhP $SFUSER@web.sourceforge.net:/home/frs/project/pmd/pmd-eclipse/update-site/ $UPDATE_SITE_MIRROR
# Create a release branch
git branch pmd-eclipse-plugin-rb-$VERSION
# Update master branch to the next -SNAPSHOT version.
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=$NEXT-SNAPSHOT
# Update versions in n.s.p.e.p2updatesite/category.xml
sed -i -e "s/$VERSION.qualifier/$NEXT.qualifier/" net.sourceforge.pmd.eclipse.p2updatesite/category.xml
# Update the ReleaseNotes with the release date and version and add a next version entry
vim ReleaseNotes.md
# Commit and push
git commit -a -m "Prepare next pmd-eclipse-plugin development version $NEXT-SNAPSHOT"
git push origin master
# Checkout the release branch
git checkout pmd-eclipse-plugin-rb-$VERSION
# update versions with the BUILDQUALIFIER
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=$VERSION.$BUILDQUALIFIER
# Update versions in n.s.p.e.p2updatesite/category.xml
sed -i -e "s/$VERSION.qualifier/$VERSION.$BUILDQUALIFIER/" net.sourceforge.pmd.eclipse.p2updatesite/category.xml
# Update the ReleaseNotes with the release date and version
vim ReleaseNotes.md
# Commit and tag
git commit -a -m "Prepare release pmd-eclipse-plugin $VERSION.$BUILDQUALIFIER"
git tag pmd-eclipse-plugin/$VERSION.$BUILDQUALIFIER
# Build the plugin
mvn clean install -Ppublish-to-update-site -Declipse.updatesite.path=$UPDATE_SITE_MIRROR
# Test the new update site with eclipse - it should contain the new version
# If everything is fine, push the local changes
git push origin master
git push origin tag pmd-eclipse-plugin/$VERSION.$BUILDQUALIFIER
# upload the official update site
rsync -avhP $UPDATE_SITE_MIRROR $SFUSER@web.sourceforge.net:/home/frs/project/pmd/pmd-eclipse/update-site/
# Cleanup the release branch which was only needed during the release process
git checkout master
git branch -D pmd-eclipse-plugin-rb-$VERSION
Finally announce the new plugin version in the news section of SF: <https://sourceforge.net/p/pmd/news/>.
You can use the following template:
PMD for Eclipse $VERSION released
A new PMD for Eclipse plugin version has been released.
It is available via the update site: <https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/>
* Release Notes: <https://github.com/pmd/pmd/blob/pmd-eclipse-plugin/$VERSION/pmd-eclipse-plugin/ReleaseNotes.md>
Updating the used PMD version
-----------------------------
The parent pom contains the property `pmd.version`. This is used inside the plugin module, to resolve the dependencies.
In order to change the PMD version, change this property and rebuild (`mvn clean package`). In case PMD has some
changed (added/removed) transitive dependencies, you'll need to update `n.s.p.e.plugin/META-INF/MANIEFEST.MF` as well.
All transitive dependencies are copied into the folder `n.s.p.e.plugin/target/lib` during the build.
Useful References
-----------------
* <http://wiki.eclipse.org/Equinox/p2/Publisher>
* <http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring>
* <http://wiki.eclipse.org/Category:Tycho>
* <http://wiki.eclipse.org/Tycho/Additional_Tools>
* <http://codeiseasy.wordpress.com/2012/07/26/managing-a-p2-release-repository-with-tycho/>
* <http://wiki.eclipse.org/Tycho/Demo_Projects>
* <http://wiki.eclipse.org/Tycho/Reference_Card>
* <http://eclipse.org/tycho/sitedocs/index.html>
* <https://docs.sonatype.org/display/M2ECLIPSE/Staging+and+releasing+new+M2Eclipse+release>
* <http://wiki.eclipse.org/Tycho/Packaging_Types>
* <http://wiki.eclipse.org/Tycho/Reproducible_Version_Qualifiers>
* <http://www.vogella.com/articles/EclipseTycho/article.html>
* <http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/itp01/tycho.demo.itp01.tests/pom.xml>
* <http://www.sonatype.com/people/2008/11/building-eclipse-plugins-with-maven-tycho/>
* <http://zeroturnaround.com/labs/building-eclipse-plug-ins-with-maven-3-and-tycho/>
* <https://github.com/open-archetypes/tycho-eclipse-plugin-archetype>
* <http://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts>
+52
View File
@@ -0,0 +1,52 @@
# PMD For Eclipse - Release Notes
Installation instructions: <http://pmd.sourceforge.net/eclipse/>
Eclipse Update Site: <https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/>
## 31-October-2013: 4.0.2.v20131031-1124
* Fixed Plugin does not execute custom xpath rules ([bug #1132])
* Fixed After changing exclude filters violations are not cleared ([bug #1148])
[bug #1132]: https://sourceforge.net/p/pmd/bugs/1132/
[bug #1148]: https://sourceforge.net/p/pmd/bugs/1148/
## 11-August-2013: 4.0.1.v20130811-0001
* Updated PMD to 5.0.5
* Fixed Build path exclusions not honored ([bug #988])
* Fixed right click to add reviewed comment missing ([bug #1052])
* Fixed PMD Eclipse: How to ... documentation missing ([bug #1061])
* Fixed Properties page: "Rule-Selection" should be disabled if project-local config is selected ([bug #1070])
* Fixed Violations are reported multiple times ([bug #1071])
* Fixed Exclude pattern does not work ([bug #1079])
* Fixed SWTError: No more handles on Violation Outline View ([bug #1096])
* Fixed Selecting non-duplicates during import doesn't work. ([bug #1110])
* Fixed Eclipse log file will not be filled ([bug #1112])
* Fixed PMD Eclipse plugin doesn't analyze project if it has non-existing source folders ([bug #1116])
* Fixed An internal error occurred during: "RenderReport" ([bug #1117])
* The official update site is now: <https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/>
[bug #988]: https://sourceforge.net/p/pmd/bugs/988/
[bug #1052]: https://sourceforge.net/p/pmd/bugs/1052/
[bug #1061]: https://sourceforge.net/p/pmd/bugs/1061/
[bug #1070]: https://sourceforge.net/p/pmd/bugs/1070/
[bug #1071]: https://sourceforge.net/p/pmd/bugs/1071/
[bug #1079]: https://sourceforge.net/p/pmd/bugs/1079/
[bug #1096]: https://sourceforge.net/p/pmd/bugs/1096/
[bug #1110]: https://sourceforge.net/p/pmd/bugs/1110/
[bug #1112]: https://sourceforge.net/p/pmd/bugs/1112/
[bug #1116]: https://sourceforge.net/p/pmd/bugs/1116/
[bug #1117]: https://sourceforge.net/p/pmd/bugs/1117/
## 10-May-2013: 4.0.0.v20130510-1000
* Updated PMD to 5.0.4
* Fixed False Positive: LocalVariableCouldBeFinal ([bug #1075])
[bug #1075]: http://sourceforge.net/p/pmd/bugs/1075/
-66
View File
@@ -1,66 +0,0 @@
<project name="pmd" default="plugin" basedir=".">
<property file="local.properties" />
<property name="dir.build" value="build"/>
<property name="eclipse.home" value="/usr/java/eclipse"/>
<property name="eclipse.pde.version" value="3.4.1.R34x_v20080805"/>
<property name="eclipse.launcher.version" value="1.0.101.R34x_v20080819"/>
<!-- setting builder property to either buildDirectory or basedir as this is broken on my box -->
<property name="builder" value="${buildDirectory}"/>
<property name="builder" value="${basedir}"/>
<target name="clean">
<antcall target="clean-features" />
<delete quiet="true">
<fileset dir="." includes="build.properties" />
<fileset dir="features/net.sourceforge.pmd.eclipse" includes="build.xml" />
<fileset dir="plugins/net.sourceforge.pmd.eclipse.plugin" includes="build.xml, javaCompiler.pmd-plugin.jar.args" />
<fileset dir="plugins/net.sourceforge.pmd.eclipse.plugin/bin" />
<fileset dir="pmd-eclipse-test/bin" />
<fileset dir="pmd-eclipse-test-fragment/bin" />
</delete>
<delete dir="${dir.build}" />
</target>
<target name="clean-features" depends="features.check" if="features.run">
<ant antfile="features/net.sourceforge.pmd.eclipse/build.xml" target="clean" inheritAll="false" />
</target>
<target name="features.check">
<condition property="features.run">
<available file="features/net.sourceforge.pmd.eclipse/build.xml"/>
</condition>
</target>
<target name="init">
<mkdir dir="${dir.build}" />
<copy file="${eclipse.home}/plugins/org.eclipse.pde.build_${eclipse.pde.version}/templates/headless-build/build.properties" tofile="build.properties" overwrite="true" />
<concat destfile="build.properties" append="true">
<fileset dir="." includes="custom_build.properties"/>
</concat>
<replace file="build.properties" token="buildDirectory=buildDir" value="buildDirectory=${basedir}"/>
<replace file="build.properties" token="baseLocation=${base}/eclipse" value="baseLocation=${eclipse.home}"/>
</target>
<target name="plugin" depends="init">
<java jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_${eclipse.launcher.version}.jar" fork="true" maxmemory="512M" failonerror="true">
<arg value="-application"/>
<arg value="org.eclipse.ant.core.antRunner"/>
<arg value="-buildfile"/>
<arg value="${eclipse.home}/plugins/org.eclipse.pde.build_${eclipse.pde.version}/scripts/build.xml"/>
<arg value="-Dbuilder=${basedir}"/>
</java>
<move todir="${dir.build}">
<fileset dir="${basedir}">
<include name="assemble.net.sourceforge.pmd.eclipse.*"/>
<include name="final*Versions.*"/>
<include name="package.net.sourceforge.pmd.eclipse.*"/>
</fileset>
</move>
</target>
</project>
@@ -1,8 +0,0 @@
topLevelElementId = net.sourceforge.pmd.eclipse
outputUpdateJars = true
buildDirectory=buildDir
buildLabel=build
buildId=4.0.0.qualifier
javacSource=1.5
javacTarget=1.5
javacDebugInfo=true
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path=""/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>net.sourceforge.pmd.eclipse</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>
@@ -1,12 +0,0 @@
#Fri Nov 02 14:10:59 PDT 2007
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
org.eclipse.jdt.core.compiler.source=1.5
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<description url="https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/">
PMD for Eclipse Update Site
</description>
<feature url="features/net.sourceforge.pmd.eclipse_4.0.2.v20131031-1124.jar"
id="net.sourceforge.pmd.eclipse"
version="4.0.2.v20131031-1124">
<category name="pmdForEclipse4"/>
</feature>
<category-def name="pmdForEclipse4" label="PMD for Eclipse 4"/>
</site>
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>net.sourceforge.pmd.eclipse.parent</artifactId>
<version>4.0.2.v20131031-1124</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>net.sourceforge.pmd.eclipse.p2updatesite</artifactId>
<packaging>eclipse-repository</packaging>
<profiles>
<profile>
<id>publish-to-update-site</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<executions>
<execution>
<id>publish</id>
<phase>install</phase>
<goals>
<goal>mirror</goal>
</goals>
<configuration>
<source>
<repository>
<url>${project.build.directory}/repository</url>
</repository>
</source>
<append>true</append>
<destination>${eclipse.updatesite.path}</destination>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
@@ -0,0 +1,8 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: PMD eclipse test fragment
Bundle-SymbolicName: net.sourceforge.pmd.eclipse.plugin.test.fragment
Bundle-Version: 4.0.2.v20131031-1124
Bundle-Vendor: PMD Development Team
Fragment-Host: net.sourceforge.pmd.eclipse.plugin.test
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
@@ -0,0 +1,4 @@
source.. = src/main/java,src/main/resources
output.. = target/classes/
bin.includes = fragment.xml,\
META-INF/
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<fragment
id="pmd_eclipse_test_fragment"
name="Pmd_eclipse_test_fragment Fragment"
version="1.0.0"
id="net.sourceforge.pmd.eclipse.plugin.test.fragment"
name="PMD eclipse test fragment"
version="4.0.0.qualifier"
plugin-id="net.sourceforge.pmd.eclipse.plugin"
plugin-version="1.0.0"
match="greaterOrEqual">
<runtime>
<library name="pmd_eclipse_test_fragment.jar">
<library name="target/net.sourceforge.pmd.eclipse.plugin.test.fragment-4.0.0-SNAPSHOT.jar">
<export name="*"/>
</library>
</runtime>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>net.sourceforge.pmd.eclipse.parent</artifactId>
<version>4.0.2.v20131031-1124</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>net.sourceforge.pmd.eclipse.plugin.test.fragment</artifactId>
<packaging>eclipse-plugin</packaging>
</project>
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Version: 4.0.0.qualifier
Bundle-Version: 4.0.2.v20131031-1124
Bundle-Name: PMD Test Plugin
Bundle-SymbolicName: net.sourceforge.pmd.eclipse.plugin.test;singleton=true
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
@@ -12,4 +12,3 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.jdt,
org.eclipse.jdt.core,
org.junit
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
@@ -0,0 +1,6 @@
bin.includes = META-INF/,\
target/classes/,\
.ruleset,\
.
source.. = src/main/java/,src/main/resources
output.. = target/classes/
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>net.sourceforge.pmd.eclipse.parent</artifactId>
<version>4.0.2.v20131031-1124</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>net.sourceforge.pmd.eclipse.plugin.test</artifactId>
<!-- <packaging>eclipse-test-plugin</packaging> -->
<packaging>eclipse-plugin</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
</plugin>
<!--
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<useUIHarness>true</useUIHarness>
</configuration>
</plugin>
-->
</plugins>
</build>
<!--
<profiles>
<profile>
<id>osx</id>
<activation>
<property>
<name>java.vendor.url</name>
<value>http://www.apple.com/</value>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<argLine>-XstartOnFirstThread</argLine>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
-->
</project>
@@ -42,6 +42,7 @@ import net.sourceforge.pmd.RuleSetNotFoundException;
import net.sourceforge.pmd.eclipse.plugin.PMDPlugin;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
@@ -50,6 +51,7 @@ import org.junit.Test;
* @author Philippe Herlin
*
*/
@Ignore("Needs a OSGI context")
public class PMDCorePluginTest {
/**
@@ -42,6 +42,7 @@ import net.sourceforge.pmd.RuleSetNotFoundException;
import net.sourceforge.pmd.eclipse.plugin.PMDPlugin;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
@@ -50,6 +51,7 @@ import org.junit.Test;
* @author Philippe Herlin
*
*/
@Ignore("Needs a OSGI context")
public class RuleSetsExtensionProcessorTest {
/**
Loaded 30 of 785 files, more files were not shown because too many files have changed in this diff. Show more