11; Configure which static analysis checks are enabled
2- [dscanner. analysis.config.StaticAnalysisConfig]
2+ [analysis.config.StaticAnalysisConfig]
33; Check variable, class, struct, interface, union, and function names against
44; the Phobos style guide
55style_check =" enabled"
@@ -95,6 +95,8 @@ has_public_example="enabled"
9595assert_without_msg =" skip-unittest"
9696; Check indent of if constraints
9797if_constraints_indent =" enabled"
98+ ; Check for @trusted applied to a bigger scope than a single function
99+ trust_too_much =" enabled"
98100
99101; Configure which modules are checked with a specific checker
100102; Please help to extend these checks onto more Phobos modules
@@ -108,7 +110,7 @@ if_constraints_indent="enabled"
108110;
109111; Some checks are currently disabled.
110112; For more details, please see https://github.com/dlang/phobos/pull/5501
111- [dscanner. analysis.config.ModuleFilters]
113+ [analysis.config.ModuleFilters]
112114; Check for uses of the old-style alias syntax
113115alias_syntax_check =" -std.traits,-std.typecons"
114116; Check allman brace style
@@ -491,3 +493,5 @@ unused_variable_check="-std.algorithm.comparison,\
491493-std.zlib"
492494; Check for virtual calls in the class constructors
493495vcall_in_ctor =" -std.socket,-std.xml"
496+ ; Check for @trusted applied to a bigger scope than a single function
497+ trust_too_much =" -std.math,-std.typecons,-std.regex,-std.stdio,-std.uni,-std.internal.cstring"
0 commit comments