Inspection discrepancy when opening a file vs. running inspections separately

已回答

Hello

I see a difference between running inspections on a file from the actions menu, vs. when I open the file and look at the problems on the top right.

The problems list shows only typos, which are fine, while running inspections on that same files shows 219 `Decleration redundany` warnings.

Am I missing something here?

Thanks


 

0

Hello, it's a bit difference for code editor's inspection and run via action Code | Inspect Code.

Due to performance limitations, not all inspections will be run during the code editing(in the code editor), some inspections are simple and fast enough and are marked that they can be executed on the fly when you type codes; if not, the editor will become very slow and even freeze. When you run action Code | Inspect Code, it is doing a static code analyze, usually very slow and running with a long time. See https://www.jetbrains.com/help/idea/running-inspections.html for some instruction.

0

Thanks Jacky

I thought this request wasnt't open. I think we can close this one since I opened another one here.

In any case - what you suggested is true, but in the screenshot above you can see the file has warnings for files missing the `final` modifier, and that specific warning is also part of the `batch-mode` inspections

0
Ok, thank you, I'll watch the ticket there too.
0

请先登录再写评论。