[Tarantool-patches] [PATCH v5 01/10] Add initial luacheck config
Igor Munkin
imun at tarantool.org
Wed May 27 01:15:10 MSK 2020
Sergey,
Thanks for the patch! Please consider several comments I left below.
On 12.05.20, sergeyb at tarantool.org wrote:
> 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 .
>
> Closes #4681
>
> Reviewed-by: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
> Co-authored-by: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
> ---
> .luacheckrc | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 .luacheckrc
>
> diff --git a/.luacheckrc b/.luacheckrc
> new file mode 100644
> index 000000000..2683c8c26
> --- /dev/null
> +++ b/.luacheckrc
> @@ -0,0 +1,26 @@
> +include_files = {
> + "**/*.lua",
> + "extra/dist/tarantoolctl.in",
> +}
> +
> +exclude_files = {
Minor: IMHO, it is worth to be sorted for better maintenance.
> + "build/**/*.lua",
> + "src/box/lua/serpent.lua", -- third-party source code
> + "test/app/*.lua",
> + "test/app-tap/lua/serializer_test.lua",
Why did you exclude the file above?
> + "test/box/**/*.lua",
> + "test/engine/*.lua",
> + "test/engine_long/*.lua",
> + "test/long_run-py/**/*.lua",
> + "test/vinyl/*.lua",
Several chunks in test/vinyl/ directory are not diff-based tests but
either instance configs (e.g. test/vinyl/vinyl.lua) or auxiliary modules
(e.g. test/vinyl/large.lua). I guess we need to check at least the
latter ones.
> + "test/replication/*.lua",
> + "test/sql/*.lua",
> + "test/swim/*.lua",
> + "test/xlog/*.lua",
> + "test/wal_off/*.lua",
> + "test/var/**/*.lua",
> + "test-run/**/*.lua",
> + "third_party/**/*.lua",
> + ".rocks/**/*.lua",
> + ".git/**/*.lua",
> +}
> --
> 2.23.0
>
--
Best regards,
IM
More information about the Tarantool-patches
mailing list