Skip to content

Single import declarations should be grouped with parentheses #97

@Zamiell

Description

@Zamiell

Currently, gofumpt has a rule of "Single var declarations should not be grouped with parentheses". This seems like a sensible rule.

However, doesn't the same logic also apply to import statements?

For example, using a modified version of the code in the README.md for the aforementioned rule:

import (
	"github.com/foo/bar"
)
import "github.com/foo/bar"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions