Boolean parameters in methods. Why not?
-
12-11-2019 - |
Question
I'm using reek
as an analyzing tool for best practices in my code. However recently I found that if in the method, I have boolean parameters, such as.
def method (flag = true)
reek
gives me a warning. Why does reek
tell me that it is a warning?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow