It is, but it's not optional which makes it not fine.
Find globals with LuaJIT (Linux, probably Mac too)
Re: Find globals with LuaJIT (Linux, probably Mac too)
It is absolutely optional, you can ignore the linter. The linter's job is to help you write idiomatic code. If you don't want to, then don't use a linter or just ignore the rules you don't care to follow. At no point does luacheck change your code, it only informs you of issues it finds.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Re: Find globals with LuaJIT (Linux, probably Mac too)
Not handling unused variables in an exact and very specific, arbitrarily decided way the linter prescribes it, is not a thing to be reported as an issue. It's as if a C++ linter enforced that each bracket must be on a newline and threw warnings otherwise. It is idiomatic but it's in no way a "correct and only fashion" to write code. It's just bad design, and the reasons why it's made like that are less of a reasons and more of an excuses; one should be fixing problems instead of finding justifications for their existence - my 2 cents.Karai17 wrote: ↑Wed Jun 12, 2019 2:16 am It is absolutely optional, you can ignore the linter. The linter's job is to help you write idiomatic code. If you don't want to, then don't use a linter or just ignore the rules you don't care to follow. At no point does luacheck change your code, it only informs you of issues it finds.
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests