Skip to content

[0.21.0] - 2022-09-17

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Sep 16:50

Added

  • 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.

New Contributors

  • @Yumacide made their first contribution in #399
  • @LastTalon made their first contribution in #401
  • @PysephWasntAvailable made their first contribution in #414