Closed sgkim126 closed 9 years ago
I'm a little bit worried to add // scalastyle:ignore null
everywhere. How about implement something like Null
with which is actually null
and use it instead? Then we can just put one // scalastyle:ignore null
in the definition of Null
.
I don't agree with you. If we start to define Null and use it, we have no way to check using null.
Btw, can't we just turn off only null
rule if it's not a big deal? Putting the comments everywhere seems kinda too much.
Only you and I(or someone who is more accustomed with Scala than Java) will develop it, we can turn of null checker. But IMO we should turn on null check to prepare that some day someone who is not familiar with Scala starts to contribute here.
Actually I want to make null checker make error instead of warning.
It's not weird for me that turn off null checker only when using java library.
No way to avoid using null for these cases, because Rhino is Java library and they needs null as an argument.
This is a part of #202