CheckupTaskRunner
CheckupTaskRunner
Class that is able to run a list of checkup tasks.
Kind: global class
- CheckupTaskRunner
- new CheckupTaskRunner(options)
- .taskErrorKind โ
ErrorKind
- .hasTaskFilter โ
boolean
- .getAvailableTasks() โ
new CheckupTaskRunner(options)
Create a CheckupTaskRunner.
Param | Type | Description |
---|---|---|
options | RunOptions | run options that may specify the following items: |
options.cwd | string | The path referring to the root directory that Checkup will run in |
options.config? | CheckupConfig | Use this configuration, overriding .checkuprc if present. |
options.configPath? | string | Use the configuration found at this path, overriding .checkuprc if present. |
options.categories? | Array.<string> | Runs specific tasks specified by category. Can be used multiple times. |
options.excludePaths? | Array.<string> | Paths to exclude from checkup. If paths are provided via command line and via checkup config, command line paths will be used. |
options.groups? | Array.<string> | Runs specific tasks specified by group. Can be used multiple times. |
options.listTasks? | boolean | If true, list all available tasks to run. |
options.tasks? | Array.<string> | Runs specific tasks specified by the fully qualified task name in the format pluginName/taskName. Can be used multiple times. |
options.pluginBaseDir? | string | The base directory where Checkup will load the plugins from. Defaults to cwd. |
checkupTaskRunner.taskErrorKind โ ErrorKind
Get the task's error kind
Kind: instance property of CheckupTaskRunner
checkupTaskRunner.hasTaskFilter โ boolean
Check if user provides task filter by using task, category or group
Kind: instance property of CheckupTaskRunner
checkupTaskRunner.getAvailableTasks() โ
Get a list of task names that are able to run.
Kind: instance method of CheckupTaskRunner
Returns: - a list of fully qualified task names.