CodeQLTool<TSettings> Class

Summary

Base class for all CodeQL Scanning tools.
graph BT Type-->Base0["Tool<TSettings>"] Type["CodeQLTool<TSettings>"] class Type type-node Derived0["CodeQLCreateDatabaseTool"]-->Type click Derived0 "/api/Cake.CodeQL.Cli.Database/CodeQLCreateDatabaseTool" Derived1["CodeQLAnalyzeDatabaseTool"]-->Type click Derived1 "/api/Cake.CodeQL.Cli.Database/CodeQLAnalyzeDatabaseTool" Derived2["CodeQLUploadResultsTool"]-->Type click Derived2 "/api/Cake.CodeQL.Cli.Upload/CodeQLUploadResultsTool"

Syntax

public abstract class CodeQLTool<TSettings> : Tool<TSettings> where TSettings : CodeQLToolSettings

Type Parameters

Name Description
TSettings The settings type.

Constructors

Properties

Name Value Summary
CakeLog ICakeLog
Cake log instance.

Methods

Name Value Summary
GetAlternativeToolPaths(TSettings) IEnumerable<FilePath>
CodeQL Installs into a subdirectory. This checks the subdirectories as well
GetArguments(TSettings) ProcessArgumentBuilder
Builds the arguments for codeQL.
GetToolExecutableNames() IEnumerable<string>
Gets the possible names of the tool executable.
GetToolName() string
Gets the name of the tool.
RunCore(TSettings, ProcessSettings, Action<IProcess>) void
Runs CodeQL.
RunCore(TSettings) void
Runss CodeQL

Extension Methods

Name Value Summary
Dump<CodeQLTool<TSettings>>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<CodeQLTool<TSettings>>(CodeQLTool<TSettings>[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<CodeQLTool<TSettings>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<CodeQLTool<TSettings>>(string) void
Requires the Cake.Issues addin
ThrowIfNull<CodeQLTool<TSettings>>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<CodeQLTool<TSettings>>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin