Skip to content

Commit 825a795

Browse files
authored
Merge pull request #2536 from danpf/danpf-diagnostics-with-plugins
Enable plugins during --check
2 parents 3e6fd3c + 2a41f79 commit 825a795

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

script/cli/check.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ local config = require 'config.config'
1111
local fs = require 'bee.filesystem'
1212
local provider = require 'provider'
1313

14+
require 'plugin'
1415
require 'vm'
1516

1617
lang(LOCALE)

script/plugin.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ local function initPlugin(uri)
146146
return
147147
end
148148
local args = config.get(scp.uri, 'Lua.runtime.pluginArgs')
149+
if args == nil then args = {} end
149150
if type(pluginConfigPaths) == 'string' then
150151
pluginConfigPaths = { pluginConfigPaths }
151152
end

0 commit comments

Comments
 (0)