Skip to content

ci: lint PKGBUILDs in the shared workflow - #1035

Merged
ReenigneArcher merged 2 commits into
masterfrom
codex/shared-pkgbuild-lint
Dec 5, 2026
Merged

ReenigneArcher merged 2 commits into
masterfrom
codex/shared-pkgbuild-lint

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Description

Discover tracked PKGBUILDs and lint them as Bash with ShellCheck. Keep SC2034, SC2154, and SC2164 excluded for recipe metadata, variables supplied by makepkg, and makepkg's error handling. Keep SC2016 enabled and use command-scoped directives for intentional literal substitutions. The matching XbFoundry/xbdk#56 update should merge first so XBDK's existing recipes pass the new check.

Run namcap for package metadata on x64 Linux using an Arch Linux container with a read-only checkout and networking disabled. Report warnings and fail on errors. Repositories without PKGBUILDs skip both steps.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • ShellCheck passed all XBDK recipes and both open MCP recipes. A fixture confirmed that a command-scoped SC2016 directive leaves the rule active on the next command. A tracked fixture with spaces in its path passed, and removing quotes from a variable expansion produced SC2086.
  • Built the namcap container and replayed the shared step with the same fixtures. It passed with missing-maintainer warnings and failed on a missing URL. All XBDK recipes produced warnings only.
  • Checked the workflow with actionlint. The only excluded diagnostic was a pre-existing SC2337 warning in the Python tooling step. git diff --check passed.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2026

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit 9077701 into master Dec 5, 2026
22 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/shared-pkgbuild-lint branch December 5, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant