Hi there, is there a rule in detekt that generally checks that operators instead of function calls are used? I.e.
+=
instead of
.add()
,
in
instead of
.contains()
etc? So far I wasn't able to find one.
b
Brais Gabin
02/09/2021, 1:40 PM
There is not. There was an issue asking for a rule like this
Brais Gabin
02/09/2021, 1:42 PM
https://github.com/detekt/detekt/issues/3437 add your point of view there to take a decission if this should be added to the standard rules of detekt or keep it as a custom one