Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Apr 10, 2025

Interesting that I had another use case for the Folder::Append module, just a few days after I introduced it.

@hvitved hvitved force-pushed the ql4ql/qlref-inline-exp-kind-restrict branch from d6f09cf to a578f44 Compare April 10, 2025 13:04
@hvitved hvitved marked this pull request as ready for review April 10, 2025 13:11
@Copilot Copilot bot review requested due to automatic review settings April 10, 2025 13:11
@hvitved hvitved requested a review from a team as a code owner April 10, 2025 13:11
Copy link
Contributor

@Copilot Copilot AI left a 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

@hvitved hvitved requested a review from asgerf April 11, 2025 06:54
Copy link
Contributor

@geoffw0 geoffw0 left a 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) {
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants