mirror of https://github.com/fredrikekre/Runic.jl
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.
|
|
2 years ago | |
|---|---|---|
| .github | 2 years ago | |
| src | 2 years ago | |
| test | 2 years ago | |
| LICENSE | 2 years ago | |
| Project.toml | 2 years ago | |
| README.md | 2 years ago | |
| TODO.md | 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 toe-exponents. Unnecessary trailing/leading zeros from integral, fractional, and exponent parts are removed.