You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
StyLua accepts wide lines in examples that require 80 columns #207
area:examplesRunnable examples, their published output, and the public showcase.bugSomething isn't workingluaPull requests that update Lua codep3Lower urgency work with a working alternative or limited current impact.topic:examplesWorked examples, sample applications, and user guides.
The Lua example style guide sets an 80-column limit. Running the project’s StyLua command accepts an 88-column line in an example, so contributors can pass the formatter and still publish code that wraps on the documentation site.
Reproduction
Put these two lines in a disposable file under examples/ and run the formatter check. Repeat with the same file under tests/unit/.
locallabels= { "a private tmux pane", "a standalone Lua example", "a terminal reply" }
returnlabels
The formatter should wrap the example. The same source line under tests/unit/ fits the project’s 100-column width.
Actual
StyLua 2.4.0 exited successfully for both files. Giving examples/ its documented width made the example check report the line, and the project’s existing Lua examples already passed.
area:examplesRunnable examples, their published output, and the public showcase.bugSomething isn't workingluaPull requests that update Lua codep3Lower urgency work with a working alternative or limited current impact.topic:examplesWorked examples, sample applications, and user guides.
Activity