Closed leandromoreira closed 4 years ago
Hey @leandromoreira This is great. If you send a PR, a merge it right away. Thanks for reporting.
I've just fixed issue #45. Please update your fork.
@manoelcampos I think the last comment was related to other issue but anyway I sent the work https://github.com/manoelcampos/xml2lua/pull/47
Hi there,
I'm planning to use this library to parse MPEG-Dash manifests, and I ran a lint tool over the source files looking for potential memory leak and others, I couldn't find any but there are some issues I think that we can solve.
I'm gonna list them here and if you're okay, I can make a
PR
fixing those issues.XmlParser.lua
Shadowing upvalue
Suggestion: rename either the function or parameter.
Variable previously defined
Suggestion: rename either the the first
i
or the second.Setting non-standard global variable
Suggestion: since the
attrs
is not used we could replace it with_
.xml2lua.lua
Variable was previously defined
Suggestion: just remove the
local
keyword.Suggestion: just remove the
local
keyword.