tarantool / checkpatch

Checkpatch for Tarantool
GNU General Public License v2.0
2 stars 2 forks source link

Disallow "... = ... or ..." in lua #52

Closed grafin closed 1 year ago

grafin commented 1 year ago

Because of box.NULL being equal to nill but not being equal to false usual lua constructions like opts = opts or {} can lead to problems like https://github.com/tarantool/tdg2/issues/1546. After we fix all current similar problems it would be great, if we could automatically prevent new ones.

locker commented 1 year ago

I think this had better be checked by luacheck.

grafin commented 1 year ago

Moved to https://github.com/tarantool/luacheck/issues/17