Open Bartleby2718 opened 4 months ago
Not sure I like this one.
The first allows adding a TestCase(3,4)
.
Once refactored with this CodeFix that is no longer possible.
@manfred-brands Sure, but once you've added all test cases, would you still want a common parameter?
The idea of the proposed diagnostic is basically the same as Remove unused parameter (IDE0060). This may be annoying during development (as are many other style rules that are enabled in this repository), but once you're done writing tests, this diagnostic should help improve the readability of the code.
Let me know what you think!
Another pet peeve of mine.
can be simplified to
This reduces an unnecessary variable, helping you focus on what's important. (If you don't want a literal, you can use a
const
as opposed to a variable.)