From 1853b9131f5fd603bf5368d2c95a45df7f410a7e Mon Sep 17 00:00:00 2001 From: Konstantinos Nikoloutsos Date: Tue, 11 Jun 2024 16:48:40 +0300 Subject: [PATCH 1/2] Expose markdownAction in SwiftLint. This is needed to be able to use your own markdown output. --- Sources/Danger/Plugins/SwiftLint/SwiftLint.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/Danger/Plugins/SwiftLint/SwiftLint.swift b/Sources/Danger/Plugins/SwiftLint/SwiftLint.swift index b9521167..b6dbcf33 100644 --- a/Sources/Danger/Plugins/SwiftLint/SwiftLint.swift +++ b/Sources/Danger/Plugins/SwiftLint/SwiftLint.swift @@ -93,7 +93,9 @@ public enum SwiftLint { configFile: String? = nil, strict: Bool = false, quiet: Bool = true, - swiftlintPath: SwiftlintPath? = nil) -> [SwiftLintViolation] { + swiftlintPath: SwiftlintPath? = nil, + markdownAction: (String) -> Void = markdown + ) -> [SwiftLintViolation] { lint(lintStyle: lintStyle, danger: danger, shellExecutor: shellExecutor, @@ -101,7 +103,9 @@ public enum SwiftLint { inline: inline, configFile: configFile, strict: strict, - quiet: quiet) + quiet: quiet, + markdownAction: markdownAction + ) } } From 16ae3ed47ea81551baa1cb0e428cd631a96d1d22 Mon Sep 17 00:00:00 2001 From: Konstantinos Nikoloutsos Date: Wed, 12 Jun 2024 10:59:34 +0300 Subject: [PATCH 2/2] Document CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e684ddb..9e72f4c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ ## Master +- Expose markdownKit on Swiftlint.lint() for customizing the output [@nikoloutsos][] - [#609](https://github.com/danger/swift/pull/609) + ## 3.18.1 - Update Node version to 18.x [@hasanabuzayed][] - [#607](https://github.com/danger/swift/pull/607)