Skip to content

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

Description

@adamdecaf

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`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions