Commit 01515cc7 authored by François Perrad's avatar François Perrad

luacheck 0.8.0

parent b90b37e7
globals = {
codes = true
read_globals = {
-- Test.More
'plan',
'done_testing',
......@@ -27,8 +28,6 @@ globals = {
'todo_skip',
'skip_rest',
'todo',
-- Spore
'Spore',
-- Test.LongString
'is_string',
'is_string_nows',
......@@ -37,3 +36,9 @@ globals = {
'contains_string',
'lacks_string',
}
globals = {
-- Spore
'Spore',
}
ignore = { '212/req', '212/self' }
files['test/41-proxy_basic.t'].ignore = { '122/os' }
......@@ -127,8 +127,8 @@ test_eg:
prove --exec=$(LUA) ./eg/*.lua
luacheck:
luacheck --std=max --no-unused-args src
luacheck --std=min --no-unused-args --config .test.luacheckrc test/*.t
luacheck --std=max --codes src --ignore 212 --ignore 213 --ignore 512
luacheck --std=min --config .test.luacheckrc test/*.t
coverage:
rm -f ./luacov.stats.out ./luacov.report.out
......
......@@ -20,7 +20,7 @@ local n = 1000000
if package.loaded['luacov'] then
n = n / 200
end
for i = 1, n do end
for _ = 1, n do --[[no op]] end
local res = { headers = {} }
is( res, cb(res) )
local header = res.headers['x-spore-runtime']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment