mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 08:32:42 +00:00
build: enable lintlua for test/unit/ dir #26396
Problem: Not all Lua code is checked by stylua. Automating code-style is an important mechanism for reducing time spent on accidental (non-essential) complexity. Solution: - Enable lintlua for `test/unit/` directory. - TODO: only `test/functional/` remains unchecked. previous:45fe4d11adprevious:517f0cc634
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
local helpers = require("test.unit.helpers")(after_each)
|
||||
local helpers = require('test.unit.helpers')(after_each)
|
||||
local itp = helpers.gen_itp(it)
|
||||
|
||||
local ffi = helpers.ffi
|
||||
local eq = helpers.eq
|
||||
local to_cstr = helpers.to_cstr
|
||||
|
||||
local cimp = helpers.cimport('./src/nvim/message.h', './src/nvim/memory.h',
|
||||
'./src/nvim/strings.h')
|
||||
local cimp = helpers.cimport('./src/nvim/message.h', './src/nvim/memory.h', './src/nvim/strings.h')
|
||||
|
||||
describe('trunc_string', function()
|
||||
local buflen = 40
|
||||
@@ -34,8 +33,8 @@ describe('trunc_string', function()
|
||||
{ ['desc'] = 'by copy', ['func'] = test_copy },
|
||||
}
|
||||
|
||||
for _,t in ipairs(permutations) do
|
||||
describe('populates buf '..t.desc, function()
|
||||
for _, t in ipairs(permutations) do
|
||||
describe('populates buf ' .. t.desc, function()
|
||||
itp('with a small string', function()
|
||||
t.func('text', 'text')
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user