tooltitude / support

Tooltitude Support
https://www.tooltitude.com
Other
21 stars 0 forks source link

False positive detect dot `Unused Import` #32

Closed d-enk closed 9 months ago

d-enk commented 9 months ago
//main.go
package main

import . "slices" // Unused import

func main() {
    Clone([]int{})
}
//go.mod
module test

go 1.21.6

Without go.mod its work correctly

tooltitude-support commented 9 months ago

@d-enk Thanks for your feedback. Until we fix it, you could turn the error off via the tooltitude.unusedImportsEnabled setting. We plan to release a fix on this week, most likely today.

tooltitude-support commented 9 months ago

v0.55.0 is out, please check whether the issue disappears for you.