Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b62d01a

Browse files
author
james
committed
update links to query help and libraries landing pages
1 parent 8c4c650 commit b62d01a

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

docs/codeql/writing-codeql-queries/creating-path-queries.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ For more language-specific information on analyzing data flow, see:
3434
Path query examples
3535
*******************
3636

37-
The easiest way to get started writing your own path query is to modify one of the existing queries. Visit the links below to see all the built-in path queries:
38-
39-
- `C/C++ path queries <https://help.semmle.com/wiki/label/CCPPOBJ/path-problem>`__
40-
- `C# path queries <https://help.semmle.com/wiki/label/CSHARP/path-problem>`__
41-
- `Java path queries <https://help.semmle.com/wiki/label/java/path-problem>`__
42-
- `JavaScript path queries <https://help.semmle.com/wiki/label/js/path-problem>`__
43-
- `Python path queries <https://help.semmle.com/wiki/label/python/path-problem>`__
37+
The easiest way to get started writing your own path query is to modify one of the existing queries. For more information, see the `CodeQL query help <https://codeql.github.com/codeql-query-help>`__.
4438

4539
The Security Lab researchers have used path queries to find security vulnerabilities in various open source projects. To see articles describing how these queries were written, as well as other posts describing other aspects of security research such as exploiting vulnerabilities, see the `GitHub Security Lab website <https://securitylab.github.com/research>`__.
4640

@@ -120,7 +114,7 @@ For Python, the ``Paths`` module contains the ``edges`` predicate::
120114

121115
import semmle.python.security.Paths
122116

123-
You can also import libraries specifically designed to implement data flow analysis in various common frameworks and environments, and many additional libraries are included with CodeQL. To see examples of the different libraries used in data flow analysis, see the links to the built-in queries above or browse the `standard libraries <https://help.semmle.com/QL/ql-libraries.html>`__.
117+
You can also import libraries specifically designed to implement data flow analysis in various common frameworks and environments, and many additional libraries are included with CodeQL. To see examples of the different libraries used in data flow analysis, see the links to the built-in queries above or browse the `standard libraries <https://codeql.github.com/codeql-standard-libraries>`__.
124118

125119
For all languages, you can also optionally define a ``nodes`` query predicate, which specifies the nodes of the path graph that you are interested in. If ``nodes`` is defined, only edges with endpoints defined by these nodes are selected. If ``nodes`` is not defined, you select all possible endpoints of ``edges``.
126120

@@ -133,7 +127,7 @@ You can also define your own ``edges`` predicate in the body of your query. It s
133127
/** Logical conditions which hold if `(a,b)` is an edge in the data flow graph */
134128
}
135129

136-
For more examples of how to define an ``edges`` predicate, visit the `standard CodeQL libraries <https://help.semmle.com/QL/ql-libraries.html>`__ and search for ``edges``.
130+
For more examples of how to define an ``edges`` predicate, visit the `standard CodeQL libraries <https://codeql.github.com/codeql-standard-libraries>`__ and search for ``edges``.
137131

138132
Declaring sources and sinks
139133
***************************
@@ -159,7 +153,7 @@ If you are querying Python code (and you have used ``import semmle.python.securi
159153

160154
from TaintedPathSource source, TaintedPathSink sink
161155

162-
You can extend your query by adding different sources and sinks by either defining them in the query, or by importing predefined sources and sinks for specific frameworks and libraries. See the `Python path queries <https://help.semmle.com/wiki/label/python/path-problem>`__ for further details.
156+
You can extend your query by adding different sources and sinks by either defining them in the query, or by importing predefined sources and sinks for specific frameworks and libraries. For more information, see the `CodeQL query help for Python <https://codeql.github.com/codeql-query-help/python>`__.
163157

164158
Defining flow conditions
165159
************************

docs/codeql/writing-codeql-queries/query-help-files.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For more information about how to write useful query help in a style that is con
1313

1414
Note
1515

16-
You can access the query help for CodeQL queries by visiting the `Built-in query pages <https://help.semmle.com/wiki/display/QL/Built-in+queries>`__.
16+
You can access the query help for CodeQL queries by visiting `CodeQL query help <https://codeql.github.com/codeql-query-help>`__.
1717
You can also access the raw query help files in the `GitHub repository <https://github.com/github/codeql>`__.
1818
For example, see the `JavaScript security queries <https://github.com/github/codeql/tree/main/javascript/ql/src/Security>`__ and `C/C++ critical queries <https://github.com/github/codeql/tree/main/cpp/ql/src/Critical>`__.
1919

0 commit comments

Comments
 (0)