34 Commits

Author SHA1 Message Date
Clément Fournier
138c0e3e86 Deprecate tokManagers for more module 2020-03-17 15:08:58 +01:00
Clément Fournier
e1069b4a33 Fix *ParserVisitor itf being deprecated
refs #2239
2020-03-17 14:42:29 +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
Piotrek Żygieło
de9ccb4444 Remove duplicated dependencies
Avoid:
[WARNING]
[WARNING] Some problems were encountered while building the effective model for net.sourceforge.pmd:pmd-modelica:jar:6.22.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: net.sourceforge.pmd:pmd-lang-test:jar -> duplicate declaration of version (?) @ line 92, column 21
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.junit.vintage:junit-vintage-engine:jar -> duplicate declaration of version (?) @ line 102, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
2020-01-25 18:20: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
Andreas Dangel
5feca7fd93 Exclude generated AST*.java files from internalization 2020-01-24 16:19:24 +01:00
Clément Fournier
60e97d0ec8 Deprecate javacc generated code 2020-01-22 17:19:29 +01:00
Clément Fournier
27d7a6c02c Accomodate children iterable for specialization 2020-01-19 05:57:39 +01:00
Clément Fournier
d9ad819dab Replace usages of node methods everywhere 2020-01-17 11:57:19 +01:00
Andreas Dangel
f53993427c Merge branch 'pr-2172'
[core] Deprecate jjtree methods from the Node interface
2020-01-17 08:18:50 +01:00
Clément Fournier
820edada4f Add 'children' iterable method to Node interface 2020-01-12 18:18:38 +01:00
Andreas Dangel
398b683565 Merge branch 'pr-2177'
[lang-test] Factorize parsing logic for tests
2020-01-10 14:07:29 +01:00
Andreas Dangel
c53d9508e9 Small changes from code review
* rename BaseParserHelper
* Not using org.jetbrains.annotations.NotNull
2020-01-10 12:18:43 +01:00
Clément Fournier
98b57f75ab Merge branch 'master' into deprecate-jjtree-methods 2020-01-06 18:50:43 +01:00
Andreas Dangel
63221805a3 Merge branch 'pr-2195'
[modelica] Normalize invalid node ranges
2020-01-06 18:42:14 +01:00
Anatoly Trosinenko
9c7b0d9385 [modelica] Fix Javadoc tags 2020-01-06 17:46:58 +03:00
Clément Fournier
0ff87229ff Remove TokenBasedNode
I don't think we should expose tokens as an API
yet. They're an implementation detail, not used
much, and the AST should be able to reflect all
the information that can be found in the tokens.

The methods of AbstractNode can be pulled down
to AbstractJjtreeNode and made protected.
2020-01-05 23:13:04 +01:00
Clément Fournier
394de28a0d Set image 2020-01-05 19:32:09 +01:00
Clément Fournier
6f61522971 Test 2020-01-05 19:22:17 +01:00
Clément Fournier
e9dbe0233f Use implicit zero-length token in modelica 2020-01-05 19:06:32 +01:00
Anatoly Trosinenko
4f3db86a70 [modelica] Normalize invalid node ranges
Some files were parsed into ASTs with nodes having negative ranges.
For example:

package TestPackage
  package EmptyPackage
  end EmptyPackage;
end TestPackage;

has subtree:

  SimpleLongClassSpecifier "EmptyPackage"
    SimpleName "EmptyPackage"
    Composition
      ElementList <-- start = 3:3, end = 2:22
    SimpleName "EmptyPackage"
2020-01-03 14:29:38 +03:00
Clément Fournier
9023d86945 Merge branch 'master' into deprecate-jjtree-methods 2019-12-23 12:41:08 +01:00
Clément Fournier
8afe5ae7a8 Abstract away parser utils
Convert a few pieces of code

Share with modelica

Remove yet another dup

Fix tests

Doc

Share with plsql

Fix tests

Fix build

Cleanup

Minimize diff

Share with JSP module

Share with JS module

Share with XML module

Share with VisualForce module

Share with Scala module

Fix last tests
2019-12-20 18:30:17 +01:00
Clément Fournier
320339240f [modelica] Small cleanups
* Move AbstractModelicaRule into the `rule` package
* Make the visitor interface mention only published types (ie not
AbstractModelicaNode)
* Other cleanups(eg make interfaces extend ModelicaNode)
2019-12-19 15:24:53 +01:00
Clément Fournier
87eaaef9fd Fix compil 2019-12-18 19:52:02 +01:00
Clément Fournier
627e258458 Revert 2019-12-17 17:49:01 +01:00
Anatoly Trosinenko
6224bd3d77 [modelica] Follow-up fixes for Modelica language module 2019-12-17 19:43:32 +03:00
Clément Fournier
86b274c681 Make generic visitor superclass
Use raw supertype to avoid conflicts
2019-12-17 17:39:13 +01:00
Clément Fournier
baeda3cfe5 Remove the rest
See parent commit
2019-12-17 17:38:17 +01:00
Clément Fournier
305e5ef082 [modelica] Remove source-type attributes in tests xml
This is only needed to select a specific
language version. Tests are failing because
the newer schema has not yet been published.
2019-12-17 17:36:24 +01:00
Andreas Dangel
7bb987fcf4 [modelica] Add rule test for ClassStartNameEqualsEndName 2019-12-17 12:22:54 +01:00
Anatoly Trosinenko
20bf4ad759 [modelica] Initial implementation of Modelica support for PMD 2019-12-16 19:26:32 +03:00