D-Scanner
D-Scanner copied to clipboard
mismatched_args_check: Line 18446744073709551615
Checking the file https://github.com/adamdruppe/arsd/blob/master/vorbis.d will produce following finding:
{
"key": "dscanner.confusing.argument_parameter_mismatch",
"name": "mismatched_args_check",
"fileName": "./gen/tmp/user.home/dub/packages/arsd-official-3.0.1/arsd-official/vorbis.d",
"line": 18446744073709551615,
"column": 18446744073709551615,
"message": "Argument 5 is named 'n', but this is the name of parameter 1"
}
The line and columns are wrong and causing and JSONException while trying to get them using .integer
Looks like size_t.max
. Could be either a bug in the lexer or a bug in the argument check.
there was a bug in the argument check, fixed in https://github.com/dlang-community/D-Scanner/commit/5c2035ff764d1985207a8cabec4ea948b75a8287#diff-141b2de389c2d37db8d53d877bf262271372d8166f6bd6525c996c03bac327d3R64