Re: SeverityLevel and Custom Checks

Lars Ködderitzsch <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Hi,

I can answer for the Eclipse plugin related parts.

1. Eclipse itself supports only the same 3 levels of severity for 
resource markers (info, warning, error - see 
org.eclipse.core.resources.IMarker). This means a tight integration of 
additional severity value seems not easily possible.
One could work around a bit by coding the additional error severity into 
the violation message (ugly, I know).

2. Custom checks can be integrated with the eclipse-cs plugin, two 
supported ways to do this are described here:
http://eclipse-cs.sourceforge.net/extending_custom_checks.html
and
http://eclipse-cs.sourceforge.net/extending_fragments.html

The cleanest way to go would be via the fragment approach, you can even 
provide a update site for your custom checks.


Regards,
Lars Ködderitzsch
eclipse-cs dev


Hans-Jurgen Greiner schrieb:
> All,
> 
> I have two questions here - Both in the end result in updating plug-in 
> entries
> 1. I see the SeverityLevel being quite simply 4 discretes and that the class 
> implements a TypeSafe enum pattern.  In our softweare development we 
> actually take the "Error" levels slightly more granular, or in other words, 
> we have the info, warning, error, and then in addition to that we have sev4, 
> sev3, sev2 and sev1 errors.  I can obviously update the class and be good on 
> the command line version and this works great for the configuration 
> management(we are slowly migrating to Maven), My question is more on the 
> Eclipse IDE plug-in side for where I would like to have the same concept for 
> each developer using the plug-in, - However I cannot seem to make this work.
> 
> 2.  Now in the case where we write custom checks, again, i can make it all 
> work on the command line no problems. It is when I try to include the new 
> checks into the plug-in and add the new xml configuration, I am getting 
> several errors.
> 
> Any help is greatly appreciated
> 
> 
> Hans-Jurgen Greiner
> [email protected]
> 
> _________________________________________________________________
> Puzzles, trivia teasers, word scrambles and more. Play for your chance to 
> win! http://club.live.com/home.aspx?icid=CLUB_hotmailtextlink
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.