How to define a sourceSets for checkStyle plugin, as I only want to include part of the main source set

Or alternatively can I exclude any sub directories for the checkstyle sourceSets?