-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New std format can define nested trees of allowed fields within globals and their read-only status. This tree can be alerted by using field names such as `foo.bar` in all global-related options. Warnings related to operations on unfefined fields within defined globals use new warning codes 142 (set) and 143 (access). TODO: precise builtin definitions of standard Lua libraries. TODO: precise default std (use standard lib of Lua used to run Luacheck). TODO: a new CLI-level test for all of this. TODO: docs.
- Loading branch information
Showing
20 changed files
with
1,129 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
stds = { | ||
my_std = {"print", "setfenv"}, | ||
other_std = {"tostring", "setfenv"} | ||
my_std = {read_globals = {"print", "setfenv"}}, | ||
other_std = {read_globals = {"tostring", "setfenv"}} | ||
} | ||
|
||
std = "my_std" |
Oops, something went wrong.