Skip to content

Commit 24c413f

Browse files
committed
Adds Kotlin (beta) content
1 parent 29c47ad commit 24c413f

12 files changed

+52
-8
lines changed

docs/codeql/codeql-cli/creating-codeql-databases.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ generate a database, therefore the build method must be available to the CLI.
168168
Detecting the build system
169169
~~~~~~~~~~~~~~~~~~~~~~~~~~
170170

171-
The CodeQL CLI includes autobuilders for C/C++, C#, Go, and Java code. CodeQL
171+
.. include:: ../reusables/kotlin-beta-note.rst
172+
173+
The CodeQL CLI includes autobuilders for C/C++, C#, Go, Java and Kotlin code. CodeQL
172174
autobuilders allow you to build projects for compiled languages without
173175
specifying any build commands. When an autobuilder is invoked, CodeQL examines
174176
the source for evidence of a build system and attempts to run the optimal set of

docs/codeql/codeql-for-visual-studio-code/working-with-codeql-packs-in-visual-studio-code.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can then use the CodeQL CLI to publish your pack to share with others. For m
3030
Viewing CodeQL packs and their dependencies in Visual Studio Code
3131
-----------------------------------------------------------------
3232
To download a CodeQL pack that someone else has created, run the **CodeQL: Download Packs** command from the Command Palette.
33-
You can download all the core CodeQL query packs, or enter the full name of a specific pack to download. For example, to download the core queries for analyzing Java, enter ``codeql/java-queries``.
33+
You can download all the core CodeQL query packs, or enter the full name of a specific pack to download. For example, to download the core queries for analyzing Java or Kotlin, enter ``codeql/java-queries``.
3434

3535
Whether you have downloaded a CodeQL pack or created your own, you can open the ``qlpack.yml`` file in the root of a CodeQL pack directory in Visual Studio Code and view the dependencies section to see what libraries the pack depends on.
3636

docs/codeql/codeql-language-guides/abstract-syntax-tree-classes-for-working-with-java-programs.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CodeQL has a large selection of classes for representing the abstract syntax tre
77

88
.. include:: ../reusables/abstract-syntax-tree.rst
99

10+
.. include:: ../reusables/kotlin-java-differences.rst
11+
1012
Statement classes
1113
-----------------
1214

docs/codeql/codeql-language-guides/analyzing-data-flow-in-java.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Analyzing data flow in Java
55

66
You can use CodeQL to track the flow of data through a Java program to its use.
77

8+
.. include:: ../reusables/kotlin-java-differences.rst
9+
810
About this article
911
------------------
1012

docs/codeql/codeql-language-guides/codeql-for-java.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
.. _codeql-for-java:
22

3-
CodeQL for Java
4-
===============
3+
CodeQL for Java and Kotlin
4+
==========================
55

6-
Experiment and learn how to write effective and efficient queries for CodeQL databases generated from Java codebases.
6+
Experiment and learn how to write effective and efficient queries for CodeQL databases generated from Java and Kotlin codebases.
7+
8+
.. include:: ../reusables/kotlin-beta-note.rst
9+
10+
.. include:: ../reusables/kotlin-java-differences.rst
11+
12+
.. pull-quote:: Enabling Kotlin support
13+
14+
To enable Kotlin support, you should enable `java` as a language.
715

816
.. toctree::
917
:hidden:

docs/codeql/codeql-overview/system-requirements.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Supported platforms
1111
#######################
1212

1313
.. include:: ../support/reusables/platforms.rst
14+
15+
.. include:: ../reusables/kotlin-beta-note.rst
1416

1517
Additional software requirements
1618
################################

docs/codeql/query-help/codeql-cwe-coverage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CodeQL CWE coverage
33

44
You can view the full coverage of MITRE's Common Weakness Enumeration (CWE) or coverage by language for the latest release of CodeQL.
55

6+
.. include:: ../reusables/kotlin-beta-note.rst
7+
68
About CWEs
79
##########
810

docs/codeql/query-help/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ View the query help for the queries included in the ``code-scanning``, ``securit
66
- :doc:`CodeQL query help for C and C++ <cpp>`
77
- :doc:`CodeQL query help for C# <csharp>`
88
- :doc:`CodeQL query help for Go <go>`
9-
- :doc:`CodeQL query help for Java <java>`
9+
- :doc:`CodeQL query help for Java and Kotlin <java>`
1010
- :doc:`CodeQL query help for JavaScript <javascript>`
1111
- :doc:`CodeQL query help for Python <python>`
1212
- :doc:`CodeQL query help for Ruby <ruby>`
1313

14+
.. include:: ../reusables/kotlin-beta-note.rst
15+
1416
.. pull-quote:: Information
1517

1618
Each query help article includes:

docs/codeql/reusables/extractors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- ``csharp``
1111
* - Go
1212
- ``go``
13-
* - Java
13+
* - Java/Kotlin
1414
- ``java``
1515
* - JavaScript/TypeScript
1616
- ``javascript``
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. pull-quote:: Note
2+
3+
CodeQL analysis for Kotlin is currently in beta. During the beta, analysis of Kotlin code,
4+
and the accompanying documentation, will not be as comprehensive as for other languages.

0 commit comments

Comments
 (0)