blizzy78 / varnamelen

Go analyzer checking that the length of a variable's name matches its usage scope
MIT License
20 stars 2 forks source link

max-distance: 0 does not work #20

Open Seb-C opened 1 year ago

Seb-C commented 1 year ago

I would like to use this tool to ban short variable names completely, except the ones explicitly allowed in the configuration.

However, when I set max-distance: 0, it does not trigger an error at all. It seems that the minimal distance is always 1.