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

False positive: let_var_whitespace comments with properties #4871

Closed
MrCOBA opened this issue Apr 6, 2023 · 0 comments · Fixed by #4889
Closed

False positive: let_var_whitespace comments with properties #4871

MrCOBA opened this issue Apr 6, 2023 · 0 comments · Fixed by #4889
Assignees
Labels

Comments

@MrCOBA
Copy link

MrCOBA commented Apr 6, 2023

Describe the bug

Hi! Found a new false positive case of let_var_whitespace. The problem is reproduced on SwiftLint version 0.51.0.
There is error, when the comment style is as follows /**/:

static var test: String { /* Some Field */
    return "Test!"
}

But it's all good if the style is as follows //

static var test: String { // Some Field
    return "Test!"
}

Environment

SwiftLint version 0.51.0
Installation method used swiftlint binary
Paste your configuration file:

only_rules:
  - let_var_whitespace

Are you using nested configurations? No
Which Xcode version are you using? 14.2
Do you have a sample that shows the issue?

static var test: String { /* Some Field */
    return "Test!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants