mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-12 16:35:11 +09:00
`Roles.new_role` returned the result of `error`, which made it nullable, and `set_permission_group` returned nil for an unknown group, which broke the config chain with an index error rather than saying so. Positions and bounding boxes read back from the game always use the named members, so they are narrowed once where they enter a function. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
43 lines
1.7 KiB
JSON
43 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/refs/heads/main/crates/emmylua_code_analysis/resources/schema.json",
|
|
"runtime": {
|
|
"version": "Lua5.2",
|
|
"requirePattern": [ "?", "?.lua" ]
|
|
},
|
|
"workspace": {
|
|
"$comment-moduleMap": "Replaces the fmtk --clusterio-modules plugin, rewrites each file's own module path rather than the require string",
|
|
"ignoreDir": [ ".github", "web", "dist", "factorio" ],
|
|
"ignoreGlobs": [ "**/node_modules/**", "**/dist/**" ],
|
|
"moduleMap": [
|
|
{ "pattern": "^([^.]+)\\.module\\.module_exports$", "replace": "modules.$1" },
|
|
{ "pattern": "^([^.]+)\\.module\\.(.+)$", "replace": "modules.$1.$2" }
|
|
]
|
|
},
|
|
"doc": {
|
|
"privateName": [ "__*" ]
|
|
},
|
|
"$comment-disable": "Carried over from the luals config, which had these as editor only rather than checked in ci",
|
|
"$comment-unnecessary-if": "Disabled by the config fmtk generates for itself, the api union types make it unreliable",
|
|
"diagnostics": {
|
|
"globals": [ "__DebugAdapter", "__Profiler" ],
|
|
"disable": [
|
|
"assign-type-mismatch",
|
|
"await-in-sync",
|
|
"invert-if",
|
|
"missing-parameter",
|
|
"missing-return-value",
|
|
"param-type-mismatch",
|
|
"preferred-local-alias",
|
|
"redefined-local",
|
|
"redundant-parameter",
|
|
"redundant-return-value",
|
|
"return-type-mismatch",
|
|
"unbalanced-assignments",
|
|
"undefined-doc-param",
|
|
"unnecessary-assert",
|
|
"unnecessary-if",
|
|
"unused"
|
|
]
|
|
}
|
|
}
|