Files
gitcommiteditor/Options/CommitMessageRules.cs

24 lines
810 B
C#

namespace MarketAlly.GitCommitEditor.Options;
public sealed class CommitMessageRules
{
public int MinSubjectLength { get; set; } = 10;
public int MaxSubjectLength { get; set; } = 72;
public int MinBodyLength { get; set; } = 0;
public bool RequireConventionalCommit { get; set; } = false;
public bool RequireIssueReference { get; set; } = false;
public string[] BannedPhrases { get; set; } =
[
"fix", "wip", "temp", "asdf", "test", "stuff", "things",
"changes", "update", "updates", "misc", "minor", "oops",
"commit", "save", "checkpoint", "progress", "done", "finished"
];
public string[] ConventionalTypes { get; set; } =
[
"feat", "fix", "docs", "style", "refactor", "perf",
"test", "build", "ci", "chore", "revert"
];
}