Skip to content

Commit cebe9ec

Browse files
committed
Forbid unsafe code in editor
1 parent ebadcf0 commit cebe9ec

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎.luacheckrc‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ files["libs_sb/utils/luaunit.lua"] = { ignore = {"581"} }
2424
-- Third-party code bundled into the tree (git submodules, vendored libraries,
2525
-- Chili UI skins, engine widgets/gadgets). Not SBC editor source, so not linted.
2626
exclude_files = {
27+
-- Generated distributions and build outputs may contain engine Lua files.
28+
"artifacts/**",
29+
"launcher/.dev-runtime/**",
30+
"launcher/target/**",
31+
"launcher/tauri/dist/**",
32+
"launcher/tauri/node_modules/**",
2733
"libs_sb/chiliui/**",
2834
"libs_sb/chonsole/**",
2935
"libs_sb/s11n/**",

‎native/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(clippy::not_unsafe_ptr_arg_deref)]
1+
#![forbid(unsafe_code)]
22
#![allow(clippy::module_inception)]
33
#![allow(clippy::upper_case_acronyms)]
44

File renamed without changes.

0 commit comments

Comments
 (0)