![]() lua53c - globals of Lua 5.3 compiled with LUA_COMPAT_5_2.lua52c - globals of Lua 5.2 compiled with LUA_COMPAT_ALL.lua51 - globals of Lua 5.1 without deprecated ones.min - intersection of globals of Lua 5.1 - 5.4 and LuaJIT 2.x.max - union of globals of Lua 5.1 - 5.4 and LuaJIT 2.x.Optionįilter out warnings related to global variables.įilter out warnings related to unused variables and values.įilter out warnings related to redefined variables.įilter out warnings related to unused arguments and loop variables.įilter out warnings related to unused variables set together with used ones.įilter out warnings related to implicit self argument. Note that options that may take several arguments, such as -globals, should not be used immediately before positional arguments given -globals foo bar a, luacheck will consider all foo, bar and a global and then panic as there are no file names left. Options taking several arguments can be used several times -ignore foo -ignore bar is equivalent to -ignore foo bar. For long options, both -option value or -option=value can be used. Short options that do not take an argument can be combined into one, so that -qqu is equivalent to -q -q -u. Exit code is 4 if there was a critical error (invalid CLI arguments, config, or cache file).Exit code is 3 if some files couldn’t be checked, typically due to an incorrect file name.Exit code is 2 if there were some syntax errors or invalid inline options.Exit code is 1 if some warnings occurred but there were no syntax errors or invalid inline options.Exit code is 0 if no warnings or errors occurred.Src/unused_a:22:1: value assigned to variable z is unused Src/unused_a:14:1: value assigned to variable x is unused Src/unused_a:13:7: value assigned to variable x is unused Src/unused_a:7:17: unused loop variable c Src/unused_a:7:14: unused loop variable b Src/unused_a:7:11: unused loop variable a Src/python_a:1:6: expected '=' near '_future_' Src/bad_a:9:11: accessing undefined variable hepler Src/bad_a:8:10: variable opt was previously defined as an argument on line 7 Src/bad_a:7:10: setting non-standard global variable embrace Src/bad_a:3:23: unused variable length argument Sometimes it may be useful to disable automatic formatting.Src/bad_a:3:16: unused variable helper See this file Default configuration column_limit: 80 Style configure fileĬonfiguration parameters not specified fallback to their default values. The program will give the top priority to the configuration values given in the command-line, then to the configuration files and finally to the hard-coded default values. In case there's no file, it will fallback to the default configuration. On Linux it will use $XDG_CONFIG_HOME/luaformatter/config.yaml if. lua-format file in a parent directory recursively. If none is found, it will try to locate a. lua-format file if no config file is passed in the command line. ![]() The program will attempt to automatically use the current directory's. ![]() "-" can be used to terminate flag options and force all followingĪrguments to be treated as positional options line-separator= input(determined by the input content), spaces-around-equals-in-field Put spaces around the equal sign in no-spaces-inside-table-braces Do not put spaces on the inside of spaces-inside-table-braces Put spaces on the inside of braces in no-single-quote-to-double-quote Do not transform string literals to use single-quote-to-double-quote Transform string literals to use double no-double-quote-to-single-quote Do not transform string literals to use double-quote-to-single-quote Transform string literals to use single no-break-after-operator Do not put break after operators break-after-operator Put break after operators no-extra-sep-at-table-end Do not add extra field separator at end extra-sep-at-table-end Add extra field separator at end of no-chop-down-kv-table Do not chop down table if table contains chop-down-kv-table Chop down table if table contains key no-chop-down-table Do not chop down any table ![]() The easiest way to install is to use LuaRocks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |