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?
http://stackoverflow.com/questions/4023185/how-to-disable-a-particular-checkstyle-rule-for-a-particular-line-of-code
That Stack Overflow post appears to answer a different question. Please elaborate why you think that this answers my question.
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.
It looks like you're new here. Sign in or register to get started.