Can we add an option to skip formatting imports or sort only within the sections of import instead fo the whole list being sorted even if they are separated by spaces?
sample,
package testdata // goimports-reviser/testdata
import (
"fmt" // fmt package
"golang.org/x/exp/slices" // custom package
"github.com/incu6us/goimports-reviser/pkg" // this is a company package which is not a part of the project, but is a part of your organization
"goimports-reviser/pkg"
)
goes back to after running gofumpt
package testdata // goimports-reviser/testdata
import (
"fmt" //fmt package
"golang.org/x/exp/slices" //custom package
"github.com/incu6us/goimports-reviser/pkg" // this is a company package which is not a part of the project, but is a part of your organization
"goimports-reviser/pkg"
)
Can we add an option to skip formatting imports or sort only within the sections of import instead fo the whole list being sorted even if they are separated by spaces?
sample,
goes back to after running gofumpt