Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Can’t locate luacheckrc file on linux/Debian install (Raspberry Pi) #73

Open
nodecentral opened this issue Apr 8, 2021 · 1 comment

Comments

@nodecentral
Copy link

Hi

I’m seeing a lot of entries in luacheck for the line being to long

    home/pi/shared/foscam-email.lua:85:121: line is too long (122 > 120)
    home/pi/shared/foscam-email.lua:88:121: line is too long (195 > 120)
    home/pi/shared/foscam-email.lua:89:121: line is too long (133 > 120)
    home/pi/shared/foscam-email.lua:93:121: line is too long (131 > 120)
    home/pi/shared/foscam-email.lua:94:121: line is too long (128 > 120)
    home/pi/shared/foscam-email.lua:95:121: line is too long (137 > 120)
    home/pi/shared/foscam-email.lua:96:121: line is too long (134 > 120)

Which I understand I can change via the luacheckrc configuration file. https://luacheck.readthedocs.io/en/stable/config.html

However, I can’t find luacheckrc anywhere, the following returns nothing ?

sudo find / -type f -iname ".lua*" -ls
@bmos
Copy link

bmos commented Apr 9, 2022

As I understand it, this linter plugin looks for a config in the current directory and then goes up level by level looking for the config. Or you can override in Atom's linter-luacheck preferences.

If you want to see the default, this shows the default paths:
https://luacheck.readthedocs.io/en/stable/config.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants