|
| 1 | +local package_name = "luacheck" |
| 2 | +local package_version = "1.2.0" |
| 3 | +local rockspec_revision = "1" |
| 4 | +local github_account_name = "lunarmodules" |
| 5 | +local github_repo_name = package_name |
| 6 | + |
| 7 | +package = package_name |
| 8 | +version = package_version .. "-" .. rockspec_revision |
| 9 | + |
| 10 | +source = { |
| 11 | + url = "git+https://github.com/" .. github_account_name .. "/" .. github_repo_name .. ".git" |
| 12 | +} |
| 13 | + |
| 14 | +if package_version == "dev" then source.branch = "master" else source.tag = "v" .. package_version end |
| 15 | + |
| 16 | +description = { |
| 17 | + summary = "A static analyzer and a linter for Lua", |
| 18 | + detailed = [[ |
| 19 | + Luacheck is a command-line tool for linting and static analysis of Lua |
| 20 | + code. It is able to spot usage of undefined global variables, unused |
| 21 | + local variables and a few other typical problems within Lua programs. |
| 22 | + ]], |
| 23 | + homepage = "https://github.com/lunarmodules/luacheck", |
| 24 | + license = "MIT" |
| 25 | +} |
| 26 | + |
| 27 | +dependencies = { |
| 28 | + "lua >= 5.1", |
| 29 | + "argparse >= 0.6.0", |
| 30 | + "luafilesystem >= 1.6.3" |
| 31 | +} |
| 32 | +build = { |
| 33 | + type = "builtin", |
| 34 | + modules = { |
| 35 | + luacheck = "src/luacheck/init.lua", |
| 36 | + ["luacheck.builtin_standards"] = "src/luacheck/builtin_standards/init.lua", |
| 37 | + ["luacheck.builtin_standards.love"] = "src/luacheck/builtin_standards/love.lua", |
| 38 | + ["luacheck.builtin_standards.minetest"] = "src/luacheck/builtin_standards/minetest.lua", |
| 39 | + ["luacheck.builtin_standards.playdate"] = "src/luacheck/builtin_standards/playdate.lua", |
| 40 | + ["luacheck.builtin_standards.ngx"] = "src/luacheck/builtin_standards/ngx.lua", |
| 41 | + ["luacheck.cache"] = "src/luacheck/cache.lua", |
| 42 | + ["luacheck.check"] = "src/luacheck/check.lua", |
| 43 | + ["luacheck.check_state"] = "src/luacheck/check_state.lua", |
| 44 | + ["luacheck.config"] = "src/luacheck/config.lua", |
| 45 | + ["luacheck.core_utils"] = "src/luacheck/core_utils.lua", |
| 46 | + ["luacheck.decoder"] = "src/luacheck/decoder.lua", |
| 47 | + ["luacheck.expand_rockspec"] = "src/luacheck/expand_rockspec.lua", |
| 48 | + ["luacheck.filter"] = "src/luacheck/filter.lua", |
| 49 | + ["luacheck.format"] = "src/luacheck/format.lua", |
| 50 | + ["luacheck.fs"] = "src/luacheck/fs.lua", |
| 51 | + ["luacheck.globbing"] = "src/luacheck/globbing.lua", |
| 52 | + ["luacheck.lexer"] = "src/luacheck/lexer.lua", |
| 53 | + ["luacheck.main"] = "src/luacheck/main.lua", |
| 54 | + ["luacheck.multithreading"] = "src/luacheck/multithreading.lua", |
| 55 | + ["luacheck.options"] = "src/luacheck/options.lua", |
| 56 | + ["luacheck.parser"] = "src/luacheck/parser.lua", |
| 57 | + ["luacheck.profiler"] = "src/luacheck/profiler.lua", |
| 58 | + ["luacheck.runner"] = "src/luacheck/runner.lua", |
| 59 | + ["luacheck.serializer"] = "src/luacheck/serializer.lua", |
| 60 | + ["luacheck.stages"] = "src/luacheck/stages/init.lua", |
| 61 | + ["luacheck.stages.detect_bad_whitespace"] = "src/luacheck/stages/detect_bad_whitespace.lua", |
| 62 | + ["luacheck.stages.detect_compound_operators"] = "src/luacheck/stages/detect_compound_operators.lua", |
| 63 | + ["luacheck.stages.detect_cyclomatic_complexity"] = "src/luacheck/stages/detect_cyclomatic_complexity.lua", |
| 64 | + ["luacheck.stages.detect_empty_blocks"] = "src/luacheck/stages/detect_empty_blocks.lua", |
| 65 | + ["luacheck.stages.detect_empty_statements"] = "src/luacheck/stages/detect_empty_statements.lua", |
| 66 | + ["luacheck.stages.detect_globals"] = "src/luacheck/stages/detect_globals.lua", |
| 67 | + ["luacheck.stages.detect_reversed_fornum_loops"] = "src/luacheck/stages/detect_reversed_fornum_loops.lua", |
| 68 | + ["luacheck.stages.detect_unbalanced_assignments"] = "src/luacheck/stages/detect_unbalanced_assignments.lua", |
| 69 | + ["luacheck.stages.detect_uninit_accesses"] = "src/luacheck/stages/detect_uninit_accesses.lua", |
| 70 | + ["luacheck.stages.detect_unreachable_code"] = "src/luacheck/stages/detect_unreachable_code.lua", |
| 71 | + ["luacheck.stages.detect_unused_fields"] = "src/luacheck/stages/detect_unused_fields.lua", |
| 72 | + ["luacheck.stages.detect_unused_locals"] = "src/luacheck/stages/detect_unused_locals.lua", |
| 73 | + ["luacheck.stages.linearize"] = "src/luacheck/stages/linearize.lua", |
| 74 | + ["luacheck.stages.name_functions"] = "src/luacheck/stages/name_functions.lua", |
| 75 | + ["luacheck.stages.parse"] = "src/luacheck/stages/parse.lua", |
| 76 | + ["luacheck.stages.parse_inline_options"] = "src/luacheck/stages/parse_inline_options.lua", |
| 77 | + ["luacheck.stages.resolve_locals"] = "src/luacheck/stages/resolve_locals.lua", |
| 78 | + ["luacheck.stages.unwrap_parens"] = "src/luacheck/stages/unwrap_parens.lua", |
| 79 | + ["luacheck.standards"] = "src/luacheck/standards.lua", |
| 80 | + ["luacheck.unicode"] = "src/luacheck/unicode.lua", |
| 81 | + ["luacheck.unicode_printability_boundaries"] = "src/luacheck/unicode_printability_boundaries.lua", |
| 82 | + ["luacheck.utils"] = "src/luacheck/utils.lua", |
| 83 | + ["luacheck.vendor.sha1"] = "src/luacheck/vendor/sha1/init.lua", |
| 84 | + ["luacheck.vendor.sha1.bit32_ops"] = "src/luacheck/vendor/sha1/bit32_ops.lua", |
| 85 | + ["luacheck.vendor.sha1.bit_ops"] = "src/luacheck/vendor/sha1/bit_ops.lua", |
| 86 | + ["luacheck.vendor.sha1.common"] = "src/luacheck/vendor/sha1/common.lua", |
| 87 | + ["luacheck.vendor.sha1.lua53_ops"] = "src/luacheck/vendor/sha1/lua53_ops.lua", |
| 88 | + ["luacheck.vendor.sha1.pure_lua_ops"] = "src/luacheck/vendor/sha1/pure_lua_ops.lua", |
| 89 | + ["luacheck.version"] = "src/luacheck/version.lua" |
| 90 | + }, |
| 91 | + install = { |
| 92 | + bin = { |
| 93 | + luacheck = "bin/luacheck.lua" |
| 94 | + } |
| 95 | + } |
| 96 | +} |
0 commit comments