Skip to content

Regex rules with asterisks can give false positives #180

@medubelko

Description

@medubelko

Situation

Regex rules with asterisks interfere get tripped by the parser when there's content between multiple asterisks.

For example, this doesn't trigger rule 013:

2*4 equals eight

But this does:

2*4 equals 4*2
 1:1   suggestion  Consider using 'two' instead    Canonical.013-Spell-out-numbers-below-10 
                   of '2'                                                                   
 1:3   suggestion  Consider using 'four' instead   Canonical.013-Spell-out-numbers-below-10 
                   of '4'                                                                   
 1:12  suggestion  Consider using 'four' instead   Canonical.013-Spell-out-numbers-below-10 
                   of '4'                                                                   
 1:14  suggestion  Consider using 'two' instead    Canonical.013-Spell-out-numbers-below-10 
                   of '2'                                                                   

Request

I recommend either:

  • Find a workaround
  • Remove asterisks and other standard syntax characters from rules

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