4613 Commits

Author SHA1 Message Date
Andreas Dangel
a76ec3410c Merge pull request #4795 from adangel:remove-ruleset-factory-compatibility
[core] Remove ruleset compatibility filter (RuleSetFactoryCompatibility) and CLI option --no-ruleset-compatibility #4795
2024-02-02 19:53:51 +01:00
Andreas Dangel
a411bc5dac Merge pull request #4793 from adangel:undeprecate-dysfunction-reason
[core] Undeprecate PropertySource::dysfunctionReason in PMD 7 #4793
2024-02-02 19:51:05 +01:00
Andreas Dangel
c8686a0dff Merge pull request #4792 from adangel:undeprecate-node-getImage
[core] Undeprecate Node::getImage() in PMD 7 #4792
2024-02-02 19:49:26 +01:00
Andreas Dangel
5b2b03847e Merge pull request #4786 from adangel:issue-4313-remove-old-rule-reference-notation
[core] Remove support for deprecated rule set references notation #4786
2024-02-02 19:46:55 +01:00
Andreas Dangel
c6ce5a9557 Merge branch 'master' into avoid-image 2024-02-02 16:56:54 +01:00
Andreas Dangel
5c69ec0360 [core] Remove deprecated classes/methods
FileCollector#addZipFile
TextDocument#readOnlyString
TextFile#dataSourceCompat
2024-02-02 16:20:54 +01:00
Andreas Dangel
8111d450c2 [core] Remove deprecated classes/methods
Node#getParentsOfType
Node#findChildrenOfType
Node#findDescendantsOfType
Node#getFirstChildOfType
Node#getFirstDescendantOfType
Node#hasDescendantOfType
2024-02-02 15:57:34 +01:00
Andreas Dangel
19f9bdde5f [core] Remove deprecated classes/methods
CpdLanguageProperties#DEFAULT_SKIP_BLOCKS_PATTERN
BaseAntlrNode#joinTextToken
Node#getNthParent
Node#getFirstChildOfType
2024-02-02 14:41:45 +01:00
Andreas Dangel
2695eb250b Removed references to removed apex rules 2024-02-01 21:22:45 +01:00
Andreas Dangel
c22448eae6 Removed references to removed rules 2024-02-01 17:35:40 +01:00
Andreas Dangel
7cd94ebb7d [core] Cleanup javadoc regarding InternalApi
Refs #4348
2024-02-01 12:17:30 +01:00
Andreas Dangel
fae522a002 [core] Unify javadoc for InternalApiBridge classes
Refs #4348
2024-02-01 12:09:12 +01:00
Andreas Dangel
83879dc420 [core] Hide internal API methods in LanguageProcessor.AnalysisTask
Refs #4348
2024-02-01 11:39:33 +01:00
Andreas Dangel
e3cf1c6567 [core] RuleContext - addViolationNoSuppress()
This was not used and not tested.
To be readded with #2736 and #2896

Refs #4348
2024-01-28 19:46:56 +01:00
Andreas Dangel
627fef132d [core] RuleContext - remove getRule(), create()
Introduce InternalApiBridge to collect all internal
API endpoints.

Refs #4348
2024-01-28 19:46:29 +01:00
Andreas Dangel
589d14418e [core] Report - ctor and addRuleViolation, addConfigError, addError are private
Refs #4348
2024-01-28 18:44:22 +01:00
Andreas Dangel
8b8b11d5f3 [core] AbstractAccumulatingRenderer#renderFileReport(Report) is final
Refs #4348
2024-01-28 18:30:11 +01:00
Andreas Dangel
bc31401258 [core] LanguageProcessor.AnalysisTask#withFiles now internal
Refs #4348
2024-01-28 18:15:39 +01:00
Andreas Dangel
a0a289f4ef [core] RuleTargetSelector#isRuleChain removed
Refs #4348
2024-01-27 19:41:45 +01:00
Andreas Dangel
932c2e38f8 [core] XPath Attribute#replacementIfDeprecated stays Internal API
Refs #4348
2024-01-27 19:41:45 +01:00
Andreas Dangel
4f8d09460c [core] FileCollector - factories stay internal, other methods are now public api
Refs #4348
2024-01-27 19:41:45 +01:00
Andreas Dangel
217f0f43f8 [core] PropertyTypeId and PropertyDescriptor#getTypeId
Both stay Internal API, update javadoc

Refs #4348
2024-01-27 19:41:00 +01:00
Andreas Dangel
db0392cba1 [core] n.s.pmd.cpd.Tokens#Tokens() is now package private
Refs #4348
2024-01-27 18:39:20 +01:00
Andreas Dangel
daef0cde8d [core] Move n.s.pmd.util.internal.ResourceLoader
Refs #4348
2024-01-27 18:06:23 +01:00
Andreas Dangel
3a5ff11dc2 [core] Rename MessageReporter to PmdReporter as public API
PmdReporter is supposed to be used when configuring PMD
(see AbstractConfiguration#setReporter), so it can't be internal.

Refs #4348
2024-01-26 19:06:08 +01:00
Andreas Dangel
906baf9b50 [core] Internalize AnalysisCache and related types
Refs #4348
2024-01-26 18:41:00 +01:00
Andreas Dangel
3290815fff Merge branch 'master' into experimental-apex-parser 2024-01-26 17:49:50 +01:00
Andreas Dangel
88239b703e Merge pull request #4777 from adangel:fix-deprecated-api-usage
Fix deprecated API usage #4777
2024-01-26 15:16:54 +01:00
Andreas Dangel
d9321d70f2 [core] Promote Tree Export API as stable
Fixes #3905
2024-01-25 16:26:10 +01:00
Andreas Dangel
304ff2ec25 [core] XPathHandler/XPathFunctionDefintion: Refactoring, javadoc 2024-01-25 14:41:20 +01:00
Andreas Dangel
721661c3f9 [core] XPathHandler: Avoid direct dependency on saxon, Part 2
Define new interface FunctionCall, that replaces the
saxon interface ExtensionFunctionCall.
2024-01-25 12:28:25 +01:00
Andreas Dangel
b8ecc890af [core] XPathHandler: Avoid direct dependency on saxon, Part 1 2024-01-25 10:56:01 +01:00
Andreas Dangel
049f2c7c59 [core] XPathRule - remove version property (#4309) 2024-01-20 17:40:02 +01:00
Andreas Dangel
7c29f16eac [core] Move XPathRule into subpackage lang.rule.xpath (#4309) 2024-01-19 12:52:51 +01:00
Andreas Dangel
f13cd58c7f [core] Move classes into n.s.pmd.reporting
- Report
- RuleContext
- RuleViolation
- ViolationSuppressor
- ParametricRuleViolation

Fixes #3903
2024-01-18 20:27:34 +01:00
Andreas Dangel
faaec5ed6d [core] Actually move into correct package lang.rule 2024-01-13 20:57:56 +01:00
Andreas Dangel
2461a4d00e [core] Move RuleSets/RuleSetReference into internal sub-package 2024-01-13 18:50:29 +01:00
Andreas Dangel
301678fe01 [compat6] Make maven-pmd-plugin work again
Provide some extra bridge methods for backwards
compatible getter, e.g. RuleViolation#getRule()
or PMDConfiguration#getMinimumPriority()
2024-01-13 18:26:10 +01:00
Andreas Dangel
9e668c22fc [core] Move Rule/RuleSet related type into net.sourceforge.pmd.rule
Refs #3917
2024-01-12 18:14:04 +01:00
Andreas Dangel
6d955d6b9a [core] Move Rule into package net.sourceforge.pmd.rule 2024-01-12 11:04:02 +01:00
Andreas Dangel
b17fe92fb5 Merge branch 'master' into java-ast-updates 2024-01-12 10:41:41 +01:00
Andreas Dangel
a52baa0150 Merge branch 'master' into experimental-apex-parser 2024-01-12 10:03:50 +01:00
Andreas Dangel
afe1ffac25 Merge pull request #4756 from adangel:issue-995-api-doc
[doc] ADR 3 - API evolution principles #4756
2024-01-12 09:17:31 +01:00
Andreas Dangel
524ac69ecc [core] TextColorRenderer: Remove property color
Fixes #4312
2024-01-11 17:37:53 +01:00
Andreas Dangel
6163f67b06 [core] Rename Tokenizer to CpdLexer
See #4065
2024-01-11 17:04:48 +01:00
Andreas Dangel
55d91791c3 [core] Rename TokenMgrError to LexException
See #4065
2024-01-11 15:56:28 +01:00
Andreas Dangel
a63a477396 Remove releases rulesets 2024-01-11 14:53:32 +01:00
Andreas Dangel
ba602d1978 [core] Remove ruleset compatibility filter (RuleSetFactoryCompatibility) and CLI option --no-ruleset-compatibility
Fixes #4314
Closes #4378
2024-01-11 12:05:10 +01:00
Andreas Dangel
ed0cff6da9 Merge branch 'master' into java-ast-updates 2024-01-11 10:28:21 +01:00
Andreas Dangel
29a4aaec47 [core] Undeprecate PropertySource::dysfunctionReason in PMD 7
refs #3868 and #3901
2024-01-11 10:20:54 +01:00