StyLua
https://github.com/JohnnyMorganz/StyLua
An opinionated code formatter for Lua 5.1, 5.2, 5.3, 5.4 and Luau, built using full-moon. StyLua is inspired by the likes of prettier, it parses your Lua codebase, and prints it back out from scratch, enforcing a consistent code style.
- Developed at devel:languages:lua
- Sources inherited from project openSUSE:Factory
-
1
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:16.0:FactoryCandidates/StyLua && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
StyLua-0.18.0.tar.gz | 0000376262 367 KB | |
StyLua.changes | 0000006299 6.15 KB | |
StyLua.spec | 0000001993 1.95 KB | |
_service | 0000000323 323 Bytes | |
cargo_config | 0000000100 100 Bytes | |
vendor.tar.zst | 0018173374 17.3 MB |
Revision 9 (latest revision is 15)
Dominique Leuenberger (dimstar_suse)
accepted
request 1093613
from
Soc Virnyl Estela (uncomfyhalomacro)
(revision 9)
- Update to version 0.18.0: * Multiline ignores (-- stylua: ignore start / -- stylua: ignore end) will now work within table fields * Added option "Input" to call_parentheses setting, where call parentheses are retained based on their presence in the original input code. * Improved heuristics around Luau type excess parentheses removal, so unnecessary parentheses around types are removed in more locations * Function calls are now formatted onto multiple lines if the opening brace { of a multiline table forces one of the lines over width * Fixed missing option --sort-requires to enable sort requires on the command line * Fixed parentheses removed around Luau optional type (B?) causing syntax errors when present in an intersection A & (B?) * Fixed comments lost when parentheses removed around Luau types * Fixed race condition where if a file is passed more than once as an argument to format, then it could potentially be wiped completely (for example, if an ancestor directory is passed and recursively searched, as well as the file itself)
Comments 0