Skip to content

Commit

Permalink
Expand error message for unbalanced assignment warnings
Browse files Browse the repository at this point in the history
Ref #104.
  • Loading branch information
mpeterv committed Apr 27, 2017
1 parent 9586b32 commit 0c6b07c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/cli_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ Checking spec/samples/bad_flow.lua 6 warnings
spec/samples/bad_flow.lua:1:28: empty if branch
spec/samples/bad_flow.lua:6:4: empty do..end block
spec/samples/bad_flow.lua:12:15: left-hand side of assignment is too long
spec/samples/bad_flow.lua:16:15: left-hand side of assignment is too short
spec/samples/bad_flow.lua:12:15: right side of assignment has less values than left side expects
spec/samples/bad_flow.lua:16:15: right side of assignment has more values than left side expects
spec/samples/bad_flow.lua:21:7: unreachable code
spec/samples/bad_flow.lua:25:1: loop is executed at most once
Expand Down
4 changes: 2 additions & 2 deletions src/luacheck/format.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ local message_formats = {
["511"] = "unreachable code",
["512"] = "loop is executed at most once",
["521"] = "unused label {label!}",
["531"] = "left-hand side of assignment is too short",
["532"] = "left-hand side of assignment is too long",
["531"] = "right side of assignment has more values than left side expects",
["532"] = "right side of assignment has less values than left side expects",
["541"] = "empty do..end block",
["542"] = "empty if branch",
["551"] = "empty statement",
Expand Down

0 comments on commit 0c6b07c

Please sign in to comment.