OpenMiInk/third_party/kde-ci-utilities/gitlab-templates/qml-lint.yml
Hellings b8c8ff98e2 Hi
2026-10-16 09:05:56 -04:00

20 lines
661 B
YAML

# SPDX-FileCopyrightText: 2025 Devin Lin <devin@kde.org>
# SPDX-License-Identifier: BSD-2-Clause
include: /gitlab-templates/blocks/workflow.yml
qml-lint:
image:
name: debian:latest
entrypoint: [""]
tags:
- Linux
stage: validate
script:
- echo "Checking for i18n* usage in QML files to make sure single quotes aren't used..."
- if grep -RIn --include="*.qml" -E "i18n(c(p)?|d(c?p)?|n(p)?)?\('" .; then
echo "Found single quote i18n* usage in QML. Please correct these to use double quotes instead, as single quotes are not supported.";
exit 1;
else
echo "No single quote i18n* usage found in QML.";
fi