Skip to main content
Version: 2.16.x (deprecated)

gofmt


Gofmt-specific options.

Backend: pants.backend.experimental.go

Config section: [gofmt]

Basic options

skip

--[no-]gofmt-skip
PANTS_GOFMT_SKIP
default: False

If true, don't use gofmt when running scie-pants-linux-x86_64 fmt and scie-pants-linux-x86_64 lint.

args

--gofmt-args="[<shell_str>, <shell_str>, ...]"
PANTS_GOFMT_ARGS
default: []

Arguments to pass directly to gofmt, e.g. --gofmt-args='-s -e'.

Only the following style related options are supported: -e, -r, -s.

Advanced options

None

Deprecated options

None