lua-format-ext-git

LOW
maintainer bilabila 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The non-standard host download is a publicly documented, official ANTLR4 JAR from the project's own domain, used as a build tool; the package otherwise builds from a public git repository and does not execute untrusted remote code.

Triggered rules

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The non-standard host download is a publicly documented, official ANTLR4 JAR from the project's own domain, used as a build tool; the package otherwise builds from a public git repository and does not execute untrusted remote code.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:18 antlr4.jar::https://www.antlr.org/download/antlr-4.7.1-complete.jar

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: bilabila <bilabila@qq.com>
2_srcname=LuaFormatter
3_pkgname=lua-format
4_patch=(g4)
5pkgname=$_pkgname-ext-git
6pkgver=r293.29afe10
7pkgrel=3
8pkgdesc='LuaFormatter with extended identifiers'
9arch=(x86_64 aarch64)
10url=https://github.com/tkkcc/LuaFormatter
11provides=($_pkgname-ext $_pkgname $_srcname)
12conflicts=($_pkgname-ext $_pkgname $_srcname)
13license=(Apache2)
14depends=()
15makedepends=(git cmake java-environment)
16source=(
17 git+https://github.com/Koihik/LuaFormatter ${_patch[@]/%/.patch}
18 antlr4.jar::https://www.antlr.org/download/antlr-4.7.1-complete.jar
19)
20sha512sums=(
21 SKIP
22 8747d10775b34b8e413263439b1284bd524ef0ef867e3646774cb5ed4dddf008f852b7a2b6f8a6a1492739a7f931d57e6346cb8b65e00542b7aa8d0b868a4ebc
23 de1c230d7294e05ac7b451cbc639bab9d416a674b281e21092fb4a9329ca8b6d4b92b9ad78a9771cff475a1610f1d0419819c4619bdff36c683019da67ef13b1
24)
25pkgver() {
26 cd $_srcname
27 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
28}
29prepare() {
30 cd $_srcname
31 git submodule update --init
32 for i in ${_patch[@]/%/.patch}; do
33 patch -Np1 -i ../$i
34 done
35}
36build() {
37 cd $_srcname
38 java -jar ../antlr4.jar -Dlanguage=Cpp -no-listener -visitor -o generated Lua.g4
39 cmake -D BUILD_TESTS=OFF -D COVERAGE=OFF .
40 cmake --build .
41}
42package() {
43 install -Dm644 $_srcname/LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
44 install -Dm755 $_srcname/$_pkgname "$pkgdir"/usr/bin/$_pkgname
45}
46

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion