diff --git a/.dscanner.ini b/.dscanner.ini index cfdfe522f85..aeac4be19a7 100644 --- a/.dscanner.ini +++ b/.dscanner.ini @@ -1,5 +1,5 @@ ; Configure which static analysis checks are enabled -[dscanner.analysis.config.StaticAnalysisConfig] +[analysis.config.StaticAnalysisConfig] ; Check variable, class, struct, interface, union, and function names against ; the Phobos style guide style_check="enabled" @@ -95,6 +95,8 @@ has_public_example="enabled" assert_without_msg="skip-unittest" ; Check indent of if constraints if_constraints_indent="enabled" +; Check for @trusted applied to a bigger scope than a single function +trust_too_much="enabled" ; Configure which modules are checked with a specific checker ; Please help to extend these checks onto more Phobos modules @@ -108,7 +110,7 @@ if_constraints_indent="enabled" ; ; Some checks are currently disabled. ; For more details, please see https://github.com/dlang/phobos/pull/5501 -[dscanner.analysis.config.ModuleFilters] +[analysis.config.ModuleFilters] ; Check for uses of the old-style alias syntax alias_syntax_check="-std.traits,-std.typecons" ; Check allman brace style @@ -491,3 +493,5 @@ unused_variable_check="-std.algorithm.comparison,\ -std.zlib" ; Check for virtual calls in the class constructors vcall_in_ctor="-std.socket,-std.xml" +; Check for @trusted applied to a bigger scope than a single function +trust_too_much="-std.math,-std.typecons,-std.regex,-std.stdio,-std.uni,-std.internal.cstring" diff --git a/posix.mak b/posix.mak index 3cc77892684..4623d5a2174 100644 --- a/posix.mak +++ b/posix.mak @@ -82,7 +82,7 @@ ROOT_OF_THEM_ALL = generated ROOT = $(ROOT_OF_THEM_ALL)/$(OS)/$(BUILD)/$(MODEL) DUB=dub TOOLS_DIR=../tools -DSCANNER_HASH=0ef3df1fd63371d9680348a5a45efd8675321ffc +DSCANNER_HASH=7b3542fb6aa5b0cca0552aedc5417211b17b3877 DSCANNER_DIR=$(ROOT_OF_THEM_ALL)/dscanner-$(DSCANNER_HASH) # Set DRUNTIME name and full path