abstract class ReporterFormat extends AnyRef
Describes how messages should be formatted by a ConfigurableReporter
.
- Alphabetic
- By Inheritance
- ReporterFormat
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ReporterFormat(reporter: ConfigurableReporter)
- reporter
The reporter that will use this format.
Type Members
-
implicit
class
MyPosition extends AnyRef
- Attributes
- protected
Abstract Value Members
-
abstract
def
formatProblem(problem: Problem): String
Returns a string representation of
Problem
, as it should be shown by the reporter.Returns a string representation of
Problem
, as it should be shown by the reporter.- problem
The problem to format.
- returns
A string representation of the problem.
-
abstract
def
printSummary(): Unit
Prints a summary of all the errors reporter to the logger.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
colorFor(problem: Problem): String
Retrieves the right color to use for
problem
based on Severity.Retrieves the right color to use for
problem
based on Severity.- problem
The problem to show.
- returns
The ANSI string to set the right color.
- Attributes
- protected
-
def
colored(color: String, str: String): String
Shows
str
with colorcolor
if the reporter is configured withcolors = true
.Shows
str
with colorcolor
if the reporter is configured withcolors = true
.- color
The color to use
- str
The string to color.
- returns
The colored string if
colors = true
,str
otherwise.
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extraSpace(severity: Severity): String
Returns spaces to fix alignment given the
severity
.Returns spaces to fix alignment given the
severity
.- Attributes
- protected
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prefixed(prefixColor: String, prefix: String, paragraph: String): String
Put a prefix
prefix
at the beginning ofparagraph
, indents all lines.Put a prefix
prefix
at the beginning ofparagraph
, indents all lines.- prefix
The prefix to insert.
- paragraph
The block of text to prefix and indent.
- returns
The prefixed and indented paragraph.
- Attributes
- protected
-
def
showPath(file: File): Option[String]
Returns the absolute path of
file
withbase
stripped, if the reporter if configured withshortenPaths = true
.Returns the absolute path of
file
withbase
stripped, if the reporter if configured withshortenPaths = true
.- file
The file whose path to show.
- returns
The absolute path of
file
withbase
stripped ifshortenPaths = true
, or the original path otherwise.
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toOption[T](m: Optional[T]): Option[T]
- Attributes
- protected
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )