Rule

io.github.frikit.twirlspec.standards.Rule
See theRule companion class
object Rule

Ways to build and combine rules.

Attributes

Companion
class
Source
Rule.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Rule.type

Members list

Value members

Concrete methods

def apply(id: String, description: String, pageLevel: Boolean = ..., severity: Severity = ..., criterion: Option[Criterion] = ...)(run: Page => Seq[Violation]): Rule

A rule from its id, description and check; blocking, applying to fragments too, and tied to no criterion unless said otherwise.

A rule from its id, description and check; blocking, applying to fragments too, and tied to no criterion unless said otherwise.

Attributes

Source
Rule.scala
def expectation(rules: Seq[Rule]): Expectation

A set of rules as one expectation.

A set of rules as one expectation.

Attributes

Source
Rule.scala

Concrete fields

The severity of a rule that fails the page.

The severity of a rule that fails the page.

Attributes

Source
Rule.scala

The severity of a rule that reports without failing the page.

The severity of a rule that reports without failing the page.

Attributes

Source
Rule.scala