Add function name to B008 message

This commit is contained in:
Charlie Marsh 2022-11-12 16:53:13 -05:00
parent 695b06ba60
commit 9ec7e6bcd6
5 changed files with 43 additions and 23 deletions

View file

@ -75,7 +75,7 @@ where
&& !is_nan_or_infinity(func, args)
{
self.checks.push((
CheckKind::FunctionCallArgumentDefault,
CheckKind::FunctionCallArgumentDefault(compose_call_path(expr)),
Range::from_located(expr),
))
}