This repository was archived by the owner on Jul 16, 2023. It is now read-only.
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
[Rule change] Let ban-name
ban things like DateTime.now
#927
Closed
Description
To allow testability, it would be great to ban all DateTime.now
and use clock.now
instead. Thus, we can extend ban-name
to do so.
What rule do you want to change?
How will the change be implemented? (New option, new default behavior, etc.)?
Please provide some example code that this change will affect:
What does the rule currently do for this code?
What will the rule do after it's changed?
Are you willing to submit a pull request to implement this change?