Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Utility for linting RPM spec files

License

NotificationsYou must be signed in to change notification settings

essentialkaos/perfecto

GoReportCardCode Climate MaintainabilityCodebeat badgeCodacy badge
Coverage StatusGitHub Actions CI StatusGitHub Actions CodeQL Status

ChecksInstallingUsageCI StatusLicense


perfecto is tool for checking perfectly written RPM specs. Currently,perfecto used by default for checking specs forEK Public Repository.

Screenshot

Screenshot

Checks

You can find additional information about everyperfecto check inproject wiki.

Installing

From sources

Make sure you have a working Go 1.22+ workspace (instructions), then:

go install github.com/essentialkaos/perfecto@latest
sudo dnf install -y https://pkgs.kaos.st/kaos-repo-latest.el$(grep'CPE_NAME' /etc/os-release| tr -d'"'| cut -d':' -f5).noarch.rpm# EL8 (OracleLinux/Alma/Rocky 8)sudo dnf install perfecto# Alma/Rocky 9sudo dnf --enablerepo=crb install perfecto# OracleLinux 9sudo dnf --enablerepo=ol9_codeready_builder install perfecto

Prebuilt binaries

You can download prebuilt binaries for Linux and macOS fromEK Apps Repository:

bash<(curl -fsSL https://apps.kaos.st/get) perfecto

Container image

Officialperfecto images available onGitHub Container Registry andDocker Hub. Install the latest version ofPodman orDocker, then:

curl -#L -o perfecto-container https://kaos.sh/perfecto/perfecto-containerchmod +x perfecto-containersudo mv perfecto-container /usr/bin/perfectoperfecto your.spec

Official container images withperfecto:

Using with Github Actions

For using latest stable versionperfecto with Github Actions use thisperfecto.yml file or add it to your workflow:

name:Perfectoon:push:branches:[master, develop]pull_request:branches:[master]jobs:Perfecto:name:Perfectoruns-on:ubuntu-lateststeps:      -name:Code checkoutuses:actions/checkout@v3      -name:Login to DockerHubuses:docker/login-action@v2with:registry:ghcr.iousername:${{ github.actor }}password:${{ secrets.GITHUB_TOKEN }}      -name:Check specs with Perfectouses:essentialkaos/perfecto-action@v1with:files:myapp.spec

Additional information about action configuration can be found onthe official GitHub action page.

Usage

CI Status

BranchStatus
masterCI
developCI

License

Apache License, Version 2.0


[8]ページ先頭

©2009-2025 Movatter.jp