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

Add option disallow-numerical-affixes #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

voidless
Copy link
Contributor

@voidless voidless commented Jan 23, 2024

Add option to disallow numerical affixes (prefixes and suffixes) without % symbols in the usage.

We've had a false negative with name "special2020" counting as used because of words "special" with usage "specialEvent".
This is an expected default behavior (suffix_1 -> suffix_) that is why I've added an option to ignore such usages.
With the option enabled it only counts usages like this (suffix_1 -> suffix_% or suffix_%d)

  • wrote unit tests

Usage:

path/to/fengniao --project . --disallow-numerical-affixes

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

Successfully merging this pull request may close these issues.

None yet

1 participant