[Tarantool-patches] [PATCH v6 01/25] Add initial luacheck config
sergeyb at tarantool.org
sergeyb at tarantool.org
Fri May 29 18:08:54 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:
$ tarantoolctl rocks install luacheck
$ .rocks/bin/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 | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 .luacheckrc
diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644
index 000000000..81596e145
--- /dev/null
+++ b/.luacheckrc
@@ -0,0 +1,25 @@
+include_files = {
+ "**/*.lua",
+ "extra/dist/tarantoolctl.in",
+}
+
+exclude_files = {
+ "build/**/*.lua",
+ "test/app/*.lua",
+ "test/app-tap/lua/serializer_test.lua",
+ "test/box/**/*.lua",
+ "test/engine/*.lua",
+ "test/engine_long/*.lua",
+ "test/long_run-py/**/*.lua",
+ "test/replication/*.lua",
+ "test/sql/*.lua",
+ "test/swim/*.lua",
+ "test/var/**/*.lua",
+ "test/vinyl/*.lua",
+ "test/wal_off/*.lua",
+ "test/xlog/*.lua",
+ "test-run/**/*.lua",
+ "third_party/**/*.lua",
+ ".rocks/**/*.lua",
+ ".git/**/*.lua",
+}
--
2.23.0
More information about the Tarantool-patches
mailing list