Releases: Kampfkarren/selene
Releases · Kampfkarren/selene
[0.15.0] - 2021-11-05
Added
- Added
OverlapParams
to the Roblox standard library. - Added
Enum:GetEnums()
to the Roblox standard library. (#312) roblox_incorrect_color3_new_bounds
now checks for if the given number is negative. (#83)
Fixed
- Fixed standard library error when missing files. (#272)
- Fixed display style option triggering
ArgumentConflict
when using quiet option. (#288) bad_string_escape
now correctly handles escapes of the shape\1a
(one or two numbers followed by a hex digit). (#292)- Fixed Roblox types not counting towards usage. (#270)
Changed
duplicate_keys
now has a error severity. (#262)- Arguments of
collectgarbage
now considered to be optional. (#287) - Updated internal parser, adding new Luau syntax.
All commits
- Correctly handle one or two digit decimal string escapes followed by a hex digit in bad_string_escape by @Dekkonot in #293
- docs(Luacheck Comparison): fix standard library configuration link by @hituzi-no-sippo in #298
- Fixes #288 by @soutenu in #291
- remove title-only markdown in document by @hituzi-no-sippo in #299
- Fix cargo clippy && fmt by @zhiburt in #302
- Make
collectgarbage
arguments optional (#287) by @zhiburt in #300 - Make
dublicate_key
lint severity Error #(#262) by @zhiburt in #301 - Fixes #272 by @soutenu in #290
- Add OverlapParams by @Kampfkarren in #307
- Recognize type indexing as a reference by @Kampfkarren in #308
- Fix broken link in CHANGELOG.md by @soutenu in #310
- Support Enum:GetEnums() by @LouieK22 in #313
- Update Roblox-related section on installation page by @henriquehbr in #316
- Add Dockerfile by @henriquehbr in #315
- Add clippy and Rustfmt to CI by @Kampfkarren in #320
- Check negative numbers in Color3 bounds by @Kampfkarren in #319
- Add job to build and publish Docker images by @henriquehbr in #318
- Force exhaustive checks, fix clippy on CI by @Kampfkarren in #322
- full-moon 0.14.0 + selene 0.15.0 by @Kampfkarren in #323
New Contributors
- @hituzi-no-sippo made their first contribution in #298
- @soutenu made their first contribution in #291
- @zhiburt made their first contribution in #302
- @henriquehbr made their first contribution in #316
[0.14.0] - 2021-07-07
Added
- Added
task
library to Roblox standard library.
Changed
mismatched_arg_count
now tries to find the best overlap between multiple definitions, rather than ignoring them entirely. This means that if you havef(a)
andf(b, c)
defined, then callingf(1, 2, 3)
will now lint instead of silently passing, since no definition provided meets it.mismatched_arg_count
now shows all function definitions, rather than the local variable assignment. (#259)
Fixed
- Updated internal parser, fixing some bugs with Roblox parsing. See the changelog here.
[0.13.0] - 2021-07-01
Added
- Added
debug.info
to the Roblox standard library. (#260) - Tokenization errors now form rich diagnostics.
Changed
- Updated internal parser.
- Optimized linting process to run better with multiple threads.
Fixed
- Fixed internal selene panics exiting with a zero code. Panics will now exit with status code 1, allowing it to be picked up by CI.
- Fixed variables named
self
not showing as unused ifallow_unused_self
was enabled. The implicitself
variable being unused will still respect this configuration. (#215)
[0.12.1] - 2021-05-26
Fixed
- Fixed compile warning about unused variables.
[0.12.0] - 2021-05-26
Added
arg
is now defined in the Lua 5.1 standard library.- Root level
...
will no longer be declared an undefined variable. - Using
...
past the first depth will now error withundefined_variable
, as it is guaranteed improper code. - You can now combine a function with fields inside standard libraries. This is useful for something like
expect()
andexpect.extend()
. - Added
mismatched_arg_count
lint which will lint against too many arguments passed to calls for locally defined functions. - Added
duplicate_keys
lint for checking keys defined more than once inside a table.
Fixed
- Fixed a bug where some indexes of Roblox structures would fail (such as
workspace.CurrentCamera.ViewportSize.X
) - Fixed a bug where chaining
roblox
with another standard library would not read the other standard library ifroblox
was being generated. - Fixed a bug where
0.5 * x
would always resolve to a number.
Changed
- Updated internal parser. This has shown in practice to catch lints that the previous version did not.
[0.11.0] - 2021-01-04
Added
- Added support for DateTime in the Roblox standard library.
- Added support for
table.clear
in the Roblox standard library.
[0.10.1] - 2020-12-22
Fixed
- Fixed regressions related to numeric for loops.
[0.10.0] - 2020-12-21
[0.10.0] - 2020-12-21
Added
- Added inline lint filtering, read the documentation for more information.
- More errors now set the exit code.
- Added support for error({any}) to the Roblox standard library.
- Added initial support for Lua 5.3 in the "lua53" standard library:
- New function
string.pack
- New function
string.unpack
- New function
string.packsize
- New optional arg for
math.log
- New function
Changed
UDim.new
andRegion3int16.new
no longer require parameters.UDim2.fromOffset
andUDim2.fromScale
now require you to useUDim.new
if no parameters are specified.- Updated full-moon, read the full-moon changelog to learn more.
[0.9.2] - 2020-11-06
[0.9.1] - 2020-11-04
This is the last version to be supported by 1.0.1 of the VS Code extension. Upgrade to 1.0.2 for future support.
[0.9.1] - 2020-11-04
Fixed
- Fixed
--display-style=json
giving an output incompatible with previous tooling.
[0.9.0] - 2020-11-04
Added
- Arguments that aren't required can now be filled with nil.
- Added support for
math.round
to the Roblox standard library. - Added support for
CFrame.lookAt
to the Roblox standard library.
Changed
- setmetatable no longer requires a second argument.
allow_unused_self
is now toggled on forunused_variable
by default.- Updated local Roblox reflection for more up to date instances.
Fixed
- Using a function call as the last argument in a function will silence lint for not passing enough parameters. This means, for example,
math.max(unpack(numbers))
will no longer error. - Using an ellipsis on the right side of unbalanced assignments no longer lints.
[0.8.0] - 2020-08-24
[0.8.0] - 2020-08-24
Added
- Added support for
os.clock
. - Added
RaycastParams.new
. - Added support for
string.pack
,string.packsize
, andstring.unpack
to the Roblox standard library. - Added lint
compare_nan
to guard against comparing directly to nan (e.g.x ~= 0/0
). - Add lint
bad_string_escape
to guard invalid or malformed string escape sequences.
Fixed
- Fixed
coroutine.yield
only accepting coroutines as a first argument.