-
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
Putting private
and struct
on the same line for Version 9.3 (9E145) and SwiftLint 0.25.0 breaks attributes
rule
#2141
Labels
bug
Unexpected and reproducible misbehavior.
Comments
JakeLin
changed the title
Can put
Can NOT put Apr 4, 2018
private
and struct
on the same line for Version 9.3 (9E145) and SwiftLint 0.25.0, break Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
private
and struct
on the same line for Version 9.3 (9E145) and SwiftLint 0.25.0, break Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
JakeLin
changed the title
Can NOT put
Can NOT put Apr 4, 2018
private
and struct
on the same line for Version 9.3 (9E145) and SwiftLint 0.25.0, break Attributes Violation: Attributes should be on their own lines in functions and types, but on the same line as variables and imports. (attributes)
private
and struct
on the same line for Version 9.3 (9E145) and SwiftLint 0.25.0, break attributes
rule
JakeLin
changed the title
Can NOT put
Putting Apr 4, 2018
private
and struct
on the same line for Version 9.3 (9E145) and SwiftLint 0.25.0, break attributes
ruleprivate
and struct
on the same line for Version 9.3 (9E145) and SwiftLint 0.25.0 breaks attributes
rule
Potentially related to #2125. |
@marcelofabri I think so, but the title of #2125 seems wrong. |
I think both issues are instances of a broader problem (we should keep both issues for now). |
marcelofabri
added a commit
that referenced
this issue
Apr 6, 2018
Fixed in #2148 |
@marcelofabri thank you very much, it's working now. |
@JakeLin thanks for confirming 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New Issue Checklist
Bug Report
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? - 0.25.0If so, paste their relative paths and respective contents. - No
xcode-select -p
)? Version 9.3 (9E145)echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
. -- See the Complete output above pleaseTo fix it we need to put an enter like
Thanks for looking at it, please advise if I have done something wrong.
The text was updated successfully, but these errors were encountered: