Linking Error Highlight presets to codebase

I had an idea for a feature, but I'm not sure if anyone else would find it useful. I thought I would bounce it off the group before submitting it to the tracker:

I've been waiting for quite a while for error highlighting presets. Basically, I have several trees of code. Only a few are mine, others are managed by other groups in the company. I would like to create two presets for error highlighting (strict, and lite). This is apparently possible in the latest EAP (haven't upgraded yet). What I would like to do now, is assign a preset to a code tree. Basically, I would like to apply strict highlighting to my code, and less strict highlighting to everyone else's code.

Now that the presets are available, it seems like this could be done in a plugin. I wasn't sure if I'm a special case, or if this would be of interest to others. If it is, should it be submitted as a feature request, or would it be better as a plugin?

4 comments
Comment actions Permalink

+10

I like my code clean, but there's no way I can clean up my coworkers' code, which is decidedly nasty at times.

0
Comment actions Permalink

+1
That would be a great addition to the new error profiles. I think there was a thread before about having keybindings to switch between different profiles, but this would be even better.

You would just set it and forget it, and it would work automatically. Having to manually press a key to switch profiles would be annoying, but with an auto-select feature I would be more likely to use an aggressive profile for my code, because I would have to worry about the gutter lighting up solid red as soon as I click on someone else's code or some 3rd party source code.

0
Comment actions Permalink

This is aligned with something I've asked for a long time: different settings for library code. IMHO, library sources should be:

1) Read only
2) Not checked for errors

Now, maybe restriction (1) could be relaxed, and (2) could use your suggestion: so, there would be some setting (maybe per library, maybe global) how IDEA would behave on library sources: would you be able to edit it? If yes, what kind of error checking should be done?

0
Comment actions Permalink

I looked into implementing this myself as a plugin. It doesn't look like the plugin api will let me handle this on my own, so I submitted it as a feature request. If this is helpful to you, use your votes:
http://www.intellij.net/tracker/idea/viewSCR?publicId=42248

0

Please sign in to leave a comment.