4314 Commits

Author SHA1 Message Date
Andreas Dangel
19496ef198 Merge pull request #4808 from adangel:issue-3905-tree-export-api
[core] Promote Tree Export API as stable #4808
2024-02-09 16:56:56 +01:00
Andreas Dangel
5931461ca9 Merge pull request #4804 from adangel:issue-4309-xpath-cleanups
[core] XPath cleanups #4804
2024-02-09 16:23:58 +01:00
Andreas Dangel
a2f2720f77 Fix imports 2024-02-09 15:41:36 +01:00
Andreas Dangel
6a328d6cd0 Merge pull request #4803 from adangel:issue-3903-reporting-package
[core] Consolidate n.s.pmd.reporting package #4803
2024-02-09 15:32:55 +01:00
Andreas Dangel
2a3128fb86 Merge pull request #4799 from adangel:issue-3917-rule-package
[core] Consolidate n.s.pmd.lang.rule package #4799
2024-02-09 14:39:03 +01:00
Andreas Dangel
17848c484d Merge branch 'master' into experimental-apex-parser 2024-02-09 09:29:16 +01:00
Andreas Dangel
baef47bf19 Remove unused imports 2024-02-09 09:23:08 +01:00
Andreas Dangel
0d40878b0a Promote experimental APIs as stable
- HTML support and Kotlin support no more experimental
- The only left over experimental APIs are java preview features
2024-02-09 08:46:48 +01:00
Andreas Dangel
d92f9ae0d8 Fix checkstyle 2024-02-08 18:31:33 +01:00
Andreas Dangel
5599a8fd65 Merge branch 'master' into issue-4349-cleanup-deprecations 2024-02-08 18:23:41 +01:00
Andreas Dangel
b6adbf5bb5 [java] Remove deprecated classes and methods
AbstractPackageNameModuleDirective#getImage
AbstractTypeDeclaration#getImage
ASTAnnotation#getAnnotationName
ASTClassType#ASTClassType(String)
ASTClassType#getImage
ASTClassType#isReferenceToClassSameCompilationUnit
ASTFieldDeclaration#getVariableName
ASTLiteral#is_xxx_Literal
ASTMethodDeclaration#getMethodName
ASTMethodReference#getImage
ASTModuleName#getImage
ASTPrimitiveType#getImage
ASTType#getTypeImage
ASTType#getArrayDepth
ASTType#isPrimitiveType #isArrayType #isClassOrInterfaceType
ASTTypeDeclaration#getImage
ASTUnaryExpression#isPrefix
ASTVariableId#getImage
ASTVariableId#getVariableName
JavaComment#getImage
JavaNode#jjtAccept
JavaParserVisitor
JavaParserVisitorAdapter
ModifierOwner#isFinal #isAbstract ... #isPublic ...
TypeNode#getType
2024-02-08 17:54:19 +01:00
Andreas Dangel
77beab517a [core] Remove deprecated methods in RuleSetLoader and RuleViolation
RuleSetLoader#toFactory
RuleViolation#getPackageName
RuleViolation#getClassName
RuleViolation#getMethodName
RuleViolation#getVariableName
2024-02-08 13:47:53 +01:00
Andreas Dangel
d1ff6b89e7 [core] Remove deprecated method Report#merge 2024-02-08 13:33:08 +01:00
Andreas Dangel
28f2cf8e40 [core] Remove deprecated methods in AbstractConfiguration and PMDConfiguration
AbstractConfiguration#setIgnoreFilePath
AbstractConfiguration#setInputFilePath
AbstractConfiguration#setInputPaths
AbstractConfiguration#setInputUri
PMDConfiguration#prependClasspath
PMDConfiguration#getRuleSets
PMDConfiguration#setRuleSets
PMDConfiguration#setReportFile
PMDConfiguration#getReportFile
2024-02-08 11:16:00 +01:00
Andreas Dangel
0543cf0819 [core] Remove deprecated methods in CollectionUtil
CollectionUtil#invertedMapFrom
CollectionUtil#mapFrom
2024-02-08 10:54:07 +01:00
Andreas Dangel
bc5ba3a54f [core] Remove deprecated DataSource classes
DataSource
FileDataSource
ReaderDataSource
ZipDataSource
2024-02-08 10:36:11 +01:00
Andreas Dangel
5c02b62623 [core] Remove deprecated members in Reportable
Reportable#getBeginLine
Reportable#getBeginColumn
Reportable#getEndLine
Reportable#getEndColumn
2024-02-08 10:10:09 +01:00
Andreas Dangel
50cbfe6834 [core] Remove deprecated members in AbstractPropertySource
AbstractPropertySource#propertyDescriptors (private now)
AbstractPropertySource#propertyValuesByDescriptor (private now)
AbstractPropertySource#copyPropertyDescriptors
AbstractPropertySource#copyPropertyValues
2024-02-08 09:53:48 +01:00
Andreas Dangel
9e5115479d [core] Remove deprecated methods in Language, LanguageRegistry
Language#getTerseName
LanguageModuleBase#getTerseName
LanguageRegistry#getLanguage
LanguageRegistry#findLanguageByTerseName
LanguageRegistry#findByExtension
2024-02-08 09:53:34 +01:00
Andreas Dangel
90ab50ca29 [core] Remove XPathRule#XPATH_DESCRIPTOR 2024-02-08 09:00:33 +01:00
Andreas Dangel
cdc70c633a [core] Remove deprecated methods in RuleReference
RuleReference#setRuleSetReference
RuleReference#hasOverriddenProperty
2024-02-08 08:29:55 +01:00
Andreas Dangel
1900aa79c4 [core] Remove deprecated methods in AbstractRule
AbstractRule#deepCopyValuesTo
AbstractRule#addRuleChainVisit
AbstractRule#addViolation
AbstractRule#addViolationWithMessage
2024-02-08 08:25:45 +01:00
Andreas Dangel
f95431f336 [core] Remove deprecated AbstractDelegateRule 2024-02-06 21:33:33 +01:00
Andreas Dangel
3ec38df9b0 [core] Remove deprecated XPathVersions 2024-02-06 21:33:08 +01:00
Andreas Dangel
5e4b7f5eb5 Merge pull request #4798 from adangel:textcolor-renderer
[core] TextColorRenderer: Remove property color #4798
2024-02-02 20:02:02 +01:00
Andreas Dangel
fa97cff7ff Merge pull request #4797 from adangel:lexexception-cpdlexer
[core] Rename TokenMgrError to LexException, Tokenizer to CpdLexer #4797
2024-02-02 19:59:41 +01:00
Andreas Dangel
a78e17b7a6 Merge pull request #4796 from adangel:remove-deprecated-and-release-rulesets
Remove deprecated and release rulesets #4796
2024-02-02 19:57:04 +01:00
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