StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

An opinionated Lua code formatter

Results 136 StyLua issues
Sort by recently updated
recently updated
newest added

in this example, spacing before and inside of comments is key to legibility (in fixed-width font, anyway): ```lua function foo( tinky, -- this is winky, -- my aligned inky, --...

enhancement
rfc/in discussion
requires option

Given that [.editorconfig file](https://editorconfig.org/) provides some settings that are supported by stylua, it could be handy to read that file to avoid duplicating these settings.

enhancement
good first issue

I was experimenting with using StyLua on minified Lua, and found that StyLua fails to parse this valid Lua when minified. source: ```lua local function test() goto end_thing local x...

external

A common problem that occurs (especially with lots of external contributors to a project) is when the version of the stylua binary installed and the version of the binary used...

enhancement

For instance, If I have a `.styluaignore` file that looks like: `path/` This will check the file: `stylua -c path/to/file.lua` But this would not: `stylua -c .` As an alternative,...

bug
external

We currently build release assets with all flags enabled (both `luau` and `lua52`). At the moment, this is fine, as there is no conflicting syntax between the two. The GitHub...

extension
ci

I'm not sure if this is something that's able to be fixed, but this is the before and after. I much prefer the before. ![image](https://user-images.githubusercontent.com/3190756/111022615-98f64780-8388-11eb-888d-c9a51fafc28e.png) ![image](https://user-images.githubusercontent.com/3190756/111022627-b4615280-8388-11eb-8ac6-0feb6d2e030f.png) ![image](https://user-images.githubusercontent.com/3190756/111022633-bb886080-8388-11eb-98a4-1e8d1a2406ea.png) ![image](https://user-images.githubusercontent.com/3190756/111022649-d8bd2f00-8388-11eb-9d35-d691f573a303.png) vvv This...

enhancement
rfc/in discussion
hard

Related to #78, chained functions are merged onto a single line which makes them less readable -- even if a short line. ## Before ```lua -- under column-width if do_icon...

enhancement
rfc/in discussion

Lot of times I have these inevitable if-else ladders and it gets a bit hard finding my way through them which is why I leave an blank line before my...

enhancement
rfc/in discussion
requires option

In line with https://github.com/JohnnyMorganz/StyLua/issues/133#issuecomment-846131062, here is one more special case where one might wish to keep parentheses even with `no_call_parentheses`: If the function is a "factory" that returns another function...

rfc/in discussion