mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
update luacheck args and copied lua extension configs to workspace
This commit is contained in:
parent
14dc814925
commit
93776a0421
14
.github/workflows/check.yml
vendored
14
.github/workflows/check.yml
vendored
@ -21,8 +21,12 @@ jobs:
|
|||||||
- name: Luacheck
|
- name: Luacheck
|
||||||
uses: lunarmodules/luacheck@v1.1.0
|
uses: lunarmodules/luacheck@v1.1.0
|
||||||
with:
|
with:
|
||||||
# -a = disable warning for unused arguments
|
# Argument Explanations
|
||||||
# -i 121 = Setting a read-only global variable.
|
# -a = Disable warning for unused arguments
|
||||||
# -u 512 = Loop can be executed at most once.
|
# -i 121 = Setting a read-only global variable
|
||||||
# -i 542 = An empty if branch.
|
# 512 = Loop can be executed at most once
|
||||||
args: . --no-max-line-length -a -i 121 512 542 --exclude-files ./lockbox/* ./*/config.lua --globals _HOST term fs peripheral rs bit parallel colors textutils shell settings window read periphemu http os
|
# 542 = An empty if branch
|
||||||
|
# --no-max-line-length = Disable warnings for long line lengths
|
||||||
|
# --exclude-files ... = Exclude lockbox library (external) and config files
|
||||||
|
# --globals ... = Override all globals overridden in .vscode/settings.json AND 'os' since CraftOS 'os' differs from Lua's 'os'
|
||||||
|
args: . --no-max-line-length -a -i 121 512 542 --exclude-files ./lockbox/* ./*/config.lua --globals os _HOST bit colors fs http parllel periphemu peripheral read rs settings shell term textutils window
|
||||||
|
38
.vscode/settings.json
vendored
38
.vscode/settings.json
vendored
@ -1,22 +1,26 @@
|
|||||||
{
|
{
|
||||||
"Lua.diagnostics.globals": [
|
"Lua.diagnostics.globals": [
|
||||||
"term",
|
|
||||||
"fs",
|
|
||||||
"peripheral",
|
|
||||||
"rs",
|
|
||||||
"bit",
|
|
||||||
"parallel",
|
|
||||||
"colors",
|
|
||||||
"textutils",
|
|
||||||
"shell",
|
|
||||||
"settings",
|
|
||||||
"window",
|
|
||||||
"read",
|
|
||||||
"periphemu",
|
|
||||||
"_HOST",
|
"_HOST",
|
||||||
"http"
|
"bit",
|
||||||
|
"colors",
|
||||||
|
"fs",
|
||||||
|
"http",
|
||||||
|
"parallel",
|
||||||
|
"periphemu",
|
||||||
|
"peripheral",
|
||||||
|
"read",
|
||||||
|
"rs",
|
||||||
|
"settings",
|
||||||
|
"shell",
|
||||||
|
"term",
|
||||||
|
"textutils",
|
||||||
|
"window"
|
||||||
],
|
],
|
||||||
"Lua.diagnostics.disable": [
|
"Lua.diagnostics.severity": {
|
||||||
"duplicate-set-field"
|
"unused-local": "Information",
|
||||||
]
|
"unused-vararg": "Information",
|
||||||
|
"unused-function": "Information",
|
||||||
|
"unused-label": "Information"
|
||||||
|
},
|
||||||
|
"Lua.hint.setType": true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user