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

Crash with swiftlint directive after emoji with skin tone #5945

Open
2 tasks done
KeithBauerANZ opened this issue Jan 8, 2025 · 1 comment
Open
2 tasks done

Crash with swiftlint directive after emoji with skin tone #5945

KeithBauerANZ opened this issue Jan 8, 2025 · 1 comment

Comments

@KeithBauerANZ
Copy link

New Issue Checklist

Bug Description

This crashes swiftlint:

"🤵🏼‍♀️" // swiftlint:disable:this nonexistent_rule

(whether the rule exists or not isn't relevant, only the directive following the emoji on the same line)

The crash is here:

https://github.com/realm/SwiftLint/blob/main/Source/SwiftLintCore/Extensions/String%2BSwiftLint.swift#L31

(My swiftlint doesn't have debug info, so the backtrace is useless, but that's the assertion message)

Just without any config at all:

$ swiftlint test.swift

Environment

  • SwiftLint version (run swiftlint version to be sure)
    0.57.1

  • Xcode version (run xcodebuild -version to be sure)
    Xcode 16.2
    Build version 16C5032a

  • Installation method used (Homebrew, CocoaPods, building from source, etc)
    Downloaded from release tag

  • Configuration file:
    n/a

@KeithBauerANZ
Copy link
Author

(This is a regression since 0.51.0)

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

No branches or pull requests

1 participant