Skip to content

false positive with { in comments #773

@rgerhards

Description

@rgerhards

This is in regard to the "commented out code" query. If there is a curly brace inside a comment (/* advance to { */) this is misdetected as commented out code. It's for sure a border case, but given the fact that before the brace no valid C is given, I think it could be sorted out. It's also pretty hard to work around this type of FP.

Sample in context: https://lgtm.com/projects/g/rsyslog/rsyslog/alerts/?mode=list
Right now, you need to scroll down a bit to see the sample.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions