Juan Martín Sotuyo Dodero
0cf8f2c18b
Suppress style warnings on generated file
2024-11-14 16:55:55 -03:00
Juan Martín Sotuyo Dodero
178f9541e2
Add since to deprecation notice
2024-11-14 16:51:04 -03:00
Juan Martín Sotuyo Dodero
79026f98c9
Add licence header
2024-11-14 16:49:45 -03:00
Juan Martín Sotuyo Dodero
0d606a7122
Prevent auxiliary grammars from generating lexers
...
- A misconfiguration of Antlr4 produced an auxiliary gramma
(UnicodeClasses), that was imported into the main kotlin grammar,
to produce it's own Lexer, which was never used.
- We no longer produce that Lexer, properly moving imports to the
standard directory for that.
- We manually copy a generated version for API compatibility, flagging
it as both Generated and Deprecated for removal in PMD 8
2024-11-14 16:39:09 -03:00
Andreas Dangel
d88a3c50fe
Fix checkstyle config and checkstyle issues
2024-04-04 10:46:05 +02:00
Andreas Dangel
dffc44ecde
Merge branch 'master' into cleanup-todos
2024-03-05 18:53:49 +01:00
Andreas Dangel
ab0d740d81
Cleanup some TODOs
2024-03-01 12:07:48 +01:00
Andreas Dangel
845154716c
[test] Consolidate packages, move PmdRuleTst, SimpleAggregatorTst
2024-02-23 17:46:29 +01:00
Andreas Dangel
3a7460de29
[lang-test] Move classes into n.s.p.lang.test
2024-02-23 17:46:23 +01:00
Andreas Dangel
1b4acab7c4
Merge branch 'master' into issue-4349-cleanup-deprecations
2024-02-10 12:36:58 +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
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
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
5599a8fd65
Merge branch 'master' into issue-4349-cleanup-deprecations
2024-02-08 18:23:41 +01:00
Andreas Dangel
3ec38df9b0
[core] Remove deprecated XPathVersions
2024-02-06 21:33:08 +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
9e668c22fc
[core] Move Rule/RuleSet related type into net.sourceforge.pmd.rule
...
Refs #3917
2024-01-12 18:14:04 +01:00
Andreas Dangel
6163f67b06
[core] Rename Tokenizer to CpdLexer
...
See #4065
2024-01-11 17:04:48 +01:00
Andreas Dangel
0c53b69e82
Merge pull request #4586 from adangel:ruleset-xml
...
Use explicit encoding in ruleset xml files #4586
2023-10-19 09:41:57 +02:00
Andreas Dangel
32afa53f8e
All language modules: getInstance()
...
Use a consistent implementation of getInstance().
Now all modules resolve against the LanguageRegistry.
2023-08-24 16:01:27 +02:00
Clément Fournier
629e3b415c
Consolidate CPD packages
2023-06-10 14:30:07 +02:00
Andreas Dangel
8a89a4c786
Use explicit encoding in ruleset files
2023-06-01 17:29:24 +02:00
Clément Fournier
b89970d5fe
Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd
2023-04-29 19:20:38 +02:00
Andreas Dangel
0d5ecebd4e
[core] Antlr - make more methods protected
...
The abstract methods createPmdTerminal and createPmdError in AntlrGeneratedParserBase don't need to be public. They are just implementation.
The language specific inner nodes (KotlinInnerNode, SwiftInnerNode)
can be package private. Only the concrete subclasses are considered
public API.
2023-04-14 09:41:52 +02:00
Andreas Dangel
ee227b1397
[core] Introduce an AbstractVisitorRule
...
Remove AntlrBaseRule
2023-04-13 20:32:58 +02:00
Andreas Dangel
bdacd38437
[core] Move AntlrTokenizer and JavaCCTokenizer into impl packages
2023-04-13 20:32:53 +02:00
Clément Fournier
837c7952f5
Merge branch 'master' into clem.pmd7-refactor-cpd
2023-04-04 22:11:38 +02:00
Andreas Dangel
0c0d6f33ad
[kotlin] Update grammar to version 1.8
2023-03-09 09:35:40 +01:00
Clément Fournier
0b2f1517ba
Merge branch '7.0.x' into clem.pmd7-refactor-cpd
2023-02-27 00:41:11 +01:00
Andreas Dangel
a283615299
Refactor LanguageMetdata::extensions usages
2023-02-17 09:04:16 +01:00
Andreas Dangel
e2bb0c8480
Reuse names and extensions for CPD language
2023-02-17 09:04:15 +01:00
Andreas Dangel
d7d2ad541e
Add explicit language versions ( #4120 )
2023-02-17 09:04:12 +01:00
Clément Fournier
c572cb88d7
Rename package cpd.internal to cpd.impl
2023-02-13 15:18:37 +01:00
Clément Fournier
ddbfc90c14
Fix build
2023-02-12 20:06:28 +01:00
Clément Fournier
fb9f49624d
Delete old CPD Language interface
...
reorganize cpd modules
2023-02-12 18:03:58 +01:00
Clément Fournier
cf81809990
Change a ton of stuff in CPD
2023-02-10 18:21:23 +01:00
Andreas Dangel
94c8c4ba0c
Fix unit tests
2023-02-02 10:45:26 +01:00
Clément Fournier
ef365cd9aa
Merge branch '7.0.x' into pmd7-language-lifecycle
2023-02-02 01:04:53 +01:00
Clément Fournier
55eabe2de1
Add back named versions
2023-01-27 15:12:14 +01:00
Clément Fournier
cef4c30af6
Merge branch '7.0.x' into pmd7-language-lifecycle
2022-11-24 22:39:59 +01:00
Andreas Dangel
88b8209958
Migrate RuleSetFactoryTests to JUnit 5
2022-10-13 17:18:13 +02:00
Andreas Dangel
00924bea75
Migrate LanguageVersionTests to JUnit5
...
Also move LanguageVersionTests into their language packages
and add missing tests
2022-10-13 17:17:59 +02:00
Andreas Dangel
64c8ac9d23
[kotlin] Migrate tests to Junit5
2022-07-29 17:21:34 +02:00
Clément Fournier
3cecfaf38b
convert most lang mods to new base class
2022-07-21 02:10:21 +02:00
Clément Fournier
e248156d96
Merge remote-tracking branch 'upstream/pmd/7.0.x' into text-utils-simple
2022-07-10 13:53:30 +02:00