DEV Community

Discussion on: Enforcing Java Coding Styles

Collapse
 
ketiko profile image
Ryan Hansen • Edited

That is another great way to do it! Doing it in the verify phase is specifically where maven defines running these types of checks. However I like to run these checks early in the CI and fail fast before waiting for all my tests to run in the phases preceding verify. If you don't have a preference on the order in your CI then I would definitely recommend doing like you suggest. I should have called out the reasons why I chose this way. Thanks for the question!