Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose markdownAction in SwiftLint lint function #610

Merged
merged 3 commits into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading