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

SwiftLint crashes when stdin does not end in a new line #4234

Closed
2 tasks done
wasdkhan opened this issue Sep 21, 2022 · 0 comments · Fixed by #4212
Closed
2 tasks done

SwiftLint crashes when stdin does not end in a new line #4234

wasdkhan opened this issue Sep 21, 2022 · 0 comments · Fixed by #4212
Assignees
Labels
bug Unexpected and reproducible misbehavior.

Comments

@wasdkhan
Copy link

wasdkhan commented Sep 21, 2022

New Issue Checklist

Describe the bug

It ends with SIGABRT when stdin does not end in a new line.

Complete output when running SwiftLint, including the stack trace and command used
$ echo -n '// hello' | swiftlint lint --use-stdin --quiet --fix
can't write to path 'nil': file SwiftLintFile+Regex.swift, line 230
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
$ echo $?
134

Environment

  • SwiftLint version (run swiftlint version to be sure)? 0.49.1
  • Installation method used (Homebrew, CocoaPods, building from source, etc)? built from source
  • Paste your configuration file: no config file
  • Are you using nested configurations? no
  • Which Xcode version are you using (check xcodebuild -version)? Xcode 14.0
@SimplyDanny SimplyDanny added the bug Unexpected and reproducible misbehavior. label Sep 24, 2022
@SimplyDanny SimplyDanny self-assigned this Sep 24, 2022
jpsim pushed a commit that referenced this issue Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants