17 lines
501 B
Swift
17 lines
501 B
Swift
import SwiftLintFramework
|
|
|
|
extension Reporter {
|
|
static func report(violations: [StyleViolation], realtimeCondition: Bool) {
|
|
if isRealtime == realtimeCondition {
|
|
let report = generateReport(violations)
|
|
if !report.isEmpty {
|
|
queuedPrint(report)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func reporterFrom(optionsReporter: String?, configuration: Configuration) -> Reporter.Type {
|
|
return reporterFrom(identifier: optionsReporter ?? configuration.reporter)
|
|
}
|