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.
- camel case identifiers aren't split into separate words
- 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`
}
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.