style: add selene.toml

remotes/origin/HEAD
pseudometa 2023-09-04 02:02:15 +02:00
parent 13b773cb39
commit a37d559805
1 changed files with 18 additions and 0 deletions

18
selene.toml Normal file
View File

@ -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 }