Abirdcfly / dupword

A linter that checks for duplicate words in the source code (usually miswritten)
MIT License
13 stars 5 forks source link

feat: option to allow duplicate words #26

Closed adamdecaf closed 1 year ago

adamdecaf commented 1 year ago

Is there an option for allowing some duplicate words without an annotation? My example is hex characters that aren't actually repeated. This example comes from moov-io/dukpt.

pkg/des/des_internal.go:116:2: Duplicate words (C0C0) found (dupword)
    // 4) XOR the Key Register with hexadecimal "C0C0 C0C0 0000 0000 C0C0 C0C0 0000 0000"
    ^

I've tried to double quote the hex characters, but that doesn't seem to help.

Abirdcfly commented 1 year ago

Thank you for your advice!. I plan to work on implementing this feature this week.