Questions tagged [inspections]

14 questions
5
votes
2 answers

Writing Intelli-J inspections?

How would I go about writing my own Intelli-J inspection? I'm looking for some general guides or resources. I want to bring up an inspection hint every time a collection class is instantiated manually, rather than through the Guava…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
5
votes
3 answers

IntelliJ missing all inspections

I'm having an issue with IntelliJ, that I cannot seem to find a solution for myself. I have not changed any settings, yet when I started my IDE this morning, all Inspections and other highlighting has disappeared. By highlighting, I mean stuff like…
SimonPip
  • 437
  • 7
  • 14
4
votes
0 answers

How to adjust intellij inspections for angularjs / html

I'm writing angularjs app in intellij. In html templates I get a lot of inspection errors/warnings for the correct code): translate="xx.yy.zz.oo" - Wrong attribute value class="row tile-element" - "Expecting new line or a semicolon" (between two…
Aneta Stępień
  • 704
  • 6
  • 20
4
votes
1 answer

Phpstorm - phpDoc inspection - how to force parameter type declaration?

I would like to inspect in PhpStorm if method phpDoc has declared type for each parameter, eg: /** * @param @value **/ public function someMethod($value).... Would be invalid as @param $value is missing type, valid example: /** * @param string…
2
votes
3 answers

Android Studio automatic inspections are disabled

After importing project in Android Studio, the automatic inspections (with android lint) feature is disabled. Code errors are not highlighted like they should be. I made a new project and everything works great in the new one (but I need to use the…
Jesus Christ
  • 457
  • 1
  • 5
  • 10
1
vote
0 answers

Restrict IntelliJ only to only inspect current file

IntelliJ IDEA performs a lot of checks while typing code. This is ok so far but I realized that it is doing this for all visible files. I like to have many files open parallel but this causes my cpu to be high performance heating system. I see a…
Marcel
  • 4,054
  • 5
  • 36
  • 50
1
vote
0 answers

Inspect specific WCF message

I want to inspect certain WCF messages not all. We have some methods with a specific return type. e.g. : MyApplication.Entities.SpecificResponse I know I can clone the messasge, dig into the soap message, but it looks to be expensive to inspect for…
Ahmad Mousavi
  • 533
  • 1
  • 6
  • 17
1
vote
1 answer

IntelliJ structural search regex questions

I need to match variables that start with a lowercase letter and don't end in an underscore. I have these three fields: private String shouldFlag; private String shouldntFlag_; private String SHOULDNTFLAG; With this pattern…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
1
vote
2 answers

Intellij Idea 14 - disable highlighting level messages

I recently moved from Eclipse to Intellij idea and i'm trying to customize it. I was wondering whether is posible to disable the description popup messages on the highlighting level, I don't want to disable the inspections, only the message because…
ILovemyPoncho
  • 2,762
  • 2
  • 24
  • 37
1
vote
1 answer

WebStorm & Editing Inspections

I'm using WebStorm for Ember development. Specifically, I'm our Front-End guy, doing HTML/Handlebars and CSS functionality. I'm tired of WebStorm throwing CSS validation errors on stuff I don't care about, like IE compatibility problems. Further,…
Mike Earley
  • 1,223
  • 4
  • 20
  • 47
0
votes
1 answer

PhpStorm. CodeSniffer. Doesn't see the comment blocks

PHP CodeSniffer doesn't see the doc blocks from PhpStorm inspection, but see them from the CLI. How to fix that? Here is an example. From inspection From CLI
D.R.
  • 2,540
  • 3
  • 24
  • 49
0
votes
2 answers

IDEA disable severity entry in code inspections

is there a way to disable a specified severities visibility for code inspection? The intention is that it is not shown in inspection summaries. I think about a "do not show" warning like in Resharper? -> Resharper-DOC Thanks EDIT: I just don't want…
0
votes
1 answer

Why would IntelliJ IDEA (12.1.6) not be able to resolve BorderFactory.createLineBorder(...)?

Why would IntelliJ IDEA (12.1.6) be unable to resolve the createLineBorder() method from BorderFactory? Here are some screenshots to illustrate the issue: Here, you can see as I type in the method name, IDEA recognizes it as a valid option for…
nihilon
  • 834
  • 2
  • 8
  • 23
-5
votes
2 answers

Intellij IDE, how to disable 'Unexpected Token' warning inspection result

In Intellij IDE, how to disable Unexpected Token warning? I killed every options in inspections menu. But it still tortures me... CSS code:
David H
  • 1
  • 1
  • 2