Andreas Dangel
9eeea472ac
[apex] Update apex-jorje to 2020-09-10-5a5192 (Winter 21, Version 50)
...
Fixes #2839
2020-10-22 19:13:35 +02:00
Andreas Dangel
47d3e1b9f9
Merge branch 'pr-2816' into master
...
[apex] Detect 'Database' method invocations inside loops #2816
2020-10-22 18:08:28 +02:00
Andreas Dangel
888fe3b15e
[doc] Update release notes, refs #2816 , fixes #1713
2020-10-22 18:07:01 +02:00
Andreas Dangel
0745789bb7
[apex] Remove deprecated rules from quickstart.xml, restore Test
2020-10-22 17:58:06 +02:00
Andreas Dangel
2f4079ed8f
Merge branch 'pr-2842' into master
...
[core] Bump antlr4 from 4.7 to 4.7.2 #2842
2020-10-22 16:07:59 +02:00
Andreas Dangel
efa66ec83f
[doc] Update release notes, refs #2842
2020-10-22 16:06:50 +02:00
Andreas Dangel
95acf2056e
Bump antlr from 4.7 to 4.7.2
2020-10-22 14:35:05 +02:00
Andreas Dangel
7f70cac7ca
Merge branch 'pr-2834' into master
...
[vf] Allow attributes with dot in Visualforce #2834
2020-10-22 09:48:36 +02:00
Andreas Dangel
90e7d09110
[doc] Update release notes, refs #2834 , fixes #2765
2020-10-22 09:47:55 +02:00
Andreas Dangel
14d1f7a0d3
Merge branch 'pr-2831' into master
...
[core] Fix XMLRenderer newlines when running under IBM Java #2831
2020-10-22 09:44:20 +02:00
Andreas Dangel
115237940e
Merge branch 'pr-2824' into master
...
[doc] Include deprecated rule references in documentation (Fixes #2823 ) #2824
2020-10-22 09:42:42 +02:00
Andreas Dangel
873564e69f
Merge branch 'pr-2811' into master
...
[java] CloseResource - Fix #2764 : False-negative when re-assigning variable #2811
2020-10-22 09:40:06 +02:00
Andreas Dangel
76e833376c
[doc] Update release notes, refs #2811 , fixes #2764
2020-10-22 09:38:49 +02:00
Jeff Bartolotta
98d0f0f38f
Changes based on initial PR feedback
...
- Rename AvoidDatabaseMethodCallsInLoopsRule to OperationWithLimitsInLoop.
- Add AvoidDmlStatementsInLoopsRule, AvoidSoqlInLoopsRule, and AvoidSoslInLoopsRule checks into OperationWithLimitsInLoop.
- Deprecate AvoidDmlStatementsInLoopsRule, AvoidSoqlInLoopsRule, and AvoidSoslInLoopsRule in favor of OperationWithLimitsInLoop.
2020-10-21 11:25:20 -07:00
Adrien Lecharpentier
8354ff2efe
Bump antlr4 to 4.7.1
...
A security fix is included in this version. See https://github.com/antlr/antlr4/issues/2069 .
2020-10-20 14:54:37 +02:00
rmohan
7e7182b26d
Modifying VF tokenizer test content to keep up with the minor grammar change
...
Streamlined IDENTIFIED_DOTTED logic. Added a couple more negative tests
2020-10-16 09:31:43 -07:00
Andreas Dangel
61acc52422
[core] XMLRenderer - remove unecessary initialization
...
Co-authored-by: Juan Martín Sotuyo Dodero <juansotuyo@gmail.com>
2020-10-16 14:38:45 +02:00
Andreas Dangel
40a8ac6f5c
Bump junit-vintage-engine from 5.6.2 to 5.7.0
2020-10-15 11:39:04 +02:00
Andreas Dangel
dd75d01a2a
Bump junit from 4.13 to 4.13.1
2020-10-15 11:35:03 +02:00
Andreas Dangel
d626b9314e
[ci] Support [skip ci] with github actions
...
See https://github.com/marketplace/actions/skip-based-on-commit-message
2020-10-15 11:28:46 +02:00
Andreas Dangel
b22bc05b4b
[skip ci] [doc] Update release notes, refs #2831
2020-10-15 11:14:28 +02:00
Andreas Dangel
d8616cca55
[core] Fix XMLRenderer newlines when running under IBM Java
2020-10-15 10:59:56 +02:00
andi
77b183704f
fix #2764 : false-negative when re-assigning variable
2020-10-14 17:41:28 +02:00
Clément Fournier
e3804da978
Update and rename DoNotTerminateVM.java to DoNotTerminateVMTest.java
2020-10-13 23:04:43 +02:00
Clément Fournier
b80c78d638
Merge branch 'pr-2829' into master
...
Refs #2829
2020-10-13 22:58:45 +02:00
Clément Fournier
d17eb44fc6
Update release notes, refs #2829
2020-10-13 22:58:04 +02:00
Gustavo Krieger
afc0c3fe78
Small correction in pmd_report_formats.md
2020-10-13 16:51:53 -03:00
Andreas Dangel
a08985c762
[ci] Fix Dangerfile
2020-10-10 17:25:03 +02:00
Andreas Dangel
69a3914a77
[doc] Renamed/Moved rules are missing in documentation ( Fixes #2823 )
...
Include deprecated rule references conditionally
when loading rulesets via RuleSetFactory
2020-10-10 17:02:13 +02:00
Andreas Dangel
92bab9b595
pmd-doc: Add test case for renamed rules
...
Uses the pattern documented in rule deprecation policy.
The rule reference should be deprecated to get a deprecation
warning, if it is still used.
2020-10-10 16:29:33 +02:00
Andreas Dangel
76190f7d37
Revert "Fix release notes"
...
This reverts commit ec2b3d873b6b16a3b3a6ac5dc639d122b9820e82.
2020-10-10 16:11:04 +02:00
Andreas Dangel
b8da15ce00
[ci] use actions/checkout@v2 and actions/setup-java@v1
...
instead of specific subversions. This uses then always the latest
versions automatically.
2020-10-10 14:03:32 +02:00
Andreas Dangel
bebf04e928
Merge branch 'pr-2814' into master
...
Bump actions/setup-java from v1.4.2 to v1.4.3 #2814
2020-10-10 14:01:42 +02:00
Andreas Dangel
1130ee45a7
Merge branch 'pr-2813' into master
...
[core] Use JUnit's TemporaryFolder rule #2813
2020-10-10 14:01:03 +02:00
Andreas Dangel
75589de2dd
[doc] Update release notes, refs #2813
2020-10-10 14:00:56 +02:00
Andreas Dangel
ec2b3d873b
Fix release notes
2020-10-10 13:56:36 +02:00
Andreas Dangel
e76b0b6946
Merge branch 'pr-2803' into master
...
[java] Improve DoNotCallSystemExit (Fixes #2157 ) #2803
2020-10-10 13:07:05 +02:00
Andreas Dangel
710f97db6c
[doc] Update release notes, refs #2803 , fixes #2157
2020-10-10 13:06:01 +02:00
Andreas Dangel
1150e61ddd
[java] Rename DoNotCallSystemExit -> DoNotTerminateVM
2020-10-10 13:05:58 +02:00
Andreas Dangel
636bcdd0e4
Fix build under Windows
...
Refs #2821
2020-10-09 11:19:16 +02:00
Andreas Dangel
d227cffdab
[ci] Java rule change is not detected
...
* Use "HEAD" instead of "FETCH_HEAD" for patch branch.
FETCH_HEAD might change, if another fetch is done. HEAD
always points to the currently checked out commit, that
has been built.
* Add --patch-config to use the same config as for the baseline
(see .travis/regression-tester.sh). However, currently this
is ignored, when "--auto-gen-config" is used.
* Use long argument names for better readability
Fixes #2820
2020-10-09 11:03:25 +02:00
Andreas Dangel
462334ccd2
[core] Rule processing error filenames are missing paths #2821
...
Added test case
Works on pmd6
2020-10-09 10:09:38 +02:00
Jeff Bartolotta
8fb69b24db
Add Apex AvoidDatabaseMethodCallsInLoopsRule
...
Fixes https://github.com/pmd/pmd/issues/1713 , Database statements aren't detected in for loops.
- Added new AvoidDatabaseMethodCallsInLoopsRule that adds a violation if any methods from the System Database class are invoked from within a loop.
- Refactored AvoidDmlStatementsInLoopsRule, AvoidSoqlInLoopsRule, and AvoidSoslInLoopsRule to derive from AbstractAvoidNodeInLoopsRule.
2020-10-05 19:02:21 -07:00
dependabot[bot]
d37ccca4ab
Bump actions/setup-java from v1.4.2 to v1.4.3
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from v1.4.2 to v1.4.3.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/v1.4.2...d202f5dbf7256730fb690ec59f6381650114feb2 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-10-05 06:16:30 +00:00
Stefan Birkner
22db2fdebc
Use JUnit's TemporaryFolder rule
...
Don't reinvent the wheel. TemporaryFolder already takes care of cleaning
up the created files.
2020-10-03 22:59:16 +02:00
Andreas Dangel
d5729e65dc
Merge branch 'pr-2805' into master
...
Bump actions/checkout from v2.3.2 to v2.3.3 #2805
2020-10-03 12:23:04 +02:00
Andreas Dangel
16e8c204f1
Merge branch 'pr-2810' into master
...
[core] Move method "renderTempFile" to XMLRendererTest #2810
2020-10-03 12:12:05 +02:00
Andreas Dangel
079adfb09d
[doc] Update release notes, refs #2810
2020-10-03 12:11:33 +02:00
Andreas Dangel
01b5c68ce9
Merge branch 'pr-2809' into master
...
[java] Move test config from file to test class #2809
2020-10-03 12:10:20 +02:00
Andreas Dangel
f67cc4dddd
[doc] Update release notes, refs #2809
2020-10-03 12:10:12 +02:00