Files
SwiftLint/Source/swiftlint/Extensions/Reporter+CommandLine.swift
T
2020-12-14 15:51:04 -05:00

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)
}