Andreas Dangel
cc08bd47cf
[java] UnusedImports false positive for static import
...
Fixes #925
2018-02-21 20:43:14 +01:00
Clément Fournier
a6d3c2baa1
Miscellaneous cleanups
2018-02-20 01:24:23 +01:00
Clément Fournier
1c991dd79e
Fix property test random crash
2018-02-20 01:24:02 +01:00
Andreas Dangel
9fbaa835ab
Fix typo, add removal version for deprecated interfaces/classes
2018-02-18 18:40:25 +01:00
Juan Martín Sotuyo Dodero
21d02f90af
Remove unused import
2018-02-18 04:37:44 -03:00
Juan Martín Sotuyo Dodero
1c68248eee
Update tests
2018-02-17 21:39:59 -03:00
Juan Martín Sotuyo Dodero
46aa1e2f2a
Remove usages of deprecated classes
2018-02-17 21:39:10 -03:00
Juan Martín Sotuyo Dodero
08560add78
Deprecate FileReporter
2018-02-17 21:38:39 -03:00
Juan Martín Sotuyo Dodero
33626e7a2d
Implement new renderer for CPD
...
- Write directly to writers, don't handle strings
2018-02-17 21:37:51 -03:00
Clément Fournier
d25fbcf8c0
Remove unnecessary javadoc
2018-02-16 00:25:06 +01:00
Clément Fournier
8cb7573379
Fix problem with outer enum and annotation types
2018-02-13 12:30:38 +01:00
Clément Fournier
40a5e3c569
Merge branch 'master' into improve-javaqualifiedname
2018-02-08 17:03:15 +01:00
reudismam
7e380e5d98
Use isEmpty method.
2018-02-02 12:28:25 -03:00
Clément Fournier
7e2930be3f
Adapt the metrics framework to consider MethodLike
2018-02-01 00:28:32 +01:00
Clément Fournier
a3c0f7d3ab
Documentation
2018-01-31 22:44:59 +01:00
Juan Martín Sotuyo Dodero
b439bb823f
Merge branch 'pr-875'
2018-01-25 21:25:18 -03:00
Juan Martín Sotuyo Dodero
41de94776e
Properly handle shortnames with comma-separated args
...
- Also added unit tests to make sure the behavior is as expected
2018-01-25 21:20:13 -03:00
Clément Fournier
91790c387d
Merge branch 'pr-870'
2018-01-26 00:22:34 +01:00
Clément Fournier
21650ba85a
Move util.documents into n.s.pmd.documents
...
Fix commit 40ad978 compilation errors
2018-01-26 00:20:38 +01:00
Juan Martín Sotuyo Dodero
c34519431c
Merge branch 'pr-828'
2018-01-25 19:55:33 -03:00
Juan Martín Sotuyo Dodero
6a801ee26c
Move document classes out of the util package
2018-01-25 19:53:58 -03:00
Juan Martín Sotuyo Dodero
a33958bc63
Merge branch 'pr-882'
2018-01-25 19:49:32 -03:00
Clément Fournier
b7950cca1b
Merge branch 'pr-868'
2018-01-25 18:46:03 +01:00
Juan Martín Sotuyo Dodero
49a7c7d75b
update broken url
2018-01-25 12:10:27 -03:00
Clément Fournier
0578b36145
Cleanup AbstractNode
2018-01-25 14:15:57 +01:00
gonzalo
c25089ef9a
PR Improvements - 3
2018-01-25 09:46:38 -03:00
gonzalo
80aba0c858
PR Improvements - 2
2018-01-24 23:35:22 -03:00
Clément Fournier
0316462916
Checkstyle
2018-01-25 03:13:22 +01:00
Clément Fournier
1bdca98f03
Flag deprecated impl to find it quickly
2018-01-25 03:10:04 +01:00
Clément Fournier
27ccd140ef
Cleanup
2018-01-25 03:06:54 +01:00
Clément Fournier
6a3b332aee
Abstract toString into AbstractNode, deprecate the implementation
...
Log that the default implementation will be removed
2018-01-25 03:02:44 +01:00
gonzalo
3d818b0963
PR Improvements - 1
2018-01-24 20:09:13 -03:00
Clément Fournier
3c0bb45a60
Add getXPathNodeName to the Node interface
...
A default implementation is available in AbstractNode
to preserve compatibility with the previous way, which
used Object.toString.
Fixes #569
2018-01-24 19:22:36 +01:00
John Zhang
aeb554ee62
Issue 872 fix
...
This commit attempts a fix to issue 872.
The inputFileName ('master' file) parameter may be null,
in which case the function returns just the file name if short name is required.
2018-01-23 11:46:02 +11:00
Juan Martín Sotuyo Dodero
c436e9bd94
Fix checkstyle errors
2018-01-21 16:16:06 -03:00
Juan Martín Sotuyo Dodero
26288b0022
[core] Remove usages of deprecated PMD.VERSION
...
- Take the chance to add some helpers to PMDVersion that seem needed
- Have CodeClimate renderer point to pmd.github.io rather than SF
2018-01-21 16:02:48 -03:00
gonzalo
9d7d89b669
Add XPath flow documentation && Made small refactor
2018-01-21 11:09:50 -03:00
Juan Martín Sotuyo Dodero
abc73bfc7b
[core] Log all rules' movements to categories
...
- All rules will log where they where moved to, even if the ruleset is
referenced as a whole
- All deprecation warnings now let's users know on which version
support will be removed.
2018-01-21 05:43:49 -03:00
gonzalo
40ad978d8f
Receive Charset of Document in the constructor
2018-01-08 08:56:40 -03:00
gonzalo
de09472421
Change filePath type from String to Path
2018-01-08 02:34:30 -03:00
gonzalo
000d72d3be
Change name in document operations comparator inner method && Change visibility of getter in DocumentFile
2018-01-08 02:29:44 -03:00
gonzalo
bb8b2cdd4e
[WIP] Working fix for <Line, Offset> mapping to support any type of line separators in the same source file && other minor fixes
2018-01-08 01:55:52 -03:00
gonzalo
40bb0a0fe6
Remove Java 8 and 9 language usages
2018-01-03 23:37:58 -03:00
gonzalo
8f6484cadc
Add operations to manipulate a document
2018-01-03 11:30:07 -03:00
Andreas Dangel
f4577f9e14
[core] Only issue a deprecation warning, if the referenced ruleset is not empty
...
and all rules have been deprecated.
Fixes #782
2017-12-28 17:17:11 +01:00
Juan Martín Sotuyo Dodero
d5a7edf7ff
Log links to the proper PMD version
2017-12-23 02:01:43 -03:00
Clément Fournier
bc95ca803c
Beanify controllers, new settings persistence logic
...
Add property edition to the XPath panel
2017-12-21 17:08:11 +01:00
Andreas Dangel
5eb3ecd5ad
[core] Make sure, a language with empty version selects the default version
2017-12-15 12:02:04 +01:00
Andreas Dangel
998cad8595
[java] fix PMDCoverageTest ruleset
2017-12-15 11:13:35 +01:00
Andreas Dangel
02fadc1689
[core] Fix classloader closed issue when executing Ant task
...
Note: the problem (ClassNotFoundExceptions) only shows up with java8
- with java9 the classloader seems to be still usable, even after
we closed it...
2017-12-15 10:32:06 +01:00