# fix: harden cost number formatting and auto-detect missing Plasma modules in qmllint · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/206f68c9099b40d2651b26f603a863cae9dfeb8a)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 206f68c9099b40d2651b26f603a863cae9dfeb8a

Requested commit: 206f68c9099b40d2651b26f603a863cae9dfeb8a

Commit: 206f68c9099b40d2651b26f603a863cae9dfeb8a

Tree: 9f091b509ba29251f1d45dcc905aa3336b3d2590

Author: Simone

Committer: Simone

## Message

```
fix: harden cost number formatting and auto-detect missing Plasma modules in qmllint

- Guard groupedDecimalString against nullish or incomplete numberFormat objects to prevent TypeErrors when formatting amounts.
- Add test coverage for nullish, undefined, and empty format objects in tst_cost_presentation.qml.
- Automatically downgrade import and unresolved-type categories to info in scripts/test_qml_hardening.sh when Plasma QML modules are absent from QML_IMPORT_DIR, ensuring make check succeeds out-of-the-box on Debian/Ubuntu/containers without desktop dev packages while preserving strict checks when present.
- Add unit test coverage in test_qml_hardening.sh for resolve_qmllint_flags.

```

## Parents

- [b224723b4bc7437b4505ba1c7bcf5d6ccdf336b8](https://git.cafe/lucenx/codexbar-plasma/commit/b224723b4bc7437b4505ba1c7bcf5d6ccdf336b8?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/206f68c9099b40d2651b26f603a863cae9dfeb8a?format=markdown)
