From a37d5598052861dd799660f00699f5ef4207a20f Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Mon, 4 Sep 2023 02:02:15 +0200 Subject: [PATCH] style: add selene.toml --- selene.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 selene.toml diff --git a/selene.toml b/selene.toml new file mode 100644 index 0000000..b79ce95 --- /dev/null +++ b/selene.toml @@ -0,0 +1,18 @@ +std = "lua51" # LuaJit (used by nvim) is based on Lua 5.1 + +[lints] +# disabled since duplication with LSP +undefined_variable = "allow" +unused_variable = "allow" +empty_if = "allow" +unscoped_variables = "allow" +multiple_statements = "allow" + +# enabled +high_cyclomatic_complexity = "warn" + +# changed severity +if_same_then_else = "warn" + +[config] +high_cyclomatic_complexity = { maximum_complexity = 20 }