The following unittest (in std.format) was rejected by the style checker: @safe pure unittest { enum A { one, two, three } string t2 = format("[%10s] [%-10s]", cast(A) 10, cast(A) 10); assert(t2 == "[ cast(A)10] [cast(A)10 ]"); } The problem is the cast(A)10 inside the string.
Sorry to hear this, but this issue should be moved to the Dscanner repository. BTW for a spurious detection, you can selective disable a test for a module via the .dscanner.ini file in phobos.
Sorry, moved back. According to the discussion in the Dscanner repository [1], it's not related to Dscanner but just a wrong grep. [1] https://github.com/dlang-community/D-Scanner/issues/781 But maybe, "tools" is the wrong component and it should be "phobos"?
Not a tools issue, closing