Scroll to navigation

DUB-LINT(1) The D Language Foundation DUB-LINT(1)

NAME

dub - Package and build management system for D

SYNOPSIS

dub lint [<package>] OPTIONS... [-- <application arguments...>]

DESCRIPTION

Builds the package and executes D-Scanner linter tests.

OPTIONS

Lexes and parses sourceFile, printing the line and column number of any syntax errors to stdout.
Lexes and parses sourceFiles, printing the line and column number of any static analysis check failures stdout.
Format errors produced by the style/syntax checkers.
Generate a static analysis report in JSON format.
Specifies the format of the generated report.
Write report to file.
Import paths
Use the given configuration file.
Specifies the type of build to perform. Note that setting the DFLAGS environment variable will override the build type with custom flags. Possible names:
debug (default), plain, release, release-debug, release-nobounds, unittest, profile, profile-gc, docs, ddox, cov, unittest-cov, syntax and custom types
Builds the specified configuration. Configurations can be defined in dub.json
Uses the specified configuration for a certain dependency. Can be specified multiple times. Format: --override-config=<dependency>/<config>
Specifies the compiler binary to use (can be a path). Arbitrary pre- and suffixes to the identifiers below are recognized (e.g. ldc2 or dmd-2.063) and matched to the proper compiler type:
dmd, gdc, ldc, gdmd, ldmd
Force a different architecture (e.g. x86 or x86_64)
Define the specified debug version identifier when building - can be used multiple times
Do not resolve missing dependencies before building
Specifies the way the compiler and linker are invoked. Valid values:
separate (default), allAtOnce, singleFile
Treats the package name as a filename. The file must contain a package recipe comment.
Deprecated option that does nothing.
[Experimental] Filter version identifiers and debug version identifiers to improve build cache efficiency.

FILES

dub.sdl, dub.json

AUTHOR

Copyright (c) 1999-2020 by The D Language Foundation

ONLINE DOCUMENTATION

http://code.dlang.org/docs/commandlinehttp://code.dlang.org/docs/commandline

SEE ALSO

dmd(1), dub(1)

2020-08-08 The D Language Foundation