methodgg / wago.io

Code for website wago.io
MIT License
111 stars 40 forks source link

luacheck #236

Closed yuqo2450 closed 11 months ago

yuqo2450 commented 11 months ago

If I am correct, you run luacheck for all custom code.

I am developing and maintaining some custom code auras and was thinking about adding code linting to my CI pipeline as well. So far I haven't found the correct configuration to ignore the error that requires a function to have a name.

To me it seems you have solved this issue. So my question is could you give the luacheck config used on the website?

oratory commented 11 months ago

Wago does actually name all the anonymous functions while building a single file with all the custom code strings that it runs luacheck on.

https://github.com/oratory/wago.io/blob/master/backend/api/helpers/luacheck.js#L31-L33

yuqo2450 commented 11 months ago

Sorry for being late with my reply, I kind of expected this. Thanks for the reply, helped me anyways!