lua-fmt
lua-fmt copied to clipboard
lua-fmt is pretty-printer for Lua code
when i build my project with jenkins,something going wrong about install lua-fmt (in docker ,Alibaba Cloud): ``` error Couldn't find match for "ac42a00ebf4020b8c9d3219e4b0f84bf7ce6e802" in "refs/heads/encodings,refs/heads/gh-pages,refs/heads/github-actions,refs/heads/linenumbers,refs/heads/lua5.4,refs/heads/master,refs/heads/parens,refs/heads/table-call-arguments,refs/pull/100/head,refs/pull/100/merge,refs/pull/101/head,refs/pull/101/merge,refs/pull/102/head,refs/pull/103/head,refs/pull/104/head,refs/pull/105/head,refs/pull/106/head,refs/pull/107/head,refs/pull/109/head,refs/pull/15/head,refs/pull/15/merge,refs/pull/20/head,refs/pull/20/merge,refs/pull/21/head,refs/pull/21/merge,refs/pull/23/head,refs/pull/23/merge,refs/pull/27/head,refs/pull/28/head,refs/pull/28/merge,refs/pull/29/head,refs/pull/30/head,refs/pull/31/head,refs/pull/33/head,refs/pull/34/head,refs/pull/34/merge,refs/pull/35/head,refs/pull/35/merge,refs/pull/37/head,refs/pull/37/merge,refs/pull/38/head,refs/pull/38/merge,refs/pull/39/head,refs/pull/40/head,refs/pull/40/merge,refs/pull/41/head,refs/pull/41/merge,refs/pull/43/head,refs/pull/43/merge,refs/pull/44/head,refs/pull/44/merge,refs/pull/46/head,refs/pull/46/merge,refs/pull/49/head,refs/pull/49/merge,refs/pull/57/head,refs/pull/6/head,refs/pull/6/merge,refs/pull/60/head,refs/pull/64/head,refs/pull/65/head,refs/pull/65/merge,refs/pull/72/head,refs/pull/78/head,refs/pull/83/head,refs/pull/87/head,refs/pull/87/merge,refs/pull/89/head,refs/pull/90/head,refs/pull/91/head,refs/pull/94/head,refs/pull/95/head,refs/pull/96/head,refs/pull/97/head,refs/pull/98/head,refs/pull/98/merge,refs/pull/99/head,refs/tags/v0.0.1,refs/tags/v0.0.10,refs/tags/v0.0.11,refs/tags/v0.0.12,refs/tags/v0.0.13,refs/tags/v0.0.14,refs/tags/v0.0.2,refs/tags/v0.0.3,refs/tags/v0.0.4,refs/tags/v0.0.5,refs/tags/v0.0.6,refs/tags/v0.0.7,refs/tags/v0.0.8,refs/tags/v0.0.9,refs/tags/v0.1.0,refs/tags/v0.1.1,refs/tags/v0.1.10,refs/tags/v0.1.11,refs/tags/v0.1.12,refs/tags/v0.1.13,refs/tags/v0.1.14,refs/tags/v0.1.15,refs/tags/v0.1.2,refs/tags/v0.1.3,refs/tags/v0.1.4,refs/tags/v0.1.5,refs/tags/v0.1.6,refs/tags/v0.1.7,refs/tags/v0.1.8,refs/tags/v0.1.9,refs/tags/v0.2.0,refs/tags/v0.2.1,refs/tags/v0.3.1" for "https://github.com/oxyc/luaparse.git". ``` I found...
Is it possible to change tab size
I'm not sure if this is a bug or a different code style from what I'm used to, but if I have a long if statement, like this one: ```lua...
Hi there! I wanted to be able to have inline anonymous function expressions, like so: ```lua local ok, err = pcall(function() -- logic end) ``` I've added a new configuration...
*fixed from previous PR to not re format import when format empty if block without else the comment is not indent properly input: ```lua if 1 then -- body IfClause...
This pull request fixes this issue that I reported in October: https://github.com/trixnz/lua-fmt/issues/35 Credits to Arpple for providing the code that fixed the issue in this comment: https://github.com/trixnz/lua-fmt/issues/35#issuecomment-430600174 Before: ```lua instance...
 Running the formatter here changed the code's meaning/purpose. It's a bit of an edge case. Changing it to have an if instead of "or function() end" made the formatter...
 # Why In order to ensure `lua-fmt` has been run We want to be able to run `lua-fmt --list-different` that exits with exit code above 0 if formatting...
If I have a variable and assign the result of a function that receives a table to it, like this: ```lua instance = MyClass.new({ stuff }) ``` ...The formatted code...