UNPKG

@elsikora/git-branch-lint

Version:
37 lines (36 loc) 1.02 kB
/** * Base error class for branch linting errors */ export declare class LintError extends Error { constructor(message: string); } /** * Error thrown when branch name is too long */ export declare class BranchTooLongError extends LintError { constructor(branchName: string, maxLength: number); } /** * Error thrown when branch name is too short */ export declare class BranchTooShortError extends LintError { constructor(branchName: string, minLength: number); } /** * Error thrown when a branch placeholder pattern in config is invalid. */ export declare class InvalidBranchPatternConfigError extends LintError { constructor(placeholderName: string, patternSource: string); } /** * Error thrown when branch name doesn't match the pattern */ export declare class PatternMatchError extends LintError { constructor(branchName: string); } /** * Error thrown when branch name is prohibited */ export declare class ProhibitedBranchError extends LintError { constructor(branchName: string); }