Skip to content

Conversation

@417-72KI
Copy link
Member

@417-72KI 417-72KI commented Aug 28, 2024

Danger-Swift uses SwiftLint in the package when it contains, which takes too much times to fetch and build.
There is a repo which only contains plugins (https://github.com/SimplyDanny/SwiftLintPlugins), swift run swiftlint is fail when the package conatins it instead of SwiftLint directly.
However, current spec causes failure ( try to run swift run swiftlint and fail ) because

.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", from: "<version>"),

matches to

/\.package\(.*SwiftLint.*/

This PR fixes a regex to avoid false positive of SwiftLintPlugins.

This is a test case
image

Copy link
Member

@f-meloni f-meloni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@417-72KI 417-72KI merged commit 9f2d6b8 into danger:master Aug 28, 2024
@417-72KI 417-72KI deleted the fix-swiftlint-package branch August 28, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants