Topics

Enforcing Checkstyle

Gerard Nugent
 

Hi All,
We (DMaaP DR) are looking at enforcing checkstyle as per the CII Badging requirement. We have checkstyle working using manual steps to add the config and add the pre-commit file to git/hooks. I assume if we documented doing this in our WoW or a projectsetup.md file that would suffice for the requirement. But what we would really like to do is plug in the config and hook when the repo is cloned. Has anyone tried this or succeeded in implementing it?

Best Regards,
Gerard Nugent
Ericsson

Krzysztof Opasiak
 

Hi Gerard,

On 01.08.2019 17:28, gerard.nugent@... wrote:
Hi All,
We (DMaaP DR) are looking at enforcing checkstyle as per the CII Badging
requirement. We have checkstyle working using manual steps to add the
config and add the pre-commit file to git/hooks. I assume if we
documented doing this in our WoW or a projectsetup.md file that would
suffice for the requirement. But what we would really like to do is plug
in the config and hook when the repo is cloned. Has anyone tried this or
succeeded in implementing it?
As far as I remember in some policy repos checkstyle is run on every
build (as one of maven steps) so it's run automaticaly by CI system.

Could you explain why you would like to run this when the repo is cloned
instead of as a part of CI?

Best regards,
--
Krzysztof Opasiak
Samsung R&D Institute Poland
Samsung Electronics