• Public
  • Public/Protected
  • All

Register a AutoCodeInspection that can run against any number of projects. Include an optional react method that can react to review results.

Type parameters

  • R





Optional autoSubmit

autoSubmit: boolean

Configure command to submit without confirmation

Optional description

description: string

Description of the command


inspection: CodeInspection<R, PARAMS>

Inspection function to run on each project

Optional intent

intent: string | string[]

Intent or list of intents. What you need to type to invoke the command, for example via the bot.


name: string

Name of the command

Optional parameterStyle

parameterStyle: ParameterStyle

Configure strategy on how to prompt for parameters in chat or web

Optional parameters

parameters: ParametersDefinition<PARAMS>

Define parameters used by this command. Alternative to using paramsMaker: Do not supply both.

Optional paramsMaker

paramsMaker: Maker<PARAMS>

Function to create a parameters object used by this command. Empty parameters will be returned by default.


use parameters

Optional projectTest

projectTest: ProjectPredicate

Programmatically limit repositories to inspect, by a project predicate. This can look inside project.

Optional registerWhen

registerWhen: function

If provided, select when this command is registered. Enables conditional registration on SDM startup, based on configuration, environment variables etc. This method is invoked during SDM startup.


Type declaration

Optional repoFilter

repoFilter: RepoFilter

Additionally, programmatically limit repositories to inspect, by id

Optional repoFinder

repoFinder: RepoFinder

Optional repoLoader

repoLoader: function

Type declaration

    • (p: PARAMS): RepoLoader
    • Parameters

      • p: PARAMS

      Returns RepoLoader

Optional tags

tags: string | string[]

Tags associated with this command. Useful in searching.

Optional targets

targets: Maker<RepoTargets>

Allow customization of the repositories that an inspection targets.


Optional onInspectionResults

Generated using TypeDoc