Skip to content

Leverage Lute to add useful check scripts#27

Draft
techs-sus wants to merge 7 commits intomainfrom
migrate-to-lute
Draft

Leverage Lute to add useful check scripts#27
techs-sus wants to merge 7 commits intomainfrom
migrate-to-lute

Conversation

@techs-sus
Copy link
Copy Markdown
Collaborator

@techs-sus techs-sus commented Apr 8, 2026

currently implemented with lute is a worker manager contract validator

the checkAll script currently has two modes:

  • graph: generates an ArrowCrab require graph (pass option --graph)
  • check: check for unsafe usage of globals, do not pass --graph

example usage: lute run .\checks\checkAll.luau lute run .\checks\checkAll.luau --graph

also its not a hard requirement that we will use arrowcrab as a graph, or even have a graph in the first place, just thought it would be good to visualize

in the future, we can also implement the package manager idea (#21) with pesde + simple lute scripts that can localize used globals

note! currently this script emits a file with ~639 entries of unsafe global usage in worker manager code, which should also be addressed

two modes:
- graph: display require graph (pass option `--graph`
- check: check for unsafe usage of globals, do not pass `--graph`

example usage:
`lute run .\checks\checkAll.luau`
`lute run .\checks\checkAll.luau --graph`
@techs-sus
Copy link
Copy Markdown
Collaborator Author

with lute we can also implement secret validation; ex if _G.blah (blah secret) is an invalid secret key, emit a warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant