Andreas Dangel
a6e55845f7
Merge pull request #3783 from oowekyala:issue3746-plsql-tokens
...
[plsql] Fix #3746 - Parsing exception with operators containing spaces #3783
2022-02-19 09:59:21 +01:00
Clément Fournier
7553a69435
Fix #3746 - Parsing exception "Less than or equal to/Greater than or equal to" operators in DML statements
2022-02-13 13:15:49 +01:00
Clément Fournier
a8966e9749
Fix more tests
2022-02-06 13:45:33 +01:00
Andreas Dangel
6458f95c4d
[plsql] Parsing exception SELECT...INTO on Associative Arrays Types
...
Fixes #3515
2021-09-23 19:57:56 +02:00
Andreas Dangel
8a6bb312e1
Merge pull request #3501 from adangel:issue-3487-plsql-open-cursor
...
[plsql] Parsing exception OPEN ref_cursor_name FOR statement #3501
2021-09-23 10:49:15 +02:00
Andreas Dangel
ef3b1a8fa1
[plsql] Parsing exception OPEN ref_cursor_name FOR statement
...
Fixes #3487
2021-09-10 15:01:15 +02:00
Andreas Dangel
64ef8957bc
Fix code duplications
2021-09-07 20:12:27 +02:00
Andreas Dangel
4fb19e2a5e
Bump pmd from 6.34.0 to 6.35.0
2021-05-29 09:06:39 +02:00
Andreas Dangel
b35f22d4e0
Fix pmd warning
2021-03-25 16:51:43 +01:00
Andreas Dangel
90675d9df0
[plsql] Move ParsingExclusion to internal package
2021-03-25 16:26:38 +01:00
Andreas Dangel
595ab39015
[plsql] Move ParsingExclusion test to PlsqlTreeDumpTest
2021-03-25 16:14:12 +01:00
Andreas Dangel
f77608899f
[plsql] Add test for #195 - SqlPlus lexical variables
2021-03-25 16:09:15 +01:00
Henning von Bargen
2eb2ce863f
Reacted to comments in the PR:Some refactoring
2021-03-22 16:40:41 +01:00
Henning von Bargen
9d66782457
Avoid PMD warning.
2021-03-12 11:58:37 +01:00
hvbargen
3040c3461e
Support for detecting excluded ranges in the top-level Input node with rules.
2021-03-10 11:36:03 +01:00
Henning von Bargen
64dfebf618
Test cases and bug fixes for lexical parameters and exclusion
2021-03-05 17:24:49 +01:00
hvbargen
46e368a3e0
Allow excluding lines from the parser using comments -- PMD-EXCLUDE-BEGIN and -- PMD-EXCLUDE-END. This is to workaround bugs in the PL/SQL parser - some valid statements cannot be parsed. by wrapping them inside PMD-EXCLUDE-BEGIN/END the parser just ignores them and continues parsing with the next line.
2021-02-26 19:11:27 +01:00
hvbargen
475f750216
Support for common SQL*Plus command abbreviations, support for special characters in HOST, REMARK, REM commands.
2021-02-25 16:30:56 +01:00
hvbargen
387dee88f1
No longer accept arbitrary lines as SQL*Plus commands.
2021-02-25 14:43:09 +01:00
hvbargen
017e40ba67
Accept double ampersand as well
2021-02-24 10:28:24 +01:00
hvbargen
fd973e7db5
Basic support for ampersand and backslash characters. At least the parser now accepts these characters and can parse a lot more typical scripts.
2021-02-24 09:48:51 +01:00
Henning von Bargen
ac1b5ed159
Issue 3106: Use StringExpression, test case renamed, moved plsql to resource folder.
2021-02-12 09:48:27 +01:00
Henning von Bargen
34eb080884
Added unit test for issue #3106
2021-02-11 09:02:30 +01:00
Andreas Dangel
f7909ae78a
Merge branch 'master' into pr-2963-update
2021-01-21 11:43:01 +01:00
Andreas Dangel
c37f208d3e
Call jjtree/javacc with UTF-8 as default encoding
...
Fixes #2970
2020-12-17 18:31:13 +01:00
Maikel Steneker
af31b3a773
Add GenericToken.getKind() to interface
2020-12-10 12:10:47 +01:00
XenoAmess
244a39db0f
fix typos.
2020-08-27 11:47:11 +08:00
XenoAmess
90f53f892f
StringBuilder issues
2020-08-25 03:06:56 +08:00
Andreas Dangel
89140d86ce
Merge branch 'master' into pr-2656
2020-08-20 09:47:16 +02:00
Clément Fournier
01512447af
Deprecate framework in plsql
2020-07-28 23:48:30 +02:00
Maikel Steneker
f03fab409a
Add test case for SQL tab width
2020-07-22 10:29:17 +02:00
Maikel Steneker
6fb5ac59b9
Ensure CPD uses tab width of 1 for tabs consistently
...
The columns that are reported by CPD were inconsistent across languages
before. A language like Java (using a JavaCC-based tokenizer) would use
a width of 8 for tabs, whereas a language like C# (using an Antlr-based
tokenizer) would use 1 instead.
This includes unit tests for most languages to ensure a tab character is
counted as 1. The configuration for JavaCC has been adjusted to respect
this as well.
2020-07-20 10:42:21 +02:00
Andreas Dangel
7ae424a35b
Add deprecation javadocs
2020-07-17 14:43:43 +02:00
Clément Fournier
49635c2a66
Deprecate Rulechain visitors
2020-07-01 11:27:38 +02:00
Clément Fournier
659066ee02
Deprecate BaseLanguageModule constructor
2020-07-01 11:27:38 +02:00
Clément Fournier
d7f96e08d9
Uniformize apply across languages
2020-07-01 11:27:38 +02:00
Andreas Dangel
d45612dde0
[plsql] Deprecate overly specific base rule classes
...
Refs #971
2020-06-20 12:05:15 +02:00
Clément Fournier
2c563436e4
Convert plsql tests
2020-06-13 23:48:21 +02:00
Andreas Dangel
a3a292d591
Remove unnecessary source-type tags in rule tests
...
source-type is actually only needed if
* the language supports more than one version
* the parser behaves differently with different versions
(this has to do with compatibility, e.g. assert/enum keywords
in java)
* the test needs a newer version than the default version
(e.g. to test new language features)
* the test needs an older version than the default version
(e.g. the rule has a maximumLanguageVersion specified)
* the rule behaves differently for different versions
(e.g. BigIntegerInstantiation)
2020-05-23 14:16:13 +02:00
Andreas Dangel
7334738a97
[plsql] Cleanup rule test xml files
...
Avoid unnecessary CDATA for description
Use 4 space indentation instead of tabs
Remove trailing whitespace
End file with a newline
2020-05-16 18:56:05 +02:00
Andreas Dangel
ad8662ccc4
[plsql] Add more tests
2020-04-30 18:52:21 +02:00
Andreas Dangel
ef9d5fd89d
[plsql] Small improvements, see #2449
2020-04-30 18:24:59 +02:00
zgrzyt93
5b8a9fabe1
Update ASTFormalParameter.java
...
Code style refactoring
2020-04-27 16:26:40 +02:00
zgrzyt93
944752da3f
Update ASTFetchStatement.java
...
InternalApi annotation added.
2020-04-27 15:38:19 +02:00
zgrzyt93
08a430ed3f
Update ASTSqlStatement.java
...
InternalApi annotation added
2020-04-27 15:32:31 +02:00
zgrzyt93
ffd573e1b5
Merge branch 'master' into additional_info
2020-04-27 15:05:22 +02:00
Grzegorz Sudolski
15b0bda348
[plsql] added some additional info in userData
2020-04-27 11:24:03 +02:00
Andreas Dangel
08d31c62a9
Merge branch 'master' into pr-2377
2020-04-16 17:52:03 +02:00
Clément Fournier
5067c79eb2
Cleanup a test
2020-04-08 21:38:10 +02:00
Clément Fournier
bcf90ceb8a
Externalize creator for XPath rule
2020-04-08 21:35:34 +02:00