A code formatter for Julia with rules set in stone.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Fredrik Ekre 5a9f8ad523
Add a pretty-printer for Runic.Node.
2 years ago
.github Run Runic on Runic on CI. 2 years ago
src Add a pretty-printer for Runic.Node. 2 years ago
test Add a pretty-printer for Runic.Node. 2 years ago
.gitignore Add .gitignore 2 years ago
LICENSE Add initial files 2 years ago
Project.toml Add test/runtests.jl 2 years ago
README.md Format floating point literals. 2 years ago
TODO.md Some more thoughts 2 years ago

README.md

Runic.jl

A code formatter with rules set in stone.

Formatting specification

This is a list of the rules and formatting transformations performed by Runic:

  • No trailing whitespace
  • Normalized line endings (\r\n -> \n) (TODO: Is this bad on Windows with Git's autocrlf? gofmt does it...)
  • Hex/octal/binary literals are padded with zeroes to better highlight the resulting UInt type
  • Floating point literals are normalized to always have an integral and fractional part. E-exponents are normalized to e-exponents. Unnecessary trailing/leading zeros from integral, fractional, and exponent parts are removed.