Skip to content

Improve formatter configuration #52

@satococoa

Description

@satococoa

Summary

go tool task fmt now delegates to golangci-lint with gofmt/goimports, but .golangci.yml hard-codes the goimports local-prefixes. Running the formatter from a fork or nested module can cause the prefixes to drift.

Desired outcome

  • Derive the goimports local-prefixes from github.com/satococoa/wtp/v2 (or the current module path) during the task run so forks/renames stay correct.
  • Document the formatter behaviour so contributors know go tool task fmt is the canonical entry point.
  • Optionally consider adding additional formatters (e.g., gofumpt or gci) if they provide value.

Notes

  • Keep formatter output deterministic.
  • Any new formatter should be applied in both CI and contributor docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions