Skip to content

Commit 26b5cde

Browse files
committed
ci(selene): ban bad ways of loading Lua files
1 parent 2e9393c commit 26b5cde

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.unicorn-custom.selene.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
globals:
2+
dofile:
3+
args:
4+
- type: string
5+
deprecated:
6+
message: "dofile should not be used in this project; use require instead"
7+
loadfile:
8+
args:
9+
- type: string
10+
deprecated:
11+
message: "loadfile should not be used in this project; use require instead"
12+
os.loadAPI:
13+
args:
14+
- type: string
15+
deprecated:
16+
message: "os.loadAPI should not be used in this project; use require instead"
17+
os.unloadAPI:
18+
args:
19+
- type: string
20+
deprecated:
21+
message: "os.unloadAPI should not be used in this project; use require instead"

selene.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
std = ".cc-tweaked.selene+.mcfly.selene"
1+
std = ".cc-tweaked.selene+.mcfly.selene+.unicorn-custom.selene"
22

33
exclude = [
44
"vendor/**",

0 commit comments

Comments
 (0)