Skip to content

Commit e603c63

Browse files
committed
Goodbye luacheck2, hello selene!
1 parent da6704f commit e603c63

File tree

122 files changed

+27
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+27
-27
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
22

33
members = [
4-
"luacheck2",
5-
"luacheck2-lib",
4+
"selene",
5+
"selene-lib",
66
"generate-roblox-std",
77
]

README.md

+1-1

generate-roblox-std/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77

88
[dependencies]
99
clap = "2"
10-
luacheck2-lib = { path = "../luacheck2-lib" }
10+
selene-lib = { path = "../selene-lib" }
1111
reqwest = "0.9"
1212
serde = "1.0"
1313
toml = "0.5"

generate-roblox-std/base.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
[luacheck2]
1+
[selene]
22
base = "lua51"
33
name = "roblox"
44

5-
[luacheck2.structs.EnumItem.Name]
5+
[selene.structs.EnumItem.Name]
66
property = true
77

8-
[luacheck2.structs.EnumItem.Value]
8+
[selene.structs.EnumItem.Value]
99
property = true
1010

11-
[luacheck2.structs.Event.Connect]
11+
[selene.structs.Event.Connect]
1212
method = true
1313

14-
[[luacheck2.structs.Event.Connect.args]]
14+
[[selene.structs.Event.Connect.args]]
1515
type = "function"
1616

17-
[luacheck2.structs.Event.Wait]
17+
[selene.structs.Event.Wait]
1818
method = true
1919
args = []
2020

21-
[luacheck2.structs.Instance."*"]
21+
[selene.structs.Instance."*"]
2222
any = true
2323

2424
[[BrickColor.new.args]]

generate-roblox-std/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mod api;
77

88
use api::*;
99
use clap::{App, Arg};
10-
use luacheck2_lib::standard_library::*;
10+
use selene_lib::standard_library::*;
1111

1212
const API_DUMP: &str =
1313
"https://raw.githubusercontent.com/CloneTrooper1019/Roblox-Client-Tracker/roblox/API-Dump.json";

luacheck2-lib/Cargo.toml selene-lib/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "luacheck2-lib"
2+
name = "selene-lib"
33
version = "0.1.0"
44
license = "MPL-2.0"
55
authors = ["Kampfkarren <[email protected]>"]
File renamed without changes.

luacheck2-lib/default_std/lua52.toml selene-lib/default_std/lua52.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[luacheck2]
1+
[selene]
22
base = "lua51"
33

44
[getfenv]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

luacheck2-lib/src/standard_library.rs selene-lib/src/standard_library.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ lazy_static::lazy_static! {
1919

2020
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
2121
pub struct StandardLibrary {
22-
#[serde(rename = "luacheck2")]
22+
#[serde(rename = "selene")]
2323
pub meta: Option<StandardLibraryMeta>,
2424
#[serde(flatten)]
2525
pub globals: BTreeMap<String, Field>,

luacheck2-lib/tests/checker.rs selene-lib/tests/checker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::collections::HashMap;
22

3-
use luacheck2_lib::{standard_library::StandardLibrary, *};
3+
use selene_lib::{standard_library::StandardLibrary, *};
44

55
use full_moon::parse;
66
use serde_json::json;

luacheck2-lib/tests/lints/standard_library/any.std.toml selene-lib/tests/lints/standard_library/any.std.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[luacheck2]
1+
[selene]
22
base = "lua51"
33

44
[foo]

luacheck2-lib/tests/lints/standard_library/wildcard.std.toml selene-lib/tests/lints/standard_library/wildcard.std.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[luacheck2]
1+
[selene]
22
base = "lua51"
33

44
[script.ClassName]

luacheck2-lib/tests/lints/standard_library/wildcard_structs.std.toml selene-lib/tests/lints/standard_library/wildcard_structs.std.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
[luacheck2]
1+
[selene]
22
base = "lua51"
33

4-
[luacheck2.structs.Instance.Name]
4+
[selene.structs.Instance.Name]
55
property = true
66
writable = "overridden"
77

8-
[luacheck2.structs.Instance."*"]
8+
[selene.structs.Instance."*"]
99
struct = "Instance"
1010

1111
[script]

luacheck2/Cargo.toml selene/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "luacheck2"
2+
name = "selene"
33
version = "0.1.0"
44
license = "MPL-2.0"
55
authors = ["Kampfkarren <[email protected]>"]
@@ -11,11 +11,11 @@ codespan = "0.4"
1111
codespan-reporting = "0.4"
1212
full_moon = "0.4.0-rc.11"
1313
glob = "0.3"
14-
luacheck2-lib = { path = "../luacheck2-lib" }
14+
selene-lib = { path = "../selene-lib" }
1515
num_cpus = "1.10"
1616
termcolor = "1.0"
1717
threadpool = "1.7"
1818
toml = "0.5"
1919

2020
[features]
21-
roblox = ["luacheck2-lib/roblox"]
21+
roblox = ["selene-lib/roblox"]

luacheck2/src/main.rs selene/src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
use clap::{App, Arg};
1212
use codespan_reporting::{diagnostic::Severity as CodespanSeverity, term::DisplayStyle};
1313
use full_moon::ast::owned::Owned;
14-
use luacheck2_lib::{rules::Severity, standard_library::StandardLibrary, *};
14+
use selene_lib::{rules::Severity, standard_library::StandardLibrary, *};
1515
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
1616
use threadpool::ThreadPool;
1717

@@ -152,7 +152,7 @@ fn main() {
152152
Arg::with_name("config")
153153
.long("config")
154154
.help(
155-
"A toml file to configure the behavior of luacheck2 [default: luacheck2.toml]",
155+
"A toml file to configure the behavior of selene [default: selene.toml]",
156156
)
157157
.takes_value(true),
158158
)
@@ -199,7 +199,7 @@ fn main() {
199199
}
200200
}
201201

202-
None => match fs::read_to_string("luacheck2.toml") {
202+
None => match fs::read_to_string("selene.toml") {
203203
Ok(config_contents) => match toml::from_str(&config_contents) {
204204
Ok(config) => config,
205205
Err(error) => {

0 commit comments

Comments
 (0)