You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add one? I would love to have a separate warning code for this because I need to differ such cases from "113 - Accessing an undefined global variable".
Thank you.
The text was updated successfully, but these errors were encountered:
This can be added, yes. In case require argument is a literal it could use it as the warning "name" for filtering, so that something like ignore = {"xxx"}; only = {"xxx/foo%.bar"} enabled the warning only for foo.bar module (where xxx is the new warning code). Or perhaps the warning should be disabled by default, then the ignore option is not needed.
Sorry, I don't understand.
If I want to spot all the places (without knowing which modules are actually being required) where require is called without saving its result to a local variable, how do I do that?
Is it possible with existing config options?
According to https://luacheck.readthedocs.io/en/stable/warnings.html, there's no warnings for cases when a module being required is not assigned to a local variable, e.g.
instead of
Is it possible to add one? I would love to have a separate warning code for this because I need to differ such cases from "113 - Accessing an undefined global variable".
Thank you.
The text was updated successfully, but these errors were encountered: