Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I run a different checkstyle on tests?

Amedee Van Gasse January 10, 2017

When using the hook Checkstyles for Bitbucket Server (at.apogeum.bitbucket.checkstyle), it checks all files in an equal way.

How do I run a different (less strict) checkstyle on test classes, or disable checkstyle alltogether on test?

1 answer

Amedee Van Gasse January 20, 2017

That Stack Overflow post appears to answer a different question. Please elaborate why you think that this answers my question.

pswrdf January 22, 2017

This post answers to your question: "disable checkstyle alltogether on test?". You should put 

//CHECKSTYLE:OFF

before the code which should be ingored by checkstyle. How run different checkstyle on particular classes I don't know, but this link might be a start point.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events