mit-commit-message-lints 6.0.12

Check the correctness of a specific commit message. Designed to be used in tools providing commit-msg style hooks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use miette::{Diagnostic, SourceSpan};
use thiserror::Error as ThisError;

#[derive(ThisError, Debug, Diagnostic)]
#[error("could not parse lint configuration")]
#[diagnostic(
    url(docsrs),
    code(mit_commit_message_lints::lints::cmd::read_lint_config::serialise_lint_error),
    help("you can generate an example using `git mit-config lint generate`")
)]
pub struct SerialiseLintError {
    #[source_code]
    pub(crate) src: String,
    #[label("invalid in toml: {message}")]
    pub(crate) span: SourceSpan,
    pub(crate) message: String,
}