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 732ffb6364
Fix a bug in colon-spacing
1 year ago
.github Limit Codecov uploads to certain Julia version. 2 years ago
src Fix a bug in colon-spacing 1 year ago
test Fix a bug in colon-spacing 1 year ago
.gitignore Add indentation formatting 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.