Skip to content

misc: cleanup requires inside checks - v1#2938

Open
jasonish wants to merge 3 commits intoOISF:masterfrom
jasonish:requires-fixups/v1
Open

misc: cleanup requires inside checks - v1#2938
jasonish wants to merge 3 commits intoOISF:masterfrom
jasonish:requires-fixups/v1

Conversation

@jasonish
Copy link
Member

Filters that prevent a check from running should be inside a requires block as
this is what is documented in the README.

  • Fix-up tests that didn't have their require expressions inside "requires"
  • Fail on unknown keywords in a check block
  • Remove now unused code

- Move require expressions in shell check to requires object
- Error if an unknown key is provided in a shell check
- Move require expressions in filter check to requires object
- Error if an unknown key is provided in a filter check
@jasonish
Copy link
Member Author

jasonish commented Feb 28, 2026

gt-version: 8.0.4
requires:
lt-version: 8.0.4
gt-version: 8.0.4
Copy link
Member Author

Choose a reason for hiding this comment

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

This looks like an impossible condition, however not new with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant