-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rename all upper-case variables, and all lower-case modules #8403
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4f0d4ec
QL: add no-uppercase-variables query
erik-krogh 83f26eb
rename all upper-case variables to start with a lower-case letter
erik-krogh 02127b4
PY: fix all ql/no-upper-case-variables
erik-krogh 8515a70
JS: fix all ql/no-upper-case-variables
erik-krogh ad2ab56
PY: rename remaining private python modules
erik-krogh a4525bb
add change-note
erik-krogh 689f3c0
update some references to deprecated module names
erik-krogh 93fcfc3
QL: use negative char classes to generalize query to detect e.g. unde…
erik-krogh 8798787
QL: use an/a correctly in the alert message
erik-krogh 8c28b93
QL: rename query to ql/name-casing
erik-krogh c93f29b
fix typo in change note
erik-krogh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
javascript/ql/lib/change-notes/2022-02-07-deprecated-modules.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
category: deprecated | ||
--- | ||
* Some modules that started with a lowercase letter has been renamed to follow our style-guide. | ||
The old name still exists as a deprecated alias. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
javascript/ql/test/library-tests/frameworks/UriLibraries/tests.ql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import javascript | ||
|
||
query predicate punycode(DataFlow::Node n) { n = punycode::punycodeMember(_) } | ||
query predicate punycode(DataFlow::Node n) { n = Punycode::punycodeMember(_) } | ||
|
||
query predicate querydashstring(DataFlow::Node n) { n = querydashstring::querydashstringMember(_) } | ||
query predicate querydashstring(DataFlow::Node n) { n = Querydashstring::querydashstringMember(_) } | ||
|
||
query predicate querystring(DataFlow::Node n) { n = querystring::querystringMember(_) } | ||
query predicate querystring(DataFlow::Node n) { n = Querystring::querystringMember(_) } | ||
|
||
query predicate querystringify(DataFlow::Node n) { n = querystringify::querystringifyMember(_) } | ||
query predicate querystringify(DataFlow::Node n) { n = Querystringify::querystringifyMember(_) } | ||
|
||
query predicate uridashjs(DataFlow::Node n) { n = uridashjs::uridashjsMember(_) } | ||
query predicate uridashjs(DataFlow::Node n) { n = Uridashjs::uridashjsMember(_) } | ||
|
||
query predicate urijs(DataFlow::Node n) { n = urijs::urijs() } | ||
query predicate urijs(DataFlow::Node n) { n = Urijs::urijs() } | ||
|
||
query predicate uriLibraryStep(DataFlow::Node pred, DataFlow::Node succ) { | ||
TaintTracking::uriStep(pred, succ) | ||
} | ||
|
||
query predicate url(DataFlow::Node n) { n = url::urlMember(_) } | ||
query predicate url(DataFlow::Node n) { n = Url::urlMember(_) } | ||
|
||
query predicate urlParse(DataFlow::Node n) { n = urlParse::urlParse() } | ||
query predicate urlParse(DataFlow::Node n) { n = UrlParse::urlParse() } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
category: deprecated | ||
--- | ||
* Some modules that started with a lowercase letter has been renamed to follow our style-guide. | ||
erik-krogh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
The old name still exists as a deprecated alias. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.