From fc647c179c84a32a546576aba5290a27f863b56d Mon Sep 17 00:00:00 2001 From: Michal Cichra Date: Fri, 1 Sep 2017 12:42:30 +0200 Subject: [PATCH] [luacheck] allow spec files in examples --- .luacheckrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.luacheckrc b/.luacheckrc index c2d45c1ac..ccb96e95c 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,5 +1,6 @@ std = 'ngx_lua+lua52' -- lua52 has table.pack -files["spec"] = {std = "+busted"} +busted = {std = "+busted"} +files["**/spec/**/*_spec.lua"] = busted globals = { 'ngx', 'unpack', 'rawlen' }