Wed Mar 29 15:29:41 2023 UTC ()
Add lua-check-0.23.0
Luacheck is a static analyzer and a linter for Lua. Luacheck detects
various issues such as usage of undefined global variables, unused
variables and values, accessing uninitialized variables, unreachable code
and more. Most aspects of checking are configurable: there are options
for defining custom project-related globals, for selecting set of
standard globals (version of Lua standard library), for filtering
warnings by type and name of related variable, etc. The options can be
used on the command line, put into a config or directly into checked
files as Lua comments.
Luacheck supports checking Lua files using syntax of Lua 5.1, Lua 5.2,
Lua 5.3 and LuaJIT. Luacheck itself is written in Lua and runs on all of
mentioned Lua versions.
(joerg)
diff -r0 -r1.1 pkgsrc/devel/lua-check/ALTERNATIVES
diff -r0 -r1.1 pkgsrc/devel/lua-check/DESCR
diff -r0 -r1.1 pkgsrc/devel/lua-check/Makefile
diff -r0 -r1.1 pkgsrc/devel/lua-check/PLIST
diff -r0 -r1.1 pkgsrc/devel/lua-check/distinfo
bin/luacheck @PREFIX@/bin/luacheck-@LUADOTVER@
Luacheck is a static analyzer and a linter for Lua. Luacheck detects
various issues such as usage of undefined global variables, unused
variables and values, accessing uninitialized variables, unreachable code
and more. Most aspects of checking are configurable: there are options
for defining custom project-related globals, for selecting set of
standard globals (version of Lua standard library), for filtering
warnings by type and name of related variable, etc. The options can be
used on the command line, put into a config or directly into checked
files as Lua comments.
Luacheck supports checking Lua files using syntax of Lua 5.1, Lua 5.2,
Lua 5.3 and LuaJIT. Luacheck itself is written in Lua and runs on all of
mentioned Lua versions.
# $NetBSD: Makefile,v 1.1 2023/03/29 15:29:41 joerg Exp $
DISTNAME= luacheck-0.23.0
PKGNAME= ${DISTNAME:S/luacheck/${LUA_PKGPREFIX}-check/}
CATEGORIES= devel lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=mpeterv/}
GITHUB_PROJECT= luacheck
GITHUB_TAG= ${PKGVERSION_NOREV}
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= https://github.com/mpeterv/luacheck
COMMENT= Liner and static analyzer for Lua
LICENSE= mit
DEPENDS+= ${LUA_PKGPREFIX}-argparse>=0.6.0:../../devel/lua-argparse
DEPENDS+= ${LUA_PKGPREFIX}-filesystem>=1.6.3:../../devel/lua-filesystem
INSTALLATION_DIRS+= bin ${LUA_LDIR}/luacheck/stages
REPLACE_LUA+= bin/luacheck.lua
LUA_VERSIONS_INCOMPATIBLE+= 64
PLIST_SUBST+= LUADOTVER=${_LUA_DOT_VERSION}
FILES_SUBST+= LUADOTVER=${_LUA_DOT_VERSION}
do-build:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/luacheck.lua ${DESTDIR}${PREFIX}/bin/luacheck-${_LUA_DOT_VERSION}
${INSTALL_DATA} ${WRKSRC}/src/luacheck/*.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/luacheck
${INSTALL_DATA} ${WRKSRC}/src/luacheck/stages/*.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/luacheck/stages
.include "../../lang/lua/application.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2023/03/29 15:29:41 joerg Exp $
bin/luacheck-${LUADOTVER}
${LUA_LDIR}/luacheck/builtin_standards.lua
${LUA_LDIR}/luacheck/cache.lua
${LUA_LDIR}/luacheck/check.lua
${LUA_LDIR}/luacheck/check_state.lua
${LUA_LDIR}/luacheck/config.lua
${LUA_LDIR}/luacheck/core_utils.lua
${LUA_LDIR}/luacheck/decoder.lua
${LUA_LDIR}/luacheck/expand_rockspec.lua
${LUA_LDIR}/luacheck/filter.lua
${LUA_LDIR}/luacheck/format.lua
${LUA_LDIR}/luacheck/fs.lua
${LUA_LDIR}/luacheck/globbing.lua
${LUA_LDIR}/luacheck/init.lua
${LUA_LDIR}/luacheck/lexer.lua
${LUA_LDIR}/luacheck/love_standard.lua
${LUA_LDIR}/luacheck/main.lua
${LUA_LDIR}/luacheck/multithreading.lua
${LUA_LDIR}/luacheck/ngx_standard.lua
${LUA_LDIR}/luacheck/options.lua
${LUA_LDIR}/luacheck/parser.lua
${LUA_LDIR}/luacheck/profiler.lua
${LUA_LDIR}/luacheck/runner.lua
${LUA_LDIR}/luacheck/stages.lua
${LUA_LDIR}/luacheck/stages/detect_bad_whitespace.lua
${LUA_LDIR}/luacheck/stages/detect_cyclomatic_complexity.lua
${LUA_LDIR}/luacheck/stages/detect_empty_blocks.lua
${LUA_LDIR}/luacheck/stages/detect_empty_statements.lua
${LUA_LDIR}/luacheck/stages/detect_globals.lua
${LUA_LDIR}/luacheck/stages/detect_reversed_fornum_loops.lua
${LUA_LDIR}/luacheck/stages/detect_unbalanced_assignments.lua
${LUA_LDIR}/luacheck/stages/detect_uninit_accesses.lua
${LUA_LDIR}/luacheck/stages/detect_unreachable_code.lua
${LUA_LDIR}/luacheck/stages/detect_unused_fields.lua
${LUA_LDIR}/luacheck/stages/detect_unused_locals.lua
${LUA_LDIR}/luacheck/stages/linearize.lua
${LUA_LDIR}/luacheck/stages/name_functions.lua
${LUA_LDIR}/luacheck/stages/parse.lua
${LUA_LDIR}/luacheck/stages/parse_inline_options.lua
${LUA_LDIR}/luacheck/stages/resolve_locals.lua
${LUA_LDIR}/luacheck/stages/unwrap_parens.lua
${LUA_LDIR}/luacheck/standards.lua
${LUA_LDIR}/luacheck/unicode.lua
${LUA_LDIR}/luacheck/unicode_printability_boundaries.lua
${LUA_LDIR}/luacheck/utils.lua
${LUA_LDIR}/luacheck/version.lua
$NetBSD: distinfo,v 1.1 2023/03/29 15:29:41 joerg Exp $
BLAKE2s (luacheck-0.23.0.tar.gz) = bfc1e907a858f3c3c170cdf913102df5be2f0f0d8fa03ada4987bdd297680225
SHA512 (luacheck-0.23.0.tar.gz) = d76e4b22f1e9d868a8531ad51fb98607e5bfb1fbbd55053105d9978ba6c0455de99202c53d4e199733ea997863b26527fb84e7e9717209fd588f1d02db9db028
Size (luacheck-0.23.0.tar.gz) = 158201 bytes