Skip to content

more renamings of acronyms to camelCase #10153

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 4 commits into from
Aug 26, 2022

Conversation

erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Aug 24, 2022

One last round of renaming acronyms to follow our style guide. I'm not planning any more renamings of upper-case acronyms after this.

The change-notes from last time still work.

The tests fail, but there is an internal PR where they pass.

SALElement() {
containsSALAnnotation(this.(DeclarationEntry).getFile()) or
this instanceof SALAnnotation
library class SalElement extends Element {

Check warning

Code scanning / CodeQL

Use of deprecated annotation

Don't use the library annotation.
@@ -2,20 +2,26 @@

import semmle.code.java.Type

library class JAXBElement extends Class {
JAXBElement() {
library class JaxbElement extends Class {

Check warning

Code scanning / CodeQL

Use of deprecated annotation

Don't use the library annotation.
/** DEPRECATED: Alias for JaxbElement */
deprecated class JAXBElement = JaxbElement;

library class JaxbMarshalMethod extends Method {

Check warning

Code scanning / CodeQL

Use of deprecated annotation

Don't use the library annotation.
@@ -117,7 +117,7 @@
* * `sub` would be `message["Subject"]` (`Subscript`)
* * `result` would be `"multipart test"`
*/
private DataFlow::Node getSMTPSubscriptByIndex(DataFlow::CallCfgNode sendCall, string index) {
private DataFlow::Node getSmtpSubscriptByIndex(DataFlow::CallCfgNode sendCall, string index) {

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter

The QLDoc has no documentation for index, or sendCall, but the QLDoc mentions smtp
@erik-krogh erik-krogh force-pushed the more-acronyms branch 2 times, most recently from 107e808 to 255f6e3 Compare August 24, 2022 11:13
smowton
smowton previously approved these changes Aug 24, 2022
Copy link
Contributor

@smowton smowton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go 👍

@erik-krogh erik-krogh added depends on internal PR This PR should only be merged in sync with an internal Semmle PR no-change-note-required This PR does not need a change note labels Aug 25, 2022
@erik-krogh erik-krogh marked this pull request as ready for review August 25, 2022 20:42
@erik-krogh erik-krogh requested a review from a team as a code owner August 25, 2022 20:42
@erik-krogh erik-krogh requested a review from a team August 25, 2022 20:42
@erik-krogh erik-krogh requested review from a team as code owners August 25, 2022 20:42
@erik-krogh erik-krogh requested review from a team as code owners August 25, 2022 20:42
Copy link
Contributor

@esbena esbena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JS 👍🏻

Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C# 👍

Copy link
Contributor

@jketema jketema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C++ 👍

Copy link
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java 👍

Copy link
Member

@RasmusWL RasmusWL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 👍 overall

Comment on lines +34 to +36

/** DEPRECATED: Alias for missingAnnotationOnSink */
deprecated predicate missingAnnotationOnSINK = missingAnnotationOnSink/3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a test-file, so we can just do the rename without deprecation 😊

Suggested change
/** DEPRECATED: Alias for missingAnnotationOnSink */
deprecated predicate missingAnnotationOnSINK = missingAnnotationOnSink/3;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll delete the deprecation with my deprecation-deletion-script in 14+ months anyway.
And I don't want to run the tests again, and bump the submodule pointer again, so I'll let this one stay.

@erik-krogh erik-krogh merged commit c02387a into github:main Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# C++ depends on internal PR This PR should only be merged in sync with an internal Semmle PR documentation Go Java JS no-change-note-required This PR does not need a change note Python QL-for-QL Ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants