Struct git_checks::checks::Changelog [−][src]
pub struct Changelog { /* fields omitted */ }Check for changelog modifications.
This checks to make sure that a changelog entry has been added (or modified) in every commit or topic.
Methods
impl Changelog[src]
impl Changelogpub fn new(style: ChangelogStyle) -> Self[src]
pub fn new(style: ChangelogStyle) -> SelfCreate a new changelog check.
ⓘImportant traits for &'a mut Rpub fn required(&mut self, required: bool) -> &mut Self[src]
ⓘImportant traits for &'a mut R
pub fn required(&mut self, required: bool) -> &mut SelfWhether changelog entries are required or not.
Trait Implementations
impl Debug for Changelog[src]
impl Debug for Changelogfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl ContentCheck for Changelog[src]
impl ContentCheck for Changelogfn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, _: &CheckGitContext, content: &Content) -> Result<CheckResult>[src]
fn check(&self, _: &CheckGitContext, content: &Content) -> Result<CheckResult>Run the check.