'Is there a Checkstyle Formatter Maven plugin to format according to custom Checkstyle rules?

Is there a Maven plugin to format source code according to a custom Checkstyle configuration?

I would like to know if there is something similar to Spotless mvn spotless:apply command but for Checkstyle (without relying on an IDE plugin).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source