Clément Fournier
87892adefe
Fix unnecessary throws clause
2020-11-13 17:23:43 +01:00
Clément Fournier
93c5ef33cf
Merge branch 'master' into ruleset-factory-builder
2020-11-13 17:12:27 +01:00
Andreas Dangel
75d197b592
[core] Add deprecations for ParametricRuleViolation and ParserOptions#suppressMarker
2020-11-06 16:39:22 +01:00
Clément Fournier
6eee3d037f
Provide replacement api for getRegisteredRuleSets
2020-11-03 15:05:58 +01:00
Clément Fournier
e30fcaf31d
Rename to loadFromResources
2020-11-03 14:52:45 +01:00
Clément Fournier
8f7801c2e7
Remove try with resources
2020-11-03 14:51:23 +01:00
Clément Fournier
4f175a1c4f
Hide RuleSetLoader fields
2020-11-03 14:48:29 +01:00
Clément Fournier
08fca9367e
Rename RuleSetParser to RuleSetLoader
2020-11-03 14:44:54 +01:00
Clément Fournier
1ff1e07c4d
Return a report instead of side-effecting on it
...
I think this will be more compatible with pmd 7.
2020-11-03 14:43:38 +01:00
Clément Fournier
36e55bc2c1
Fix broken rule reporting
2020-10-27 09:15:16 +01:00
Clément Fournier
050ec4464e
Stop parsing comma-separated paths by default
2020-10-26 23:42:37 +01:00
Clément Fournier
38a0934fee
PMD warnings
2020-10-26 21:33:33 +01:00
Clément Fournier
9c56fb629a
Fix bug
2020-10-26 21:21:29 +01:00
Clément Fournier
8f8af7780e
Rename stuff
2020-10-26 21:10:58 +01:00
Clément Fournier
7d66d7cbca
Doc
2020-10-26 21:00:39 +01:00
Clément Fournier
125b0200ed
Deprecate configuration objects
2020-10-26 20:35:02 +01:00
Clément Fournier
8295dad86c
Deprecate some methods of PMD
2020-10-26 20:27:38 +01:00
Clément Fournier
efb133c74e
Cleanup API around processors
2020-10-26 20:24:02 +01:00
Clément Fournier
8958609629
Deprecate other APIs
2020-10-26 20:00:19 +01:00
Clément Fournier
6642f5d038
Isolate single rule pattern
2020-10-26 19:31:48 +01:00
Clément Fournier
ac864aa529
Rename
2020-10-26 19:29:19 +01:00
Clément Fournier
412d39f513
Replace createFactory methods with a builder
...
Deprecate compatibility filter
Deprecate methods in RulesetsFactUtils
2020-10-26 19:26:47 +01:00
Clément Fournier
0a4dd810c9
Test remaining cases of #1938
2020-10-26 17:57:42 +01:00
Clément Fournier
7a8ca28c3f
Check result of / expression
...
Refs #1938
2020-10-26 17:54:33 +01:00
Clément Fournier
c21784843c
Check XPath expression result for correct type
...
Fixes #1939
2020-10-26 17:47:48 +01:00
Andreas Dangel
40cc666507
(dogfood) Bump pmd from 6.28.0 to 6.29.0
2020-10-24 11:38:15 +02:00
Andreas Dangel
4837c8dbc8
[maven-release-plugin] prepare for next development iteration
2020-10-24 10:17:24 +02:00
Andreas Dangel
81f12d3e5d
[maven-release-plugin] prepare release pmd_releases/6.29.0
2020-10-24 10:17:15 +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
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
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
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
d8616cca55
[core] Fix XMLRenderer newlines when running under IBM Java
2020-10-15 10:59:56 +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
1130ee45a7
Merge branch 'pr-2813' into master
...
[core] Use JUnit's TemporaryFolder rule #2813
2020-10-10 14:01:03 +02:00
Andreas Dangel
636bcdd0e4
Fix build under Windows
...
Refs #2821
2020-10-09 11:19:16 +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
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
Stefan Birkner
3d45ea008a
Move method "renderTempFile" to XMLRendererTest
...
It is only used by the XMLRendererTest.
2020-09-30 23:06:56 +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
2020-09-26 10:25:05 +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
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
Clément Fournier
dddbaf0a6a
Merge branch 'master' into deprecate-rv-comparator
2020-09-03 12:17:05 +02:00
Clément Fournier
24f3017109
Update release notes
2020-09-01 18:23:47 +02:00
Clément Fournier
10b205b5e2
REVERT ME Make end column inclusive
...
This is for consistency with PMD 6, on pmd 7 this commit
may be reverted
2020-09-01 18:11:08 +02:00
Clément Fournier
dd440eb14a
Fix tests
2020-09-01 18:11:05 +02:00