Skip to content

x/tools/gopls: allow enabling gofumpt extra rules #56403

@maxbrunet

Description

@maxbrunet

gopls version

master (8166dca) (latest release: v0.9.5)

go env

N/A

What did you do?

Currently gofumpt can be enabled: https://go.googlesource.com/tools/+/refs/heads/master/gopls/doc/settings.md#gofumpt-bool

But extra rules cannot be used: mvdan/gofumpt#extra-rules-behind--extra

What did you expect to see?

An option to enable extra rules (e.g. formatting.gofumptExtraRules bool). Suggested implementation: golang/tools#410

What did you see instead?

No option to enable extra rules.

Editor and settings

"gopls": { "formatting.gofumpt": true }

Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions