-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselene.toml
27 lines (21 loc) · 844 Bytes
/
selene.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Use Vim standard library
std = "vim"
# General configuration
[config]
# Lua version to target
lua_version = "5.1" # Neovim uses LuaJIT which is compatible with Lua 5.1
# Rule configurations
[rules]
# Allow using global variables (needed for Neovim API)
global_usage = "allow"
# Allow multiple statements on one line (for compact code)
multiple_statements = "allow"
# Allow non-standard library usage (needed for Neovim API)
incorrect_standard_library_use = "allow"
# Allow mixed table types (common in Neovim configs)
mixed_table = "allow"
# Additional rules for better code quality
empty_if = "warn" # Warn about empty if statements
shadowing = "warn" # Warn about shadowing variables
undefined_variable = "warn" # Warn about undefined variables
unused_variable = "warn" # Warn about unused variables