Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GitCommitMessageValidator

Hierarchy

  • GitCommitMessageValidator

Index

Constructors

Properties

MAX_CHARS_PER_LINE: 72 = 72

Methods

  • isLineValid(line: string, index: number): undefined | Readonly<{ message: string; status: ScmInputIssueType }>
  • maxCharsPerLine(): number
  • validate(input: undefined | string): MaybePromise<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 }>>