View Single Post
06-18-17, 10:55 AM   #28
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Resike View Post
I've managed to make this work (partly).

One question tho, how the hell do i filter what to highlight, since it cries for every little stuff like line length, upvalue and whatever. If you can filter this for only (accessing undefinied variable) that would probably cover the globals, however you still don't know if it's a fucntion or not.
Okay i managed to make it work:

Code:
cmd = 'luacheck - --formatter=plain --no-unused --no-redefined --no-unused-args --no-unused-secondaries --no-self --no-max-line-length --no-max-code-line-length --no-max-string-line-length --no-max-comment-line-length --codes --ranges --filename @'


However things that i don't like:

- It's sooo slow, i'm not sure why, but it doesn't fit into the Sublime "policy" where everything is lightning fast.
- You can't change colors, you have 1 color for errors and 1 for warnings and thats it. Would be nice to have a separate color for global functions.

But besides that it's nice. I still think a standalone python script would be better or at least faster, also we could have more control over everything of course.
  Reply With Quote