Skip to content

Commit

Permalink
validator: Only emit developer-name-tag-deprecated once
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Jan 27, 2024
1 parent f9768c8 commit edb25f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/as-validator.c
Original file line number Diff line number Diff line change
Expand Up @@ -3096,10 +3096,12 @@ as_validator_validate_component_node (AsValidator *validator, AsContext *ctx, xm
as_validator_check_developer (validator, iter);

} else if (g_strcmp0 (node_name, "developer_name") == 0) {
as_validator_add_issue (validator,
iter,
"developer-name-tag-deprecated",
NULL);
g_autofree gchar *lang = as_xml_get_prop_value (iter, "lang");
if (lang == NULL)
as_validator_add_issue (validator,
iter,
"developer-name-tag-deprecated",
NULL);

} else if (g_strcmp0 (node_name, "compulsory_for_desktop") == 0) {
if (!as_utils_is_desktop_environment (node_content)) {
Expand Down

0 comments on commit edb25f1

Please sign in to comment.