Commit graph

90 commits

Author SHA1 Message Date
Kim Alvefur
4e35f8575f luacheckrc: Remove exception for modules that produce no warnings 2018-07-06 00:19:22 +02:00
Kim Alvefur
60f44b1556 mod_announce: Fix luacheck warnings 2018-07-06 00:16:48 +02:00
Kim Alvefur
f03ef26e4b luacheckrc: Consider mod_http clean 2018-07-06 00:16:17 +02:00
Kim Alvefur
135f900336 luacheckrc: Remove exception for mod_pep, it's clean 2018-07-06 00:06:36 +02:00
Kim Alvefur
675cbc84d9 .luacheckrc: Remove mod_pubsub/pubsub.lib.lua from files excluded from checks 2018-05-23 15:02:55 +02:00
Kim Alvefur
66f9cbcac7 .luacheckrc: Only ignore warnings for excluded files, not syntax errors 2018-05-23 00:55:33 +02:00
Kim Alvefur
3120037b03 .luacheckrc: Ignore attempts to get table.unpack
This is to allow this common pattern:

    local unpack = table.unpack or unpack;
2018-05-19 00:30:34 +02:00
Kim Alvefur
246c6f8320 .luacheckrc: Remove mod_limits from excluded files as it should now be clean 2018-05-18 21:10:51 +02:00
Matthew Wild
c9034dfead .luacheckrc: Add some additional stricter requirements when PROSODY_STRICT_LINT=1 2018-05-18 15:02:00 +01:00
Matthew Wild
b2ebed8b06 .luacheckrc: Ignore currently-unclean files unless env var PROSODY_STRICT_LINT=1 2018-05-18 15:01:38 +01:00
Matthew Wild
0d09586960 .luacheckrc: Fix whitespace 2018-05-18 15:00:14 +01:00
Kim Alvefur
6f6e04b6c6 luacheckrc: No longer ignore use of the global 'server' (net.server) 2018-04-05 19:37:32 +02:00
Kim Alvefur
9ce110e603 luacheckrc: Forget about _G.hosts, things should use _G.prosody.hosts 2018-03-29 16:42:24 +02:00
Kim Alvefur
268c164b86 luacheckrc: Remove allowance for the global log() since it may not exist as early as before 2018-04-05 15:56:47 +02:00
Kim Alvefur
51b193594f luacheckrc: Allow top level variables in prosodyctl (eg CFG_*) [luacheck] 2018-03-23 13:18:28 +01:00
Kim Alvefur
f0533e4d52 luacheckrc: Let luacheck know about the log and server globals 2018-03-23 13:16:14 +01:00
Kim Alvefur
ce0661a23b luacheckrc: Only allow top level declarations in the main prosody executable 2018-03-23 13:13:07 +01:00
Kim Alvefur
0417cdaae2 luacheckrc: Ignore all unknown globals in config file (ie all settings) 2018-03-10 00:08:21 +01:00
Kim Alvefur
58ed4559d3 luacheckrc: Restore module semantics, but only for plugins (ignores some globals) 2018-03-09 19:23:19 +01:00
Kim Alvefur
13a78a9463 .luacheckrc: Add awareness of the module:http_url API added by mod_http 2018-03-07 19:21:24 +01:00
Kim Alvefur
1dd3dc731f luacheckrc: Remove allowance legacy module() related globals 2018-03-07 19:20:31 +01:00
Kim Alvefur
f3d5f41d6a luacheckrc: Reflow globals settings 2018-03-07 19:19:56 +01:00
Kim Alvefur
fe112c8cd9 luacheckrc: Declare known global functions in config file 2018-03-01 21:58:50 +01:00
Kim Alvefur
61c6bb76de moduleapi: Remove unused and undocumented :has_feature and :has_identity 2018-02-23 17:11:59 +01:00
Kim Alvefur
8962abd55b luacheckrc: Ignore long commets (e.g. license in util.sasl) 2017-11-10 05:34:29 +01:00
Matthew Wild
44e570d5fe .luacheckrc: Add busted globals for spec/* (thanks av6!) 2017-09-16 10:13:39 +01:00
Kim Alvefur
bf96691bcc luacheckrc: Declare module.environment as writable (thanks Link Mauve) 2017-04-02 22:26:52 +02:00
Kim Alvefur
a374056fa5 luacheckrc: Add module:get_option_scalar to known globals 2017-03-16 21:05:44 +01:00
Kim Alvefur
d31b2b4f41 luacheckrc: Ignore shadowing of logger 2017-03-06 15:22:00 +01:00
Kim Alvefur
aee5e50efa luacheckrc: Include entire module API 2017-03-06 15:11:37 +01:00
Kim Alvefur
e45c5961ac core: Allow select core modules to mutate some globals (needs luacheck 1.19) 2017-03-04 20:09:28 +01:00
Kim Alvefur
c723d21b83 luacheckrc: Set max line length to 150 for now [luacheck] 2017-03-04 20:06:29 +01:00
Kim Alvefur
d91b8dc481 luacheckrc: Allow mutating the global prosody and hosts tables in core/ (luacheck 0.18 adds detection of indirect mutation) 2017-01-28 17:02:28 +01:00
Anton Shestakov
a70183bcec luacheckrc: make module a global in plugins/ 2016-07-09 10:17:00 +08:00
Anton Shestakov
d095fb09d3 luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest 2016-07-09 10:08:35 +08:00
Kim Alvefur
9741bdfb38 luacheckrc: Ignore assert helper functions used in tests/* 2016-07-08 19:20:49 +02:00
Matthew Wild
9409b787dc .luacheckrc: Whitelist import() global function 2015-12-10 17:58:52 +00:00
Kim Alvefur
d32f36b281 luacheckrc: Ignore unused _ENV variable 2015-08-20 10:10:36 +02:00
Matthew Wild
e6b0ecf243 luacheckrc: Allow plugins to implement functions under module.* (module.load, etc.) 2015-06-29 13:50:31 +01:00
Matthew Wild
0daf5ba855 .luacheckrc: Commit initial config for luacheck 2015-05-06 19:35:35 +01:00