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

Prefer package ACL over @_spi #5466

Merged
merged 1 commit into from
Mar 3, 2024
Merged

Conversation

SimplyDanny
Copy link
Collaborator

@SimplyDanny SimplyDanny commented Feb 10, 2024

The @_spi workaround was introduced in #4607 to make the build work for SwiftLintTestHelper in Xcode and SPM.

With the new package access control modifier in Swift 5.9, the internal @_spi attribute doesn't seem to be needed to give SwiftLintTestHelper access to internal symbols.

@ryanaveo: You contributed #4607 back then. In your environment, would this change work?

@SimplyDanny SimplyDanny requested a review from jpsim February 10, 2024 10:06
@SwiftLintBot
Copy link

SwiftLintBot commented Feb 10, 2024

1 Warning
⚠️ If this is a user-facing change, please include a CHANGELOG entry to credit yourself!
You can find it at CHANGELOG.md.
17 Messages
📖 Linting Aerial with this PR took 1.19s vs 1.17s on main (1% slower)
📖 Linting Alamofire with this PR took 1.59s vs 1.62s on main (1% faster)
📖 Linting Brave with this PR took 9.32s vs 9.3s on main (0% slower)
📖 Linting DuckDuckGo with this PR took 4.82s vs 4.83s on main (0% faster)
📖 Linting Firefox with this PR took 11.31s vs 11.37s on main (0% faster)
📖 Linting Kickstarter with this PR took 11.14s vs 11.12s on main (0% slower)
📖 Linting Moya with this PR took 0.62s vs 0.62s on main (0% slower)
📖 Linting NetNewsWire with this PR took 3.06s vs 3.06s on main (0% slower)
📖 Linting Nimble with this PR took 0.9s vs 0.91s on main (1% faster)
📖 Linting PocketCasts with this PR took 9.0s vs 8.94s on main (0% slower)
📖 Linting Quick with this PR took 0.4s vs 0.4s on main (0% slower)
📖 Linting Realm with this PR took 5.66s vs 5.67s on main (0% faster)
📖 Linting Sourcery with this PR took 2.72s vs 2.75s on main (1% faster)
📖 Linting Swift with this PR took 5.56s vs 5.56s on main (0% slower)
📖 Linting VLC with this PR took 1.51s vs 1.51s on main (0% slower)
📖 Linting Wire with this PR took 20.9s vs 20.89s on main (0% slower)
📖 Linting WordPress with this PR took 13.61s vs 13.57s on main (0% slower)

Here's an example of your CHANGELOG entry:

* Prefer `package` ACL over `@_spi`.  
  [SimplyDanny](https://github.com/SimplyDanny)
  [#issue_number](https://github.com/realm/SwiftLint/issues/issue_number)

note: There are two invisible spaces after the entry's text.

Generated by 🚫 Danger

Copy link
Collaborator

@jpsim jpsim left a comment

Choose a reason for hiding this comment

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

Nice

@SimplyDanny SimplyDanny merged commit d0fb75f into realm:main Mar 3, 2024
12 checks passed
@SimplyDanny SimplyDanny deleted the use-package-acl branch March 3, 2024 15:30
kohtenko pushed a commit to kohtenko/SwiftLint that referenced this pull request Mar 8, 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.

3 participants