diff options
author | Samvel Abrahamyan <samvel1024@gmail.com> | 2019-10-08 12:07:25 +0200 |
---|---|---|
committer | Samvel Abrahamyan <samvel1024@gmail.com> | 2019-10-12 14:33:17 +0200 |
commit | 53671b9cdfc53c1edcba256b367e268be0b7357d (patch) | |
tree | 75172ea3c8731a14ee0611e6ba104db83a1b6492 | |
parent | 2269dbfca8b1118ec7f89abeb52e70a88376432c (diff) | |
download | mill-53671b9cdfc53c1edcba256b367e268be0b7357d.tar.gz mill-53671b9cdfc53c1edcba256b367e268be0b7357d.tar.bz2 mill-53671b9cdfc53c1edcba256b367e268be0b7357d.zip |
Add short comments about build reporters.
-rw-r--r-- | main/api/src/mill/api/BuildReporter.scala (renamed from main/api/src/mill/api/TestReporter.scala) | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/main/api/src/mill/api/TestReporter.scala b/main/api/src/mill/api/BuildReporter.scala index 8adea687..f8405984 100644 --- a/main/api/src/mill/api/TestReporter.scala +++ b/main/api/src/mill/api/BuildReporter.scala @@ -31,6 +31,10 @@ object DummyTestReporter extends TestReporter { } } +/** + * A listener trait for getting notified about + * build output like compiler warnings and errors + */ trait BuildProblemReporter { def logError(problem: Problem): Unit @@ -41,6 +45,22 @@ trait BuildProblemReporter { def printSummary(): Unit } +/** + * Contains general information about the build problem + */ +trait Problem { + def category: String + + def severity: Severity + + def message: String + + def position: ProblemPosition +} + +/** + * Indicates the exact location (source file, line, column) of the build problem + */ trait ProblemPosition { def line: Option[Int] @@ -74,14 +94,4 @@ case object Info extends Severity case object Error extends Severity case object Warn extends Severity -trait Problem { - def category: String - - def severity: Severity - - def message: String - - def position: ProblemPosition -} - |