Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scilla-fmt improvements roadmap #1162

Open
2 of 14 tasks
anton-trunov opened this issue Aug 29, 2022 · 0 comments
Open
2 of 14 tasks

scilla-fmt improvements roadmap #1162

anton-trunov opened this issue Aug 29, 2022 · 0 comments

Comments

@anton-trunov
Copy link
Contributor

anton-trunov commented Aug 29, 2022

Bigger features and improvements

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
    
@rrw-zilliqa rrw-zilliqa reopened this Sep 29, 2022
@jjcnn jjcnn added this to the Scilla 0.14.0 milestone Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants