Skip to content

Commit c817bbd

Browse files
authored
Merge pull request #6412 from wilzbach/dscanner-ini
Update Phobos's DScanner to 0.5.0
2 parents 861e65a + 3feb6ae commit c817bbd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.dscanner.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
55
style_check="enabled"
@@ -95,6 +95,8 @@ has_public_example="enabled"
9595
assert_without_msg="skip-unittest"
9696
; Check indent of if constraints
9797
if_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
113115
alias_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
493495
vcall_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"

posix.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ROOT_OF_THEM_ALL = generated
8282
ROOT = $(ROOT_OF_THEM_ALL)/$(OS)/$(BUILD)/$(MODEL)
8383
DUB=dub
8484
TOOLS_DIR=../tools
85-
DSCANNER_HASH=0ef3df1fd63371d9680348a5a45efd8675321ffc
85+
DSCANNER_HASH=7b3542fb6aa5b0cca0552aedc5417211b17b3877
8686
DSCANNER_DIR=$(ROOT_OF_THEM_ALL)/dscanner-$(DSCANNER_HASH)
8787

8888
# Set DRUNTIME name and full path

0 commit comments

Comments
 (0)