Languages
Ur reads each file by its extension. It lints every language here, and formats each in its styles, the first unless the project chooses another.
| Language | Files | Styles |
|---|---|---|
| C | .c .h | clang-format |
| C++ | .cpp .cc .cxx .c++ .hpp .hh .hxx .h++ .ipp .tpp .inl .cppm .ixx .ccm .cxxm .c++m | clang-format |
| C# | .cs | Linted, not formatted yet |
| Dockerfile | .dockerfile .containerfile | Linted, not formatted yet |
| Elixir | .ex .exs | Ur |
| Erlang | .erl .hrl | Linted, not formatted yet |
| Go | .go | gofmt |
| Java | .java | google-java-format |
| JavaScript | .js .mjs .cjs .jsx | Prettier |
| TypeScript | .ts .mts .cts .tsx .vue | Prettier |
| Jinja | .jinja .jinja2 .j2 | Linted, not formatted yet |
| Kotlin | .kt .kts | Ur |
| Lean | .lean | Mathlib |
| Lua | .lua | Linted, not formatted yet |
| Markdown | .md .markdown | Prettier |
| PHP | .php .phtml | Ur |
| Python | .py .pyi | Black |
| Ruby | .rb | RuboCop |
| Rust | .rs | rustfmt |
| Scala | .scala | Linted, not formatted yet |
| Shell | .sh .bash .ksh .zsh | Ur |
| SQL | .sql | SQLFluff, River, sqlfmt |
| Swift | .swift | swift-format |
| TLA+ | .tla | tla2tools |
| TOML | .toml | Ur |
| Urscal | .rsc | Ur |
| YAML | .yaml .yml | Linted, not formatted yet |
| Zig | .zig | Linted, not formatted yet |