Open AlejandroSuero opened 4 months ago
@AlejandroSuero This issue has nothing to do with none-ls. You are not using selene exclude correctly (refer to the docs). Also Mixing two linters is by general rule a bad idea.
@Zeioth according to the documentation, in the excluding files section this is how it is supposed to work.
I'm not planning on mixing them (in the minimal I only use one), I am trying to support selene linting for people that don't use luacheck inside a project but want to have the linting diagnostics and have selene already installed, thats all.
Project tree:
.git/
.github/
.gitignore
.luacheckrc
.luarc.json
.markdownlint.json
.yamllint.yml
colorscheme-installer-scm-1.rockspec
contrib/
doc/
LICENSE
lua/
luacov.stats.out
Makefile
neovim.yml
README.md
scripts/
selene.toml
stylua.toml
tests/
selene .
and selene .luacheckrc
excluding the files from command-line:selene --no-exclude .luacheckrc
not excluding the files from command-line:none-ls
not excluding the files:With my own config
With the minimal config
FAQ
Issues
Neovim Version
NVIM v0.9.5 Build type: RelWithDebInfo LuaJIT 2.1.1692716794
Dev Version?
Operating System
MacOS 14.4.1
Minimal Config
Steps to Reproduce
In a testing enviroment (a directory for a lua project), have the following files.
selene.toml
file with the following config:neovim.yml
file with the following config:.luacheckrc
file with the following config:nvim --clean -u minimal_init.lua
and navigate to:e .luacheckrc
Reproducibility Check
minimal_init.lua
template and that my issue is reproducible by runningnvim --clean -u minimal_init.lua
and following the steps above.Expected Behavior
To not display any diagnostics from
selene
inside excluded files.Actual Behavior
Displaying diagnostics from
selene
inside excluded files.Debug Log
Help
No
Implementation Help
No response
Requirements