[Tarantool-patches] [PATCH 1/6] Add initial luacheck config

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


From: Sergey Bronnikov <sergeyb at tarantool.org>

config includes all files with Lua source code except:
- third_party repositories
- directories with diff-based tests

How-to check:

$ luacheck --codes --config .luacheckrc .

Part of #4681

Reviewed-by: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
Co-authored-by: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
---
 .luacheckrc | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .luacheckrc

diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644
index 000000000..e6edf8617
--- /dev/null
+++ b/.luacheckrc
@@ -0,0 +1,16 @@
+std = "luajit"
+
+include_files = {
+    "**/*.lua",
+}
+
+exclude_files = {
+    "build/**/*.lua",
+    "extra/**/*.lua",
+    "src/**/*.lua",
+    "test-run/**/*.lua",
+    "test/**/*.lua",
+    "third_party/**/*.lua",
+    ".rocks/**/*.lua",
+    ".git/**/*.lua",
+}
-- 
2.23.0



More information about the Tarantool-patches mailing list