Violation

io.github.frikit.twirlspec.expect.Violation
See theViolation companion object
final case class Violation(rule: String, message: String, expected: Option[String] = ..., actual: Option[String] = ..., where: Option[String] = ..., severity: Severity = ..., hint: Option[String] = ...)

A single thing that was wrong with a rendered page.

Attributes

Companion
object
Source
Violation.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def at(location: String): Violation

The same violation, located at this element or line.

The same violation, located at this element or line.

Attributes

Source
Violation.scala
def render(indent: String = ...): String

Multi-line rendering used inside ScalaTest failure messages.

Multi-line rendering used inside ScalaTest failure messages.

Attributes

Source
Violation.scala

The same violation as a warning.

The same violation as a warning.

Attributes

Source
Violation.scala
def withHint(h: String): Violation

The same violation with advice on the fix.

The same violation with advice on the fix.

Attributes

Source
Violation.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product