Home Regex for a proper closure of checkstyle
Reply: 0

Regex for a proper closure of checkstyle

user392
1#
user392 Published in May 26, 2018, 11:33 pm

Is there a way to create a regex, that will check for proper 'closure' of a checkstyle (which begins with //)?

// CHECKSTYLE:OFF
protected void doSomething() {

}
// CHECKSTYLE:ON

// CHECKSTYLE:OFF
protected void doSomethingElse() {
// CHECKSTYLE:ON
}

If there is a typo in the first CHECKSTYLE:ON, the rest of checkstyles will be ignored.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.299654 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO