6

Is there a way to disable code analysis (the light bulb) in IntelliJ? I really don't care about code improvement suggestions as I'm viewing some third party code. I've already unchecked everything single feature in Project Settings -> Inspections.

I'm using IntelliJ 10.5 to edit ActionScript code.

Steve Kuo
  • 61,876
  • 75
  • 195
  • 257

4 Answers4

14

On the status bar, there is a little icon showing a man. If you click on it, you can change the inspection level: nothing, syntax, full analysis.

jackrabbit
  • 5,525
  • 1
  • 27
  • 38
  • I have "Highlighting Level" set to "None" and it still shows some light bulbs (Create Setter for). I've seen the same problem with warnings - setting the slider to None still shows some warnings. My only guess is that it's a bug in IntelliJ. See my how to disable warnings question http://stackoverflow.com/questions/7110460/intellij-disable-warnings – Steve Kuo Aug 19 '11 at 15:53
  • 1
    This only affects the particular intention which is causing the highlighting. The same line (or even variable) may have several things 'wrong' with it. – CrackerJack9 Aug 19 '11 at 15:55
  • So I have the light bulb selected, then I go to little man and Highlighting Level is still set to None. Is there someway to just disable this "feature" all together? – Steve Kuo Aug 19 '11 at 15:59
  • This is the best answer i found in this topic. – Karan Apr 05 '15 at 08:41
3

To disable inspections:

Settings > Project Settings > Inspections

Click the 'Reset to empty' icon (looks like an eraser)

To disable intentions:

Settings > IDE Settings > Intentions

Uncheck all of the boxes here

CrackerJack9
  • 3,650
  • 1
  • 27
  • 48
  • It still shows warnings (see http://stackoverflow.com/questions/7110460/intellij-disable-warnings) but the intentions are truly disabled. – Steve Kuo Aug 19 '11 at 16:05
  • Try closing IntelliJ and re-opening it after you make the changes to these settings. They may be cached. If they still appear, can you provide an example of a warning it shows? – CrackerJack9 Aug 19 '11 at 16:06
  • "Incorrect parameter name" on Flex's ListBase (ActionScript file in Flex SDK 4.1 frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as). It's warning that the ASDoc (similar to JavaDoc) parameter name doesn't match the actual method signature. – Steve Kuo Aug 19 '11 at 16:11
  • maybe similar, but in Java classes, it warns "Cannot resolve symbol" for unresolved references inside a javadoc. But this is an Inspection under Javadoc issues. Do you have an ASDoc issues inspection? – CrackerJack9 Aug 19 '11 at 16:26
  • There is no ASDoc inspection. However, ActionScript seems to be lumped in with JavaScript support. I found and disabled "JavaScript Intention Power Pack" in Plugins but it still gives me warnings. – Steve Kuo Aug 19 '11 at 16:34
  • Close / reopen / synchronize the file each time, just to make sure it's reinspecting. Also, try searching for 'Incorrect parameter name' in the Intentions and Inspections dialogs. I do not have such a warning, but I also do not have "JavaScript Intention Power Pack" – CrackerJack9 Aug 19 '11 at 16:41
  • Parameter names are also governed by the code style settings. Maybe something is still off there. – jackrabbit Aug 19 '11 at 21:47
  • I still get random light bulbs, probably related to the warnings that can't be disabled. I am convinced IntelliJ is buggy. – Steve Kuo Aug 30 '11 at 17:50
  • and without details, no one here will be able to help. what warnings are still displayed? – CrackerJack9 Aug 30 '11 at 17:53
2

I have concluded that it's not possible to completely disable Inspections in IntelliJ 10.5 (at least while editing ActionScript) possibly due to a bug.

Follow-up: IntelliJ support is saying this may be a bug.

Edit April 2017: Finally there is a workaround, in particular add:

<option name="SHOW_INTENTION_BULB" value="false" />

to IdeaIC2017.1/options/editor.xml. If there's no editor.xml then create a new one as such:

<application>
  <component name="EditorSettings">
    <option name="SHOW_INTENTION_BULB" value="false" />
  </component>
</application>
Steve Kuo
  • 61,876
  • 75
  • 195
  • 257
0

I believe you're looking for "Intentions", not "Inspections", though I don't know a way to turn them of globally.

Ryan Stewart
  • 126,015
  • 21
  • 180
  • 199