-
Notifications
You must be signed in to change notification settings - Fork 2k
Spelling ql #10880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spelling ql #10880
Changes from all commits
f176877
8689a94
8ced7d6
fefea7e
5468dba
362d143
4d22b2a
a6e0f0e
08d479b
f2ce34c
bc029bd
d9900fe
b3df4ab
866cc1e
e39706a
08b06aa
2636f71
7055b13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,12 +61,12 @@ predicate isBuiltinMember(string qual, string ret, string name, string args) { | |
| } | ||
|
|
||
| module BuiltinsConsistency { | ||
| query predicate noBuildinParse(string sig) { | ||
| query predicate noBuiltinParse(string sig) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and similarly |
||
| isBuiltinMember(sig) and | ||
| not exists(sig.regexpCapture("(\\w+) (\\w+)\\.(\\w+)\\(([\\w, ]*)\\)", _)) | ||
| } | ||
|
|
||
| query predicate noBuildinClasslessParse(string sig) { | ||
| query predicate noBuiltinClasslessParse(string sig) { | ||
| isBuiltinClassless(sig) and | ||
| not exists(sig.regexpCapture("(\\w+) (\\w+)\\(([\\w, ]*)\\)", _)) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| * @description The `matches` builtin predicate takes a special pattern format as an input, not a regular expression. | ||
| * @kind problem | ||
| * @problem.severity warning | ||
| * @id ql/rexexp-pattern | ||
| * @id ql/regex-pattern | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both are fine. |
||
| * @precision medium | ||
| */ | ||
|
|
||
|
|
@@ -33,5 +33,5 @@ where | |
| c.getArgument(0) = arg and | ||
| arg.getValue().regexpMatch(getALikelyRegExpPattern()) | ||
| select c, | ||
| "Argument \"$@\" looks like a reguar expression, but will be interpreted as a SQL 'LIKE' pattern.", | ||
| "Argument \"$@\" looks like a regular expression, but will be interpreted as a SQL 'LIKE' pattern.", | ||
| arg, arg.getValue() | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully not a problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a problem.
We don't need to follow any kind of deprecation policy inside the
ql/folder, as it's not part of any product.We should be good as long as the CI passes.