You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
undefined_variable now properly catches global as undefined in function global.name().
Added the "luau" builtin library.
unused_variable and incorrect_standard_library_use will now suggest configuring a standard library if one is detected.
Added constant_table_comparison check to catch x == {}, which will always fail.
Added high_cyclomatic_complexity check to catch overly complex functions that are hard to test, and harder to reason about. This lint is disabled by default.
Added Font.new to the Roblox standard library.
roblox_incorrect_roact_usage now lints for invalid events.
Changed
Match .luau filename extension by default.
Allow --pattern to be passed multiple times.
roblox_incorrect_roact_usage now uses the generated standard library to know what classes and properties exist, meaning a selene update is no longer necessary to update.
Roblox standard libraries are now guaranteed to regenerate when the previously generated standard library is on a different version.
Fixed
Fixed unused_variable incorrectly tagging function global.name() when global is defined in the standard library.
Fixed unscoped_variables incorrectly tagging function global.name() as creating an unscoped variable for global.
Fixed roblox_incorrect_roact_usage always showing the class name as "Instance". (#297)
roblox_incorrect_roact_usage will now find instances of createElement that do not specify properties.
Fixed issues where roblox_incorrect_color3_new_bounds would sometimes fail to run.