text_lint.operations.validators.bases.validator_base.ValidatorBase

class text_lint.operations.validators.bases.validator_base.ValidatorBase(name: str)[source]

Bases: OperationBase[states.ValidatorState], ABC

Validation operation base class.

class Parameters[source]

Bases: object

Parameter validation for this operation.

__init__(name: str) None[source]

Initialize ValidatorBase instances.

Parameters:

name (str) – The configured name of this validator.

Raises:

TypeError

abstract apply(state: states.ValidatorState) None[source]

Apply this operation to the given state object.

Parameters:

state (states.ValidatorState) – The state object to apply this operation to.