207 Commits

Author SHA1 Message Date
Clément Fournier
2db32f8ea6 Simplify comparable behavior of processing stages
Instead of overriding compareTo we can just use an
external comparator
2020-01-27 10:40:00 +01:00
Clément Fournier
7cd64e4374 Merge branch '7.0.x' into cleanup-language-version-handlers 2020-01-27 10:28:48 +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
Clément Fournier
d726990e09 Make base parser adapter for jjtree 2020-01-25 16:36:42 +01:00
Clément Fournier
925944289d Merge branch '7.0.x' into master-ant-script 2020-01-24 20:15:16 +01:00
Andreas Dangel
b02ab00e87 Merge remote-tracking branch 'origin/master' into pmd/7.0.x 2020-01-24 19:18:17 +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
5a3ef0965f remove typeres attributes 2020-01-23 18:43:38 +01:00
Clément Fournier
4b9f121ec3 Remove modelica rule violation factory 2020-01-23 18:33:30 +01:00
Clément Fournier
60e97d0ec8 Deprecate javacc generated code 2020-01-22 17:19:29 +01:00
Clément Fournier
b5b0bcb921 Replace more direct usages of parser 2020-01-19 08:36:35 +01:00
Clément Fournier
f3246d6fc3 Merge branch '7.0.x' into master-ant-script 2020-01-19 06:09:56 +01:00
Clément Fournier
aa9a9c2bed Merge branch 'master' into 7.0.x 2020-01-19 05:59:09 +01:00
Clément Fournier
27d7a6c02c Accomodate children iterable for specialization 2020-01-19 05:57:39 +01:00
Clément Fournier
b09b58513b Merge branch '7.0.x' into master-ant-script 2020-01-17 16:22:46 +01:00
Clément Fournier
ecef88aa0a Merge branch 'master' into 7.0.x 2020-01-17 12:10:51 +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
bb8d612256 Checkstyle 2020-01-15 11:51:41 +01:00
Clément Fournier
4552c04a74 Simplify 2020-01-13 01:49:33 +01:00
Clément Fournier
83e86c20c5 Test modelica text 2020-01-13 01:15:04 +01:00
Clément Fournier
47fcfb6f3c Make end column exclusive 2020-01-13 01:05:54 +01:00
Clément Fournier
820edada4f Add 'children' iterable method to Node interface 2020-01-12 18:18:38 +01:00
Clément Fournier
2d280d0fb0 Make constants file 2020-01-11 04:47:40 +01:00
Clément Fournier
8a128a3bea Replace token tracking function 2020-01-11 01:21:09 +01:00
Clément Fournier
f715e6af72 Use maven properties from within the build.xml 2020-01-10 23:27:07 +01:00
Clément Fournier
efc3becc01 Checkout wrapper script, pmd-core, pmd-modelica 2020-01-10 22:57:47 +01:00
Clément Fournier
99700d7526 Extract changes from #2166 to 7.0.x
* Make Java nodes text-available
* Introduce shared JavaccToken in pmd-core
* Use factory to produce char streams

Tests are still on java-grammar,
since they use the DSL & newer
AST structure.

This is to prepare for other changes
that concern all javacc languages and
should not be done on java-grammar
2020-01-10 21:15:15 +01:00
Andreas Dangel
ea86a23b73 Merge branch 'master' into pmd/7.0.x 2020-01-10 14:41:27 +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
cf89b742b0 Merge branch 'pr-2177'
[lang-test] Factorize parsing logic for tests
2020-01-10 12:29:38 +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
5f37276cf5 Merge branch 'master' into 7.0.x 2020-01-06 22:14:05 +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
fc5426ab53 Update modelica for 7.0.0 2019-12-19 15:36:12 +01:00
Clément Fournier
ffcacd6edd Merge branch 'master' into 7.0.x 2019-12-19 15:25:47 +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
b302b4d0cf Update modelica pom 2019-12-19 15:01:26 +01:00
Clément Fournier
87eaaef9fd Fix compil 2019-12-18 19:52:02 +01:00