CheckStyle add file to check

Hi there,

Is possible to pass a file name to gradle task checkstyle of the CheckStyle plugin to validate only the file ?
It is useful when adding new checks.

Thanks in advance.

I don’t think there is some built-in facility for that.
You probably have to check some project property and if it is set, configure an include on the task.
Then you can restrict by specifying that file as -P option on the commandline.