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

Prevent SwiftSyntax string interpolation errors in tests #5258

Merged

Conversation

jpsim
Copy link
Collaborator

@jpsim jpsim commented Oct 3, 2023

Previously this was logged to the console when running tests:

[ParseError] Parsing a `DeclSyntax` node from string interpolation produced the following parsing errors.
Set a breakpoint in `SyntaxParseable.logStringInterpolationParsingError()` to debug the failure.

And slightly improve the style of the expanded @SwiftSyntaxRule macro.

Previously this was logged to the console when running tests:

```
[ParseError] Parsing a `DeclSyntax` node from string interpolation produced the following parsing errors.
Set a breakpoint in `SyntaxParseable.logStringInterpolationParsingError()` to debug the failure.
```

And slightly improve the style of the expanded `@SwiftSyntaxRule` macro.
@jpsim jpsim enabled auto-merge (squash) October 3, 2023 14:41
@SwiftLintBot
Copy link

1 Warning
⚠️ If this is a user-facing change, please include a CHANGELOG entry to credit yourself!
You can find it at CHANGELOG.md.
1 Message
📖 Skipping OSSCheck because SwiftLint hasn't changed compared to 'main'

Here's an example of your CHANGELOG entry:

* Prevent SwiftSyntax string interpolation errors in tests.  
  [jpsim](https://github.com/jpsim)
  [#issue_number](https://github.com/realm/SwiftLint/issues/issue_number)

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

Generated by 🚫 Danger

@jpsim jpsim merged commit e30065e into main Oct 3, 2023
4 checks passed
@jpsim jpsim deleted the prevent-swiftsyntax-string-interpolation-errors-in-tests branch October 3, 2023 14:53
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.

2 participants