Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Add linter to lint ebuilds #11

Merged
merged 1 commit into from
Aug 14, 2023
Merged

Add linter to lint ebuilds #11

merged 1 commit into from
Aug 14, 2023

Conversation

jaredallard
Copy link
Contributor

Adds a command named 'elint' to lint ebuilds. This mainly ensures that
they have a few required fields (DESCRIPTION and LICENSE right now)
and that their Manifest files are valid. This is helpful for ensuring
that we don't accidentally ever have broken ebuilds in this repository.

Includes a Docker image for it to use so that the linter can be ran on
any operating system (ebuild only exists on Gentoo). We use the stage3
docker image and run emerge-webrsync on top of it to keep lint times
low.

Includes a Github action to build and push that Docker image (mostly
meant to keep it updated periodically, since you'd need to push it up
manually to get it working if it truely broke) as well as an action to
run elint on all PRs and pushes to main.

Adds a command named 'elint' to lint ebuilds. This mainly ensures that
they have a few required fields (`DESCRIPTION` and `LICENSE` right now)
and that their `Manifest` files are valid. This is helpful for ensuring
that we don't accidentally ever have broken ebuilds in this repository.

Includes a Docker image for it to use so that the linter can be ran on
any operating system (`ebuild` only exists on Gentoo). We use the stage3
docker image and run `emerge-webrsync` on top of it to keep lint times
low.

Includes a Github action to build and push that Docker image (mostly
meant to keep it updated periodically, since you'd need to push it up
manually to get it working if it truely broke) as well as an action to
run `elint` on all PRs and pushes to `main`.
@jaredallard jaredallard marked this pull request as ready for review August 12, 2023 21:33
@jaredallard jaredallard requested a review from a team as a code owner August 12, 2023 21:33
@jaredallard jaredallard merged commit 28021ef into main Aug 14, 2023
1 check passed
@jaredallard jaredallard deleted the jaredallard/linter branch August 14, 2023 16:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants