From 5a47cc12f138ebd78d479d489583967f6f2fb603 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 26 Feb 2024 05:40:41 -0500 Subject: [PATCH] chore: move from luacheck to selene --- .luacheckrc | 16 ---------------- neovim.yml | 6 ++++++ selene.toml | 8 ++++++++ 3 files changed, 14 insertions(+), 16 deletions(-) delete mode 100644 .luacheckrc create mode 100644 neovim.yml create mode 100644 selene.toml diff --git a/.luacheckrc b/.luacheckrc deleted file mode 100644 index 64fc98d..0000000 --- a/.luacheckrc +++ /dev/null @@ -1,16 +0,0 @@ --- Global objects -globals = { - "vim", - "bit", -} - --- Rerun tests only if their modification time changed -cache = true - --- Don't report unused self arguments of methods -self = false - -ignore = { - "631", -- max_line_length - "212/_.*", -- unused argument, for vars with "_" prefix -} diff --git a/neovim.yml b/neovim.yml new file mode 100644 index 0000000..b9235ab --- /dev/null +++ b/neovim.yml @@ -0,0 +1,6 @@ +--- +base: lua51 + +globals: + vim: + any: true diff --git a/selene.toml b/selene.toml new file mode 100644 index 0000000..e7005c3 --- /dev/null +++ b/selene.toml @@ -0,0 +1,8 @@ +std = "neovim" + +[rules] +global_usage = "allow" +if_same_then_else = "allow" +incorrect_standard_library_use = "allow" +mixed_table = "allow" +multiple_statements = "allow"