dscanner v0.2.0 (2015-09-18T06:39:38Z)
Dub
Repo
StaticAnalysisConfig
analysis
config
Undocumented in source.
@
INI
("Configurue which static analysis checks are enabled")
struct
StaticAnalysisConfig {
@
INI
("Check variable, class, struct, interface, union, and function names against the Phobos style guide")
bool
style_check
;
@
INI
("Check for array literals that cause unnecessary allocation")
bool
enum_array_literal_check
;
@
INI
("Check for poor exception handling practices")
bool
exception_check
;
@
INI
("Check for use of the deprecated 'delete' keyword")
bool
delete_check
;
@
INI
("Check for use of the deprecated floating point operators")
bool
float_operator_check
;
@
INI
("Check number literals for readability")
bool
number_style_check
;
@
INI
("Checks that opEquals, opCmp, toHash, and toString are either const, immutable, or inout.")
bool
object_const_check
;
@
INI
("Checks for .. expressions where the left side is larger than the right.")
bool
backwards_range_check
;
@
INI
("Checks for if statements whose 'then' block is the same as the 'else' block")
bool
if_else_same_check
;
@
INI
("Checks for some problems with constructors")
bool
constructor_check
;
@
INI
("Checks for unused variables and function parameters")
bool
unused_variable_check
;
@
INI
("Checks for unused labels")
bool
unused_label_check
;
@
INI
("Checks for duplicate attributes")
bool
duplicate_attribute
;
@
INI
("Checks that opEquals and toHash are both defined or neither are defined")
bool
opequals_tohash_check
;
@
INI
("Checks for subtraction from .length properties")
bool
length_subtraction_check
;
@
INI
("Checks for methods or properties whose names conflict with built-in properties")
bool
builtin_property_names_check
;
@
INI
("Checks for confusing code in inline asm statements")
bool
asm_style_check
;
@
INI
("Checks for confusing logical operator precedence")
bool
logical_precedence_check
;
@
INI
("Checks for undocumented public declarations")
bool
undocumented_declaration_check
;
@
INI
("Checks for poor placement of function attributes")
bool
function_attribute_check
;
@
INI
("Checks for use of the comma operator")
bool
comma_expression_check
;
@
INI
("Checks for local imports that are too broad")
bool
local_import_check
;
@
INI
("Checks for variables that could be declared immutable")
bool
could_be_immutable_check
;
@
INI
("Checks for redundant expressions in if statements")
bool
redundant_if_check
;
@
INI
("Checks for redundant parenthesis")
bool
redundant_parens_check
;
@
INI
("Checks for labels with the same name as variables")
bool
label_var_same_name_check
;
}
Members
Variables
asm_style_check
bool
asm_style_check
;
Undocumented in source.
backwards_range_check
bool
backwards_range_check
;
Undocumented in source.
builtin_property_names_check
bool
builtin_property_names_check
;
Undocumented in source.
comma_expression_check
bool
comma_expression_check
;
Undocumented in source.
constructor_check
bool
constructor_check
;
Undocumented in source.
could_be_immutable_check
bool
could_be_immutable_check
;
Undocumented in source.
delete_check
bool
delete_check
;
Undocumented in source.
duplicate_attribute
bool
duplicate_attribute
;
Undocumented in source.
enum_array_literal_check
bool
enum_array_literal_check
;
Undocumented in source.
exception_check
bool
exception_check
;
Undocumented in source.
float_operator_check
bool
float_operator_check
;
Undocumented in source.
function_attribute_check
bool
function_attribute_check
;
Undocumented in source.
if_else_same_check
bool
if_else_same_check
;
Undocumented in source.
label_var_same_name_check
bool
label_var_same_name_check
;
Undocumented in source.
length_subtraction_check
bool
length_subtraction_check
;
Undocumented in source.
local_import_check
bool
local_import_check
;
Undocumented in source.
logical_precedence_check
bool
logical_precedence_check
;
Undocumented in source.
number_style_check
bool
number_style_check
;
Undocumented in source.
object_const_check
bool
object_const_check
;
Undocumented in source.
opequals_tohash_check
bool
opequals_tohash_check
;
Undocumented in source.
redundant_if_check
bool
redundant_if_check
;
Undocumented in source.
redundant_parens_check
bool
redundant_parens_check
;
Undocumented in source.
style_check
bool
style_check
;
Undocumented in source.
undocumented_declaration_check
bool
undocumented_declaration_check
;
Undocumented in source.
unused_label_check
bool
unused_label_check
;
Undocumented in source.
unused_variable_check
bool
unused_variable_check
;
Undocumented in source.
Meta
Source
See Implementation
analysis
config
functions
defaultStaticAnalysisConfig
structs
StaticAnalysisConfig