-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove diff code when there are no changes
- Loading branch information
1 parent
c8d1919
commit 4c10d3e
Showing
90 changed files
with
63 additions
and
270 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
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 |
---|---|---|
@@ -1,16 +0,0 @@ | ||
x, y = y, x | ||
|
||
a = b | ||
b = a | ||
|
||
t[1], t[2] = t[2], t[1] | ||
|
||
t[1] = t[2] | ||
t[2] = t[1] | ||
|
||
foo().a = foo().b | ||
foo().b = foo().a | ||
|
||
-- We use a weird hack so this comment might break something, oh no! | ||
a = b | ||
b = a | ||
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
foo = "bar" | ||
Empty file.
Empty file.
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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
local _ = this.is_deprecated | ||
local _ = all_of_this.is_deprecated | ||
local _ = all_of_this.even.deeper.is_deprecated | ||
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 |
---|---|---|
@@ -1,7 +0,0 @@ | ||
deprecated_allowed() | ||
deprecated_blocked() | ||
|
||
more.deprecated_allowed() | ||
wow.extra.deprecated_allowed() | ||
|
||
deprecated_allowed.more() | ||
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 |
---|---|---|
@@ -1,2 +0,0 @@ | ||
-- Tests that the old TOML format is unchanged | ||
print(this_is.deprecated) | ||
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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
Empty file.
Empty file.
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
Roact.createElement("Frame") | ||
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
@@ -1,6 +0,0 @@ | ||
print(foo) | ||
print(foo.x) | ||
print(foo.x.y.z) | ||
print(foo:x()) | ||
foo.x = 1 | ||
foo.x.y = 2 | ||
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 |
---|---|---|
@@ -1,9 +0,0 @@ | ||
assert(true, "message") | ||
assert(call()) | ||
assert(call(), "this is ok") | ||
assert(...) | ||
|
||
assert(true) | ||
assert(true, "message", call()) | ||
assert(true, "message", ...) | ||
assert() | ||
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 |
---|---|---|
@@ -1,20 +0,0 @@ | ||
print() | ||
print("a", 2, "c") | ||
math.sin(3) | ||
math.sin(1 + 1) | ||
math.random() | ||
math.random(1) | ||
print "hello" | ||
-- | ||
math.sin("i'd like the sine of three, please") | ||
math.floor(3.5, "remember to make sure it's 3 :)") | ||
math.sin "pi" | ||
-- | ||
local variable = 3 | ||
math.sin(variable) | ||
math.sin(variable, variable) | ||
-- | ||
math.max(2) | ||
math.pi() | ||
string.format(-2, "foo") | ||
string.format(1 + 1) | ||
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 |
---|---|---|
@@ -1,2 +0,0 @@ | ||
expect.extend({}) | ||
expect(1).to.be.ok() | ||
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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
print(require("foo").bar) | ||
print(coroutine.wrap(print)()) | ||
getmetatable({}).__index = function() 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +0,0 @@ | ||
collectgarbage("count") | ||
collectgarbage "count" | ||
|
||
collectgarbage("doge") | ||
collectgarbage(1) | ||
|
||
collectgarbage("coun" .. "t") | ||
|
||
collectgarbage() | ||
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 |
---|---|---|
@@ -1,5 +0,0 @@ | ||
math.floor(if x then 1 else 2) | ||
math.floor(if x then "a" else "b") | ||
|
||
-- TODO: Let's try to capture this, right now the entire expression just resolves to no type | ||
math.floor(if x then 1 else "a") | ||
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 |
---|---|---|
@@ -1,2 +0,0 @@ | ||
table.unpack({}) | ||
setfenv() -- This would error if it was defined, since setfenv requires an argument | ||
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 |
---|---|---|
@@ -1,2 +0,0 @@ | ||
usesType(x * 0.5) | ||
usesType(0.5 * x) | ||
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 |
---|---|---|
@@ -1,4 +0,0 @@ | ||
foo:bar(1) | ||
foo:bar("a") | ||
foo.bar() | ||
foo:baz() | ||
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 |
---|---|---|
@@ -1,11 +0,0 @@ | ||
-- ipairs requires an argument--this should fail. | ||
ipairs() | ||
|
||
-- setmetatable requires a first argument, but not a second one. this should still fail. | ||
setmetatable() | ||
|
||
-- This, however, should not. | ||
setmetatable({}) | ||
|
||
-- nil counts as filling in an unrequired argument. | ||
setmetatable({}, nil) | ||
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 |
---|---|---|
@@ -1,11 +0,0 @@ | ||
local math = {} | ||
math.dog = 1 | ||
math.sin = print | ||
|
||
math.sin("hi" + math.dog) | ||
|
||
function foo(table) | ||
table.insert() | ||
end | ||
|
||
table.insert() | ||
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 |
---|---|---|
@@ -1,7 +0,0 @@ | ||
collectgarbage(`count`) | ||
collectgarbage(`ohno`) | ||
|
||
string.upper(`foo`) | ||
string.upper(`foo{"bar"}`) | ||
|
||
math.floor(`oh no`) | ||
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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
math.floor(r > 1 and 1 or 0) | ||
math.floor(r > 1 + 1) | ||
math.floor(not flag and 1 or 0) | ||
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 |
---|---|---|
@@ -1,9 +0,0 @@ | ||
print("3.14 = ", math.pie) | ||
print(print.foo) | ||
print(math.huge.big) | ||
math.call() | ||
|
||
-- These aren't correct, but they should be covered under a different lint | ||
call() | ||
local _ = bad | ||
print(foo.bar) | ||
Oops, something went wrong.