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

EmptyCountRule catches words that include "count" #1622

Closed
bdrelling opened this issue Jun 14, 2017 · 2 comments
Closed

EmptyCountRule catches words that include "count" #1622

bdrelling opened this issue Jun 14, 2017 · 2 comments
Labels

Comments

@bdrelling
Copy link

bdrelling commented Jun 14, 2017

EmptyCountRule.swift:34

let pattern = "count\\s*(==|!=|<|<=|>|>=)\\s*0"

This should change so that it doesn't match words that end in count, only the word count itself.

ie. discount == 0

@bdrelling bdrelling changed the title EmptyCountRule catches "discount == 0" EmptyCountRule catches words that include "count" Jun 14, 2017
@marcelofabri
Copy link
Collaborator

Duplicate of #827

@marcelofabri
Copy link
Collaborator

Actually, not a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants