I work on a project that uses a microservice architecture. We externalized the checkstyle configuration in a separated library, we use IntelliJ and the checkstyle plug in. The checkstyle plug in refers to a static xml file (example of configuration : IntelliJ IDEA code format from checkstyle configuration ) and the configuration of the plug in is automatically is the same for all projects.
When we change the version of our checkstyle configuration, we do not want to adapt the code of all microservices at once and so, at the same time, some services will use the old checkstyle config and some others will use the new one until we upgrade the version.
So, I want to make the checkstyle IntelliJ plug in to refer in every project to the file {project directory}/target/checkstyle-checker.xml and not an unique checkstyle.xml
Does it exist a way to achieve this ? Or at least to make the configuration of the plug in different for all projects ?
Thank you for reading !