i’m being a bit brain-foggy this morning, so maybe someone can point me in the right direction. I’m tidying up some spaghetti - there used to be (i swear) an inspection that highlighted where the arguments to a class or function were redundant because they were identical to the defaults, but I can’t see or find it anywhere, was this my imagination?
w
wasyl
07/04/2024, 9:48 AM
Never seen such inspection but if it exists I'd def want to use it. Perhaps it came from some 3rd party plugin?
c
CLOVIS
07/04/2024, 10:21 AM
I've seen it as well, so I can confirm it exists, but I don't know how it's named or how to trigger it 🤔
❤️ 1
w
wasyl
07/04/2024, 10:27 AM
thank you mr Claude 🎉 It's called
redundant value argument
and it seems disabled by default (or at least for me)
❤️ 1
c
CLOVIS
07/04/2024, 10:28 AM
Maybe it's recent that it's disabled by default, I've definitely seen it before