Move to selene from luacheck

This commit is contained in:
eryn L. K 2021-12-27 21:37:04 -05:00
parent 0b8d55a4c3
commit e7033308ec
4 changed files with 70 additions and 25 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
node_modules/ node_modules/
.vscode .vscode
build build
roblox.toml

View file

@ -1,24 +0,0 @@
stds.roblox = {
read_globals = {
"script", "spawn", "warn", "Instance",
}
}
stds.testez = {
read_globals = {
"describe",
"it", "itFOCUS", "itSKIP",
"FOCUS", "SKIP", "HACK_NO_XPCALL",
"expect",
}
}
ignore = {
"212", -- unused arguments
}
std = "lua51+roblox"
files["**/*.spec.lua"] = {
std = "+testez",
}

1
selene.toml Normal file
View file

@ -0,0 +1 @@
std = "roblox+testez"

67
testez.toml Normal file
View file

@ -0,0 +1,67 @@
# TestEZ
[[afterAll.args]]
type = "function"
[[afterEach.args]]
type = "function"
[[beforeAll.args]]
type = "function"
[[beforeEach.args]]
type = "function"
[[describe.args]]
type = "string"
[[describe.args]]
type = "function"
[[describeFOCUS.args]]
type = "string"
[[describeFOCUS.args]]
type = "function"
[[describeSKIP.args]]
type = "string"
[[describeSKIP.args]]
type = "function"
[[expect.args]]
type = "any"
[[FIXME.args]]
type = "string"
required = false
[FOCUS]
args = []
[[it.args]]
type = "string"
[[it.args]]
type = "function"
[[itFIXME.args]]
type = "string"
[[itFIXME.args]]
type = "function"
[[itFOCUS.args]]
type = "string"
[[itFOCUS.args]]
type = "function"
[[itSKIP.args]]
type = "string"
[[itSKIP.args]]
type = "function"
[SKIP]
args = []