Skip to content

False positive in "Statements should be on separate lines" #1615

Closed
@hagmanen

Description

@hagmanen

Following line will cause error.

ScopeGuard guard([&](){ close(); });

With lambda expressions it should be allowed to have two ; on a line.

Found this on google: https://rules.sonarsource.com/c/RSPEC-122. Don't know how that relates to this community.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions