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!

0
5 comments

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.

0
Avatar
Permanently deleted user


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.

0

Try disabling RuboCop inspection:

1
Avatar
Permanently deleted user

Yes! That fixed it! perfect! thank you so much :)

0

Please sign in to leave a comment.