Open dckc opened 4 years ago
@jimscarver says he's not wedded to this extra indentation for contracts; not sure where it came from.
CONTRIBUTING.md should say that yarn lint-check
and yarn lint:types
should pass for all contributions.
We should set up github actions to check that for us.
neither lint-check or yarn lint:types pass in master. The only new errors I see are insignificant. The only one in our code concerns import of a json file which I commented in the code.
Are we still working this issue?
I would like to see tool support for rholang formatting, so please keep this open.
Agreed. From an old mentor: "Write the code, we can always pretty-print it." So, we need a pretty-print tool.
I don't think I have seen this indentation style before. Do you have tools that help maintain it?
I'm in the habit of using scala tools to maintain rholang. (esp. emacs
indent-region
in scala mode).https://github.com/rchain-community/rho-bot/blob/f532b2e636c6c6dc6d940fa0e8e0d51d5e603c77/Community.rho#L66-L82