1DUB-LINT(1) The D Language Foundation DUB-LINT(1)
2
3
4
6 dub-lint - Executes the linter tests of the selected package
7
9 dub lint [<package>[@<version-spec>]] OPTIONS... [-- <application ar‐
10 guments...>]
11
13 Builds the package and executes D-Scanner linter tests.
14
16 --syntax-check
17 Lexes and parses sourceFile, printing the line and column number of
18 any syntax errors to stdout.
19
20 --style-check
21 Lexes and parses sourceFiles, printing the line and column number
22 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 --dscanner-config=VALUE
40 Use the given d-scanner configuration file.
41
42 -b, --build=VALUE
43 Specifies the type of build to perform. Note that setting the
44 DFLAGS environment variable will override the build type with cus‐
45 tom flags. Possible names:
46 debug, plain, release, release-debug, release-nobounds, unittest,
47 profile, profile-gc, docs, ddox, cov, cov-ctfe, unittest-cov,
48 unittest-cov-ctfe, syntax and custom types
49
50 -c, --config=VALUE
51 Builds the specified configuration. Configurations can be defined
52 in dub.json
53
54 --override-config=VALUE
55 Uses the specified configuration for a certain dependency. Can be
56 specified multiple times. Format: --override-config=<depen‐
57 dency>/<config>
58
59 --compiler=VALUE
60 Specifies the compiler binary to use (can be a path). Arbitrary
61 pre- and suffixes to the identifiers below are recognized (e.g.
62 ldc2 or dmd-2.063) and matched to the proper compiler type:
63 dmd, gdc, ldc, gdmd, ldmd
64
65 -a, --arch=VALUE
66 Force a different architecture (e.g. x86 or x86_64)
67
68 -d, --debug=VALUE
69 Define the specified debug version identifier when building - can
70 be used multiple times
71
72 --nodeps
73 Do not resolve missing dependencies before building
74
75 --build-mode=VALUE
76 Specifies the way the compiler and linker are invoked. Valid val‐
77 ues:
78 separate (default), allAtOnce, singleFile
79
80 --single
81 Treats the package name as a filename. The file must contain a
82 package recipe comment.
83
84 --force-remove
85 Deprecated option that does nothing.
86
87 --filter-versions
88 [Experimental] Filter version identifiers and debug version identi‐
89 fiers to improve build cache efficiency.
90
91 COMMON OPTIONS
92 See dub(1)
93
95 0 DUB succeeded
96
97 1 usage errors, unknown command line flags
98
99 2 package not found, package failed to load, miscellaneous error
100
102 dub.sdl, dub.json
103
105 Copyright (c) 1999-2023 by The D Language Foundation
106
108 http://code.dlang.org/docs/commandline ⟨⟩
109
111 dub(1), dub-dustmite(1), dub-test(1)
112
113
114
115The D Language Foundation 2023-07-24 DUB-LINT(1)