Skip to content

Commit b19fb52

Browse files
committed
chore(ci): fix linter warnings
1 parent be50bd1 commit b19fb52

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ And of course, any contribution are welcome!
4444
To run tests in this git repo you need [**busted**](https://luarocks.org/modules/olivine-labs/busted) as well as some dependencies:
4545

4646
Prepare:
47+
4748
```sh
4849
luarocks install busted
4950
luarocks install luacov
@@ -54,6 +55,7 @@ luarocks install lualogging
5455
```
5556

5657
Running the tests:
58+
5759
```sh
5860
busted
5961
```

docs_topics/02-dependencies.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ The dependencies differ slightly based on the environment you use, and the requi
55
* [**luasocket**](https://luarocks.org/modules/luasocket/luasocket) to establish TCP connections to the MQTT broker.
66
This is a listed dependency in the luamqtt rockspec, so it will automatically be installed if you use LuaRocks to
77
install luamqtt. To install it manually:
8-
luarocks install luasocket
8+
luarocks install luasocket
99

1010
* [**copas**](https://github.com/keplerproject/copas) module for asynchoneous IO. Copas is an advanced co-routine
1111
scheduler with far more features than the included `ioloop`. For anything more than a few devices, or for devices which
1212
require network IO beyond mqtt alone, Copas is the better alternative. Copas is also pure-Lua, but has parallel network
1313
IO (as opposed to sequential network IO in `ioloop`), and has features like; threads, timers, locks, semaphores, and
1414
non-blocking clients for http(s), (s)ftp, and smtp.
15-
luarocks install copas
15+
luarocks install copas
1616

1717
* [**luasec**](https://github.com/brunoos/luasec) module for SSL/TLS based connections. This is optional and may be
1818
skipped if you don't need secure network connections (e.g. broker is located in your local network). It's not listed
1919
in package dependencies, please install it manually like this:
20-
luarocks install luasec
20+
luarocks install luasec
2121

2222
* [**LuaBitOp**](http://bitop.luajit.org/) library to perform bitwise operations, which is required only on
2323
Lua 5.1. It's not listed in package dependencies, please install it manually like this:
24-
luarocks install luabitop
24+
luarocks install luabitop
2525

2626
* [**LuaLogging**](https://github.com/lunarmodules/lualogging/) to enable logging by the MQTT client. This is optional
2727
but highly recommended for long running clients. This is a great debugging aid when developing your clients. Also when
2828
using OpenResty as your runtime, you'll definitely want to use this, see
2929
[openresty.lua](https://xhaskx.github.io/luamqtt/examples/openresty.lua.html) for an example.
3030
It's not listed in package dependencies, please install it manually like this:
31-
luarocks install lualogging
31+
luarocks install lualogging

docs_topics/05-connectors.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,3 @@ The main question is what event/io loop mechanism does your implementation have?
2525

2626
The main thing to look for when checking out the existing implementations is the network timeout settings,
2727
and the returned `signals`.
28-
29-
30-

examples/openresty/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ context.
1212
In the timer we'll spawn a thread that will do the listening, and the
1313
timer itself will go in an endless loop to do the keepalives.
1414

15-
**Caveats**
15+
# Caveats
1616

1717
* Due to the socket limitation we cannot Publish anything from another
1818
context. If you run into "bad request" errors on socket operations, you

mqtt/protocol5.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ local function parse_packet_unsuback(ptype, flags, input)
13241324
end
13251325

13261326
-- Parse PINGREQ packet, DOC: 3.12 PINGREQ – PING request
1327-
local function parse_packet_pingreq(ptype, flags, input_)
1327+
local function parse_packet_pingreq(ptype, flags, _)
13281328
-- DOC: 3.12.1 PINGREQ Fixed Header
13291329
if flags ~= 0 then -- Reserved
13301330
return false, packet_type[ptype]..": unexpected flags value: "..flags
@@ -1333,7 +1333,7 @@ local function parse_packet_pingreq(ptype, flags, input_)
13331333
end
13341334

13351335
-- Parse PINGRESP packet, DOC: 3.13 PINGRESP – PING response
1336-
local function parse_packet_pingresp(ptype, flags, input_)
1336+
local function parse_packet_pingresp(ptype, flags, _)
13371337
-- DOC: 3.13.1 PINGRESP Fixed Header
13381338
if flags ~= 0 then -- Reserved
13391339
return false, packet_type[ptype]..": unexpected flags value: "..flags

0 commit comments

Comments
 (0)