Class Check

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

    @Mojo(name="check",
          defaultPhase=VERIFY,
          threadSafe=true)
    public class Check
    extends AbstractFMT
    Check mojo that will ensure all files are formatted. If some files are not formatted, an exception is thrown.
    • Constructor Detail

      • Check

        public Check()
    • Method Detail

      • postExecute

        protected void postExecute​(com.spotify.fmt.FormattingResult result)
                            throws org.apache.maven.plugin.MojoFailureException
        Post Execute action. It is called at the end of the execute method. Subclasses can add extra checks.
        Overrides:
        postExecute in class AbstractFMT
        Parameters:
        result - The formatting result
        Throws:
        org.apache.maven.plugin.MojoFailureException - if there is an exception
      • getProcessingLabel

        protected String getProcessingLabel()
        Provides the name of the label used when a non-formatted file is found.
        Specified by:
        getProcessingLabel in class AbstractFMT
        Returns:
        the label to use in the log