diff options
| author | Eugen Wissner <belka@caraus.de> | 2017-07-14 00:05:13 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2017-07-14 00:05:13 +0200 |
| commit | e6b91f70cb478ff17778dab00c2115a4d8e90cb8 (patch) | |
| tree | 14df3b9eed1ed83b4d112280f02eecc6cca55d18 /dscanner.ini | |
| parent | 657f4a60d51766b7474d588d16918b7cba8dee00 (diff) | |
| download | tanya-e6b91f70cb478ff17778dab00c2115a4d8e90cb8.tar.gz | |
Add style checking
A lot of tests are disabled. They should be enabled successively.
Diffstat (limited to 'dscanner.ini')
| -rw-r--r-- | dscanner.ini | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/dscanner.ini b/dscanner.ini new file mode 100644 index 0000000..947e482 --- /dev/null +++ b/dscanner.ini @@ -0,0 +1,81 @@ +; Configure which static analysis checks are skip-unittest +[analysis.config.StaticAnalysisConfig] +; Check variable, class, struct, interface, union, and function names against t +; he Phobos style guide +style_check="disabled" +; Check for array literals that cause unnecessary allocation +enum_array_literal_check="skip-unittest" +; Check for poor exception handling practices +exception_check="skip-unittest" +; Check for use of the deprecated 'delete' keyword +delete_check="skip-unittest" +; Check for use of the deprecated floating point operators +float_operator_check="skip-unittest" +; Check number literals for readability +number_style_check="disabled" +; Checks that opEquals, opCmp, toHash, and toString are either const, immutable +; , or inout. +object_const_check="disabled" +; Checks for .. expressions where the left side is larger than the right. +backwards_range_check="skip-unittest" +; Checks for if statements whose 'then' block is the same as the 'else' block +if_else_same_check="skip-unittest" +; Checks for some problems with constructors +constructor_check="skip-unittest" +; Checks for unused variables and function parameters +unused_variable_check="disabled" +; Checks for unused labels +unused_label_check="skip-unittest" +; Checks for duplicate attributes +duplicate_attribute="skip-unittest" +; 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="disabled" +; Checks for methods or properties whose names conflict with built-in propertie +; s +builtin_property_names_check="skip-unittest" +; Checks for confusing code in inline asm statements +asm_style_check="skip-unittest" +; Checks for confusing logical operator precedence +logical_precedence_check="skip-unittest" +; Checks for undocumented public declarations +undocumented_declaration_check="disabled" +; Checks for poor placement of function attributes +function_attribute_check="skip-unittest" +; Checks for use of the comma operator +comma_expression_check="skip-unittest" +; Checks for local imports that are too broad +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="skip-unittest" +; Checks for redundant parenthesis +redundant_parens_check="skip-unittest" +; Checks for mismatched argument and parameter names +mismatched_args_check="skip-unittest" +; Checks for labels with the same name as variables +label_var_same_name_check="disabled" +; Checks for lines longer than 120 characters +long_line_check="skip-unittest" +; Checks for assignment to auto-ref function parameters +auto_ref_assignment_check="disabled" +; Checks for incorrect infinite range definitions +incorrect_infinite_range_check="skip-unittest" +; Checks for asserts that are always true +useless_assert_check="skip-unittest" +; Check for uses of the old-style alias syntax +alias_syntax_check="disabled" +; Checks for else if that should be else static if +static_if_else_check="skip-unittest" +; Check for unclear lambda syntax +lambda_return_check="skip-unittest" +; Check for auto function without return statement +auto_function_check="skip-unittest" +; Check for sortedness of imports +imports_sortedness="disabled" +; Check for explicitly annotated unittests +explicitly_annotated_unittests="disabled" +; Check for useless usage of the final attribute +final_attribute_check="skip-unittest" |
