-
Notifications
You must be signed in to change notification settings - Fork 0
/
dscanner.ini
217 lines (217 loc) · 7.07 KB
/
dscanner.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
; Configure which static analysis checks are enabled
[analysis.config.StaticAnalysisConfig]
; Check variable, class, struct, interface, union, and function names against t
; he Phobos style guide
style_check="enabled"
; Check for array literals that cause unnecessary allocation
enum_array_literal_check="disabled"
; Check for poor exception handling practices
exception_check="enabled"
; Check for use of the deprecated 'delete' keyword
delete_check="enabled"
; Check for use of the deprecated floating point operators
float_operator_check="enabled"
; Check number literals for readability
number_style_check="enabled"
; Checks that opEquals, opCmp, toHash, and toString are either const, immutable
; , or inout.
object_const_check="enabled"
; Checks for .. expressions where the left side is larger than the right.
backwards_range_check="enabled"
; Checks for if statements whose 'then' block is the same as the 'else' block
if_else_same_check="enabled"
; Checks for some problems with constructors
constructor_check="enabled"
; Checks for unused variables
unused_variable_check="disabled"
; Checks for unused labels
unused_label_check="disabled"
; Checks for unused function parameters
unused_parameter_check="disabled"
; Checks for duplicate attributes
duplicate_attribute="enabled"
; Checks that opEquals and toHash are both defined or neither are defined
opequals_tohash_check="disabled"
; Checks for subtraction from .length properties
length_subtraction_check="enabled"
; Checks for methods or properties whose names conflict with built-in propertie
; s
builtin_property_names_check="enabled"
; Checks for confusing code in inline asm statements
asm_style_check="enabled"
; Checks for confusing logical operator precedence
logical_precedence_check="enabled"
; Checks for undocumented public declarations
undocumented_declaration_check="disabled"
; Checks for poor placement of function attributes
function_attribute_check="enabled"
; Checks for use of the comma operator
comma_expression_check="enabled"
; Checks for local imports that are too broad. Only accurate when checking code
; used with D versions older than 2.071.0
local_import_check="disabled"
; Checks for variables that could be declared immutable
could_be_immutable_check="disabled"
; Checks for redundant expressions in if statements
redundant_if_check="enabled"
; Checks for redundant parenthesis
redundant_parens_check="enabled"
; Checks for mismatched argument and parameter names
mismatched_args_check="disabled"
; Checks for labels with the same name as variables
label_var_same_name_check="enabled"
; Checks for lines longer than `max_line_length` characters
long_line_check="disabled"
; The maximum line length used in `long_line_check`.
max_line_length="120"
; Checks for assignment to auto-ref function parameters
auto_ref_assignment_check="enabled"
; Checks for incorrect infinite range definitions
incorrect_infinite_range_check="enabled"
; Checks for asserts that are always true
useless_assert_check="enabled"
; Check for uses of the old-style alias syntax
alias_syntax_check="enabled"
; Checks for else if that should be else static if
static_if_else_check="enabled"
; Check for unclear lambda syntax
lambda_return_check="enabled"
; Check for auto function without return statement
auto_function_check="enabled"
; Check for sortedness of imports
imports_sortedness="enabled"
; Check for explicitly annotated unittests
explicitly_annotated_unittests="disabled"
; Check for properly documented public functions (Returns, Params)
properly_documented_public_functions="disabled"
; Check for useless usage of the final attribute
final_attribute_check="enabled"
; Check for virtual calls in the class constructors
vcall_in_ctor="enabled"
; Check for useless user defined initializers
useless_initializer="disabled"
; Check allman brace style
allman_braces_check="disabled"
; Check for redundant attributes
redundant_attributes_check="enabled"
; Check public declarations without a documented unittest
has_public_example="disabled"
; Check for asserts without an explanatory message
assert_without_msg="disabled"
; Check indent of if constraints
if_constraints_indent="disabled"
; Check for @trusted applied to a bigger scope than a single function
trust_too_much="enabled"
; Check for redundant storage classes on variable declarations
redundant_storage_classes="enabled"
; Check for unused function return values
unused_result="enabled"
; Enable cyclomatic complexity check
cyclomatic_complexity="disabled"
; Maximum cyclomatic complexity after which to issue warnings
max_cyclomatic_complexity="50"
; ModuleFilters for selectively enabling (+std) and disabling (-std.internal) i
; ndividual checks
[analysis.config.ModuleFilters]
; Exclude/Import modules
style_check=""
; Exclude/Import modules
enum_array_literal_check=""
; Exclude/Import modules
exception_check=""
; Exclude/Import modules
delete_check=""
; Exclude/Import modules
float_operator_check=""
; Exclude/Import modules
number_style_check=""
; Exclude/Import modules
object_const_check=""
; Exclude/Import modules
backwards_range_check=""
; Exclude/Import modules
if_else_same_check=""
; Exclude/Import modules
constructor_check=""
; Exclude/Import modules
unused_variable_check=""
; Exclude/Import modules
unused_label_check=""
; Exclude/Import modules
unused_parameter_check=""
; Exclude/Import modules
duplicate_attribute=""
; Exclude/Import modules
opequals_tohash_check=""
; Exclude/Import modules
length_subtraction_check=""
; Exclude/Import modules
builtin_property_names_check=""
; Exclude/Import modules
asm_style_check=""
; Exclude/Import modules
logical_precedence_check=""
; Exclude/Import modules
undocumented_declaration_check=""
; Exclude/Import modules
function_attribute_check=""
; Exclude/Import modules
comma_expression_check=""
; Exclude/Import modules
local_import_check=""
; Exclude/Import modules
could_be_immutable_check=""
; Exclude/Import modules
redundant_if_check=""
; Exclude/Import modules
redundant_parens_check=""
; Exclude/Import modules
mismatched_args_check=""
; Exclude/Import modules
label_var_same_name_check=""
; Exclude/Import modules
long_line_check=""
; Exclude/Import modules
auto_ref_assignment_check=""
; Exclude/Import modules
incorrect_infinite_range_check=""
; Exclude/Import modules
useless_assert_check=""
; Exclude/Import modules
alias_syntax_check=""
; Exclude/Import modules
static_if_else_check=""
; Exclude/Import modules
lambda_return_check=""
; Exclude/Import modules
auto_function_check=""
; Exclude/Import modules
imports_sortedness=""
; Exclude/Import modules
explicitly_annotated_unittests=""
; Exclude/Import modules
properly_documented_public_functions=""
; Exclude/Import modules
final_attribute_check=""
; Exclude/Import modules
vcall_in_ctor=""
; Exclude/Import modules
useless_initializer=""
; Exclude/Import modules
allman_braces_check=""
; Exclude/Import modules
redundant_attributes_check=""
; Exclude/Import modules
has_public_example=""
; Exclude/Import modules
assert_without_msg=""
; Exclude/Import modules
if_constraints_indent=""
; Exclude/Import modules
trust_too_much=""
; Exclude/Import modules
redundant_storage_classes=""
; Exclude/Import modules
unused_result=""
; Exclude/Import modules
cyclomatic_complexity=""