mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 15:45:41 +02:00
ci: add check of gettext files with poexam
This commit is contained in:
@@ -11,6 +11,14 @@ on:
|
||||
- cron: '22 9 * * 2'
|
||||
|
||||
env:
|
||||
CHECK_DEPS_UBUNTU: >-
|
||||
curl
|
||||
gettext
|
||||
hunspell
|
||||
hunspell-en-us
|
||||
hunspell-fr
|
||||
pipx
|
||||
shellcheck
|
||||
WEECHAT_DEPS_UBUNTU: >-
|
||||
asciidoctor
|
||||
build-essential
|
||||
@@ -121,12 +129,16 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get --yes --no-install-recommends install curl gettext pipx shellcheck
|
||||
sudo apt-get --yes --no-install-recommends install ${{ env.CHECK_DEPS_UBUNTU }}
|
||||
pipx install msgcheck ruff
|
||||
cargo install --version 0.0.8 poexam
|
||||
|
||||
- name: Check gettext files
|
||||
- name: Check gettext files (msgcheck)
|
||||
run: msgcheck po/*.po
|
||||
|
||||
- name: Check gettext files (poexam)
|
||||
run: poexam check --file-stats --rule-stats
|
||||
|
||||
- name: Check shell and Python scripts
|
||||
run: ./tools/check_scripts.sh
|
||||
|
||||
|
||||
+281
File diff suppressed because it is too large
Load Diff
+611
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
# SPDX-FileCopyrightText: 2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
[check]
|
||||
select = [
|
||||
"checks",
|
||||
]
|
||||
ignore = [
|
||||
"brackets",
|
||||
"double-quotes",
|
||||
"unchanged",
|
||||
]
|
||||
path_words = "."
|
||||
langs = [
|
||||
"en_US",
|
||||
"fr",
|
||||
]
|
||||
@@ -19,3 +19,11 @@ path = [
|
||||
precedence = "override"
|
||||
SPDX-FileCopyrightText = "2003-2026 Sébastien Helleu <flashcode@flashtux.org>"
|
||||
SPDX-License-Identifier = "GPL-3.0-or-later"
|
||||
|
||||
[[annotations]]
|
||||
path = [
|
||||
".poexam/*.dic",
|
||||
]
|
||||
precedence = "override"
|
||||
SPDX-FileCopyrightText = "2026 Sébastien Helleu <flashcode@flashtux.org>"
|
||||
SPDX-License-Identifier = "GPL-3.0-or-later"
|
||||
|
||||
Reference in New Issue
Block a user