Class SpotlessCheckMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="check",
          defaultPhase=VERIFY,
          threadSafe=true)
    public class SpotlessCheckMojo
    extends AbstractSpotlessMojo
    Performs code formatting analysis and prints all violations to the console. Fails the build if violations are discovered.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void process​(java.lang.Iterable<java.io.File> files, Formatter formatter, UpToDateChecker upToDateChecker)  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpotlessCheckMojo

        public SpotlessCheckMojo()
    • Method Detail

      • process

        protected void process​(java.lang.Iterable<java.io.File> files,
                               Formatter formatter,
                               UpToDateChecker upToDateChecker)
                        throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        process in class AbstractSpotlessMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException