1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// SPDX-FileCopyrightText: 2026 Sébastien Helleu <flashcode@flashtux.org>
//
// SPDX-License-Identifier: GPL-3.0-or-later
//! Poexam is a blazingly fast PO file linter with a comprehensive diagnostic report.
//!
//! It reports very few false positives and can be used in CI jobs or pre-commit hooks.
//!
//! The following sub-commands are available:
//!
//! - [`check`](#check-files): check files
//! - [`rules`](#rules): display rules used to check files
//! - [`stats`](#stats): display statistics about files
//!
//! # Check files
//!
//! The `check` command checks all gettext files (*.po) given on command-line or found
//! in the provided directories.
//!
//! The .gitignore rules are respected: ignored files are skipped.
//!
//! # Rules
//!
//! The `rules` command displays the rules used to check files.
//!
//! Many rules are enabled by default, and some extra rules can be enabled on-demand.
//!
//! # Stats
//!
//! The `stats` command displays statistics about gettext files (*.po) and can compute
//! detailed statistics with the number of entries, words and characters.
use Parser;
use crate;
use craterun_check;
use craterun_rules;
use craterun_stats;