lua-format-ext
maintainer bilabila
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The non-standard host download is a Java JAR file used as a build tool (ANTLR), not executed directly or installed; the package builds from a legitimate Git repository with a known tag, and the JAR's checksum is verified, limiting supply-chain risk to a build dependency.
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 Java JAR file used as a build tool (ANTLR), not executed directly or installed; the package builds from a legitimate Git repository with a known tag, and the JAR's checksum is verified, limiting supply-chain risk to a build dependency.
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)
5
pkgname=$_pkgname-ext
6
pkgver=1.3.6
7
pkgrel=4
8
pkgdesc='LuaFormatter with extended identifiers'
9
arch=(x86_64 aarch64)
10
url=https://github.com/tkkcc/LuaFormatter
11
provides=($_pkgname-ext $_pkgname $_srcname)
12
conflicts=($_pkgname-ext $_pkgname $_srcname)
13
license=(Apache2)
14
depends=()
15
makedepends=(git cmake java-environment)
16
source=(
17
git+https://github.com/Koihik/LuaFormatter#tag=1.3.6 ${_patch[@]/%/.patch}
18
antlr4.jar::https://www.antlr.org/download/antlr-4.7.1-complete.jar
19
)
20
sha512sums=(
21
SKIP
22
8747d10775b34b8e413263439b1284bd524ef0ef867e3646774cb5ed4dddf008f852b7a2b6f8a6a1492739a7f931d57e6346cb8b65e00542b7aa8d0b868a4ebc
23
de1c230d7294e05ac7b451cbc639bab9d416a674b281e21092fb4a9329ca8b6d4b92b9ad78a9771cff475a1610f1d0419819c4619bdff36c683019da67ef13b1
24
)
25
prepare() {
26
cd $_srcname
27
git submodule update --init
28
for i in ${_patch[@]/%/.patch}; do
29
patch -Np1 -i ../$i
30
done
31
}
32
build() {
33
cd $_srcname
34
java -jar ../antlr4.jar -Dlanguage=Cpp -no-listener -visitor -o generated Lua.g4
35
cmake -D BUILD_TESTS=OFF -D COVERAGE=OFF .
36
cmake --build .
37
}
38
package() {
39
install -Dm644 $_srcname/LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
40
install -Dm755 $_srcname/$_pkgname "$pkgdir"/usr/bin/$_pkgname
41
}
42
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |