ashanbrown / makezero

A linter to ensure that slices are not initialized with non-zero length
Other
71 stars 7 forks source link

makezero doesn't recognize non-empty slices in function calls or return statements #3

Open ashanbrown opened 3 years ago

ashanbrown commented 3 years ago

A bad append could happen in another function. This is probably why it's best to just never initialize a non-empty slice.