This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.CodeQL.Cli.
Summary
Tool for creating CodeQL databases
- Assembly
- Cake
.CodeQL .Cli .dll - Namespace
- Cake
.CodeQL .Cli .Database - Base Types
-
- ToolSettings
- CodeQLToolSettings
graph BT
Type-->Base0["CodeQLToolSettings"]
click Base0 "/api/Cake.CodeQL.Cli/CodeQLToolSettings"
Base0-->Base1["ToolSettings"]
Type["CodeQLCreateDatabaseToolSettings"]
class Type type-node
Syntax
public class CodeQLCreateDatabaseToolSettings : CodeQLToolSettings
Constructors
Name | Summary |
---|---|
Code |
Initializes a new instance of the CodeQLCreateDatabaseToolSettings
|
Properties
Name | Value | Summary |
---|---|---|
BuildCommand | string |
Recommended. Use to specify the build command or script that invokes the build process for the codebase. Commands are run from the current folder or, where it is defined, from --source-root. Not needed for Python and JavaScript/TypeScript analysis.
|
Code |
FilePath |
Advanced. Optional (Advanced). Use if you have a configuration file that specifies how to create the CodeQL databases and what queries to run in later steps.
|
Command | string |
Gets the command which should be run.
Inherited from CodeQLToolSettings
|
DatabaseDir | DirectoryPath |
Specify the location of a directory to create for the CodeQL database. The command will fail if you try to overwrite an existing directory. If you also specify --db-cluster, this is the parent directory and a subdirectory is created for each language analyzed.
|
DbCluster | bool |
Optional. Use in multi-language codebases to generate one database for each language specified.
|
Languages | IList |
One or more to create CodeQL Database for.
Specify the identifier for the language to create a database for, one of: cpp`, `csharp`, `go`, `java`, `javascript`, `python`, and `ruby (use javascript to analyze TypeScript code). When used with --db-cluster, the option accepts a comma-separated list, or can be specified more than once.
|
No |
bool |
Recommended. Use to suppress the build command for languages where the CodeQL CLI does not need to monitor the build (for example, Python and JavaScript/TypeScript).
|
Redirect |
bool |
Gets or sets the process option to redirect standard error
Inherited from CodeQLToolSettings
|
Redirect |
bool |
Gets or sets the process option to redirect standard output
Inherited from CodeQLToolSettings
|
SourceRootDir | DirectoryPath |
Optional. Use if you run the CLI outside the checkout root of the repository. By default, the database create command assumes that the current directory is the root directory for the source files, use this option to specify a different location.
|
Methods
Name | Value | Summary |
---|---|---|
EvaluateCore |
void |
Evaluates the settings and writes them to args.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|