Skip to content

Commit

Permalink
Merge pull request #610 from Nikoloutsos/master
Browse files Browse the repository at this point in the history
Expose markdownAction in SwiftLint lint function
  • Loading branch information
f-meloni authored Sep 15, 2024
2 parents 1d085f6 + 2be8668 commit 9d557fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

## Master

- Expose markdownKit on Swiftlint.lint() for customizing the output [@nikoloutsos][] - [#609](https://github.com/danger/swift/pull/609)
- Drop Swift 5.7 [@417-72KI][] - [#620](https://github.com/danger/swift/pull/620)
- Fix pattern for detecting SwiftLint in package [@417-72KI][] - [#616](https://github.com/danger/swift/pull/616)
- Allow optional GitLab MR description [@kvvzr][] - [#609](https://github.com/danger/swift/pull/609)
Expand Down
8 changes: 6 additions & 2 deletions Sources/Danger/Plugins/SwiftLint/SwiftLint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,19 @@ 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,
swiftlintPath: swiftlintPath,
inline: inline,
configFile: configFile,
strict: strict,
quiet: quiet)
quiet: quiet,
markdownAction: markdownAction
)
}
}

Expand Down

0 comments on commit 9d557fd

Please sign in to comment.