History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-2928
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: Keith Lea
Votes: 1
Watchers: 1
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Allow user to specify that certain inspections be run upon compilation and printed as compilation warnings

Created: 07 May 05 23:19   Updated: 23 May 05 20:25
Component/s: Compiling Project
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-2173 inspection option: stopClassCompilati... Normal Resolved

Build: 3,326
Severity: Medium


 Description  « Hide
Some inspections are too important to only show while editing an affected file or running a project inspection. I suggest adding a new inspection profile called "Compile-Time Inspections", whose associated checked inspections will be run on every file at compilation time.

 All   Comments   Work Log   Change History      Sort Order:
Maxim Shafirov - 07 May 05 23:48
That'll probably take a while. I won't use that for sure.

Keith Lea - 08 May 05 00:06
It seems to me that it could be implemented fairly easily. I do something similar for my nonnull plugin.

I request this feature because I hardly ever run project inspections because they turn up so many false positives (or real positives that I don't care about), and I don't want to clutter my code with @noinspection comments. So, I haven't gotten into the habit of running inspections.

However, if it were integrated into the build process, and thus didn't require any extra work (that is, I didn't need to click Analyze and then a few OK buttons) there are probably some "probable bug" inspections that I would enable for it.


Maxim Shafirov - 08 May 05 00:16
I didn't mean it will take a while implementing but rather will slow down compilation process significantly thus getting into my way developing.

Alain Ravet - 23 May 05 20:06
Maxim,

> .. will slow down compilation process significantly

I know the only accurate/safe way is to run a full project inspection before each compilation, but I'd already be happy with a lesser version:

  • after an initial full project inspection, only inspect the modified classes;

Keith Lea - 23 May 05 20:25
I wonder if it would help all inspections performance if there were a means of specifying dependencies of an inspection. For example, "for replaceable by foreach" does not depend on anything but local code, so IDEA could know that it does not need to be inspected. However, it might be that the work required to implement such a feature would be too much to be worth the effort (for example, for Alain's @ReadOnly inspection, there must be some way to specify that the inspection depends on field references.