Closed Ericwww closed 10 months ago
I'm trying to fix it. All unit tests (including the ones I added) passed. But I'm not sure if this modification is correct.
thanks @Ericwww I'll check
Can i bump this? We're blocked on upgrading our version until this this is fixed.
Thanks 🙏
Hi @l2cup, I'm not the owner of this repository.
I just submitted my new code. PR: #145
I think such logic should be more elegant than before and can cover more scenes.
I have passed all the checks except Build
.
If @incu6us thinks there is no problem, I think this issue can be closed. 😃 😃
thanks for your efforts @Ericwww it is merged and available in v3.6.4
Hi @incu6us
Sorry to bother you again.
I would like to use
goimports-reviser
as a replacement forgoimports
.But at the single import situation, their behavior is inconsistent.
For example,
When I run
goimports
, the result is the same as above.But when I run
goimports-reviser
, the result will beA single import becomes a list of imports, but there is only one import in the list.
I think the problem is at reviser/file.go:378, function: #rebuildImports