Skip to content

Conversation

@technocidal
Copy link
Contributor

@technocidal technocidal commented Sep 10, 2024

👻

What does this implement/fix? Explain your changes.

SwiftLint separated their plugins into a separate repository and recommends that people use that version to integrate SwiftLint with their projects. Unfortunately the names they chose clash with the names of the Plugins in this repository. This means that one cannot use MessageKit and the SwiftLint Build Tool Plugin in the same project.

I've removed the Swift part from the names of the plugins in this repository. This fixes the issue but obviously is a pretty primitive fix. Other options I've considered:

  1. Using the SwiftLintPlugins in this repository

Works fine, but there is no option of configuring the command plugin to only run on a single target/module. This means that make lint leads to linting being run twice on the same files. There is also a difference in the number of files that are linted, probably because of slight configuration differences.

  1. Using a prefix (e.g. MK) for the plugins in this repository

Since there is no precedence for such a prefix, I hesitate to introduce one, especially because prefixes have fallen out of favor in general.

Does this close any currently open issues?

As far as I'm aware there is no open issue regarding this issue.

Any relevant logs, error output, etc?

Any other comments?

Where has this been tested?

Xcode 15.4

@Kaspik Kaspik enabled auto-merge September 10, 2024 11:30
@Kaspik Kaspik merged commit 8917bd9 into MessageKit:main Sep 10, 2024
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