summaryrefslogtreecommitdiff
path: root/Meta/lint-ports.py
AgeCommit message (Collapse)Author
2022-01-17Meta+Ports: Make 'package.sh showproperty' report multiple propertiesAli Mohammad Pur
And use that to avoid shelling out multiple times for checking properties in lint-ports.py.
2022-01-17Meta: Optimized lint-ports.py by avoiding duplicate execs of package.shBrian Gianforcaro
The way that lint-ports.py obtains the ports properties is unfortunately very process intensive. You have to execute `./package.sh showproperty` once for each property, for each port. Resulting in hundreds of executions. We were doing this work twice in both `check_package_files()` and in `read_port_dirs()`. This resulted in a runtime of around ~10 seconds on my machine. Removing the duplicate work and allowing the other code path to utilize the to use the cached properties brought the runtime down to ~5 seconds on my machine.
2022-01-16Meta: Ensure that all port patches are documented in the linterAli Mohammad Pur
This adds a list of ports without descriptions to filter out the existing ports with unexplained ports, this list should *not* be appended to! It also adds a (for now) disabled check that ensures all ports have patches made with (or compatible with) git.
2021-08-30Meta: Update lint-ports.py for the SerenityPorts moveAndreas Kling
2021-05-07Meta: Fix error in lint-ports.pyLinus Groh
The data structures here were changed from sets to dicts at some point, with the sets now having different names - this would crash trying to subtract two dicts.
2021-04-29Everywhere: "file name" => "filename"Andreas Kling
2021-04-25Meta: Only allow sha256 and sig for auth_type in portsGunnar Beutner
2021-04-23Ports: Detect more types of errors in the AvailablePorts.md fileGunnar Beutner
This adds support for detecting incorrect version numbers and links in the ports list. Also, unlike before it doesn't parse the package.sh script but executes it instead which allows us to detect syntax errors.
2021-04-20Ports: Update the lint-ports.py script to ignore missing auth_type for ↵Gunnar Beutner
SerenityOS repositories
2021-04-16Meta: lint-ports: Check package files for required propertiesBrendan Coles
2021-04-12Meta: Add install-ports CMake targetPeter Elliott
install-ports copys the necessary files from Ports/ to /usr/Ports. Also refactor the compiler and destiation variables from .port_include.sh into .hosted_defs.sh. .hosted_defs.sh does not exists when ports are built in serenity
2021-04-11Everywhere: Update references from ReadMe.md => README.mdAndreas Kling
2021-04-02Meta: Resolve some pylint violations in Python lint scriptsBrendan Coles
Resolves: * all: consider-using-sys-exit * all: wrong-import-order * all: TODO: Require that a few keys are set? (fixme) * some: missing-function-docstring * some: line-too-long
2021-02-15Meta: Add Ports/build_installed.sh to the lint-ports ignore listAndreas Kling
2021-02-15Meta: Lint AvailablePorts.mdBen Wiederhake
As requested by popular demand ;) https://github.com/SerenityOS/serenity/pull/5325#discussion_r575657614