Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Creating custom rules and updating CQ version problem#19912

Unanswered
BenJoice asked this question inQ&A
Discussion options

Is there a correct way to write rules for Corel and integrate them into the Cli?
I encounter problems supporting both old rules and new ones, for example, the http method in the new version is deprecated, respectively, if you use the new qlpack (whose syntax has also changed), the rule will break. How do I update the codeql version and rules correctly?

Where can I get information about current methods? Is there any agreement on which qlpack format is the norm now and whether it is necessary to create a different qlpack for each rule?

I will be glad of your help.

You must be logged in to vote

Replies: 1 comment

Comment options

mbg
Jun 30, 2025
Maintainer

Hi@BenJoice 👋🏻

Sorry to hear that you're having problems with your own packs and queries. Our documentation should generally be up-to-date, but if you are coming across documentation that isn't right, let us know and we can fix it.

Is there a correct way to write rules for Corel and integrate them into the Cli?

I am not sure what you mean by "Corel". If you mean CodeQL, then you can follow e.g. the documentation athttps://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/using-custom-queries-with-the-codeql-cli and subsequent pages.

the http method in the new version is deprecated,

I am not sure which "http method" you are referring to. Could you be more specific?

How do I update the codeql version and rules correctly?

Generally, we try to make backwards-compatible changes. Occasionally, we will deprecate parts of the libraries and mark them as such, but they continue to function for some time until they are removed. If you are having difficulty migrating a particular query you wrote, feel free to share details about the problems you are running into and we can help you get them fixed.

whether it is necessary to create a different qlpack for each rule?

It's not necessary to create a different qlpack for each rule.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@BenJoice@mbg

[8]ページ先頭

©2009-2025 Movatter.jp