Join Slack
Powered by
IIRC we don’t have a list of rules that rely on ty...
# detekt
g
gammax
03/31/2020, 2:10 PM
IIRC we don’t have a list of rules that rely on type resolution. As a rule of thumb, if they contain this line:
Copy code
if (bindingContext == BindingContext.EMPTY) return
in the body of the rule source code, they need type resolutions to work. They will be skipped otherwise.
d
dead.fish
03/31/2020, 2:19 PM
Ok, seems to mention 11 rules so far, unfortunately rather interesting ones...
https://github.com/arturbosch/detekt/search?q=%22if+%28bindingContext+%3D%3D+BindingContext.EMPTY%29+return%22&unscoped_q=%22if+%28bindingContext+%3D%3D+BindingContext.EMPTY%29+return%22
dead.fish
03/31/2020, 2:20 PM
This is quite new, isn't it? I vaguely remember that there was once an implementation of these rules that didn't need any special setup. But then again, I might have been used my own Gradle tasks back in the day.
12
Views
Open in Slack
Previous
Next