@@ -33,18 +33,12 @@ When you run ``database analyze``, it:
33
33
34
34
You can analyze a database by running the following command::
35
35
36
- codeql database analyze <database> <queries> --format=<format> --output=<output>
36
+ codeql database analyze <database> --format=<format> --output=<output> <queries >
37
37
38
38
You must specify:
39
39
40
40
- ``<database> ``: the path to the CodeQL database you want to analyze.
41
41
42
- - ``<queries> ``: the queries to run over your database. You can
43
- list one or more individual query files, specify a directory that will be
44
- searched recursively for query files, or name a query suite that defines a
45
- particular set of queries. For more information, see the :ref: `examples
46
- <database-analyze-examples>` below.
47
-
48
42
- ``--format ``: the format of the results file generated during analysis. A
49
43
number of different formats are supported, including CSV, :ref: `SARIF
50
44
<sarif-file>`, and graph formats. For more information about CSV and SARIF,
@@ -56,6 +50,13 @@ You must specify:
56
50
57
51
You can also specify:
58
52
53
+ - ``<queries> ``: the queries to run over your database. You can
54
+ list one or more individual query files, specify a directory that will be
55
+ searched recursively for query files, or name a query suite that defines a
56
+ particular set of queries. If omitted, the default query suite for the language
57
+ of the database being analyzed will be usedFor more information, see the
58
+ :ref: `examples <database-analyze-examples >` below.
59
+
59
60
- ``--sarif-category ``: an identifying category for the results. Used when
60
61
you want to upload more than one set of results for a commit.
61
62
For example, when you use ``github upload-results `` to send results for more than one
0 commit comments