Does the version of namcap in the Manjaro ARM repos work?

Has anyone had any luck running the version of namcap from the Manjaro ARM repos? Seems to throw Python errors whenever I try to run namcap PKGBUILD.

Works fine for me on testing branch.

What’s the python errors you get?

I just tried running it on the vivaldi-arm-bin PKGBUILD I maintain & got the following output:

PKGBUILD (vivaldi-arm-bin) W: Reference to arm should be changed to $CARCH
PKGBUILD (vivaldi-arm-bin) W: Non standard variable 'source_armhf' doesn't start with an underscore
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/site-packages/namcap.py", line 247, in <module>
    process_pkgbuild(package, active_modules)
  File "/usr/lib/python3.8/site-packages/namcap.py", line 148, in process_pkgbuild
    ret = rule.analyze(pkginfo, package)
  File "/usr/lib/python3.8/site-packages/Namcap/rules/makedepends.py", line 59, in analyze
    for s in pkginfo["source"]:
  File "/usr/lib/python3.8/site-packages/Namcap/package.py", line 128, in __getitem__
    return self._data[self.canonical_varname(key)]
KeyError: 'source'

If I try to run namcap PKGBUILD on the simplenote-electron-arm-bin package I maintain I get the following output:

PKGBUILD (simplenote-electron-arm-bin) W: Reference to arm should be changed to $CARCH
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/site-packages/namcap.py", line 247, in <module>
    process_pkgbuild(package, active_modules)
  File "/usr/lib/python3.8/site-packages/namcap.py", line 148, in process_pkgbuild
    ret = rule.analyze(pkginfo, package)
  File "/usr/lib/python3.8/site-packages/Namcap/rules/makedepends.py", line 59, in analyze
    for s in pkginfo["source"]:
  File "/usr/lib/python3.8/site-packages/Namcap/package.py", line 128, in __getitem__
    return self._data[self.canonical_varname(key)]
KeyError: 'source'

Are you on unstable branch?

Testing.

Weird, so am I and I don’t have any python errors when running namcap PKGBUILD.

What package are you testing it on?

I just tried reinstalling namcap and its dependencies. Still no dice. Same errors as before.

Tried a couple of basic ones.

Here’s the output for the wdisplays PKGBUILD:

[strit@loke wdisplays]$ namcap  PKGBUILD 
PKGBUILD (wdisplays) W: Non-unique source name (20.patch). Use a unique filename.