You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Port pretty-printing randomized tests from scilla-chick to qcheck: we don't need to generate well-typed programs to test the formatter. This will also increase test coverage.
Small and/or easy improvements
Support for Scilla libraries (.scillib files)
A CLI option to set the width of the formatting window
CLI: return specific error codes for different types of failures (other than CLI argument parsing errors)
Generate man pages for the scilla-fmt binary
Format imports on one line if these do not contain namespaces
Less parentheses for types
Special treatment for function of multiple arguments: do not increase indentation for these
Special treatment for
let foo =
let bar = ... in ...
in
...
The second let for short expressions ends up on the same line as the first one, which hinders readability:
let foo = let bar = ... in ... in ...
Type definitions can be pretty unreadable with contract address types:
type Foo =
| Foo of ByStr20 with contract ............................. end Uint256
The text was updated successfully, but these errors were encountered:
Bigger features and improvements
Formatter
: Support comments #1172scilla-fmt
: Export AST as JSON #1216scilla-chick
toqcheck
: we don't need to generate well-typed programs to test the formatter. This will also increase test coverage.Small and/or easy improvements
.scillib
files)scilla-fmt
binarylet
for short expressions ends up on the same line as the first one, which hinders readability:The text was updated successfully, but these errors were encountered: