Skip to content

Commit 1853b91

Browse files
committed
Expose markdownAction in SwiftLint.
This is needed to be able to use your own markdown output.
1 parent 5b4749c commit 1853b91

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/Danger/Plugins/SwiftLint/SwiftLint.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,19 @@ public enum SwiftLint {
9393
configFile: String? = nil,
9494
strict: Bool = false,
9595
quiet: Bool = true,
96-
swiftlintPath: SwiftlintPath? = nil) -> [SwiftLintViolation] {
96+
swiftlintPath: SwiftlintPath? = nil,
97+
markdownAction: (String) -> Void = markdown
98+
) -> [SwiftLintViolation] {
9799
lint(lintStyle: lintStyle,
98100
danger: danger,
99101
shellExecutor: shellExecutor,
100102
swiftlintPath: swiftlintPath,
101103
inline: inline,
102104
configFile: configFile,
103105
strict: strict,
104-
quiet: quiet)
106+
quiet: quiet,
107+
markdownAction: markdownAction
108+
)
105109
}
106110
}
107111

0 commit comments

Comments
 (0)