Repository navigation
feat(lint): add opt-in YAML and GitHub Actions checks - #255
Merged
Merged
Conversation
dpc
enabled auto-merge (rebase)
November 20, 2026 02:48
Fedimint added YAML and workflow checks in fedimint/fedimint#9290. Expose them as independent Flakebox options so projects can enable either without writing a custom hook or adding both linters to their dev shell. Use the pre-commit hook's tracked text inventory to respect exclusions and pass filenames without shell splitting. Yamllint checks syntax and duplicate keys without enforcing style. Actionlint checks only direct workflow files and uses ShellCheck independently of the standalone hook. Leave Docker Compose and Tokio lint rules to individual projects. ### Review Code review caught a nonportable ShellCheck store path in the generated hook. Resolve ShellCheck at runtime and report a missing binary explicitly. Editorial review clarified how to opt in and run the checks.
dpc
force-pushed
the
dpc/jj-wtmyytlqpnvl
branch
from
November 20, 2026 04:27
d7dc967 to
3832246
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Posted by Tau
Summary
Fedimint added separate checks for malformed YAML and GitHub Actions workflows in fedimint/fedimint#9290. Flakebox projects can now opt into those checks without maintaining custom hook code. Projects that do not use them do not need the lint tools.
Details
yamllint.enable = truechecks tracked.ymland.yamlfiles for syntax and duplicate keys, without enforcing style.actionlint.enable = truechecks tracked workflow files directly under.github/workflows/. It runs ShellCheck on inline shell scripts independently of Flakebox's standalone ShellCheck hook.Both settings default to off. Each check uses the generated pre-commit hook's file inventory and skips untracked files, symlinks, and inventory exclusions. Docker Compose validation and Tokio-specific lint rules remain project-specific.