diff --git a/CHANGELOG.md b/CHANGELOG.md index 18650263..4897eff6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [0.10.0] - 2020-12-21 ### Added - Added inline lint filtering, read [the documentation](https://kampfkarren.github.io/selene/usage/filtering.html) for more information. - More errors now set the exit code. @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Changed - `UDim.new` and `Region3int16.new` no longer require parameters. - `UDim2.fromOffset` and `UDim2.fromScale` now require you to use `UDim.new` if no parameters are specified. +- Updated full-moon, read [the full-moon changelog](https://github.com/Kampfkarren/full-moon/blob/master/CHANGELOG.md#080---2020-12-21) to learn more. ## [0.9.2] - 2020-11-06 ### Changed diff --git a/Cargo.lock b/Cargo.lock index dbef069e..7f8e6094 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -433,9 +433,9 @@ checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" [[package]] name = "full_moon" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c8093c43fd81ff7f0207dd2dd4750ecff4547d8b8b4ea80c5a325215c5fda9" +checksum = "03fc01e974b1d7cd848213fa1f4f0f1c83d9eb53a07ea3cf18f9f86e22155fc6" dependencies = [ "bytecount", "cfg-if 0.1.10", @@ -1390,7 +1390,7 @@ dependencies = [ [[package]] name = "selene" -version = "0.9.2" +version = "0.10.0" dependencies = [ "atty", "cfg-if 0.1.10", @@ -1413,7 +1413,7 @@ dependencies = [ [[package]] name = "selene-lib" -version = "0.9.2" +version = "0.10.0" dependencies = [ "codespan", "codespan-reporting", diff --git a/selene-lib/Cargo.toml b/selene-lib/Cargo.toml index 2894221a..c21ee638 100644 --- a/selene-lib/Cargo.toml +++ b/selene-lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "selene-lib" -version = "0.9.2" +version = "0.10.0" license = "MPL-2.0" authors = ["Kampfkarren "] description = "A library for linting Lua code. You probably want selene instead." @@ -12,7 +12,7 @@ edition = "2018" [dependencies] codespan = "0.9" codespan-reporting = "0.9" -full_moon = "0.7" +full_moon = "0.8" id-arena = "2.2" if_chain = "1.0" lazy_static = "1.4" diff --git a/selene-lib/src/ast_util/scopes.rs b/selene-lib/src/ast_util/scopes.rs index 5144fcc3..7d4d8f8b 100644 --- a/selene-lib/src/ast_util/scopes.rs +++ b/selene-lib/src/ast_util/scopes.rs @@ -500,7 +500,7 @@ impl Visitor<'_> for ScopeVisitor { fn visit_function_body(&mut self, body: &ast::FunctionBody) { self.open_scope(body); - for parameter in body.iter_parameters() { + for parameter in body.parameters() { match parameter { ast::Parameter::Ellipse(token) | ast::Parameter::Name(token) => { self.define_name(token, range(token)); diff --git a/selene/Cargo.toml b/selene/Cargo.toml index d3318e3b..3530b1f6 100644 --- a/selene/Cargo.toml +++ b/selene/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "selene" -version = "0.9.2" +version = "0.10.0" license = "MPL-2.0" authors = ["Kampfkarren "] description = "A blazing-fast modern Lua linter written in Rust" @@ -16,12 +16,12 @@ cfg-if = "0.1" chrono = "0.4" codespan = { version = "0.9", features = ["serialization"] } codespan-reporting = { version = "0.9", features = ["serialization"] } -full_moon = "0.7" +full_moon = "0.8" lazy_static = "1.4" glob = "0.3" num_cpus = "1.10" reqwest = { version = "0.9", optional = true } -selene-lib = { path = "../selene-lib", version = "=0.9.2", default-features = false } +selene-lib = { path = "../selene-lib", version = "=0.10.0", default-features = false } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" structopt = "0.3"