-
Notifications
You must be signed in to change notification settings - Fork 1.7k
QL4QL: Restrict ql/qlref-inline-expectations
to (path-)problem
queries
#19272
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
QL4QL: Restrict ql/qlref-inline-expectations
to (path-)problem
queries
#19272
Conversation
d6f09cf
to
a578f44
Compare
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.
Copilot reviewed 1 out of 9 changed files in this pull request and generated no comments.
Files not reviewed (8)
- ql/ql/src/codeql/files/FileSystem.qll: Language not supported
- ql/ql/src/codeql_ql/ast/Yaml.qll: Language not supported
- ql/ql/src/queries/style/QlRefInlineExpectations.ql: Language not supported
- ql/ql/test/queries/style/QlRefInlineExpectations/ProblemQuery.ql: Language not supported
- ql/ql/test/queries/style/QlRefInlineExpectations/QlRefInlineExpectations.expected: Language not supported
- ql/ql/test/queries/style/QlRefInlineExpectations/Test1.qlref: Language not supported
- ql/ql/test/queries/style/QlRefInlineExpectations/Test2.qlref: Language not supported
- ql/ql/test/queries/style/QlRefInlineExpectations/Test3.qlref: Language not supported
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.
I ran into false positives of this nature a couple of times recently. It's a good condition to add to the query.
} | ||
} | ||
|
||
private predicate shouldAppend(QlRefDocument qlref, Folder f, string relativePath) { |
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.
It would make the code a lot more readable if this predicate had a QLDoc comment.
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.
Good point, done.
Interesting that I had another use case for the
Folder::Append
module, just a few days after I introduced it.