350 Commits

Author SHA1 Message Date
Andreas Dangel
adfc8511e6 [plsql] FunctionCall is now used again for user defined functions 2019-02-10 10:24:40 +01:00
Andreas Dangel
fcba29a3b7 [plsql] ParseException when using hierarchical query clause
Fixes #1590

* Moves function calls down to primary expression so that functions
  can be used in a select expression
* Restrict FunctionCall to built-in functions. User defined functions
  are parsed as primary expressions.
* Parse function name of built-in function as general ID.
* The Tokens _DEFAULT, ELSE and EXCEPTION are reserved words and not
  available for identifiers.
2019-02-10 10:24:40 +01:00
Andreas Dangel
63cd6d0f5c [maven-release-plugin] prepare for next development iteration 2019-01-27 13:25:00 +01:00
Andreas Dangel
ea2776f70c [maven-release-plugin] prepare release pmd_releases/6.11.0 2019-01-27 13:24:51 +01:00
Andreas Dangel
df169f7027 [plsql] Fix build: table is a reserved word so can't be used as a table name 2019-01-27 11:34:01 +01:00
Juan Martín Sotuyo Dodero
76f6ceab79 Merge pull request #1594 from adangel/issue-1526
[plsql] ParseException when using TableCollectionExpression
2019-01-26 19:31:44 -03:00
Andreas Dangel
89c8f47b2b Move JavaCCTokenizer to internal package 2019-01-26 19:19:46 +01:00
Andreas Dangel
57d6ff9e30 Merge remote-tracking branch 'origin/master' into issue-1559 2019-01-26 11:28:36 +01:00
Andreas Dangel
08b7dd49dd [core] Add a generic JavaCCTokenizer for CPD 2019-01-26 11:24:32 +01:00
Andreas Dangel
2def07b542 Fixes from PR review 2019-01-23 21:31:34 +01:00
Andreas Dangel
46ddd7d1f6 [plsql] ParseException when using TableCollectionExpression
Fixes #1526

Also adding InsertStatement
2019-01-23 21:31:34 +01:00
Andreas Dangel
b173d11508 [plsql] Parse Exception with function calls in WHERE clause
Fixes #1588
2019-01-23 20:56:44 +01:00
Andreas Dangel
872f4e90e2 [plsql] Parse Exception when functions are used with LIKE
Fixes #1586
2019-01-20 11:01:17 +01:00
Andreas Dangel
4665509c44 Merge branch 'pr-1554' 2019-01-20 10:30:29 +01:00
Andreas Dangel
b4d545b0c1 Multiple columns are not possible with ROW update 2019-01-20 10:28:14 +01:00
Andreas Dangel
b745f331b8 CPD: Fix error handling for lexical errors
* TokenMgrError must not be caught by the tokenizer. This is handled
  by CPD itself
* The token managers need to know the filename for proper error messages
2019-01-20 10:18:56 +01:00
Andreas Dangel
b521126130 Merge branch 'pr-1550' 2019-01-14 18:50:17 +01:00
Clément Fournier
a0109aeef9 Merge branch 'pr-1523' 2019-01-07 22:23:42 +01:00
Tashdid Khan
f6c62ef71d updates should allow for multiple statements 2019-01-02 22:29:04 -05:00
Clément Fournier
ad078fad59 Deprecate StatisticalRule 2018-12-30 16:34:57 +01:00
Clément Fournier
e079d0c2e9 Merge branch 'pr-1525' 2018-12-17 16:08:39 +01:00
Clément Fournier
e56d97aac3 Merge branch 'pr-1524' 2018-12-17 16:05:54 +01:00
Andreas Dangel
69878f3562 [plsql] Parse Exception with IS NOT NULL
Fixes #1511
2018-12-13 17:25:48 +01:00
Andreas Dangel
351d04568f [plsql] Parse Exception with OUTER/INNER Joins
Fixes #1509
2018-12-13 17:03:13 +01:00
Andreas Dangel
43a96d92f0 [plsql] Parse Exception when using '||' operator in where clause
Fixes #1507
2018-12-13 15:47:42 +01:00
Andreas Dangel
7a8ef70e95 [plsql] Parse Exception when using SELECT COUNT(*)
Fixes #1508
2018-12-12 09:44:35 +01:00
Andreas Dangel
dcb8bb42a2 [maven-release-plugin] prepare for next development iteration 2018-12-09 10:42:20 +01:00
Andreas Dangel
27374d8592 [maven-release-plugin] prepare release pmd_releases/6.10.0 2018-12-09 10:42:09 +01:00
Clément Fournier
3b988866a3 Merge branch 'pr-1493' 2018-12-04 12:29:27 +01:00
Andreas Dangel
d7f5b0b536 Remove clean configuration from (very) old site generation 2018-12-02 10:30:36 +01:00
Andreas Dangel
1cf1dfc96b [plsql] ParseException for IF/CASE statement with >=, <=, !=
Fixes #1454
2018-12-01 21:50:07 +01:00
Clément Fournier
71713026ce Deprecate integer property 2018-11-26 23:32:50 +01:00
Andreas Dangel
3c50db2439 [maven-release-plugin] prepare for next development iteration 2018-10-28 16:49:09 +01:00
Andreas Dangel
7e4e859c5f [maven-release-plugin] prepare release pmd_releases/6.9.0 2018-10-28 16:48:57 +01:00
Andreas Dangel
658eb13864 Merge branch 'pr-1381' 2018-10-28 14:54:46 +01:00
Clément Fournier
39f87ca5f3 Update schema location in rulesets 2018-10-27 21:02:16 +02:00
Andreas Dangel
dc6b4e90a9 Merge branch 'pr-1382' 2018-10-17 08:46:47 +02:00
Andreas Dangel
dc3ccc990b Merge branch 'master' into plsql-codeformat 2018-10-15 16:24:01 +02:00
Juan Martín Sotuyo Dodero
a0be9712dd Merge pull request #1364 from adangel/plsql-select-cursorforloop2
[plsql] Fully parse select statement inside cursor for loops
2018-10-15 03:56:24 -03:00
Will Herrmann
cba4e87acd Replacing deprecated IO methods with ones that specify a charset
Standardizing with StandardCharsets.UTF_8, given that it was used in
several places of code already, and it provides compile-time checking
(as opposed to "UTF-8")
2018-10-12 17:25:08 -05:00
Andreas Dangel
a7bb7c67bf [plsql] CodeFormat Rule
* Add property for indentation
* Add proper rule description and example
2018-10-12 14:08:49 +02:00
Andreas Dangel
3497a076bc [plsql] CodeFormat Rule
Add complete Coding Style example
2018-10-12 13:46:53 +02:00
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