yutu 0.1.1

Modern Lua linter
Documentation

Yutu

Crates.io MIT/Apache 2.0 Crates.io Rust

Yutu (玉兔) is a linter for Lua (5.4 and 5.5) inspired by Clippy.

The list of supported lints can be found here.

Example

goto foo
local a, b = 1, 2, 3
::foo::
if not (a > b) then
  print(b)
end

Demo

Quickstart

Install yutu using cargo.

cargo install yutu
Modern Lua linter

Usage: yutu <COMMAND>

Commands:
  check  Checks the code for errors and warnings
  init   Creates a new yutu.toml configuration
  list   Lists all lints as markdown
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

License

Yutu is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.