davido/gerrit-groovy-plugin — pull request #2 by tobias- (2014-07-23 18:45:01+00:00)
Title: Example with verifying commit by content

It's basically the same as the commit-message-length-validator.jar,
but written in groovy and using the contents of the commit.

This version checks all added lines for "DO_NOT_COMMIT" as I add
that comment on/around all lines where I add stuff (e.g. debug-code)
that shouldn't reach the repo.

This is the first time I do anything with gerrit and I've known groovy for less than two weeks, so please help me improve the "groovyness" and the ease of reading of this class/script.