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

bug: duplicate words not found in camel case / structs #37

Open
adamdecaf opened this issue May 21, 2024 · 1 comment
Open

bug: duplicate words not found in camel case / structs #37

adamdecaf opened this issue May 21, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@adamdecaf
Copy link

I've go the following struct which i would think should trigger duplicate word detection. After skimming the code I think the duplicate aren't found for two major reasons.

  1. camel case identifiers aren't split into separate words
  2. struct fields / tags aren't inspected
type UnderwritingCardVolumeDistribution struct {
	CardPresentPercentagePercentage int64 `json:"cardPresentPercentage,omitempty"` // want `Duplicate words \(Percentage\) found`

	CardPresentPercentage int64 `json:"cardPresentPercentagePercentage,omitempty"` // want `Duplicate words \(Percentage\) found`
}
@Abirdcfly Abirdcfly added enhancement New feature or request help wanted Extra attention is needed labels May 22, 2024
@Abirdcfly
Copy link
Owner

Thanks for the suggestion, it's true that the current release didn't handle CamelCase words, and it's true that we should try to add this feature in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants