LintRule class

A rule used to validate commit messages.

Constructors

LintRule(String key, {required LintValidator validator, String? invalidMessage, LintInvalidMessage? invalidMessageFn})
Creates a LintRule
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
A unique identifier for this rule
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator LintValidator
The validator function for this rule
final

Methods

invalidMessage(LintContext context) String
Generate an message when the message does not pass this rule.
isValid(LintContext context) bool
Checks whether the provided context (specifically LintContext.message) is valid
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited