alexfertel / bulloak

A Solidity test generator based on the Branching Tree Technique.
Apache License 2.0
225 stars 13 forks source link

Four spaces for indenting level #40

Closed PaulRBerg closed 7 months ago

PaulRBerg commented 9 months ago

The code generated by bulloak scaffold contains only 2 spaces.

But the community standard is to use 4 spaces for indenting Solidity code. Docs reference:

https://docs.soliditylang.org/en/v0.8.21/style-guide.html#indentation

alexfertel commented 9 months ago

Oh, we need to change the defaults then. Note that this is configurable right now with the -i flag.

We should also probably add a configurable formatting step, i.e. running forge fmt on the output.

PaulRBerg commented 9 months ago

Ah nice, I did not notice -i!

i.e. running forge fmt on the output.

yeah that would be helpful

alexfertel commented 7 months ago

Resolved in 5535ee0566111a11c3be000254de70f4fa0edb5e.

We now use forge-fmt to format outputted solidity code.