397 Commits

Author SHA1 Message Date
Sergey
985299b490 Fix XSS in HTML renderer 2017-04-28 10:38:48 -07:00
Andreas Dangel
9fae304b6f Disable caching for URLConnections
Fixes #364, refs #337
2017-04-25 22:46:08 +02:00
Andreas Dangel
9653ee8025 Revert "Synchronize the loading/parsing of a ruleset"
This reverts commit b2150bbeb6de91527155e5fee75a999ef0c82a46.
2017-04-25 22:10:02 +02:00
Andreas Dangel
b2150bbeb6 Synchronize the loading/parsing of a ruleset
Fixes #364
2017-04-24 21:59:51 +02:00
Andreas Dangel
d4edeefa63 [maven-release-plugin] prepare for next development iteration 2017-04-22 13:20:12 +02:00
Andreas Dangel
38fb34dc17 [maven-release-plugin] prepare release pmd_releases/5.6.0 2017-04-22 13:20:03 +02:00
Andreas Dangel
23ed813954 Fix additional potential resource leaks
refs #337 refs #349
2017-04-14 12:34:06 +02:00
Ryan Gustafson
effe71ed54 https://github.com/pmd/pmd/issues/337
Modify ResourceLoader to close underlying JarFile if using
JarURLConnection to avoid open file leaks. Clarify on JavaDoc that
caller must close the returned InputStream.

Minor test usage cleanups.
2017-04-14 01:16:18 -05:00
Juan Martín Sotuyo Dodero
d0ef852a06 [java] Rename unusedcode/UnusedModifier to unnecessary/UnnecessaryModifier 2017-03-18 19:24:57 -03:00
Andreas Dangel
c3aa405c3c Add unit test for CPD --filelist option
*   unify implementation of PMD/CPD for the file list option
*   references #295
2017-03-18 11:57:20 +01:00
Andreas Dangel
12058b7699 Merge branch 'add--filelist' of https://github.com/impmihai/pmd into feature-295 2017-03-18 11:14:25 +01:00
Andreas Dangel
ee1780e83e Add integration test for CPD 2017-03-17 11:54:40 +01:00
Lupea Mihai-Ionut
029ed7c7a8 Adding the --filelist option from pmd to cpd.
Now you can provide files through a CSV file instead of putting them in command arguments.
Closes https://github.com/pmd/pmd/issues/295
2017-03-15 21:43:26 +02:00
Andreas Dangel
a739257daa Update changelog, adding the new braces ruleset for apex
Closes #272
2017-03-03 19:49:48 +01:00
Andreas Dangel
9e77578408 Merge branch 'pmd/5.5.x' 2017-02-25 20:59:21 +01:00
Andreas Dangel
12fb1c2d7f [maven-release-plugin] prepare for next development iteration 2017-02-25 20:44:32 +01:00
Andreas Dangel
765a542604 [maven-release-plugin] prepare release pmd_releases/5.5.4 2017-02-25 20:44:24 +01:00
Andreas Dangel
e5a126c9d6 Merge branch 'pmd/5.4.x' into pmd/5.5.x 2017-02-25 20:31:17 +01:00
Andreas Dangel
4c7774ebf0 [maven-release-plugin] prepare for next development iteration 2017-02-25 19:03:45 +01:00
Andreas Dangel
0eec906467 [maven-release-plugin] prepare release pmd_releases/5.4.5 2017-02-25 19:03:37 +01:00
Andreas Dangel
c05c0e0d62 Delete temporary file after test 2017-02-25 17:41:18 +01:00
Andreas Dangel
aad1e9a5a0 Merge branch 'language-sorting' 2017-02-24 15:16:35 +01:00
Andreas Dangel
0b8fe7b290 Merge branch 'language-sorting' into pmd/5.5.x 2017-02-24 15:10:02 +01:00
Andreas Dangel
40ed158204 Sort languages by terse name 2017-02-24 15:00:52 +01:00
Andreas Dangel
00540a8e45 Sort supported languages by name by default, so that we have
a consistent order.
2017-02-24 14:40:31 +01:00
Andreas Dangel
8930383ce3 Merge branch 'issue-256' 2017-02-21 19:50:23 +01:00
Andreas Dangel
9a75c1e9b1 Merge branch 'issue-256' into pmd/5.5.x 2017-02-21 19:43:06 +01:00
Juan Martín Sotuyo Dodero
08075e4171 [core] Fix shortname computation for reltive paths
- Fixes #256
 - When using relative paths, both the file's path and the inputFileName
    are relative, so we can safely compare them directly.
2017-02-21 19:34:56 +01:00
Andreas Dangel
fe73d907ca Merge branch 'analysis-cache-phase2' of https://github.com/Monits/pmd into pr-255 2017-02-20 15:32:42 +01:00
Andreas Dangel
4e04e62374 Merge branch 'feature-1496' 2017-02-13 21:13:56 +01:00
Andreas Dangel
070011c3ae Update changelog with new rule "AccessorMethodGeneration"
References #244
2017-02-13 20:02:21 +01:00
Juan Martín Sotuyo Dodero
33bad0b95f Reduce cache size
- Don't store file name over and over for each violation
2017-02-11 18:01:31 -03:00
Andreas Dangel
aee07829b5 References #234, #235: Remove classloader closing code of PMD Ant Task
Got lost, when #235 was rebased onto pmd/5.4.x
2017-02-11 18:02:26 +01:00
Andreas Dangel
86d73ca268 Merge branch 'issue-234' 2017-02-11 18:02:10 +01:00
Andreas Dangel
cc03dc7c46 References #234, #235: Remove classloader closing code of PMD Ant Task
Got lost, when #235 was rebased onto pmd/5.4.x
2017-02-11 17:53:50 +01:00
Andreas Dangel
92b18e78dc Merge branch 'issue-234' into pmd/5.5.x 2017-02-11 17:50:32 +01:00
Juan Martín Sotuyo Dodero
dd103aae56 [core] Fix IOException loading rulesets under concurrency
- Fixes #234
 - When a single JVM runs multiple PMD instances under different threads,
    connections to PMD jars (and streams opened to read standard rulesets)
    are shared, causing race conditions where one thread may cause the other
    to close it's streams. This in tun produces IOExceptions.
 - This happens in Gradle when enabling parallel builds. I believe it can happen
    under Maven with -T1C too, but has not been able to reproduce it.
 - I take the chance to clean up classloader closing code, making it more concise
    and standard accross CLI and Ant.
2017-02-11 17:40:38 +01:00
Juan Martín Sotuyo Dodero
d5a9ba949f [core] Cache rule violations
- This allows to completely ignore unmodified files, even if they had violations
2017-02-11 01:04:02 -03:00
Andreas Dangel
0c63f46a65 Merge branch 'thread-safe-listeners' of https://github.com/Monits/pmd into pr-193 2017-02-10 23:26:35 +01:00
Andreas Dangel
f6b519365d Merge branch 'pr-217' 2017-02-02 21:03:56 +01:00
Andreas Dangel
09b2644688 Merge branch 'master' of https://github.com/kdaemonv/pmd into pr-217 2017-02-02 20:53:49 +01:00
Andreas Dangel
d92688a07d Introduce end-of-line normalization
References pmd/build-tools#2
2017-02-02 20:52:08 +01:00
Juan Martín Sotuyo Dodero
daf560a0bd Fix javadocs
- There seems to have been  merge conflict in the docs never resolved
2017-02-02 16:41:09 -03:00
Juan Martín Sotuyo Dodero
86b214da99 Deprecate the old listener and SynchronizedReportListener
- Breaking change to public API to retrieve listeners.
2017-01-30 16:56:30 -03:00
Dmitry Kurelchuk
e01951a63d Use OS independant path separator in checkstyle suppressions 2017-01-29 13:23:22 +02:00
Andreas Dangel
4dc0699788 [maven-release-plugin] prepare for next development iteration 2017-01-28 14:43:17 +01:00
Andreas Dangel
847ea1c084 [maven-release-plugin] prepare release pmd_releases/5.5.3 2017-01-28 14:43:17 +01:00
Andreas Dangel
e9149551b7 [maven-release-plugin] prepare for next development iteration 2017-01-28 13:15:11 +01:00
Andreas Dangel
12758ef777 [maven-release-plugin] prepare release pmd_releases/5.4.4 2017-01-28 13:15:10 +01:00
Andreas Dangel
ae42081159 Merge branch 'issue-213'
Fixes #213
Closes #198 (rebased onto pmd/5.4.x)
2017-01-27 12:19:46 +01:00