15874 Commits

Author SHA1 Message Date
Andreas Dangel
9442a32ce6 [vm] More deprecations: package directive and util classes 2020-02-29 18:48:33 +01:00
Andreas Dangel
f3b98d7140 [vm] Mark generated AST node constructor InternalApi 2020-02-20 21:35:50 +01:00
Andreas Dangel
9a7bf4df04 [vm] Deprecate AST constructors / setters 2020-02-20 21:25:25 +01:00
Andreas Dangel
4b832b24fb Merge branch 'pr-1741'
[apex] Throw parse errors for invalid code
2020-02-20 11:30:07 +01:00
Andreas Dangel
59e4be3648 Update gitignore
files generated by eclipse m2e plugin and pmd plugin
2020-02-20 11:29:10 +01:00
Andreas Dangel
5b630a9062 [apex] Re-add fixed test cases, fix code sample
Test cases for MethodNamingConventions
Code sample for AvoidDirectAccessTriggerMap
2020-02-17 20:06:33 +01:00
Clément Fournier
86cc64f3e0 Merge branch 'support' 2020-02-17 17:01:00 +01:00
Clément Fournier
e11371272a Fix tests 2020-02-17 01:33:12 +01:00
Clément Fournier
35ce868235 Only throw parse exceptions
(not semantic ones, like unresolved type)
2020-02-17 00:28:51 +01:00
Clément Fournier
ed0dd0a6ae Fix merge 2020-02-17 00:28:25 +01:00
Clément Fournier
b8c41defac Merge branch 'master' into apex/compile-errors 2020-02-17 00:16:41 +01:00
Clément Fournier
f11a5674e6 Document enum conversion 2020-02-16 18:30:09 +01:00
Andreas Dangel
4ce85c4656 [java] Fix deprecated usage of ArgumentCount/ParameterCount in rules 2020-02-16 14:41:37 +01:00
Andreas Dangel
da7596a027 [core] Add missing @Deprecated annotations for Node 2020-02-16 14:16:27 +01:00
Andreas Dangel
80cba026c2 [java] Deprecate getArgumentCount()/getParameterCount()
* ASTArguments#getArgumentCount()
* ASTFormalParameters#getParameterCount()

Refs #2271
2020-02-16 13:12:28 +01:00
Andreas Dangel
7fb09deb3d Merge branch 'pr-2263'
[java] Fix InvalidLogMessageFormat false-positive with lambda arguments
2020-02-16 12:06:12 +01:00
Andreas Dangel
cb50a7af58 Merge branch 'pr-2236'
[java] Don't use ClassNotFoundException to report unresolved classes
2020-02-16 12:03:44 +01:00
Andreas Dangel
92fa8231e7 Merge branch 'pr-2267'
[docs] Update docs about writing rules
2020-02-16 11:57:26 +01:00
Andreas Dangel
75d901068a [doc] Update gems 2020-02-16 11:56:26 +01:00
Andreas Dangel
e7b72c2b6b [doc] Override Rule.start(RuleContext) instead of apply 2020-02-16 11:56:05 +01:00
Andreas Dangel
5685013e35 [doc] Re-add pmd_userdocs_extending_writing_pmd_rules.html
Links to the other pages now.
2020-02-16 11:55:29 +01:00
Andreas Dangel
587500e0c2 [doc] Update last_updated timestamp for writing rule docs 2020-02-16 11:54:48 +01:00
Andreas Dangel
5e5070f3ec [doc] Update link to SingularFieldRule 2020-02-16 11:53:24 +01:00
Andreas Dangel
d06b01785a [java] Code formatting for properties in SingularFieldRule 2020-02-16 11:20:02 +01:00
Andreas Dangel
9e2368257f Merge branch 'pr-2241'
[core] Simplify metrics framework
2020-02-16 10:57:10 +01:00
Andreas Dangel
dfb1315ff5 [core] Use concurrent hash map in ParameterizedMetricKey 2020-02-16 10:43:35 +01:00
Andreas Dangel
4566567e5e [doc] Update last changed date 2020-02-16 10:42:20 +01:00
Andreas Dangel
ba19a3d6ff Update support channels
Refs #2249
2020-02-15 19:07:20 +01:00
Andreas Dangel
de622bcbae [doc] Update release notes, refs #2274 2020-02-15 18:19:01 +01:00
Clément Fournier
e3e469cc27 Merge branch 'docs-java-api'
Refs #2283
2020-02-14 23:57:38 +01:00
Andreas Dangel
542097f5b6 Merge branch 'pr-2279'
[apex] Add support for suppressing violations using the // NOPMD comment
2020-02-13 11:39:49 +01:00
Andreas Dangel
0358dfdb97 [doc] Update release notes, fixes #1078, refs #2279 2020-02-13 11:39:04 +01:00
Andreas Dangel
ca6720d55c [doc] Fix invalid link to JJTJavaParserState
jdoc generated link to
net.sourceforge.pmd.lang.ast.JJTJavaParserState,
but the source file couldn't be found in the source tree of
pmd-java
2020-02-13 11:32:40 +01:00
Andreas Dangel
4cef149f45 Merge branch 'pr-2278'
[java] fix UnusedImports rule for ambiguous static on-demand imports
2020-02-13 11:15:34 +01:00
Andreas Dangel
1f75eb551f [doc] Update release notes, fixes #2277, refs #2278 2020-02-13 11:15:26 +01:00
Andreas Dangel
1bba78cc65 [java] Remove unnecessary CDATA for UnusedImports tests 2020-02-13 11:12:44 +01:00
Andreas Dangel
2e6ada82ce [doc] Add PMD java api documentation
Refs #2274
2020-02-13 10:54:08 +01:00
Andreas Dangel
fce8f766a2 [doc] Add simple gradle documentation 2020-02-13 10:53:25 +01:00
Clément Fournier
d61ec4c737 Deprecations for #2248 2020-02-12 14:39:01 +01:00
Gwilym Kuiper
202da60d2d Fix checkstyle errors 2020-02-12 09:49:12 +00:00
Gwilym Kuiper
bcf1c88cc2 If suppress marker is null, don't check for suppressions 2020-02-12 09:34:04 +00:00
Gwilym Kuiper
28ce8f6486 Properly extract user message 2020-02-12 08:38:31 +00:00
Gwilym Kuiper
4916316e42 Use the suppress marker from parser options 2020-02-11 17:49:06 +00:00
Gwilym Kuiper
15cd1a2d59 Use the PMD.SUPPRESS_MARKER rather than duplicating the string 2020-02-11 17:43:20 +00:00
Gwilym Kuiper
c0ec1f67c9 Only parse source code once for doc comments and suppressions 2020-02-11 17:41:55 +00:00
Gwilym Kuiper
2922694cdd Copy paste the apex doc detector to calculate the suppress map
We can generate the suppress map from the individual tokens that get
passed from the lexer.
2020-02-11 17:32:22 +00:00
kris-scheibe
63fbfbd8c7 UnusedImports rule now matches regular static imports first and on-demand static imports after that 2020-02-10 23:20:08 +01:00
Andreas Dangel
48cd952feb Merge branch 'pr-2269'
[java] Improve TypeHelper resilience
2020-02-10 19:17:24 +01:00
Andreas Dangel
294a37e87e [doc] Update release notes, refs #2269, fixes #2268 2020-02-10 19:17:17 +01:00
Andreas Dangel
028e1e1940 Merge branch 'pr-2276'
[java] AppendCharacterWithCharRule ignore literals in expressions
2020-02-10 19:00:59 +01:00