Re: Empty line check
mgryszko <[email protected]> Fri, 6 Feb 2009 11:32:53 -0800 (PST)
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Exactly, I mean one or more consecutive lines. Is there a way to differentiate between methods and e.g. class members? AbstractFileSetCheck gets a File array as input. Marcin Lars Kühne-3 wrote: > > On Fri, Feb 6, 2009 at 12:57 PM, mgryszko wrote: > >> >> Hi, >> >> As far I know from the documentation there is no check that checks if >> there >> is more than 1 empty line in a method or class definition. >> >> Has anybody already wrote such a check? I'd like to include it in a >> project >> I'm currently in; I hate seeing 6-8 empty lines just because somebody >> doesn't bothet to write clean code. >> >> Best, >> >> Marcin >> > > Correct, there is no such check in the checkstyle distribution. I assume > you > mean more then 1 *consecutive* empty line? Anyway, if no one has this > check > already, this is super-easy to write as a FileSetCheck: > http://checkstyle.sourceforge.net/writingchecks.html#Writing%20FileSetChecks > . > > Cheers, > Lars > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Checkstyle-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/checkstyle-user > > -- View this message in context: http://www.nabble.com/Empty-line-check-tp21871096p21879217.html Sent from the CheckStyle - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Checkstyle-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user