[Tarantool-patches] [PATCH 0/6] Add static analysis of Lua code in src/ and extra/ with luacheck

sergeyb at tarantool.org sergeyb at tarantool.org
Thu Jun 4 11:39:01 MSK 2020


From: Sergey Bronnikov <sergeyb at tarantool.org>

Sergey Bronnikov (6):
  Add initial luacheck config
  build: enable 'make luacheck' target
  gitlab-ci: enable static analysis with luacheck
  Fix luacheck warnings in extra/dist/
  Fix luacheck warnings in src/lua/
  Fix luacheck warnings in src/box/lua/

 .gitlab-ci.yml                  | 11 +++++++
 .luacheckrc                     | 55 +++++++++++++++++++++++++++++++++
 .travis.mk                      | 23 +++++++++++++-
 CMakeLists.txt                  | 11 +++++++
 extra/dist/tarantoolctl.in      | 25 +++++----------
 src/box/lua/console.lua         | 10 +++---
 src/box/lua/feedback_daemon.lua |  2 +-
 src/box/lua/key_def.lua         |  2 +-
 src/box/lua/load_cfg.lua        | 11 +++----
 src/box/lua/net_box.lua         | 52 ++++++++++++-------------------
 src/box/lua/schema.lua          | 44 +++++++++++++-------------
 src/box/lua/tuple.lua           |  8 ++---
 src/box/lua/upgrade.lua         | 19 ++++++------
 src/lua/argparse.lua            |  3 +-
 src/lua/buffer.lua              |  4 +--
 src/lua/clock.lua               |  2 +-
 src/lua/crypto.lua              |  4 +--
 src/lua/csv.lua                 |  5 ++-
 src/lua/digest.lua              |  2 +-
 src/lua/env.lua                 |  2 +-
 src/lua/fiber.lua               |  4 +--
 src/lua/fio.lua                 | 30 +++++++++---------
 src/lua/help.lua                |  7 ++---
 src/lua/httpc.lua               |  3 --
 src/lua/init.lua                |  4 +--
 src/lua/msgpackffi.lua          | 22 ++++++-------
 src/lua/socket.lua              | 16 +++++-----
 src/lua/string.lua              |  1 -
 src/lua/swim.lua                |  2 +-
 src/lua/tap.lua                 |  4 ---
 src/lua/trigger.lua             |  3 --
 31 files changed, 220 insertions(+), 171 deletions(-)
 create mode 100644 .luacheckrc

-- 
2.23.0


More information about the Tarantool-patches mailing list