@elsikora/git-branch-lint
Version:
Lint your git branch names
31 lines (30 loc) • 803 B
TypeScript
/**
* 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 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);
}