book icon indicating copy to clipboard operation
book copied to clipboard

Document the new formatter

Open onbjerg opened this issue 3 years ago • 5 comments

See https://github.com/gakonst/foundry/pull/201

It is a pretty barebones opinionated formatter with write and diff capabilities, but it is not configurable. Regardless, we should document it (and also add it to the GHA example)

onbjerg avatar Feb 16 '22 15:02 onbjerg

Actually, this is in the icebox, apparently it is not 100% ready yet. Will update this issue with more context when I have it

onbjerg avatar Feb 16 '22 15:02 onbjerg

Also relevant: https://github.com/foundry-rs/foundry/pull/2533

onbjerg avatar Aug 08 '22 17:08 onbjerg

Formatter is complete now and has a few configuration options under [fmt] for foundry toml

gakonst avatar Aug 08 '22 20:08 gakonst

Those are documented except 1 :) Just need an intro guide + the command reference

onbjerg avatar Aug 08 '22 20:08 onbjerg

Also the disabling stuff

// forgefmt: disable-next-item
// forgefmt: disable-next-line
// forgefmt: disable-start
// forgefmt: disable-end

gakonst avatar Aug 24 '22 16:08 gakonst