Detector Properties 6.4.0

This page lists and describes detectors and the properties that you can use to configure how the detector functions in a Detect scan. For example, the Docker detector uses the property --detect.docker.image.id to specify the Docker image ID to inspect.

Detectors and properties:

[ 1 Bazel ] [ 2 Bitbake ] [ 3 Conda ] [ 4 Cpan ] [ 5 Docker ] [ 6 Go ] [ 7 Gradle ] [ 8 Hex ] [ 9 Lerna ] [ 10 Maven ] [ 11 npm ] [ 12 NuGet ] [ 13 Packagist ] [ 14 Pear ] [ 15 Pip ] [ 16 Python ] [ 17 Ruby ] [ 18 sbt ] [ 19 Yarn ]

You configure Synopsys Detect detector properties by assigning values to properties.

Bazel

Bazel cquery additional options

--detect.bazel.cquery.options

A comma-separated list of additional options to pass to the bazel cquery command.

Details

Values

Details

Values

Added

6.1.0

Type

String List

Default value



Comma separated

Yes

Case sensitive

No

Acceptable values

Any

Strict

No


Bazel workspace external dependency rule

--detect.bazel.dependency.type=ALL,NONE,MAVEN_JAR,MAVEN_INSTALL,HASKELL_CABAL_LIBRARY

The Bazel workspace rule used to pull in external dependencies. If not set, Detect will attempt to determine the rule from the contents of the WORKSPACE file.

Details

Values

Details

Values

Added

6.0.0

Type

WorkspaceRule

Default value

UNSPECIFIED

Comma separated

No

Case sensitive

Yes

Acceptable values

ALL, NONE, MAVEN_JAR, MAVEN_INSTALL, HASKELL_CABAL_LIBRARY

Strict

Yes


Bazel executable

--detect.bazel.path

The path to the Bazel executable.

Details

Values

Details

Values

Added

5.2.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Bazel target

The Bazel target (for example, //foo:foolib) for which dependencies are collected. For Detect to run Bazel, this property must be set.

Details

Values

Details

Values

Added

5.2.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Bitbake

BitBake init script name

The name of the build environment init script.

Details

Values

Details

Values

Added

4.4.0

Type

String

Default value

oe-init-build-env

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


BitBake package names

A comma-separated list of package names from which dependencies are extracted.

Details

Values

Details

Values

Added

4.4.0

Type

String List

Default value



Comma separated

Yes

Case sensitive

No

Acceptable values

Any

Strict

No


BitBake search depth

The depth at which Detect will search for the recipe-depends.dot or package-depends.dot files.

Details

Values

Details

Values

Added

6.1.0

Type

Integer

Default value

1

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


BitBake source arguments

A comma-separated list of arguments to supply when sourcing the build environment init script.

Details

Values

Details

Values

Added

6.0.0

Type

String List

Default value



Comma separated

Yes

Case sensitive

No

Acceptable values

Any

Strict

No


Reference implementation (Deprecated)

The reference implementation of the Yocto project. These characters are stripped from the discovered target architecture.

DEPRECATED: This property is no longer required and will not be used in the Bitbake Detector. It will cause failure in 7.0.0 and be removed in 8.0.0.

Details

Values

Details

Values

Added

4.4.0

Type

String

Default value

  • poky-linux

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Conda

Anaconda Environment Name

The name of the anaconda environment used by your project.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Conda Executable

The path to the Conda executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Cpan

cpanm executable

The path to the cpanm executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

cpan executable

The path to the cpan executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Docker

Docker image name

The Docker image name to inspect. For Detect to run Docker Inspector, either this property or detect.docker.tar must be set. Docker Inspector finds packages installed by the Linux package manager in Linux-based images.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Docker image ID

The Docker image ID to inspect.

Details

Values

Details

Values

Added

6.1.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Docker executable

Path to the docker executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Docker image archive file

A saved Docker image must be a .tar file. For Detect to run Docker Inspector, either this property or detect.docker.tar must be set. Docker Inspector finds packages installed by the Linux package manager in Linux-based images.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Docker Inspector air-gap path (Advanced)

The path to the directory containing the Docker Inspector jar and images.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Docker Inspector .jar file path (Advanced)

This is used to override using the hosted Docker Inspector .jar file by binary repository URL. You can use a compatible (the same major version that Detect downloads by default) local Docker Inspector .jar file at this path.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Docker Inspector version (Advanced)

Version of the Docker Inspector to use. By default, Detect will attempt to automatically determine the version to use.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Run without Docker in path (Advanced)

If set to true, Detect will attempt to run the Docker Inspector only if it finds a docker client executable.

Details

Values

Details

Values

Added

4.0.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Platform top layer ID (Advanced)

To exclude components from platform layers from the results, assign the ID of the top layer of the platform image to this property. Get the platform top layer ID from the output of docker inspect platformimage:tag. The platform top layer ID is the last item in RootFS.Layers. For more information, see 'Isolating application components' in the Docker Inspector documentation.

If you are interested in components from the application layers of your image, but not interested in components from the underlying platform layers, you can exclude components from platform layers from the results by using this property to specify the boundary between platform layers and application layers.

Details

Values

Details

Values

Added

6.1.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

Docker passthrough (Advanced)

Additional properties may be passed to the docker inspector by adding the prefix detect.docker.passthrough. The keys will be given to docker inspector without the prefix.

Details

Values

Details

Values

Added

6.0.0

Type

None

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Phone home passthrough (Advanced)

Additional values may be sent home for usage information. The keys will be sent without the prefix.

Details

Values

Details

Values

Added

6.0.0

Type

None

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Go

Go executable

Path to the Go executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Gradle

Gradle build command

Gradle command-line arguments to add to the mvn/mvnw command line.

By default, Detect runs the Gradle (or gradlew) command with one task: dependencies. You can use this property to insert one or more additional Gradle command-line arguments (options or tasks) before the dependencies argument.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Gradle executable

The path to the Gradle executable (gradle or gradlew). If set, Detect will use the given Gradle executable instead of searching for one.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Gradle exclude configurations (Advanced)

A comma-separated list of Gradle configurations to exclude. As Detect examines the Gradle project for dependencies, Detect will skip any Gradle configurations specified via this property. This property accepts filename globbing-style wildcards. 

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Gradle exclude projects (Advanced)

A comma-separated list of Gradle sub-projects to exclude. As Detect examines the Gradle project for dependencies, Detect will skip any Gradle sub-projects specified via this property. This property accepts filename globbing-style wildcards. 

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Gradle include configurations (Advanced)

A comma-separated list of Gradle configurations to include.

As Detect examines the Gradle project for dependencies, if this property is set, Detect will include only those Gradle configurations specified via this property that are not excluded. Leaving this unset implies 'include all'. Exclusion rules always win. This property accepts filename globbing-style wildcards. 

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Gradle include projects (Advanced)

A comma-separated list of Gradle sub-projects to include.

As Detect examines the Gradle project for dependencies, if this property is set, Detect will include only those sub-projects specified via this property that are not excluded. Leaving this unset implies 'include all'. Exclusion rules always win. This property accepts filename globbing-style wildcards. 

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Gradle Inspector air-gap path (Advanced)

The path to the directory containing the air gap dependencies for the Gradle inspector.

Use this property when running Detect on a Gradle project in 'air gap' mode (offline). Download and unzip the Detect air gap zip file, and point this property to the packaged-inspectors/gradle directory.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Gradle Inspector version (Advanced)

The version of the Gradle Inspector that Detect should use. By default, Detect will try to automatically determine the correct Gradle Inspector version.

The Detect Gradle detector uses a separate program, the Gradle Inspector, to discover dependencies from Gradle projects. Detect automatically downloads the Gradle Inspector as needed. Use the property to use a specific version of the Gradle Inspector.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Detect Gradle Inspector Repository Url (Deprecated)

The repository Gradle should use to look for the Gradle inspector dependencies.

DEPRECATED: In the future, the Gradle inspector will no longer be downloaded from a custom repository.
Use Detect Air Gap instead. It will cause failure in 6.0.0 and be removed in 7.0.0.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Hex

Rebar3 Executable

The path to the rebar3 executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

Lerna

Include Lerna packages defined as private

Lerna allows for private packages that do not get published. Set this to true to include all packages including private packages.

Details

Values

Details

Values

Added

6.0.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

Lerna executable

Path of the lerna executable.

Details

Values

Details

Values

Added

6.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

Maven

Maven build command

Maven command line arguments to add to the mvn/mvnw command line.

By default, Detect runs the mvn (or mvnw) command with one argument: dependency:tree. You can use this property to insert one or more additional mvn command line arguments (goals, etc.) before the dependency:tree argument. For example: suppose you are running in bash on Linux, and want to point maven to your settings file (maven_dev_settings.xml in your home directory) and assign the value 'other' to property 'reason'. You could do this with: --detect.maven.build.command='--settings ${HOME}/maven_dev_settings.xml --define reason=other'

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Dependency scope excluded

A Comma separated list of Maven scopes. Output will be limited to dependencies outside these scopes (overrides include).

If set, Detect will include only dependencies outside of the given Maven scope. This property accepts filename globbing-style wildcards.

Details

Values

Details

Values

Added

6.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Dependency scope included

A Comma separated list of Maven scopes. Output will be limited to dependencies within these scopes (overridden by exclude). If set, Detect will include only dependencies of the given Maven scope. This property accepts filename globbing-style wildcards.

Details

Values

Details

Values

Added

6.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Maven executable

The path to the Maven executable (mvn or mvnw).

If set, Detect will use the given Maven executable instead of searching for one.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Maven modules excluded (Advanced)

A comma-separated list of Maven modules (sub-projects) to exclude.

As Detect parses the mvn dependency:tree output for dependencies, Detect will skip any Maven modules specified via this property. This property accepts filename globbing-style wildcards.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

Maven modules included (Advanced)

A comma-separated list of Maven modules (sub-projects) to include.

As Detect parses the mvn dependency:tree output for dependencies, if this property is set, Detect will include only those Maven modules specified via this property that are not excluded. Leaving this unset implies 'include all'. Exclusion rules always win. This property accepts filename globbing-style wildcards.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Maven include plugins (Advanced)

Whether or not detect will include the plugins section when parsing a pom.xml.

Details

Values

Details

Values

Added

5.6.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Dependency scope included (Deprecated)

The name of a Maven scope. Output will be limited to dependencies with this scope. If set, Detect will include only dependencies of the given Maven scope.

DEPRECATED: This property is changing.
Use --detect.maven.included.scope in the future. It will cause failure in 7.0.0 and be removed in 8.0.0.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


npm

Additional npm command arguments

A space-separated list of additional arguments to add to the npm command line when running Detect against an npm project.

Details

Values

Details

Values

Added

4.3.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Include npm development dependencies

Set this value to false if you would like to exclude your development dependencies when ran.

Details

Values

Details

Values

Added

3.0.0

Type

Boolean

Default value

true

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

npm executable

The path to the npm executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

NuGet

.NET (dotnet) executable

The path to the .NET (Microsoft .NET) executable.

Details

Values

Details

Values

Added

4.4.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


NuGet config file

The path to the NuGet.Config file to supply to the NuGet exe.

Details

Values

Details

Values

Added

4.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

NuGet packages Repository URL

The source for NuGet packages. Set the source to "https://www.NuGet.org/api/v2/" if you are still using a NuGet client expecting the v2 API.

Details

Values

Details

Values

Added

3.0.0

Type

String List

Default value

https://api.NuGet.org/v3/index.json

Comma separated

Yes

Case sensitive

No

Acceptable values

Any

Strict

No

 

NuGet projects excluded (Advanced)

The names of the projects in a solution to exclude.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Ignore NuGet failures (Advanced)

If true errors will be logged and then ignored.

Details

Values

Details

Values

Added

3.0.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


NuGet modules included (Advanced)

The names of the projects in a solution to include (overrides exclude).

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


NuGet Inspector air-gap path (Advanced)

The path to the directory containing the NuGet inspector nupkg.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


NuGet Inspector version (Advanced)

Version of the NuGet Inspector. By default Detect will run the latest version that is compatible with the Detect version.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

Detect NuGet Inspector Name (Deprecated)

Name of the NuGet Inspector package and the NuGet Inspector exe. (Do not include '.exe'.)

The NuGet inspector (previously) could be hosted on a custom NuGet feed. In this case, Detect needed to know the name of the package to pull and the name of the exe file (which has to match). In the future, Detect will only retrieve it from Artifactory or from Air Gap so a custom name is no longer supported.

DEPRECATED: In the future, Detect will not look for a custom named inspector. It will cause failure in 6.0.0 and be removed in 7.0.0.

Details

Values

Details

Values

Added

3.0.0

Type

String

Default value

IntegrationnugetInspector

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Detect NuGet path (Deprecated)

The path to the NuGet executable. NuGet is used to download the classic inspectors' NuGet package.

DEPRECATED: In the future, Detect will no longer need a NuGet executable as it will download the inspector from Artifactory exclusively. It will cause failure in 6.0.0 and be removed in 7.0.0.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Packagist

Include packagist development dependencies

Set this value to false if you would like to exclude your dev requires dependencies when ran.

Details

Values

Details

Values

Added

3.0.0

Type

Boolean

Default value

true

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Pear

Include only required pear dependencies

Set to true if you would like to include only required packages.

Details

Values

Details

Values

Added

3.0.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


pear executable

The path to the pear executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Pip

Pipenv executable

The path to the Pipenv executable.

Details

Values

Details

Values

Added

4.1.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

PIP Include only project tree

By default, pipenv includes all dependencies found in the graph. Set to true to only include dependencies found underneath the dependency that matches the provided pip project and version name.

Details

Values

Details

Values

Added

6.1.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

PIP project name

The name of your PIP project, to be used if your project's name cannot be correctly inferred from its setup.py file.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

PIP project version name

The version of your PIP project, to be used if your project's version name cannot be correctly inferred from its setup.py file.

Details

Values

Details

Values

Added

4.1.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


PIP requirements path

A comma-separated list of paths to requirements.txt files.

Details

Values

Details

Values

Added

3.0.0

Type

Path List

Default value



Comma separated

Yes

Case sensitive

No

Acceptable values

Any

Strict

No


Python

Python executable

The path to the Python executable.

Details

Values

Details

Values

Added

3.0.0

Type

Optional path

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Use Python3

If true will use Python 3 if available on class path.

Details

Values

Details

Values

Added

3.0.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

Ruby

Ruby development dependencies

If set to true, development dependencies will be included when parsing *.gemspec files.

Details

Values

Details

Values

Added

5.4.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


Ruby runtime dependencies

If set to false, runtime dependencies will not be included when parsing *.gemspec files.

Details

Values

Details

Values

Added

5.4.0

Type

Boolean

Default value

true

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No


sbt

sbt report search depth

Depth the sbt detector will use to search for report files.

Details

Values

Details

Values

Added

4.3.0

Type

Integer

Default value

3

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

sbt configurations excluded (Advanced)

The names of the sbt configurations to exclude. This property accepts filename globbing-style wildcards.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

sbt configurations included (Advanced)

The names of the sbt configurations to include. This property accepts filename globbing-style wildcards.

Details

Values

Details

Values

Added

3.0.0

Type

Optional string

Default value



Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

Yarn

Include Yarn production dependencies only

Set this to true to only scan production dependencies.

Details

Values

Details

Values

Added

4.0.0

Type

Boolean

Default value

false

Comma separated

No

Case sensitive

No

Acceptable values

Any

Strict

No

 

©2018 Synopsys, Inc. All Rights Reserved