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

``I recently began using StyLua and love how it's made my functions more readable by moving the parameters to multiple lines when there are too many of them. I believe...

Comment should be retained directly before and after the parens. Probably a good idea to test a bunch of variations of this one. It looks like adding trailing commas might...

Pulls in new changes from external repositories for test cases - This pull request is **auto-generated** - Note: **snapshots have not been updated**. You must manually update snapshots for the...

# Use Case - I use VSCode for many environments. Use it for local files or use it for remote files using SSH (Remote SSH). - My local is Windows...

enhancement
extension

Source: https://github.com/tomrus88/BlizzardInterfaceCode/blob/master/Interface/FrameXML/FlowContainer.lua Source: https://github.com/tomrus88/BlizzardInterfaceCode/blob/master/Interface/FrameXML/SecureGroupHeaders.lua ```lua --If it doesn't fit on the current row, move to the next. if ( object == "linebreak" or --Force a new line type(object) == "table"...

bug

0.14.2 shouldn't add a new line on the `else` on line 622 ![image](https://user-images.githubusercontent.com/1550766/182649079-e48cf0c5-a9ee-409e-9bd6-3433203c7f5e.jpeg)

bug

## Description I'm not sure if this is intentional. If it's intentional, it sure looks odd. Behavior of `v0.13.x` was much nicer. ### Input ```lua local height = math.max(math.min(#items, defaults(options.max_height,...

bug
requires option

I installed the StyLua VSCode extension and have set the `stylua.styluaPath` setting to my version installed with Foreman. It's located in my C:\Users\___\.foreman\bin folder. It functions perfectly, but every time...

bug
extension

https://github.com/kikito/inspect.lua/blob/master/inspect.lua reduction: ```lua local function escape(str) return (str:gsub("\\", "\\\\"):gsub("(%c)%f[0-9]", longControlCharEscapes):gsub("%c", shortControlCharEscapes)) end ``` with a 100 column width limit, running stylua 0.14.2 on the file twice has an effect. without...

bug