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
Andreas Dangel
60eca92180
[core] Undeprecate Node::getImage() in PMD 7
...
This should be done for 7.x again - see #4787
2024-01-11 09:47:10 +01:00
Andreas Dangel
f9541beb85
Merge branch 'master' into experimental-apex-parser
2024-01-05 15:43:48 +01:00
Andreas Dangel
a382d675b6
Merge branch 'master' into issue-4717-xsltrenderer-leak
2024-01-05 15:12:13 +01:00
Andreas Dangel
b65589175c
[core] Add tests for TokenMgrError location
2024-01-05 14:48:10 +01:00
Andreas Dangel
6255274659
Merge branch 'master' into pr-4694
2024-01-05 14:15:37 +01:00
Andreas Dangel
070cca8743
Merge pull request #4628 from adangel:support-jrt-fs
...
[java] Support loading classes from java runtime images #4628
2024-01-05 13:51:40 +01:00
Andreas Dangel
35062c3caf
Remove unneeded dependency to WireMock
2024-01-05 13:36:04 +01:00
Andreas Dangel
7b24edc0db
[core] Remove support for deprecated rule set references notation
...
The old notation <lang>-<ruleset> is not supported anymore. It is
now interpreted as a ruleset reference without a ruleset and just
referencing a single rule. Also the release number notation is
not supported anymore.
Since RuleSetReferenceId is Internal+Deprecated, no API changes.
Clarified External/Internal: A RuleSetReference is either absolute
(RuleSet is known) or relative (RuleSet is not known).
Fixes #4313
2024-01-05 12:43:56 +01:00
Andreas Dangel
411d32607b
[core] Introduce TextNode and CommentNode for XPath/HTML
2023-12-19 20:45:05 +01:00
Andreas Dangel
7424491ea8
[core] Fix BaseAntlrNode::getTextRegion
2023-12-16 19:12:56 +01:00
Andreas Dangel
97d141d577
[core][java] Expose Chars attributes in XPath
...
- taken from #4352 (avoid getImage())
- Exposes @LiteralText for ASTLiteral
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2023-12-14 13:48:21 +01:00
Andreas Dangel
73fcf6e38c
[core][java] Integrate improvements from #4352 (avoid getImage())
...
- This improves ASTLiteral implementation
- Adds ASTLiteral#getLiteralText() - not yet exposed as XPath attribute
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2023-12-14 12:10:00 +01:00
Andreas Dangel
ba0611534d
[java] Rename ASTVariableDeclaratorId to ASTVariableId
2023-12-13 10:30:39 +01:00
Andreas Dangel
8b4caed003
[java] Rename ASTAnyTypeDeclaration to ASTTypeDeclaration
...
Also rename AbstractAnyTypeDeclaration to AbstractTypeDeclaration
2023-12-13 08:54:34 +01:00
Andreas Dangel
e79e8402c1
[java] Rename ASTClassOrInterfaceDeclaration to ASTClassDeclaration
2023-12-12 20:09:51 +01:00
Andreas Dangel
fc3fce1d02
Merge branch 'master' into issue-4676-cpd-cli
2023-12-11 10:32:34 +01:00
Andreas Dangel
cc8455ee1b
Merge pull request #4698 from openium:feature/swift-5.9-support
...
[swift] Add macro expansion support for swift 5.9 #4698
2023-12-11 10:05:13 +01:00
Andreas Dangel
4666d22e09
[doc] ADR 3 - API principles - updates
...
* clarify impl
* remove @ReservedSubclassing
2023-12-11 08:36:24 +01:00
Andreas Dangel
aa93a75009
[test] Test built-in rulesets for warnings while loading
2023-12-07 18:44:41 +01:00
kenji
10ae2fae96
Add swift 5.9 support
2023-12-01 15:48:31 +01:00
Andreas Dangel
8763e1a19f
[doc] ADR 3 - API principles
2023-12-01 11:05:01 +01:00
sandhu5
7b58a7ef1b
Fix flaky LatticeRelationTest
2023-11-24 12:16:16 -06:00
sandhu5
49bf440634
Fix flaky SummaryHTMLRenderer
2023-11-22 23:01:06 -06:00