Class FixRobotReportCommand

java.lang.Object
org.incenp.obofoundry.odk.BasePlugin
org.incenp.obofoundry.odk.FixRobotReportCommand
All Implemented Interfaces:
org.obolibrary.robot.Command

public class FixRobotReportCommand extends BasePlugin
A command to attempt to automatically fix the trivial issues revealed by the report command.

In the context of this command, “trivial” issues are issues that should not require manual intervention on each affected term. For now, this means the “obsolete missing label” issue and the “lowercase definition” issue.

This requires the report to have been generated with --labels false, so that entities affected by an issue are reported with their ID rather than their label.

  • Constructor Details

    • FixRobotReportCommand

      public FixRobotReportCommand()
  • Method Details

    • performOperation

      public void performOperation(org.obolibrary.robot.CommandState state, org.apache.commons.cli.CommandLine line) throws Exception
      Description copied from class: BasePlugin
      Performs whatever operation the command is supposed to do.
      Specified by:
      performOperation in class BasePlugin
      Parameters:
      state - The internal state of ROBOT.
      line - The command line used to invoke the command.
      Throws:
      Exception - If any error occurs when attempting to execute the operation.