Commit Graph

4466 Commits

Author SHA1 Message Date
Andreas Dangel
ad9e4649c8 Move nice-xml-messages to dependency management 2024-03-07 11:41:38 +01:00
Juan Martín Sotuyo Dodero
daa741c817 Merge pull request #4843 from adangel/cli-banner-display
[cli] Display pmd banner, version improvement, logging
2024-03-05 16:57:31 -03:00
Andreas Dangel
079a13ec4b Merge branch 'master' into cli-banner-display 2024-03-05 19:40:48 +01:00
Andreas Dangel
dffc44ecde Merge branch 'master' into cleanup-todos 2024-03-05 18:53:49 +01:00
Andreas Dangel
b64489a515 Merge branch 'master' into issue-4830-consolidate-packages 2024-03-04 19:21:16 +01:00
Juan Martín Sotuyo Dodero
a9baf48c4d Merge pull request #4851 from adangel/core-nodestream-test
[core] NodeStreamBlanketTest - prefilter the test data
2024-03-01 13:36:09 -05:00
Andreas Dangel
dc92c64135 [core] NodeStreamBlanketTest - prefilter the test data
in order to avoid many ignored unit tests.
E.g. before this change, we had:

Tests passed: 5,417, ignored: 2,539 of 7,956 tests
meaning about 30% of the tests were ignored.
2024-03-01 17:06:58 +01:00
Andreas Dangel
5e277c8211 [core] Fix NPE in AbstractAnalysisCache in case of processing errors 2024-03-01 14:50:35 +01:00
Andreas Dangel
ab0d740d81 Cleanup some TODOs 2024-03-01 12:07:48 +01:00
Andreas Dangel
aa672e9d0e [cli] Remove unnecessary logging 2024-02-29 20:49:33 +01:00
Andreas Dangel
80db40b6a2 [core] Include revision and build time in PMDVersion
- Using git-commit-id-maven-plugin
- Adding the version via an explicit property file
  and resource filtering
- For snapshots, it will be the git commit timestamp
- For release, it will be the release timestamp
2024-02-29 18:42:44 +01:00
Andreas Dangel
b036931995 Fix javadoc/dokka configuration 2024-02-27 19:49:23 +01:00
Andreas Dangel
9d5e229704 [core] Consolidate test packages
Fix CpdAnalysisTest
Add test cases of PMDFilelistTest into FileCollectorTest
Moved ZipFileTest as FileCollectorZipTest
Remove unnecessary test resources
2024-02-23 17:46:29 +01:00
Andreas Dangel
845154716c [test] Consolidate packages, move PmdRuleTst, SimpleAggregatorTst 2024-02-23 17:46:29 +01:00
Andreas Dangel
3a7b570df0 Merge branch 'master' into experimental-apex-parser 2024-02-22 18:38:17 +01:00
Andreas Dangel
9e71e36ab1 Merge pull request #4811 from adangel:issue-4349-cleanup-deprecations
Cleanup remaining experimental and deprecated API #4811
2024-02-22 17:08:51 +01:00
Andreas Dangel
59537fb15c Merge branch 'master' into experimental-apex-parser 2024-02-13 20:12:39 +01:00
Andreas Dangel
dbde030d8f [core] Remove @DeprecatedUntil700 2024-02-10 13:10:53 +01:00
Andreas Dangel
1b4acab7c4 Merge branch 'master' into issue-4349-cleanup-deprecations 2024-02-10 12:36:58 +01:00
Andreas Dangel
5705847594 [core] Consolidate internal api in properties
PropertyTypeId - moved to internal
PropertyDescriptor#getTypeId
2024-02-10 11:56:58 +01:00
Andreas Dangel
68d4561544 [core] Consolidate internal api in XPath Attribute
Attribute#replacementIfDeprecated
2024-02-10 10:51:19 +01:00
Andreas Dangel
5e92b5907e [core] Consolidate internal api in FileCollector
FileCollector#newCollector
2024-02-10 10:47:07 +01:00
Andreas Dangel
3a635da9c2 [core] Consolidate internal api in PMDConfiguration
PMDConfiguration#setAnalysisCache
PMDConfiguration#getAnalysisCache
2024-02-10 10:38:26 +01:00
Andreas Dangel
2cc9ae9d7e [core] Consolidate internal api in LexException 2024-02-10 10:05:56 +01:00
Andreas Dangel
7c5bf74402 [core] Consolidate internal api in n.s.p.lang.rule
RuleSet#applies
RuleSetLoader#loadRuleSetsWithoutException
RuleSetLoadException ctors
2024-02-10 09:58:53 +01:00
Andreas Dangel
72edaee08a [core] Internalize ParametricRuleViolation 2024-02-09 22:02:36 +01:00
Andreas Dangel
bc5be45566 Merge branch 'master' into issue-4348-internal-api 2024-02-09 21:31:05 +01:00
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