Following my last post, on changing the Highlighting for Warnings, I have now discovered that I can upgrade the alert generated by the code inspector.
I still have the basic problem, that I am passing the wrong variable into a method call.
And I expect my IDE to highlight it as a serious error, not a warning.
So, goto:
Settings > Inspections
Groovy > Assignment issues
Incompatible type assignments
And change Warning to Error in the Severity options.
Now, if I make the same mistake, it is immediately highlighted in my code.
No comments:
Post a Comment