-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring in selene and stylua. Format using stylua.
- Loading branch information
1 parent
2ea111e
commit 3d6fda0
Showing
17 changed files
with
266 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
/site/ | ||
/*.rbxmx | ||
/*.rbxm | ||
|
||
# Selene | ||
roblox.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[tools] | ||
rojo = { source = "rojo-rbx/rojo", version = "6.2.0" } | ||
selene = { source = "Kampfkarren/selene", version = "0.14" } | ||
stylua = { source = "JohnnyMorganz/StyLua", version = "0.11" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
std = "roblox+testez" | ||
|
||
[config] | ||
empty_if = { comments_count = true } | ||
unused_variable = { ignore_pattern = "result|ok|^_" } | ||
# this comes up when translating nested try/finally scenarios | ||
shadowing = { ignore_pattern = "result|ok|^_" } | ||
# feature request for this config: https://github.com/Kampfkarren/selene/issues/181 | ||
# global_usage = { ignore_pattern = "^__" } | ||
|
||
[rules] | ||
# remove this once the feature request here is implemented: https://github.com/Kampfkarren/selene/issues/181 | ||
global_usage = "allow" | ||
unused_variable = "allow" | ||
# remove when the Luau type narrowing issues (and the workarounds) are resolved | ||
shadowing = "allow" | ||
|
||
# remove when this issue is fixed: https://github.com/Kampfkarren/selene/issues/179 | ||
if_same_then_else = "allow" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,4 +53,4 @@ return function() | |
expect(err:find("foo")).to.be.ok() | ||
expect(err:find("NoYield.spec")).to.be.ok() | ||
end) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ return function() | |
expect(Rodux.Store).to.be.ok() | ||
end) | ||
end) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.