Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print only warnings with specified numbers #234

Closed
CertHaramas opened this issue Sep 30, 2024 · 2 comments
Closed

Print only warnings with specified numbers #234

CertHaramas opened this issue Sep 30, 2024 · 2 comments

Comments

@CertHaramas
Copy link

Hello,
is there a way luacheck to print just "accessing undefined variable" and similar by-user-in-advance-specified warnings, nothing more?
My output is like:
"
Abutment.lua:923:85: accessing undefined variable 'pln_70_L'
Abutment.lua:928:85: accessing undefined variable 'pln_70_R'
Abutment.lua:1226:1: line contains only whitespace
Abutment.lua:1228:1: line contains only whitespace
Abutment.lua:1709:9: empty if branch
Abutment.lua:2059:6: accessing undefined variable 'z0'
"
In my situation, only lines:
"
Abutment.lua:923:85: accessing undefined variable 'pln_70_L'
Abutment.lua:928:85: accessing undefined variable 'pln_70_R'
Abutment.lua:2059:6: accessing undefined variable 'z0'
"
should be printed, i.e. lines of warning number 111, 112 and 113:
"
111 Setting an undefined global variable.
112 Mutating an undefined global variable.
113 Accessing an undefined global variable.
"
TIA.
Best regards,
Lukas

@carrywang05
Copy link

carrywang05 commented Sep 30, 2024 via email

@alerque
Copy link

alerque commented Sep 30, 2024

Please close this issue since there is nobody with permissions to do so and this issue tracker is not maintained. See #198 for backstory. In the mean time you you have a question please open an issue on the lunarmodules/luacheck repo. Thanks.

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

No branches or pull requests

3 participants