Class GitCommitMessageValidator

Constructors

Properties

MAX_CHARS_PER_LINE: 72 = 72

Methods

  • Parameters

    • line: string
    • index: number

    Returns undefined | Readonly<{
        message: string;
        status: ScmInputIssueType;
    }>

  • Validates the input and returns with either a validation result with the status and message, or undefined if everything went fine.

    Parameters

    • input: undefined | string

    Returns MaybePromise<undefined | Readonly<{
        message: string;
        status: ScmInputIssueType;
    }>>