Re: Empty line check

Lars Kühne <[email protected]> Fri, 6 Feb 2009 20:16:05 +0100
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
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