File tree Expand file tree Collapse file tree 6 files changed +19
-9
lines changed Expand file tree Collapse file tree 6 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 17
17
local base_prometheus = require (" resty.prometheus" )
18
18
local core = require (" apisix.core" )
19
19
local ipairs = ipairs
20
+ local ngx = ngx
20
21
local ngx_capture = ngx .location .capture
21
22
local re_gmatch = ngx .re .gmatch
22
23
local prometheus
Original file line number Diff line number Diff line change 17
17
local core = require (" apisix.core" )
18
18
local to_hex = require " resty.string" .to_hex
19
19
local new_span_context = require (" opentracing.span_context" ).new
20
+ local ngx = ngx
21
+ local string = string
22
+ local pairs = pairs
23
+ local tonumber = tonumber
20
24
21
25
local function hex_to_char (c )
22
26
return string.char (tonumber (c , 16 ))
Original file line number Diff line number Diff line change 14
14
-- See the License for the specific language governing permissions and
15
15
-- limitations under the License.
16
16
--
17
+ local assert = assert
18
+ local type = type
19
+ local setmetatable = setmetatable
20
+ local math = math
21
+
22
+
17
23
local _M = {}
18
24
local mt = { __index = _M }
19
25
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ local resty_http = require "resty.http"
18
18
local to_hex = require " resty.string" .to_hex
19
19
local cjson = require " cjson" .new ()
20
20
cjson .encode_number_precision (16 )
21
+ local assert = assert
22
+ local type = type
23
+ local setmetatable = setmetatable
24
+ local math = math
25
+ local tostring = tostring
21
26
22
27
23
28
local _M = {}
Original file line number Diff line number Diff line change 16
16
--
17
17
local core = require (" apisix.core" )
18
18
local balancer = require (" ngx.balancer" )
19
+ local bit = require " bit"
20
+ local ngx = ngx
19
21
local ngx_exit = ngx .exit
20
22
local str_byte = string.byte
21
23
local str_sub = string.sub
Original file line number Diff line number Diff line change @@ -21,15 +21,7 @@ set -ex
21
21
22
22
luacheck -q apisix
23
23
24
- ./utils/lj-releng \
25
- apisix/* .lua \
26
- apisix/admin/* .lua \
27
- apisix/core/* .lua \
28
- apisix/http/* .lua \
29
- apisix/http/router/* .lua \
30
- apisix/plugins/* .lua \
31
- apisix/plugins/grpc-transcode/* .lua \
32
- apisix/plugins/limit-count/* .lua > \
24
+ find apisix -name ' *.lua' -exec ./utils/lj-releng {} + > \
33
25
/tmp/check.log 2>&1 || (cat /tmp/check.log && exit 1)
34
26
35
27
grep -E " ERROR.*.lua:" /tmp/check.log > /tmp/error.log | true
You can’t perform that action at this time.
0 commit comments