-
Notifications
You must be signed in to change notification settings - Fork 1.8k
QL for QL: generalise non-US spelling query #9132
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
Conversation
1. Catch common misspelling as well. 2. Also check names of classes, predicates, etc.
e72cc9b
to
6058352
Compare
If @github/codeql-ql-for-ql-reviewers think this is ok, I'll add followup commits to fix some/many/all of the typos it finds. |
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.
If https://github.com/orgs/github/teams/codeql-ql-for-ql-reviewers think this is ok, I'll add followup commits to fix some/many/all of the typos it finds.
This looks good 👍
And there are plenty of typos to fix 🙈
Finally I won't be able to misspell "primordial" in my code. 💪 |
I've pushed fixes to all the spelling errors in QLDoc comments, and a couple of small refinements to the QL-for-QL query. I'm inclined to leave the remaining misspelled predicate and class names as they are for now. |
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.
C++ 👍
@geoffw0 You might want to have a look at the XXE transformer misspellings flagged up here. I think those are coming from the query you're currently working on?
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.
Python changes LGTM. 👍
Looks like a genuine typo, in a QLDoc comment, that is unlikely to cause any merge conflicts with upcoming work. So 👍 from me. |
Yeah, correcting spelling in comments is low-risk, so I just fixed them, but changing class and predicate names is a bit more involved, as I have to figure out whether I need to deprecate the old name and write a change-note. So I've left that as a followup exercise, and I'd be more than happy for you to deal with those particular misspellings. |
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.
Java 👍
Will do. |
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.
C# / Ruby 👍
The old query matched against the entire QLDoc comment string, but now I break each comment string up into individual words (and do the same for node names). I was a bit worried about string pool pollution and performance, but they seem OK. We're talking about tens of thousands of strings for a db containing all of
github/codeql
, which is not that big a number.