Skip to content

Commit f81edad

Browse files
committed
chore: add deprecating notice
1 parent bb680d7 commit f81edad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+462
-0
lines changed

lua/null-ls/builtins/code_actions/eslint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ local code_action_handler = function(params)
141141
return actions
142142
end
143143

144+
vim.notify_once(
145+
[[[null-ls] You required a deprecated builtin (code_actions/eslint.lua), which will be removed in March.
146+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
147+
vim.log.levels.WARN
148+
)
149+
144150
return h.make_builtin({
145151
name = "eslint",
146152
meta = {

lua/null-ls/builtins/code_actions/ltrs.lua

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ local handle_ltrs_output = function(params)
2828
return actions
2929
end
3030

31+
vim.notify_once(
32+
[[[null-ls] You required a deprecated builtin (code_actions/ltrs.lua), which will be removed in March.
33+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
34+
vim.log.levels.WARN
35+
)
36+
3137
return h.make_builtin({
3238
name = "ltrs",
3339
meta = {

lua/null-ls/builtins/code_actions/shellcheck.lua

+6
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ local code_action_handler = function(params)
145145
return actions
146146
end
147147

148+
vim.notify_once(
149+
[[[null-ls] You required a deprecated builtin (code_actions/shellcheck.lua), which will be removed in March.
150+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
151+
vim.log.levels.WARN
152+
)
153+
148154
return h.make_builtin({
149155
name = "shellcheck",
150156
meta = {

lua/null-ls/builtins/diagnostics/chktex.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/chktex.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "chktex",
814
meta = {

lua/null-ls/builtins/diagnostics/clang_check.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS_ON_SAVE = methods.internal.DIAGNOSTICS_ON_SAVE
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/clang_check.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "clang_check",
814
meta = {

lua/null-ls/builtins/diagnostics/cpplint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ local diagnostics = h.diagnostics.from_pattern(
1717
}
1818
)
1919

20+
vim.notify_once(
21+
[[[null-ls] You required a deprecated builtin (diagnostics/cpplint.lua), which will be removed in March.
22+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
23+
vim.log.levels.WARN
24+
)
25+
2026
return h.make_builtin({
2127
name = "cpplint",
2228
meta = {

lua/null-ls/builtins/diagnostics/curlylint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/curlylint.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "curlylint",
814
meta = {

lua/null-ls/builtins/diagnostics/deno_lint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ local u = require("null-ls.utils")
44

55
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
66

7+
vim.notify_once(
8+
[[[null-ls] You required a deprecated builtin (diagnostics/deno_lint.lua), which will be removed in March.
9+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
10+
vim.log.levels.WARN
11+
)
12+
713
return h.make_builtin({
814
name = "deno_lint",
915
meta = {

lua/null-ls/builtins/diagnostics/eslint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ local handle_eslint_output = function(params)
3232
return parser({ output = params.messages })
3333
end
3434

35+
vim.notify_once(
36+
[[[null-ls] You required a deprecated builtin (diagnostics/eslint.lua), which will be removed in March.
37+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
38+
vim.log.levels.WARN
39+
)
40+
3541
return h.make_builtin({
3642
name = "eslint",
3743
meta = {

lua/null-ls/builtins/diagnostics/flake8.lua

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ local custom_end_col = {
5050
end,
5151
}
5252

53+
vim.notify_once(
54+
[[[null-ls] You required a deprecated builtin (diagnostics/flake8.lua), which will be removed in March.
55+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
56+
vim.log.levels.WARN
57+
)
58+
5359
return h.make_builtin({
5460
name = "flake8",
5561
meta = {

lua/null-ls/builtins/diagnostics/gospel.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/gospel.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "gospel",
814
meta = {

lua/null-ls/builtins/diagnostics/jshint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/jshint.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "jshint",
814
meta = {

lua/null-ls/builtins/diagnostics/jsonlint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/jsonlint.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "jsonlint",
814
meta = {

lua/null-ls/builtins/diagnostics/luacheck.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/luacheck.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "luacheck",
814
meta = {

lua/null-ls/builtins/diagnostics/misspell.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/misspell.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "misspell",
814
meta = {

lua/null-ls/builtins/diagnostics/php.lua

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ local methods = require("null-ls.methods")
44

55
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
66

7+
vim.notify_once(
8+
[[[null-ls] You required a deprecated builtin (diagnostics/php.lua), which will be removed in March.
9+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
10+
vim.log.levels.WARN
11+
)
12+
713
return h.make_builtin({
814
name = "php",
915
meta = {

lua/null-ls/builtins/diagnostics/protoc_gen_lint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/protoc_gen_lint.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "protoc-gen-lint",
814
meta = {

lua/null-ls/builtins/diagnostics/psalm.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/psalm.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "psalm",
814
meta = {

lua/null-ls/builtins/diagnostics/puglint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ local methods = require("null-ls.methods")
44

55
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
66

7+
vim.notify_once(
8+
[[[null-ls] You required a deprecated builtin (diagnostics/puglint.lua), which will be removed in March.
9+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
10+
vim.log.levels.WARN
11+
)
12+
713
return h.make_builtin({
814
name = "puglint",
915
meta = {

lua/null-ls/builtins/diagnostics/puppet_lint.lua

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ local severities = {
66
warning = vim.lsp.protocol.DiagnosticSeverity.Warning,
77
}
88

9+
vim.notify_once(
10+
[[[null-ls] You required a deprecated builtin (diagnostics/puppet_lint.lua), which will be removed in March.
11+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
12+
vim.log.levels.WARN
13+
)
14+
915
return h.make_builtin({
1016
name = "puppet-lint",
1117
meta = {

lua/null-ls/builtins/diagnostics/pycodestyle.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/pycodestyle.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "pycodestyle",
814
meta = {

lua/null-ls/builtins/diagnostics/pydocstyle.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/pydocstyle.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "pydocstyle",
814
meta = {

lua/null-ls/builtins/diagnostics/pylama.lua

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
local h = require("null-ls.helpers")
22
local methods = require("null-ls.methods")
33

4+
vim.notify_once(
5+
[[[null-ls] You required a deprecated builtin (diagnostics/pylama.lua), which will be removed in March.
6+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
7+
vim.log.levels.WARN
8+
)
9+
410
return h.make_builtin({
511
name = "pylama",
612
meta = {

lua/null-ls/builtins/diagnostics/ruff.lua

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ local custom_end_col = {
4444
end,
4545
}
4646

47+
vim.notify_once(
48+
[[[null-ls] You required a deprecated builtin (diagnostics/ruff.lua), which will be removed in March.
49+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
50+
vim.log.levels.WARN
51+
)
52+
4753
return h.make_builtin({
4854
name = "ruff",
4955
meta = {

lua/null-ls/builtins/diagnostics/semistandardjs.lua

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ local methods = require("null-ls.methods")
44

55
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
66

7+
vim.notify_once(
8+
[[[null-ls] You required a deprecated builtin (diagnostics/semistandardjs.lua), which will be removed in March.
9+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
10+
vim.log.levels.WARN
11+
)
12+
713
return h.make_builtin({
814
name = "semistandardjs",
915
meta = {

lua/null-ls/builtins/diagnostics/shellcheck.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ local methods = require("null-ls.methods")
33

44
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
55

6+
vim.notify_once(
7+
[[[null-ls] You required a deprecated builtin (diagnostics/shellcheck.lua), which will be removed in March.
8+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
9+
vim.log.levels.WARN
10+
)
11+
612
return h.make_builtin({
713
name = "shellcheck",
814
meta = {

lua/null-ls/builtins/diagnostics/standardjs.lua

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ local methods = require("null-ls.methods")
44

55
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
66

7+
vim.notify_once(
8+
[[[null-ls] You required a deprecated builtin (diagnostics/standardjs.lua), which will be removed in March.
9+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
10+
vim.log.levels.WARN
11+
)
12+
713
return h.make_builtin({
814
name = "standardjs",
915
meta = {

lua/null-ls/builtins/diagnostics/standardrb.lua

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ local handle_rubocop_output = function(params)
3838
return {}
3939
end
4040

41+
vim.notify_once(
42+
[[[null-ls] You required a deprecated builtin (diagnostics/standardrb.lua), which will be removed in March.
43+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
44+
vim.log.levels.WARN
45+
)
46+
4147
return h.make_builtin({
4248
name = "standardrb",
4349
meta = {

lua/null-ls/builtins/diagnostics/tsc.lua

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ local get_client = function()
1111
end
1212
end
1313

14+
vim.notify_once(
15+
[[[null-ls] You required a deprecated builtin (diagnostics/tsc.lua), which will be removed in March.
16+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
17+
vim.log.levels.WARN
18+
)
19+
1420
return h.make_builtin({
1521
name = "tsc",
1622
meta = {

lua/null-ls/builtins/diagnostics/typos.lua

+6
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ local handle_typos_output = function(line)
6363
}
6464
end
6565

66+
vim.notify_once(
67+
[[[null-ls] You required a deprecated builtin (diagnostics/typos.lua), which will be removed in March.
68+
Please migrate to alternatives: https://github.com/nvimtools/none-ls.nvim/issues/58]],
69+
vim.log.levels.WARN
70+
)
71+
6672
return h.make_builtin({
6773
name = "typos",
6874
meta = {

0 commit comments

Comments
 (0)