From 7c5f09f4c42e159631ef8b6b9287a6606c479bce Mon Sep 17 00:00:00 2001 From: mpeterv Date: Fri, 25 Apr 2014 21:15:39 +0400 Subject: [PATCH] 0.3.0 release --- README.md | 2 +- bin/luacheck.lua | 2 +- doc/index.html | 2 +- rockspecs/luacheck-0.3.0-1.rockspec | 39 +++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 rockspecs/luacheck-0.3.0-1.rockspec diff --git a/README.md b/README.md index a7ab9d0f..f1e90f77 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Usage: luacheck [-g] [-r] [-u] [-a] [--globals [] ...] [-c] [-e] [--ignore [] ...] [--only [] ...] [-l ] [-q] [-h] [] ... -luacheck 0.3, a simple static analyzer for Lua. +luacheck 0.3.0, a simple static analyzer for Lua. Arguments: files List of files to check. diff --git a/bin/luacheck.lua b/bin/luacheck.lua index b1c7a628..a2f976df 100644 --- a/bin/luacheck.lua +++ b/bin/luacheck.lua @@ -17,7 +17,7 @@ local function toset(array) end local parser = argparse "luacheck" - :description "luacheck 0.3, a simple static analyzer for Lua. " + :description "luacheck 0.3.0, a simple static analyzer for Lua. " parser:argument "files" :description "List of files to check. " diff --git a/doc/index.html b/doc/index.html index 3c8b7a27..f6d51704 100644 --- a/doc/index.html +++ b/doc/index.html @@ -65,7 +65,7 @@

[-e] [--ignore <var> [<var>] ...] [--only <var> [<var>] ...] [-l <limit>] [-q] [-h] <file> [<file>] ... -luacheck 0.3, a simple static analyzer for Lua. +luacheck 0.3.0, a simple static analyzer for Lua. Arguments: files List of files to check. diff --git a/rockspecs/luacheck-0.3.0-1.rockspec b/rockspecs/luacheck-0.3.0-1.rockspec new file mode 100644 index 00000000..abd34379 --- /dev/null +++ b/rockspecs/luacheck-0.3.0-1.rockspec @@ -0,0 +1,39 @@ +package = "luacheck" +version = "0.3.0-1" +source = { + url = "git://github.com/mpeterv/luacheck.git", + tag = "0.3.0" +} +description = { + summary = "A simple static analyzer", + detailed = [[ +luacheck only looks for three things: non-standard global variables, unused local variables and redefinitions of existing local variables in the same scope. + +luacheck provides a command-line interface as well as a small library which can be used from another Lua program. +]], + homepage = "https://github.com/mpeterv/luacheck", + license = "MIT/X11" +} +dependencies = { + "lua >= 5.1, < 5.3", + "metalua-parser >= 0.7.3-2", + "checks >= 1.0", + "argparse >= 0.2.0", + "ansicolors >= 1.0-1" +} +build = { + type = "builtin", + modules = { + luacheck = "src/luacheck.lua", + ["luacheck.scan"] = "src/luacheck/scan.lua", + ["luacheck.check"] = "src/luacheck/check.lua", + ["luacheck.get_report"] = "src/luacheck/get_report.lua", + ["luacheck.format"] = "src/luacheck/format.lua" + }, + install = { + bin = { + luacheck = "bin/luacheck.lua" + } + }, + copy_directories = {"spec", "doc"} +}