Skip to content

Commit

Permalink
Merge pull request #16076 from github/jf205-patch-1
Browse files Browse the repository at this point in the history
Make customizing-library-models-for-javascript.rst visible to search and the docs TOC
  • Loading branch information
jf205 committed Mar 28, 2024
2 parents ef2e2e4 + d57e8ef commit 5b1cae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docs/codeql/codeql-language-guides/codeql-for-javascript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Experiment and learn how to write effective and efficient queries for CodeQL dat
using-type-tracking-for-api-modeling
abstract-syntax-tree-classes-for-working-with-javascript-and-typescript-programs
data-flow-cheat-sheet-for-javascript
customizing-library-models-for-javascript

- :doc:`Basic query for JavaScript and TypeScript code <basic-query-for-javascript-code>`: Learn to write and run a simple CodeQL query.

Expand All @@ -33,3 +34,5 @@ Experiment and learn how to write effective and efficient queries for CodeQL dat
- :doc:`Abstract syntax tree classes for working with JavaScript and TypeScript programs <abstract-syntax-tree-classes-for-working-with-javascript-and-typescript-programs>`: CodeQL has a large selection of classes for representing the abstract syntax tree of JavaScript and TypeScript programs.

- :doc:`Data flow cheat sheet for JavaScript <data-flow-cheat-sheet-for-javascript>`: This article describes parts of the JavaScript libraries commonly used for variant analysis and in data flow queries.

- :doc:`Customizing library models for JavaScript <customizing-library-models-for-javascript>`: You can model frameworks and libraries that your codebase depends on using data extensions and publish them as CodeQL model packs.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.. _customizing-library-models-for-javascript:

:orphan:
:nosearch:

Customizing Library Models for JavaScript
=========================================

Expand Down Expand Up @@ -30,8 +27,6 @@ The CodeQL library for JavaScript exposes the following extensible predicates:
- **typeModel**\(type1, type2, path)
- **summaryModel**\(type, path, input, output, kind)

See the `CLI documentation for how to load and use data extensions in a CodeQL evaluation run <https://docs.google.com/document/d/14IYCHX8wWuU-HTvJ2gPSdXQKHKYbWCHQKOgn8oLaa80/edit#heading=h.m0v53lpi6w2n>`__ (internal access required).

We'll explain how to use these using a few examples, and provide some reference material at the end of this article.

Example: Taint sink in the 'execa' package
Expand Down

0 comments on commit 5b1cae5

Please sign in to comment.