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
Clément Fournier
178fa28414
Merge branch 'master' into 7.0.x
2020-01-10 18:19:07 +01:00
Clément Fournier
271efff289
[plsql] Use token::getImage instead of token::toString in grammar
...
If we change token.toString to be more descriptive
(eg display kind), the parser breaks. This prepares
changes for 7.0
2020-01-10 18:13:17 +01:00
Andreas Dangel
511c928670
[plsql] Fix compile and test errors
2020-01-10 15:46:13 +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
Andreas Dangel
4269fd1b73
Refactor tests for javascript, jsp, plsql, scala, visualforce, xml
...
using BaseParsingHelper
Revert "REVERT ME Remove some diff"
This reverts commit f72810088d2c7f3c29fbde185b25cfc72fc1fbcc.
2020-01-10 12:12:34 +01:00
Clément Fournier
523d3ec791
Merge branch 'master' into 7.0.x
2020-01-06 15:09:42 +01:00
Clément Fournier
af537034a9
Use getters for tokens in javacc grammars
2020-01-06 15:01:18 +01:00
Clément Fournier
0459d0379c
Merge branch 'master' into 7.0.x
2020-01-05 20:31:39 +01:00
Andreas Dangel
1d82918efa
Merge branch 'pr-2184'
...
[plsql] Fix DDLCommands parsing
2020-01-05 19:20:29 +01:00
Clément Fournier
86086bc04a
Factorize javacc jar property
2020-01-02 17:41:27 +01:00
Andreas Dangel
dcb6239725
Fix build under windows
2019-12-24 14:13:27 +01:00
Andreas Dangel
1c7e8fb2ab
Fix build under windows
2019-12-24 11:47:41 +01:00
Andreas Dangel
e345e811be
[plsql] Use ReadPastNextOccurrence rather than SkipPastNextToken
...
The token SQLPLUS_TERMINATOR is useless, since the token ";" is
matched before. So, we always skipped till the end of the file.
Improved the image of the skipped nodes, so that it can be of some
use.
Note: This will fix the problem #2009 , but it doesn't parse
DDL Commands fully. It just skips past the next ";".
2019-12-24 11:37:41 +01:00
Andreas Dangel
e230027f9a
[plsql] Support COMMENT statement
...
Ref #2009
2019-12-24 11:17:59 +01:00
Piotr Szymanski
ad02dcac5e
[plsql] Add test case for multiple ddl statements
...
Refs #2009
2019-12-23 18:40:29 +01:00
Piotr Szymanski
04aa48e3f1
[plsql] Add additional test case for multi line string literals
2019-12-23 18:30:26 +01:00
Andreas Dangel
4599b6989a
[plsql] Fix StringLiteral token
...
StringLiterals can use a custom quote delimiter that
marks the end of a string literal. This quote delimiter
is only effective together with the quote character.
A single quote character, that is not preceded by the
delimiter, should be allowed.
Additionally, the ASTStringLiteral node gives
now access to the plain string value of the
literal without the quoting.
Fixes #2008
2019-12-23 18:24:14 +01:00
Clément Fournier
f72810088d
REVERT ME Remove some diff
2019-12-20 18:32:47 +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
eb6ceef085
Add comments and update release notes
2019-12-05 15:23:07 +01:00
Clément Fournier
bb7478cd0a
Deprecate RuleViolationFactory impls
...
Internal APIs
2019-12-05 15:18:35 +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
3d6f660700
Checkstyle
2019-10-09 19:51:01 +02: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
6b3e4f1b34
WIP3
2019-10-07 00:02:01 +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
6a3fbd5185
Merge branch '7.0.x' into remove-dummy-modules
2019-09-27 15:55:06 +02:00
Clément Fournier
7d0079a1c6
Merge branch '7.0.x' into wire-processing-stages
2019-09-25 01:59:21 +02:00
Clément Fournier
4890905699
Remove Parser#canParse
2019-09-24 09:13:15 +02:00
Clément Fournier
636445a31c
Merge branch '7.0.x' into wire-processing-stages
2019-09-16 13:50:59 +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
Clément Fournier
e04baa403c
Merge branch '7.0.x' into remove-statistical-rule
2019-09-08 22:30:34 +02:00
Clément Fournier
b986bed9fb
Merge branch 'master' into 7.0.x
2019-09-08 21:55:58 +02:00
Andreas Dangel
a24e85488e
Merge branch 'pr-1986'
2019-09-08 15:39:49 +02:00
Andreas Dangel
26600e68c7
Merge branch 'pr-1977'
2019-09-08 15:24:35 +02:00
Andreas Dangel
20d34103ce
[plsql] Add basic support for with clause
2019-09-08 15:20:00 +02:00
Andreas Dangel
dea41f1b6f
Merge branch 'pr-1976'
2019-09-08 12:03:54 +02:00
Andreas Dangel
854cd4c700
Merge branch 'pr-1975'
2019-09-08 12:00:19 +02:00
Andreas Dangel
aee182b0b8
Merge branch 'pr-1974'
2019-09-08 11:47:49 +02:00
Andreas Dangel
f283a663a3
[plsql] New node ForUpdateClause
2019-09-08 11:16:46 +02:00
Andreas Dangel
de21a9008f
[plsql] Remove extra tokens, remove reserved words as identifiers
2019-09-08 11:12:51 +02:00