Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I suppress errors in IntelliJ Idea 12

I have lots of errors regarding background images in css. This is because deployment relative paths will be different from my dev environment.

These are inconsequential errors that I know I can't do anything about. I would like to turn off checking for this so that real errors are noticeable again.

I checked in the settings and project structure and didn't see anything promising, but I can't help thinking i read about how to do this somewhere before.

like image 823
davidjmcclelland Avatar asked Feb 26 '13 19:02

davidjmcclelland


People also ask

How do I highlight errors in IntelliJ?

Configure error highlightingPress Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | General. You can also configure highlighting from inspection settings: go to Editor | Inspections, click any enabled inspection, and from the Highlighting in editor list, select Edit Highlighting.

How do I fix my IntelliJ idea?

From the main menu, select File | Repair IDE. IntelliJ IDEA will automatically launch the first recovery step and refresh the virtual file system. IntelliJ IDEA will display a notification that you can use to continue or complete the recovery process.


1 Answers

Found a potential answer while writing the question: Menu--> Analyze - analyze a document that has the unwanted error flagged. Then in Inspection Results, click the wrench and uncheck the Inspection you do not want to run. In my case this was under CSS, uncheck Unknown file or directory.

I also noticed this icon of a guy wearing a bowler hat with his back to you (wow) that, when clicked, can turn off redlining for a very specific error instance. This appears to also apply to any other document in the project with the same exact error. That's a bonus since I know the paths that are supposed to be used and just turn the error off for them and detect incorrect paths in my strange dev setup.

like image 136
davidjmcclelland Avatar answered Sep 27 '22 19:09

davidjmcclelland