Skip to content

Commit

Permalink
LocalScanner: Document the getResult() and generateSummary() functions
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
  • Loading branch information
sschuberth committed May 20, 2019
1 parent 382325d commit a640843
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scanner/src/main/kotlin/LocalScanner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,13 @@ abstract class LocalScanner(name: String, config: ScannerConfiguration) : Scanne
*/
abstract fun scanPath(path: File, resultsFile: File): ScanResult

/**
* Return the scanner's raw result in a JSON representation.
*/
internal abstract fun getResult(resultsFile: File): JsonNode

/**
* Generate a [ScanSummary] from the scanner's raw [result] and the scan [startTime] / [endTime].
*/
internal abstract fun generateSummary(startTime: Instant, endTime: Instant, result: JsonNode): ScanSummary
}

0 comments on commit a640843

Please sign in to comment.