Skip to content

[REM] xml-template-prettier-incompatible: Remove check - #198

Merged
moylop260 merged 1 commit into
OCA:mainfrom
vauxoo-dev:main-rm-xml-template-prettier-incompatible-moy
Aug 14, 2026
Merged

[REM] xml-template-prettier-incompatible: Remove check#198
moylop260 merged 1 commit into
OCA:mainfrom
vauxoo-dev:main-rm-xml-template-prettier-incompatible-moy

Conversation

@moylop260

Copy link
Copy Markdown
Collaborator

Removes the xml-template-prettier-incompatible check added in #150.

Why

  • There are too many tag variants able to inject a real newline instead of being just a style change made by prettier, so the check only covers a small subset (<textarea><t t-out=.../></textarea>) and can not be made reliable without a lot of false negatives/positives.
  • It also avoids having to change xmlWhitespaceSensitivity: "strict" in .prettierrc.yml, which is kept as is in order to prevent unexpected text insertion errors in production.

Changes

  • checks_odoo_module_xml.py: drop verify_template_prettier_incompatible(), its entry in @utils.only_required_for_checks and the call from check_xml_templates()
  • test_repo/test_module/website_templates.xml: drop the <textarea> fixtures
  • tests/test_checks.py: drop the expected errors entry
  • README.md: regenerated with tox -e update-readme

Related to #149

There are too many tag variants able to inject a real newline instead of
being just a style change made by prettier, so the check can not cover
them reliably and it reports only a small subset of the real cases.

Removing it also avoids the need of changing
`xmlWhitespaceSensitivity: "strict"` in `.prettierrc.yml`, which is kept
as is in order to prevent unexpected text insertion errors in production.

Revert of dc69ca4 (OCA#150) related to
OCA#149
@moylop260
moylop260 merged commit 4774e56 into OCA:main Aug 14, 2026
22 checks passed
moylop260 added a commit to vauxoo-dev/pre-commit-vauxoo that referenced this pull request Aug 14, 2026
Release that drops the `xml-template-prettier-incompatible` check
(OCA/odoo-pre-commit-hooks#198).
moylop260 added a commit to Vauxoo/pre-commit-vauxoo that referenced this pull request Aug 14, 2026
…ist (#267)

The check is being removed upstream in OCA/odoo-pre-commit-hooks#198, so
there is nothing left to disable and the entry only adds noise to the
generated `.oca_hooks.cfg`.

* [IMP] cfg: Bump odoo-pre-commit-hooks to v0.2.26

Release that drops the `xml-template-prettier-incompatible` check
(OCA/odoo-pre-commit-hooks#198).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant