From d33836d26657719969958518f576628315ab0aed Mon Sep 17 00:00:00 2001 From: Jackson Law <178053+jlaw@users.noreply.github.com> Date: Fri, 27 Aug 2021 09:01:15 -0700 Subject: [PATCH] chore: Remove selene comments and references (#106) --- docs/contributing.md | 8 -------- docs/getting_started.md | 2 -- lua/doom/core/config/init.lua | 2 -- lua/doom/extras/logging/init.lua | 1 - lua/doom/modules/built-in/compiler/init.lua | 1 - lua/doom/modules/built-in/runner/init.lua | 1 - lua/doom/modules/config/doom-compe.lua | 2 -- 7 files changed, 17 deletions(-) diff --git a/docs/contributing.md b/docs/contributing.md index f7291915b..d98e230ae 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -88,13 +88,6 @@ quote_style = "AutoPreferDouble" > **NOTE:** use `--config-path /path/to/doom/nvim/stylua.toml` to use doom's > stylua configuration. -- [selene] is a blazing-fast modern Lua linter written in Rust which is used for - linting doom's source code. We make use of some custom rules so we can be sure - that selene will not raise false errors. - -> **NOTE:** use `selene .` in doom's root dir and selene will automatically -> detect the `selene.toml` and `doom.toml` files. - #### Commits & PRs - Target `develop` instead of `main`. @@ -113,4 +106,3 @@ your pull request :) [gist]: https://gist.github.com/ [stylua]: https://github.com/JohnnyMorganz/StyLua -[selene]: https://github.com/Kampfkarren/selene diff --git a/docs/getting_started.md b/docs/getting_started.md index b6b18581e..5e0a9b2a3 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -544,8 +544,6 @@ But first let's see what's new: documentation is the core of all projects. - Restructured source code. Now the doom nvim source code is much cleaner and easier to understand. -- Added selene linter CI for incoming pull requests and stylua CI for pushes. - Let's get a consistent way to maintain Doom Nvim source! Now that we know what's new we will surely want to update, isn't it? diff --git a/lua/doom/core/config/init.lua b/lua/doom/core/config/init.lua index 7ccab825f..7727b4592 100644 --- a/lua/doom/core/config/init.lua +++ b/lua/doom/core/config/init.lua @@ -438,7 +438,6 @@ end -- -- @param langs The list of languages in the doomrc M.install_servers = function(langs) - -- selene: allow(undefined_variable) if packer_plugins and packer_plugins["lspinstall"] and packer_plugins["lspinstall"].loaded then local lspinstall = require("lspinstall") local installed_servers = lspinstall.installed_servers() @@ -469,7 +468,6 @@ end -- -- @param langs The list of languages in the doomrc M.install_dap_clients = function(langs) - -- selene: allow(undefined_variable) if packer_plugins and packer_plugins["DAPInstall.nvim"] diff --git a/lua/doom/extras/logging/init.lua b/lua/doom/extras/logging/init.lua index 9dc12de41..93229d47c 100644 --- a/lua/doom/extras/logging/init.lua +++ b/lua/doom/extras/logging/init.lua @@ -65,7 +65,6 @@ local default_config = { -- {{{ NO NEED TO CHANGE local log = {} --- selene: allow(incorrect_standard_library_use) local unpack = unpack or table.unpack log.new = function(config, standalone) diff --git a/lua/doom/modules/built-in/compiler/init.lua b/lua/doom/modules/built-in/compiler/init.lua index 8da8b7408..087911f22 100644 --- a/lua/doom/modules/built-in/compiler/init.lua +++ b/lua/doom/modules/built-in/compiler/init.lua @@ -1,7 +1,6 @@ local log = require("doom.extras.logging") local term --- selene: allow(undefined_variable) if packer_plugins and packer_plugins["nvim-toggleterm.lua"] then term = require("toggleterm.terminal").Terminal else diff --git a/lua/doom/modules/built-in/runner/init.lua b/lua/doom/modules/built-in/runner/init.lua index 7294f06b6..a378ac9ac 100644 --- a/lua/doom/modules/built-in/runner/init.lua +++ b/lua/doom/modules/built-in/runner/init.lua @@ -1,7 +1,6 @@ local log = require("doom.extras.logging") local term --- selene: allow(undefined_variable) if packer_plugins and packer_plugins["nvim-toggleterm.lua"] then term = require("toggleterm.terminal").Terminal else diff --git a/lua/doom/modules/config/doom-compe.lua b/lua/doom/modules/config/doom-compe.lua index 1f7c5e60e..18c4c7c4a 100644 --- a/lua/doom/modules/config/doom-compe.lua +++ b/lua/doom/modules/config/doom-compe.lua @@ -1,5 +1,3 @@ ---# selene: allow(global_usage) - --- nvim-compe configuration -- https://github.com/hrsh7th/nvim-compe#lua-config return function()