959 Commits

Author SHA1 Message Date
Andreas Dangel
3e309ba1e1 [plsql] CodeFormat Rule
Add check for procedure calls without named parameters
2018-10-12 13:44:47 +02:00
Andreas Dangel
8e879bddba [plsql] CodeFormat Rule
Add check for function calls with named parameters
2018-10-12 13:33:24 +02:00
Andreas Dangel
09dbabff2b [plsql] CodeFormat Rule
Add check for variables
2018-10-11 17:00:25 +02:00
Andreas Dangel
c005141847 [plsql] CodeFormat Rule
Add checks for parameters
2018-10-10 17:31:42 +02:00
Andreas Dangel
fdbc448a5b [plsql] CodeFormat Rule
Add checks for Join clauses
Add checks for UNION
2018-10-10 17:10:31 +02:00
Andreas Dangel
84def12794 [plsql] CodeFormat Rule
Basic checks for SQL Queries alignment
2018-10-09 17:18:15 +02:00
Andreas Dangel
1f7c827323 Merge branch 'master' into unit-test-split 2018-10-05 20:39:22 +02:00
Andreas Dangel
6d00e74142 Use new base class PmdRuleTst for rule tests 2018-10-05 20:33:38 +02:00
Andreas Dangel
d8586382f6 [maven-release-plugin] prepare for next development iteration 2018-09-30 10:10:21 +02:00
Andreas Dangel
161d9cd6d6 [maven-release-plugin] prepare release pmd_releases/6.8.0 2018-09-30 10:10:12 +02:00
Andreas Dangel
6253370426 Restore images of names and aliases
Special handling of TableAlias in Joins
ON is a reserved word
2018-09-27 11:31:54 +02:00
Andreas Dangel
4a1a12db29 ORDER is a reserved word as well 2018-09-27 11:31:54 +02:00
Andreas Dangel
11adc28a7e Allow keywords as identifiers for various names
Increase lookaheads in Condition2
2018-09-27 11:31:54 +02:00
Andreas Dangel
71e74dba8d Allow keywords as table alias
Note: BY and GROUP are reserved words
2018-09-27 11:31:54 +02:00
Andreas Dangel
3454804b49 Fully parse select statement in CursorForLoop.
Note: ALL and DISTINCT are reserved words
2018-09-27 11:31:54 +02:00
Andreas Dangel
a29fc094f9 Support DeleteStatement 2018-09-26 10:28:10 +02:00
Juan Martín Sotuyo Dodero
a3a48e2cb9 Merge pull request #1360 from adangel/plsql-select-function
[plsql] Support Function Calls in Select
2018-09-25 16:53:41 -03:00
Andreas Dangel
616746c004 Support UpdateStatement 2018-09-13 11:03:27 +02:00
Andreas Dangel
5bbbaeac1e Support FunctionCall in SelectList 2018-09-12 20:06:02 +02:00
Andreas Dangel
3498cde1f9 Add CodingStyleExample.pls for parsing tests 2018-09-11 13:12:12 +02:00
Andreas Dangel
c5fdf94b03 Support simple FunctionCall 2018-09-11 13:07:32 +02:00
Andreas Dangel
dea38d44c9 Own AST node for FloatingPointCondition 2018-09-11 11:49:40 +02:00
Andreas Dangel
38d97c72a9 Reuse IsNullCondition 2018-09-11 11:46:54 +02:00
Andreas Dangel
d47b130a89 Fix unit tests 2018-09-10 20:42:35 +02:00
Andreas Dangel
db767317e1 Support IsTypeOfCondition 2018-09-10 20:42:35 +02:00
Andreas Dangel
849e3ada8d Support Between Condition, add test case for In Condition 2018-09-10 20:42:35 +02:00
Andreas Dangel
3760f53ab1 Support NullCondition 2018-09-10 20:42:31 +02:00
Andreas Dangel
78c5ce4636 Support LikeCondition 2018-09-10 19:31:34 +02:00
Andreas Dangel
7f2a052d00 Merge branch 'origin/master' into plsql-sql-statements 2018-09-10 19:11:13 +02:00
Andreas Dangel
52be023f80 Simplify rule tests, directly inherit from SimpleAggregatorTst
for apex, javascript, jsp, plsql, visualforce, vm, xml
2018-09-09 13:10:44 +02:00
Andreas Dangel
a5ded9d517 [plsql] Split the rule tests 2018-09-09 12:01:36 +02:00
Andreas Dangel
291d36d841 [maven-release-plugin] prepare for next development iteration 2018-09-02 14:27:42 +02:00
Andreas Dangel
b98bd0bb96 [maven-release-plugin] prepare release pmd_releases/6.7.0 2018-09-02 14:27:33 +02:00
Andreas Dangel
ec011cc885 Add additional test cases for expressions in where clauses 2018-08-16 17:19:22 +02:00
Andreas Dangel
ec665de1a2 [plsql] Add support for GroupByClause
* Restructure FromClause to have one node with multiple table references
2018-08-16 16:14:57 +02:00
Andreas Dangel
319c6cd073 Update grammar comment 2018-08-10 15:22:40 +02:00
Andreas Dangel
414e4a13fb Add JoinClause tests, fix outer join with using,
add support for query partition clause
2018-08-09 17:44:49 +02:00
Andreas Dangel
e3dfda3cca Simplify grammar 2018-08-09 16:34:22 +02:00
Andreas Dangel
7192663c1a [plsql] Improvements on the AST for SELECT
* SubqueryOperation is now available
* FromClause is a node on its own
* OuterJoinType is available
2018-08-03 16:50:48 +02:00
Andreas Dangel
b9344ef6f6 [plsql] Add support for OrderBy and RowLimiting clauses for SELECT 2018-08-03 15:48:23 +02:00
Juan Martín Sotuyo Dodero
3820bdc36c Merge branch 'pr-1236' 2018-07-30 02:01:49 -03:00
Andreas Dangel
20f52700b4 [maven-release-plugin] prepare for next development iteration 2018-07-29 12:07:05 +02:00
Andreas Dangel
868f262c21 [maven-release-plugin] prepare release pmd_releases/6.6.0 2018-07-29 12:06:56 +02:00
Andreas Dangel
580c92c550 [plsql] Add initial support for SELECT INTO - still WIP 2018-07-27 15:54:45 +02:00
Andreas Dangel
be76e2809f [plsql] Extend CursorForLoopNaming and rename to ForLoopNaming
It covers now both cursor for loops and index for loops.
2018-07-20 15:26:50 +02:00
Andreas Dangel
b088c20a96 [plsql] CursorForLoopNaming: Add parameters "allowSimpleLoops" and "pattern" 2018-07-20 15:26:50 +02:00
Andreas Dangel
387a8abca9 [plsql] Verify issue #681: it's fixed 2018-07-20 15:26:11 +02:00
Andreas Dangel
ecb1ddb451 [plsql] SELECT INTO with parentheses
This fixes partially #1047
2018-07-20 15:26:11 +02:00
Andreas Dangel
58268812f6 [plsql] New Rule: CursorForLoopNaming 2018-07-20 15:26:09 +02:00
Andreas Dangel
0b264d5feb Fix encoding (from cp1252 -> utf-8) 2018-07-20 15:24:24 +02:00