Skip to content

Add yamllint configuration and fix lint warnings#66

Merged
jeffwidman merged 1 commit intomainfrom
add-yamllint
Mar 13, 2026
Merged

Add yamllint configuration and fix lint warnings#66
jeffwidman merged 1 commit intomainfrom
add-yamllint

Conversation

@jeffwidman
Copy link
Member

Adds yamllint to the repo:

  • .yamllint.yaml — config that disables document-start and line-length rules, ignores vendor/
  • .github/workflows/yamllint.yml — CI workflow to run yamllint on push to main and on PRs

Fixes all existing lint issues:

  • Suppress truthy warnings on on: keys in all workflow files via inline disable comments
  • Fix extra spaces inside brackets in smoke.yml
  • Fix step indentation in smoke.yml (was 4-space, now consistent 6-space)
  • Fix trailing comment indentation in smoke.yml

@jeffwidman jeffwidman requested a review from a team as a code owner March 13, 2026 00:09
Copilot AI review requested due to automatic review settings March 13, 2026 00:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds YAML linting to the repository and updates existing GitHub Actions workflow YAML to conform to the new lint rules.

Changes:

  • Add a .yamllint.yaml configuration (with repo-specific rule overrides and ignore paths).
  • Add a GitHub Actions workflow to run yamllint on PRs and pushes to main.
  • Apply formatting/lint-suppression fixes across existing workflows (notably on: truthy suppression and smoke.yml spacing/indentation fixes).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.yamllint.yaml Introduces yamllint configuration and ignore patterns.
.github/workflows/yamllint.yml New CI workflow that runs yamllint in GitHub Actions.
.github/workflows/smoke.yml Fixes spacing/indentation and suppresses on: truthy lint.
.github/workflows/scorecard.yml Suppresses on: truthy lint.
.github/workflows/ghcr.yml Suppresses on: truthy lint.
.github/workflows/codeql.yml Suppresses on: truthy lint.
.github/workflows/ci.yml Suppresses on: truthy lint.

@jeffwidman
Copy link
Member Author

jeffwidman commented Mar 13, 2026

Long term, it kills me that we spin up a full actions workflow here just for yamllint which is already installed on actions runners...

If we add more linters down the road, it probably makes more sense to throw this in there with them, since this is really more of a sanity check than anything else.

EDIT: Wow, only 4s for the yamllint run!! Actions has massively reduced their overhead of spinning up a job since I last checked.

- Add .yamllint.yaml config (disable document-start, line-length rules; ignore vendor/)
- Add yamllint CI workflow
- Fix truthy warnings in all workflow files with inline disable comments
- Fix bracket spacing in smoke.yml
- Fix step indentation in smoke.yml
- Fix comment indentation in smoke.yml
@jeffwidman jeffwidman merged commit 7f1f78d into main Mar 13, 2026
6 of 94 checks passed
@jeffwidman jeffwidman deleted the add-yamllint branch March 13, 2026 00:58
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.

3 participants