Class WorkspaceVerifier

java.lang.Object
network.ike.plugin.ws.verify.WorkspaceVerifier

public final class WorkspaceVerifier extends Object
Workspace-wide verification — the read-only logic formerly in the retired ws:verify goal (IKE-Network/ike-issues#393). Now invoked by ws:scaffold-draft as part of its drift report.

Each verifyXxx method translates one check from the original mojo. The verifyParentAlignment() check was intentionally dropped during the extraction: parent drift is now detected by ParentVersionReconciler.detect() (one of the workspace-level reconcilers run by ws:scaffold-draft) and would otherwise duplicate that warning.

  • Constructor Summary

    Constructors
    Constructor
    Description
    WorkspaceVerifier(org.apache.maven.api.plugin.Log log, network.ike.workspace.WorkspaceGraph graph, File root, Path manifestPath, boolean checkConvergence, boolean workspaceMode)
    Construct a verifier bound to a single workspace.
  • Method Summary

    Modifier and Type
    Method
    Description
    Run every verification check; returns the row data the caller uses to render its markdown report.

    Methods inherited from class Object

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

    • WorkspaceVerifier

      public WorkspaceVerifier(org.apache.maven.api.plugin.Log log, network.ike.workspace.WorkspaceGraph graph, File root, Path manifestPath, boolean checkConvergence, boolean workspaceMode)
      Construct a verifier bound to a single workspace.
      Parameters:
      log - Maven logger for streaming check output
      graph - the workspace graph (already loaded by caller)
      root - workspace root directory
      manifestPath - path to workspace.yaml
      checkConvergence - run the slow transitive-convergence check
      workspaceMode - true when running inside a workspace; false for a bare repo
  • Method Details

    • runAllChecks

      public List<String[]> runAllChecks() throws org.apache.maven.api.plugin.MojoException
      Run every verification check; returns the row data the caller uses to render its markdown report. Also logs check progress and outcomes to the Log passed in the constructor.
      Returns:
      per-check {label, status} rows
      Throws:
      org.apache.maven.api.plugin.MojoException - if a verification step fails irrecoverably