Vitaly Polonetsky
095f96a966
Added tests to verify the fix for #2157
2020-10-02 00:09:31 -07:00
Stefan Birkner
3d45ea008a
Move method "renderTempFile" to XMLRendererTest
...
It is only used by the XMLRendererTest.
2020-09-30 23:06:56 +02:00
Stefan Birkner
6b23b13497
Move test config from file to test class
...
Keep it simple. The config file stored only a single line for years.
2020-09-30 22:48:43 +02:00
Andreas Dangel
6e3bd734b8
dogfood - update PMD to 6.28.0
2020-09-28 20:05:39 +02:00
dependabot[bot]
2a6b04ef4d
Bump actions/checkout from v2.3.2 to v2.3.3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from v2.3.2 to v2.3.3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2.3.2...a81bbbf8298c0fa03ea29cdc473d45769f953675 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-28 06:18:42 +00:00
Andreas Dangel
b6edfd68b0
Prepare next development version
2020-09-26 10:27:58 +02:00
Andreas Dangel
aa245c6e1b
[maven-release-plugin] prepare for next development iteration
2020-09-26 10:25:16 +02:00
Andreas Dangel
722f3ca997
[maven-release-plugin] prepare release pmd_releases/6.28.0
pmd_releases/6.28.0
2020-09-26 10:25:05 +02:00
Andreas Dangel
d2d4ce2bdb
Prepare pmd release 6.28.0
2020-09-26 10:15:02 +02:00
Vitaly Polonetsky
e8b95f1a21
Fixes #2157
...
System.exit() and its equivalents should be allowed in static main() methods, added check for Runtime.getRuntime().halt()
2020-09-25 09:42:51 -07:00
Clément Fournier
d74f22b158
Merge branch 'issue-2755' into master
2020-09-25 14:24:24 +02:00
Clément Fournier
d3ca0319b3
Merge branch 'master' into issue-2755
2020-09-25 14:24:08 +02:00
Andreas Dangel
f1e9a23b01
[doc] Update release notes - group fixes by category
2020-09-24 12:08:10 +02:00
Andreas Dangel
250501a3d1
Merge branch 'pr-2791' into master
...
[apex] Analyze inner classes for sharing violations #2791
2020-09-24 11:55:11 +02:00
Andreas Dangel
eb0f7e4f99
[doc] Update release notes, refs #2791 , fixes #2774
2020-09-24 11:54:35 +02:00
Jeff Bartolotta
5429cebf38
Add issue reproducers as standard rule tests
...
Added false negative and false positive test cases that were logged with
the original issue.
2020-09-21 20:11:07 -07:00
Andreas Dangel
54a5b03ccd
Merge branch 'pr-2792' into master
...
[java] Fix TypeTestUtil for arrays #2792
2020-09-21 19:58:05 +02:00
Andreas Dangel
f046268058
[java] CloseResource: add simple test case for var
2020-09-21 19:47:42 +02:00
Andreas Dangel
87890b852a
[java] CloseResource: Fix test code
2020-09-21 19:39:24 +02:00
rmohan
5ea116fa52
First draft of change to allow dotted attributes in Visualforce
2020-09-18 13:45:43 -07:00
Andreas Dangel
59f1fe251e
Update ant from 1.10.1 to 1.10.8
...
Fixes CVE-2020-1945 (Moderate severity)
2020-09-18 15:53:33 +02:00
Clément Fournier
8c97300af8
Fix doc
...
Parameters were in the wrong order.
2020-09-18 04:04:35 +02:00
Clément Fournier
2093011913
Fix array & annot subtyping
2020-09-18 03:58:05 +02:00
Andreas Dangel
7ed238a384
Merge branch 'pr-2789' into master
...
Add badge for reproducible build #2789
2020-09-17 19:00:19 +02:00
Andreas Dangel
c21146019a
[doc] Update release notes, refs #2789
2020-09-17 19:00:11 +02:00
Andreas Dangel
81a72cb43e
[java] CloseResource: Fix NPE in case of "var"
2020-09-17 18:49:21 +02:00
Dan Rollo
d421927547
Add badge for reproducible build
2020-09-17 12:04:14 -04:00
Jeff Bartolotta
c6b7a723be
Analyze inner classes for sharing violations
...
Fixes https://github.com/pmd/pmd/issues/2774 , false positives and false
negatives for ApexSharingViolationsRule.
Sharing settings are not inherited by inner classes. Sharing settings
need to be declared on the class that contains the Database method, DML,
SOQL, or SOSL.
The change inverts the direction from which nodes are found and
analyzed. The previous code visited the ASTUserClass and then searched
for descendant nodes that met a certain criteria. It did not visit inner
ASTUserClass nodes because it didn't use rule chains or call the super's
visit moethod for ASTUserClassi.
The new implementation visits all nodes that correspond to Database
method, DML, SOQL, or SOSL nodes and then finds the nearest ASTUserClass
parent node. This ASTUserClass is examined to determine if it has
declared a sharing setting as required.
2020-09-17 08:36:45 -07:00
Andreas Dangel
f00e9744ea
Merge branch 'pr-2784' into master
...
[java] Lambda parsing bug #2784
2020-09-17 14:58:32 +02:00
Andreas Dangel
d81731ed6c
[doc] Update release notes, refs #2784 , fixes #2783
2020-09-17 14:57:55 +02:00
Clément Fournier
3c1b0afcf6
Fix #2783
2020-09-16 15:40:45 +02:00
Andreas Dangel
7a1e3caba0
Add deprecations for antlr lexers that will be moved with PMD 7
...
Refs pmd/pmd#2753
2020-09-13 11:28:07 +02:00
Andreas Dangel
04592c8038
[core] Deprecate RuleReference#getOverriddenLanguage() and #setLanguage()
...
Refs #2742
2020-09-13 09:18:34 +02:00
Andreas Dangel
dacfff1abf
Merge branch 'pr-2758' into master
...
[cpd] Improve AnyTokenizer #2758
2020-09-12 19:25:47 +02:00
Andreas Dangel
d261f44696
[doc] Update release notes, refs #2758 , fixes #2760
2020-09-12 19:24:34 +02:00
Andreas Dangel
3f69e9188b
[core] AnyTokenizer: add TODO for PMD7
2020-09-12 19:14:00 +02:00
Andreas Dangel
5192fdc0f9
[core] AnyTokenizer: Add testcase to verify #2760 is fixed
2020-09-12 19:13:43 +02:00
Andreas Dangel
53f3759ede
Merge branch 'pr-2776' into master
...
Bump actions/setup-java from v1.4.0 to v1.4.2 #2776
2020-09-12 18:42:24 +02:00
dependabot[bot]
72f9d0f90a
Bump actions/setup-java from v1.4.0 to v1.4.2
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from v1.4.0 to v1.4.2.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/v1.4.0...8bb50d97d6b4d316daf284fdf8eafbfc988421fc )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-12 10:46:46 +00:00
Andreas Dangel
352760c09c
[ci] Fix dependabot schedule interval
2020-09-12 12:45:52 +02:00
Andreas Dangel
516fa5e01a
Merge branch 'pr-2735' into master
...
[ci] Add github actions for a fast view of pr succeed/not #2735
2020-09-12 12:14:37 +02:00
Andreas Dangel
c3b5e1a5c1
[doc] Update release notes, refs #2735
2020-09-12 12:13:44 +02:00
Andreas Dangel
b247d616d9
[ci] github actions: Build on push and pull requests
2020-09-12 12:13:28 +02:00
Andreas Dangel
2093f6c82a
[ci] dependabot: don't open PRs for maven dependencies
...
We might enable this for PMD 7 later
2020-09-12 12:13:04 +02:00
Andreas Dangel
66a97f6686
Merge branch 'pr-2741' into master
...
[core] Deprecate ruleviolation comparator #2741
2020-09-12 11:51:19 +02:00
Andreas Dangel
d039605747
[doc] Mention replacement for deprecated RuleViolationComparator
2020-09-12 11:51:11 +02:00
Andreas Dangel
606d25de82
Merge branch 'pr-2761' into master
...
[java] Fix #2759 , UnusedAssignment false positive #2761
2020-09-12 11:37:09 +02:00
Andreas Dangel
20d48caa65
[doc] Update release notes, fixes #2759
2020-09-12 11:36:20 +02:00
Andreas Dangel
9ed79f46fd
Merge branch 'pr-2770' into master
...
[java] Fix #2767 , PMD cannot parse a local var with final in instance initializer #2770
2020-09-11 17:52:25 +02:00
Andreas Dangel
a13f88de5f
[doc] Update release notes, fixes #2767
2020-09-11 17:51:36 +02:00