Intellij Style/* and Metrics/* Inspections
Answered
After restarting my IDE, I'm now getting warnings in many places for different "inspections". I'm currently writing Ruby code.
On mouseover I'm getting messages such as 'favor `unless` over `if` for negated conditions. [Style/NegatedIf]' and 'method has too many lines [55/10] [Metrics/MethodLength]'
I can't seem to find where these inspections are coming from, they don't seem to be anything that is configurable within code style nor in inspections.
Any ideas on how I could disable these?
Thanks!
Please sign in to leave a comment.
Alt+Enter on the highlighted code and you can navigate to the inspection settings from the right arrow menu.
See also https://www.jetbrains.com/help/idea/suppressing-inspections.html.
This is all that comes up, if I disable this intention, then the ability to alt-enter goes away for this, but the warning remains.
Try disabling RuboCop inspection:
Yes! That fixed it! perfect! thank you so much :)
See also https://youtrack.jetbrains.com/issue/RUBY-19885.