-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
explicit_acl should not be triggered for extensions adding protocol conformance #2705
Closed
2 tasks done
Comments
This happens for me when I run SwiftLint inside of Xcode 10.2, and from command line when having Xcode 10.2 as the |
marcelofabri
added a commit
that referenced
this issue
Apr 9, 2019
marcelofabri
added a commit
that referenced
this issue
Apr 9, 2019
marcelofabri
added a commit
that referenced
this issue
Apr 9, 2019
thanks so much for fixing this! 🙂when should we expect a new release? |
New release is out: https://github.com/realm/SwiftLint/releases/tag/0.32.0 |
Works great, thanks @marcelofabri and @jpsim! |
awesome, thank you!!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New Issue Checklist
Describe the bug
Swiftlint tells me that I need to add an access control level for an extension that adds protocol conformance. However, the Swift compiler won't allow me to do that -- when I try to build I get
error: 'public' modifier cannot be used with extensions that declare protocol conformances
. (Note I get an equivalent error if I use any other ACL,private
,internal
, etc.)This can be reproduced in a directory containing just the following two files:
lint.swift
.swiftlint.yml
Complete output when running SwiftLint, including the stack trace and command used
If I change the file to:
Swiftlint is satisfied --
But the compiler is not:
Environment
swiftlint version
to be sure)?0.31.0
xcode-select -p
)? xcode-select version 2354. However, I'm using Swift 4.2 installed via swiftenv.kaitlinmahar@kaitlin:~/lint-test$ swift --version Apple Swift version 4.2 (swift-4.2-RELEASE) Target: x86_64-apple-darwin18.2.0
I also switched to Swift 5.0 via swiftenv and tested, same results.
The text was updated successfully, but these errors were encountered: