Skip to content

Query help files should be identified and processed when executing codeql pack create #13609

@carlspring

Description

@carlspring

Task Description

At the moment, before building the query pack, one needs to do:

codeql generate query-help *.qhelp --format=markdown -o .

Then:

codeql pack create

A couple of things don't really make sense:

  1. If you're creating a query pack, if there are qhelp files in the same directory where the ql files are, the more intuitive and (requiring less effort) thing to do is to actually identify that there are qhelp files and automatically process them. The output format for this could be controlled via a property in the qlpack.yml.
  2. On Github the default format for commenting, editing and documentation is Markdown. So... the default output format for both codeql generate query-help and the proposed request for changes should be Markdown and it should be possible to execute the command without having to specify this.
  3. If an .md file exists for a .ql and there is no .qhelp file, use that instead. I am sure that many other researchers and developers would prefer this option over having to craft a .qhelp (which is a custom XML) file which will ultimately just get converted to an .md file in the end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions