Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check missing release props #372

Merged
merged 4 commits into from Jan 12, 2022

Conversation

fortysixandtwo
Copy link
Contributor

appstream-util checks for missing timestamp property, so we can do the same.

What prompted me to check this, was having had a typo data=... instead of date=... which was caught by appstream-util, but not by appstreamcli.

An alternative solution could iterate the properties of the release tag and check for unknowns (if that is preferred).

I'm also not sure if the info severity is a good choice or if it should be bumped to warning

Copy link
Owner

@ximion ximion left a comment

Choose a reason for hiding this comment

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

A few minor changes on the issue tags and severities, but otherwise this patch looks good to me. Odd that this check was missing in the first place, thanks for noticing and creating a patch!

src/as-validator-issue-tag.h Outdated Show resolved Hide resolved
src/as-validator-issue-tag.h Outdated Show resolved Hide resolved
@fortysixandtwo
Copy link
Contributor Author

v2: Split into release-version-missing and release-time-missing and bumped to error severity (thanks @ximion for the review)

@ximion ximion merged commit c13a605 into ximion:master Jan 12, 2022
11 checks passed
@ximion
Copy link
Owner

ximion commented Jan 12, 2022

This looks good now, thank you for the patch! :-)

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.

None yet

2 participants