component-detection/docs/detector-arguments.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 строка
3.2 KiB
Markdown
Исходник Обычный вид История

2021-11-19 17:07:50 +03:00
# Detector arguments
``` shell
dotnet run --project "src\Microsoft.ComponentDetection\Microsoft.ComponentDetection.csproj" help scan
2021-11-19 17:07:50 +03:00
```
```
--DirectoryExclusionList Filters out specific directories following a
minimatch pattern.
--IgnoreDirectories Filters out specific directories, providing
individual directory paths separated by semicolon.
Obsolete in favor of DirectoryExclusionList's glob
syntax.
--SourceDirectory Required. Directory to operate on.
--SourceFileRoot Directory where source files can be found.
--DetectorArgs Comma separated list of properties that can affect
the detectors execution, like EnableIfDefaultOff
that allows a specific detector that is in beta to
run, the format for this property is
DetectorId=EnableIfDefaultOff, for example
Pip=EnableIfDefaultOff.
--DetectorCategories A comma separated list with the categories of
components that are going to be scanned. The
detectors that are going to run are the ones that
belongs to the categories.The possible values are:
Npm, NuGet, Maven, RubyGems, Cargo, Pip, GoMod,
CocoaPods, Linux.
--DetectorsFilter A comma separated list with the identifiers of the
specific detectors to be used. This is meant to be
used for testing purposes only.
--ManifestFile The file to write scan results to.
--DockerImagesToScan Comma separated list of docker image names or
hashes to execute container scanning on, ex:
ubuntu:16.04,
56bab49eef2ef07505f6a1b0d5bd3a601dfc3c76ad4460f24c
91d6fa298369ab
--Debug Wait for debugger on start
--DebugTelemetry Used to output all telemetry events to the
console.
--CorrelationId Identifier used to correlate all telemetry for a
given execution. If not provided, a new GUID will
be generated.
--Verbosity (Default: Normal) Flag indicating what level of
logging to output to console during execution.
Options are: Verbose, Normal, or Quiet.
--Timeout An integer representing the time limit (in
seconds) before detection is cancelled
--Output Output path for log files. Defaults to %TMP%
--AdditionalDITargets Comma separated list of paths to additional
dependency injection targets.
--help Display this help screen.
--version Display version information.
```