dlang-community / D-Scanner

Swiss-army knife for D source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing unused parameter warning for `ref` parameter

andy-hanson opened this issue · comments

When I run dub run dscanner -- --styleCheck app.d on this code, there is only a warning for the parameter passed by-value.

private:
void f(ref int i) {}
void g(int j) {}

Output:

app.d(3:12)[warn]: Parameter j is never used.

i is similarly unused, so I would expect to get a warning for it too.