360 Commits

Author SHA1 Message Date
Clément Fournier
cc97807d41 Fix error nodes 2020-05-02 22:56:42 +02:00
Clément Fournier
1359f792c2 Abstract ant wrapper for antlr 2020-05-02 22:56:42 +02:00
Clément Fournier
3aadb253a3 Use adapters to be able to make pmd nodes first-class 2020-05-02 22:56:42 +02:00
Clément Fournier
f7560ed9fb Preserve terminal nodes 2020-05-02 22:56:42 +02:00
Clément Fournier
97fef3fbd9 Fix tree builder, add tests 2020-05-02 22:56:42 +02:00
Clément Fournier
4e55164961 Refactor antlr impl entirely
PMD Node implementations don't extend antlr
classes anymore
2020-05-02 22:56:42 +02:00
Clément Fournier
9effca7143 Build tree using a parse tree listener 2020-05-02 22:56:42 +02:00
Clément Fournier
f0652dda76 Remove parser type parameter 2020-05-02 22:56:42 +02:00
Clément Fournier
f779688cab Make getText @NoAttribute 2020-05-02 22:56:42 +02:00
Clément Fournier
13b7fa6152 Turn ProhibitedInterfaceBuilder into XPath rule 2020-05-02 22:56:42 +02:00
Clément Fournier
cf37bba1b4 Reimplement swift rules without @Text 2020-05-02 22:56:42 +02:00
Clément Fournier
a857667ef8 Fix terminal XPath names 2020-05-02 22:56:42 +02:00
Clément Fournier
7588796419 Fix coordinates 2020-05-02 22:56:42 +02:00
Clément Fournier
8ef2a14923 Add interface for SwiftNode 2020-05-02 22:56:42 +02:00
Clément Fournier
03bbab3b10 Fix index in parent 2020-05-02 22:56:42 +02:00
Clément Fournier
8be81b71fa Cleanup file node 2020-05-02 22:56:42 +02:00
Clément Fournier
164c1361a6 Add supertype to swift nodes 2020-05-02 22:56:42 +02:00
Clément Fournier
e61f03aafa Remove base visitor class 2020-05-02 22:56:42 +02:00
Clément Fournier
fe656d203d Remove AntlrBaseRootNode 2020-05-02 22:56:42 +02:00
Clément Fournier
7028157808 Ensure Parser returns a RootNode 2020-04-26 17:29:27 +02:00
Andreas Dangel
4308c545e5 [maven-release-plugin] prepare for next development iteration 2020-04-24 10:53:12 +02:00
Andreas Dangel
921c65f5ab [maven-release-plugin] prepare release pmd_releases/6.23.0 2020-04-24 10:53:00 +02:00
Clément Fournier
0ef6dd144d Merge branch 'master' into 7.0.x 2020-03-20 18:04:17 +01:00
Andreas Dangel
56d5a6afa3 [swift] Add unit test for #628
Closes #628
2020-03-20 13:55:04 +01:00
Andreas Dangel
4c020bfbf7 [maven-release-plugin] prepare for next development iteration 2020-03-12 15:15:18 +01:00
Andreas Dangel
eb93aaeca7 [maven-release-plugin] prepare release pmd_releases/6.22.0 2020-03-12 15:15:09 +01:00
Andreas Dangel
d994700617 [maven-release-plugin] prepare for next development iteration 2020-01-24 17:20:47 +01:00
Andreas Dangel
a28e9e22e5 [maven-release-plugin] prepare release pmd_releases/6.21.0 2020-01-24 17:20:38 +01:00
Clément Fournier
53b2b4f201 Definitely fix swift impl 2020-01-17 14:01:20 +01:00
Clément Fournier
db424fc1e6 Changes to antlr impl
* AntlrBaseVisitor does not extend AbstractRule anymore
* An AntlrBaseRule *uses* a visitor, it *is* not a visitor
2020-01-17 13:41:52 +01:00
Andreas Dangel
00392cefc2 [maven-release-plugin] prepare for next development iteration 2019-11-29 19:46:14 +01:00
Andreas Dangel
78da370fb8 [maven-release-plugin] prepare release pmd_releases/6.20.0 2019-11-29 19:46:05 +01:00
Andreas Dangel
deec9c44b2 [maven-release-plugin] prepare for next development iteration 2019-10-31 18:36:51 +01:00
Andreas Dangel
2881b6f585 [maven-release-plugin] prepare release pmd_releases/6.19.0 2019-10-31 18:36:42 +01:00
Clément Fournier
12d04beb9b Fix some pr comments 2019-10-07 00:03:17 +02:00
Clément Fournier
b270076e13 Remove useless violation factories 2019-10-07 00:03:00 +02:00
Clément Fournier
2d74ec4012 Merge branch 'wire-processing-stages' into 7.0.x 2019-10-05 15:58:47 +02:00
Clément Fournier
e293d57681 Checkstyle 2019-09-25 11:06:03 +02:00
Clément Fournier
b51c02f93b Reorganise antlr files
Antlr root nodes need to implement RootNode.

Also, I didn't like the fact that the swift
module didn't use the conventional package
structure (lang.swift.ast) but was rolling
its own convention (lang.swift.antlr4).

I moved base classes for the antlr implementations
into nspmd.lang.ast.impl.antlr4. The fact that a
module is implemented with antlr is an implementation
detail, and it doesn't deserve its own toplevel package
in nspmd.lang.
2019-09-25 03:49:36 +02:00
Clément Fournier
4890905699 Remove Parser#canParse 2019-09-24 09:13:15 +02:00
Andreas Dangel
e536ca1947 [maven-release-plugin] prepare for next development iteration 2019-09-15 10:14:14 +02:00
Andreas Dangel
3f42cca200 [maven-release-plugin] prepare release pmd_releases/6.18.0 2019-09-15 10:14:05 +02:00
Juan Martín Sotuyo Dodero
a46aef3b40 Use Void in ProhibitedInterfaceBuilderRule 2019-08-14 14:44:26 -03:00
Tomi De Lucca
6281f81ea9 Adding to rulechain 2019-08-13 23:46:51 -03:00
Tomi De Lucca
da6aec2000 Merge branch 'pmd/7.0.x' of github.com:pmd/pmd into feature/swift-available-rule 2019-08-13 23:15:28 -03:00
Juan Martín Sotuyo Dodero
be4bef7427 Merge branch 'pr-1877' into pmd/7.0.x 2019-08-13 17:24:42 -03:00
Juan Martín Sotuyo Dodero
53eba5549c Fix RuleChain indexation
- Remove Context suffix from Antlr grammar XPath names
2019-08-12 01:25:42 -03:00
Clément Fournier
85404876f4 Fix swift source generation bound to process-sources
By convention it should be the phase generate-sources
2019-08-05 15:49:44 +02:00
Tomi De Lucca
89ede940d3 Addressed some PR comments 2019-08-04 15:25:30 -03:00
Tomi De Lucca
0f89950bfc PR Review 2019-08-04 14:49:45 -03:00