Skip to content

Commit 9d557fd

Browse files
authored
Merge pull request #610 from Nikoloutsos/master
Expose markdownAction in SwiftLint lint function
2 parents 1d085f6 + 2be8668 commit 9d557fd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
## Master
1515

16+
- Expose markdownKit on Swiftlint.lint() for customizing the output [@nikoloutsos][] - [#609](https://github.com/danger/swift/pull/609)
1617
- Drop Swift 5.7 [@417-72KI][] - [#620](https://github.com/danger/swift/pull/620)
1718
- Fix pattern for detecting SwiftLint in package [@417-72KI][] - [#616](https://github.com/danger/swift/pull/616)
1819
- Allow optional GitLab MR description [@kvvzr][] - [#609](https://github.com/danger/swift/pull/609)

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)