1DUB-LINT(1)                The D Language Foundation               DUB-LINT(1)
2
3
4

NAME

6       dub - Package and build management system for D
7

SYNOPSIS

9       dub  lint [<package>[@<version-spec>]] OPTIONS...  [-- <application ar‐
10       guments...>]
11

DESCRIPTION

13       Builds the package and executes D-Scanner linter tests.
14

OPTIONS

16       --syntax-check
17              Lexes and parses sourceFile, printing the line and column number
18              of any syntax errors to stdout.
19
20       --style-check
21              Lexes  and parses sourceFiles, printing the line and column num‐
22              ber of any static analysis check failures stdout.
23
24       --error-format=VALUE
25              Format errors produced by the style/syntax checkers.
26
27       --report
28              Generate a static analysis report in JSON format.
29
30       --report-format=VALUE
31              Specifies the format of the generated report.
32
33       --report-file=VALUE
34              Write report to file.
35
36       --import-paths=VALUE
37              Import paths
38
39       --config=VALUE
40              Use the given configuration file.
41
42       -b,    Specifies the type of build to perform. Note  that  setting  the
43              DFLAGS  environment  variable  will override the build type with
44              custom flags.  Possible names:
45                debug  (default),  plain,  release,  release-debug,   release-
46              nobounds,   unittest,  profile,  profile-gc,  docs,  ddox,  cov,
47              unittest-cov, syntax and custom types
48
49       -c,    Builds the specified configuration. Configurations  can  be  de‐
50              fined in dub.json
51
52       --override-config=VALUE
53              Uses  the  specified configuration for a certain dependency. Can
54              be specified multiple times.  Format:  --override-config=<depen‐
55              dency>/<config>
56
57       --compiler=VALUE
58              Specifies the compiler binary to use (can be a path).  Arbitrary
59              pre- and suffixes to the identifiers below are recognized  (e.g.
60              ldc2 or dmd-2.063) and matched to the proper compiler type:
61                dmd, gdc, ldc, gdmd, ldmd
62
63       -a,    Force a different architecture (e.g. x86 or x86_64)
64
65       -d,    Define  the  specified  debug version identifier when building -
66              can be used multiple times
67
68       --nodeps
69              Do not resolve missing dependencies before building
70
71       --build-mode=VALUE
72              Specifies the way the compiler and  linker  are  invoked.  Valid
73              values:
74                separate (default), allAtOnce, singleFile
75
76       --single
77              Treats  the  package name as a filename. The file must contain a
78              package recipe comment.
79
80       --force-remove
81              Deprecated option that does nothing.
82
83       --filter-versions
84              [Experimental] Filter  version  identifiers  and  debug  version
85              identifiers to improve build cache efficiency.
86

FILES

88       dub.sdl, dub.json
89

AUTHOR

91       Copyright (c) 1999-2022 by The D Language Foundation
92

ONLINE DOCUMENTATION

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

SEE ALSO

97       dmd(1), dub(1)
98
99
100
101The D Language Foundation         2022-01-20                       DUB-LINT(1)
Impressum