D-Scanner icon indicating copy to clipboard operation
D-Scanner copied to clipboard

mismatched_args_check: Line 18446744073709551615

Open andre2007 opened this issue 4 years ago • 1 comments

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

andre2007 avatar Sep 04 '19 12:09 andre2007

Looks like size_t.max. Could be either a bug in the lexer or a bug in the argument check.

Hackerpilot avatar Sep 04 '19 20:09 Hackerpilot

there was a bug in the argument check, fixed in https://github.com/dlang-community/D-Scanner/commit/5c2035ff764d1985207a8cabec4ea948b75a8287#diff-141b2de389c2d37db8d53d877bf262271372d8166f6bd6525c996c03bac327d3R64

WebFreak001 avatar Jul 11 '23 18:07 WebFreak001