Skip to content

False positive for commented code #451

Closed

Description

@TCABJ

It's possible to generate a false positive for commented code by creating an object with a name containing two hashtags separated by any alpha-numeric character.

Linted code:

c("#a#" = 1)

Message:

.../test.R style: Commented code should be removed.
c("#a#" = 1)
    ^~~~~~~~

This should not be flagged as commented code.

Activity

  1. added
    bug
    on Mar 30, 2020
  2. added this to the 3.0.0 milestone on Jan 31, 2021
  3. added a commit that references this issue on Jan 31, 2021
    84cdc87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions