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

Fix pattern for detecting SwiftLint in package #616

Merged
merged 1 commit into from
Aug 28, 2024

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
15 checks passed
@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