You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/codeql/codeql-for-visual-studio-code/setting-up-codeql-in-visual-studio-code.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ The starter workspace is a Git repository. It contains:
80
80
81
81
* The `repository of CodeQL libraries and queries <https://github.com/github/codeql>`__ for C/C++, C#, Java, JavaScript, and Python. This is included as a submodule, so it can be updated without affecting your custom queries.
82
82
* The `repository of CodeQL libraries and queries <https://github.com/github/codeql-go>`__ for Go. This is also included as a submodule.
83
-
* A series of folders named ``codeql-custom-queries-<ql-language-specification>``. These are ready for you to start developing your own custom queries for each language, using the standard libraries. There are some example queries to get you started.
83
+
* A series of folders named ``codeql-custom-queries-<language>``. These are ready for you to start developing your own custom queries for each language, using the standard libraries. There are some example queries to get you started.
Learn more about how CodeQL works, the languages and libraries supported by CodeQL analysis, and the tools you can use to run CodeQL on open source projects.
85
-
</div>
86
-
</div>
87
-
<divclass="Box col-lg-3 col-sm-12">
88
-
<divclass="Box-header">
89
-
<ahref="codeql-overview/codeql-tools">
90
-
<h3class="Box-title">
91
-
CodeQL tools
92
-
</h3>
93
-
</a>
78
+
<divclass="Box col-lg-5 col-sm-12 border-0">
79
+
80
+
<divclass="Box-header border-0 bg-white">
81
+
<h3class="Box-title text-mono f3 text-center">
82
+
BACKGROUND INFORMATION
83
+
</h3>
94
84
</div>
95
85
<divclass="Box-body border-bottom-0">
96
-
GitHub provides the <ahref ="codeql-cli">CodeQL command-line interface</a> and <ahref="codeql-for-visual-studio-code">CodeQL for Visual Studio Code</a> for performing
Learn more about CodeQL queries in <ahref="writing-codeql-queries">Writing CodeQL queries</a> and find information about writing queries to analyze specific languages in the <ahref="codeql-language-guides">CodeQL language guides</a>.
126
-
</div>
127
-
</div>
128
-
<divclass="Box col-lg-3 col-sm-12">
129
-
<divclass="Box-header">
130
-
<h3class="Box-title text-blue">
131
-
CodeQL reference documentation
132
-
</h3>
133
-
</div>
134
154
155
+
<divclass="Box col-lg-5 col-sm-12 border-0">
156
+
<divclass="Box-header border-0 bg-white">
157
+
<h3class="Box-title text-mono f3 text-center">
158
+
CODEQL GUIDES
159
+
</h3>
160
+
</div>
135
161
<divclass="Box-body border-bottom-0">
136
-
Finds details of the predicates, modules, and classes included with CodeQL in the <ahref="../codeql-standard-libraries">CodeQL standard libraries</a> and explore the documentation for the CodeQL queries in the <ahref="../codeql-query-help">CodeQL query help</a>.
Copy file name to clipboardExpand all lines: docs/codeql/writing-codeql-queries/introduction-to-ql.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Once you have selected a language, the query console is populated with the query
23
23
24
24
.. code-block:: ql
25
25
26
-
import <ql-language-specification>
26
+
import <language>
27
27
28
28
select "hello world"
29
29
@@ -124,7 +124,7 @@ The following example queries *do* use these databases and give you an idea of h
124
124
Queries using the CodeQL libraries can find errors and uncover variants of important security vulnerabilities in codebases.
125
125
Visit `GitHub Security Lab <https://securitylab.github.com/>`__ to read about examples of vulnerabilities that we have recently found in open source projects.
126
126
127
-
To import the CodeQL library for a specific programming language, type ``import <ql-language-specification>`` at the start of the query.
127
+
To import the CodeQL library for a specific programming language, type ``import <language>`` at the start of the query.
| ``@description`` | ``<text>`` | A sentence or short paragraph to describe the purpose of the query and *why* the result is useful or important. The description is written in plain text, and uses single quotes (``'``) to enclose code elements. |
| ``@id`` | ``<text>`` | A sequence of words composed of lowercase letters or digits, delimited by ``/`` or ``-``, identifying and classifying the query. Each query must have a **unique** ID. To ensure this, it may be helpful to use a fixed structure for each ID. For example, the standard LGTM queries have the following format: ``<ql-language-specification>/<brief-description>``. |
31
+
| ``@id`` | ``<text>`` | A sequence of words composed of lowercase letters or digits, delimited by ``/`` or ``-``, identifying and classifying the query. Each query must have a **unique** ID. To ensure this, it may be helpful to use a fixed structure for each ID. For example, the standard LGTM queries have the following format: ``<language>/<brief-description>``.|
| ``@kind`` || ``problem`` | Identifies the query is an alert (``@kind problem``) or a path (``@kind path-problem``). For more information on these query types, see ":doc:`About CodeQL queries <about-codeql-queries>`." |
0 commit comments