Andreas Dangel
07ea0b0f79
[core] DataSource is now closable, add default impl as abstract class
2019-09-17 19:58:19 +02:00
Clément Fournier
591cfc0a51
Remove old test
2019-09-17 04:33:39 +02:00
Andreas Dangel
8d08016a94
Update PMD to 6.18.0, remove unnecessary suppressions
2019-09-16 20:42:01 +02:00
Andreas Dangel
395e3453cb
dogfood: Upgrade to PMD 6.17.0 and fix CloseResource issues
2019-09-16 20:03:12 +02:00
Clément Fournier
e4ce2faf78
Fix spurious warning about deprecated attributes
...
Because we were evaluating all attributes eagerly,
deprecated attributes were reported even without
being used. Possibly, performance also took a hit.
2019-09-16 13:23:11 +02:00
Andreas Dangel
e536ca1947
[maven-release-plugin] prepare for next development iteration
2019-09-15 10:14:14 +02:00
Andreas Dangel
3f42cca200
[maven-release-plugin] prepare release pmd_releases/6.18.0
2019-09-15 10:14:05 +02:00
Andreas Dangel
e0b0e6330d
[core] XPath 1.0: filter out list attributes
...
While XPath 2.0 queries support now list attributes as
sequences, XPath 1.0 won't. It would only be supported as
single string which makes the two xpath versions completely
incompatible. In order to make it easier for the transitioning
from xpath 1.0 to xpath 2.0, list attribute will only be
supported for xpath 2.0.
See also https://github.com/pmd/pmd/pull/1959#discussion_r322027876
2019-09-14 18:20:03 +02:00
Andreas Dangel
8821434604
Merge branch 'pr-1943'
2019-09-14 17:11:34 +02:00
Andreas Dangel
5f30951a8b
Update release notes, refs #1943 , fixes #1942
2019-09-14 17:09:00 +02:00
Andreas Dangel
e29401b45e
Fixes from PR #1959 Review
2019-09-08 21:35:14 +02:00
Andreas Dangel
4d285c0ac9
[core] Add support for List attributes for XPath 2.0
2019-09-07 20:26:52 +02:00
Clément Fournier
f449cc72e3
Deprecate Report::hasMetrics and Report::metrics
2019-09-06 17:37:09 +02:00
Juan Martín Sotuyo Dodero
bb0379ef4f
Merge pull request #1982 from adangel/issue-1923
...
[core] Use real file name in ruleContext during analysis
2019-09-05 20:04:21 -03:00
Andreas Dangel
5db5c62bb2
[core] analysis cache: Use always different checksum
...
If the checksum couldn't be determined, then we use now
System.currentTimeMillis. This should result in a different
checksum everytime the same file is analyzed, so that it
appears dirty. In that case, the cached results won't be used.
2019-09-03 20:21:23 +02:00
Andreas Dangel
ddd07e517a
Merge branch 'master' into issue-1923
2019-09-03 19:43:27 +02:00
Andreas Dangel
3771320c47
Move logic to new ShortFilenameUtil
2019-09-03 19:42:21 +02:00
Andreas Dangel
6602d9e697
Fixes from PR review
2019-09-03 19:33:55 +02:00
Andreas Dangel
338cf1e1b7
Update pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
...
Co-Authored-By: Juan Martín Sotuyo Dodero <juansotuyo@gmail.com>
2019-09-03 19:21:56 +02:00
Andreas Dangel
11e8c33e44
Update pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
...
Co-Authored-By: Juan Martín Sotuyo Dodero <juansotuyo@gmail.com>
2019-09-03 19:20:11 +02:00
Juan Martín Sotuyo Dodero
89443f5373
Merge branch 'pr-1994'
2019-09-02 14:44:51 -03:00
Clément Fournier
3755d5d7d4
Tag n.s.pmd.cache as internal API,
...
update release notes
2019-08-29 22:18:01 +02:00
Juan Martín Sotuyo Dodero
29921f03e5
Fix breaking tests
2019-08-29 12:53:22 -03:00
Amish Shah
230af90386
[core] Resolve pmd-report failure when java folder in filepath - refs 1465
2019-08-29 08:00:07 -05:00
Juan Martín Sotuyo Dodero
b85d71f632
[core] Resolve cached rule instances by more than class name
...
- Fixes #1990
2019-08-27 11:02:27 -03:00
Andreas Dangel
882d5c67d2
Merge branch 'pr-1983'
2019-08-17 16:42:57 +02:00
Andreas Dangel
c8034b7d30
Update release notes, fixes #1862 , refs #1971
2019-08-17 16:30:10 +02:00
Juan Martín Sotuyo Dodero
8e9b992338
Improve assertion
2019-08-16 14:22:23 -03:00
Andreas Dangel
bdd0f2c525
[core] Use real file name in ruleContext during analysis
...
* This is needed to fix #1923
* RuleContext, RuleViolations all use the real name
* The shortname is only applied by the renderers now
at the end of the processing
* Error logging and reporting also uses the real, full name
of the file being analysed
2019-08-16 11:22:48 +02:00
Juan Martín Sotuyo Dodero
660c018511
Fix failing test
2019-08-15 14:34:05 -03:00
Juan Martín Sotuyo Dodero
032acbd65d
Add failing test for non-existing entries in classpath
2019-08-15 14:33:35 -03:00
Andreas Dangel
7a7971f64d
[maven-release-plugin] prepare for next development iteration
2019-07-28 10:24:51 +02:00
Andreas Dangel
365e1c9e8b
[maven-release-plugin] prepare release pmd_releases/6.17.0
2019-07-28 10:24:43 +02:00
Andreas Dangel
efd0eafff0
Make the new constants "NO_ERRORS_STATUS" private to avoid increasing
...
the API footprint
2019-07-19 11:07:40 +02:00
Renato Oliveira
052d38200e
Change return code to zero for CPD when the help command is requested through the CLI.
2019-07-18 16:24:42 -03:00
Renato Oliveira
5150b316e4
Add 'no error' return option, and assign it to the cli when the help command is invoked.
2019-07-15 19:21:02 -03:00
Andreas Dangel
73a8e4cc69
[maven-release-plugin] prepare for next development iteration
2019-06-30 10:33:08 +02:00
Andreas Dangel
45facbd323
[maven-release-plugin] prepare release pmd_releases/6.16.0
2019-06-30 10:32:58 +02:00
Andreas Dangel
939a1dfb78
Update release notes, fixes #1854
2019-06-28 21:10:39 +02:00
Andreas Dangel
5ac687918a
[maven-release-plugin] prepare for next development iteration
2019-05-26 11:02:26 +02:00
Andreas Dangel
ba2d795f59
[maven-release-plugin] prepare release pmd_releases/6.15.0
2019-05-26 11:02:18 +02:00
Andreas Dangel
65f897e56d
Update release notes, fixes #1495 , refs #1647
2019-05-24 20:25:35 +02:00
Andreas Dangel
912d358c05
Merge branch 'pr-1837'
2019-05-24 19:36:52 +02:00
Michael Hausegger
3b646edd71
Small minor performance improvements
2019-05-20 17:08:50 +02:00
Clément Fournier
23e162b932
Merge branch 'master' into deprecated-dump-facade
2019-05-18 16:42:25 +02:00
Andreas Dangel
7defd6b501
Fix internal ruleset 6150.xml
2019-05-17 16:29:21 +02:00
Andreas Dangel
eae662ac94
Update release notes, fixes #1321 , refs #1817
2019-05-17 16:21:09 +02:00
Clément Fournier
6f4123afcc
Annotated overriding #getDumpFacade as Deprecated
2019-05-02 16:22:04 +02:00
Andreas Dangel
ca9c859c0b
[maven-release-plugin] prepare for next development iteration
2019-04-28 10:35:44 +02:00
Andreas Dangel
cd8b2e3217
[maven-release-plugin] prepare release pmd_releases/6.14.0
2019-04-28 10:35:36 +02:00