Skip to content

Docs: add an example .qls with a tag regex #4793

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ use::
- high
- very-high

To create a suite that selects all queries with ``@kind problem`` and an
``@tag`` starting with ``external/cwe`` from the ``codeql-javascript`` QL pack,
use::

- qlpack: codeql-javascript
- include:
kind: problem
tags contain: /^external\/cwe\//
Copy link
Contributor

@hmakholm hmakholm Dec 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tags contain: /^external\/cwe\//
tags contain: /^external\/cwe/

Either there shouldn't be a trailing escaped slash here, or it should be mentioned in the description of what the example does.


Reusing existing query suite definitions
-----------------------------------------

Expand Down