-
Notifications
You must be signed in to change notification settings - Fork 0
Arch Linux package analiser
License
hdoria/namcap
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is where I'm going to put notes. The idea is that namcap.py takes the package name as an arguement and can also take the list of rules to run on it... later. It then runs through all the modules in Namcap.__all__ variable and tests them against the package looking for flaws. The modules in Namcap.__all__ will contain a class (called package) containing certain functions: short_name -- returns a string of the identifying name long_name -- returns a string of the description prereq -- return either "tarfile" or "extract" to signify analyze(pkginfo, data) -- does its analysis (if type is "tarball" then data is a TarFile if prereq returns "tar", from the tarfile module, if it's pkg, no data is sent, and if it's extract then the sandbox directory else if type is "pkgbuild" then data is filename). Returns a list containing three lists. First list is the list of errors, second list is the list of warnings, third list is information/notices (not warnings, but more like "did you know"s). type -- return either "pkgbuild" or "tarball"
About
Arch Linux package analiser
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published