oca-odoo-pre-commit-hooks 0.2.22__tar.gz → 0.2.23__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/PKG-INFO +113 -130
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/README.md +106 -129
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/setup.py +1 -1
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_odoo_pre_commit_hooks.egg-info/PKG-INFO +113 -130
- oca_odoo_pre_commit_hooks-0.2.23/src/oca_pre_commit_hooks/__init__.py +1 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_xml.py +0 -143
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/tests/test_checks.py +0 -3
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/tests/test_node_xml.py +0 -33
- oca_odoo_pre_commit_hooks-0.2.22/src/oca_pre_commit_hooks/__init__.py +0 -1
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/LICENSE +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/pyproject.toml +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/requirements.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/setup.cfg +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_odoo_pre_commit_hooks.egg-info/SOURCES.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_odoo_pre_commit_hooks.egg-info/dependency_links.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_odoo_pre_commit_hooks.egg-info/entry_points.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_odoo_pre_commit_hooks.egg-info/not-zip-safe +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_odoo_pre_commit_hooks.egg-info/requires.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_odoo_pre_commit_hooks.egg-info/top_level.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/__main__.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/base_checker.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_csv.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_fixit.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_common.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/__init__.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/field_string_redundant.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/manifest_superfluous_key_rule.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/prefer_env_translation.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/unused_logger.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/checks_odoo_module_po.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/cli.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/cli_fixit.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/cli_po.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/global_parser.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/node_xml.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/src/oca_pre_commit_hooks/utils.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/tests/test_checks_po.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/tests/test_fixit.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/tests/test_pre_commit_hook.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.22 → oca_odoo_pre_commit_hooks-0.2.23}/tests/test_profiling.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oca-odoo-pre-commit-hooks
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.23
|
|
4
4
|
Summary: odoo-pre-commit-hooks to use in pre-commit-config.yml files
|
|
5
5
|
Home-page: https://github.com/OCA/odoo-pre-commit-hooks
|
|
6
6
|
Author: Odoo Community Association (OCA)
|
|
@@ -51,7 +51,7 @@ Dynamic: summary
|
|
|
51
51
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
52
52
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
53
53
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
54
|
-
[](https://github.com/OCA/odoo-pre-commit-hooks/compare/v0.2.23...main)
|
|
55
55
|
[](https://github.com/psf/black)
|
|
56
56
|
|
|
57
57
|
[//]: # (end-badges)
|
|
@@ -80,7 +80,7 @@ Add to your ".pre-commit-config.yaml" configuration file the following input
|
|
|
80
80
|
|
|
81
81
|
```yaml
|
|
82
82
|
- repo: https://github.com/OCA/odoo-pre-commit-hooks
|
|
83
|
-
rev: v0.2.
|
|
83
|
+
rev: v0.2.23
|
|
84
84
|
hooks:
|
|
85
85
|
- id: oca-checks-odoo-module
|
|
86
86
|
- id: oca-checks-po
|
|
@@ -200,23 +200,6 @@ for use of deprecated QWeb directives t-*-options
|
|
|
200
200
|
t-esc and t-raw directives are deprecated in Odoo v15.0, use t-out instead.
|
|
201
201
|
For more details https://github.com/odoo/odoo/commit/01875541b1a8131cb and https://github.com/odoo/odoo/pull/70004
|
|
202
202
|
|
|
203
|
-
* Check xml-double-quotes-py
|
|
204
|
-
Detect XML attributes containing escaped double quotes " -> (")
|
|
205
|
-
for python expressions Python expressions (e.g. domain, context, eval, t-* or data-* attrs).
|
|
206
|
-
that originate from Prettier auto-fix and reduce human readability.
|
|
207
|
-
|
|
208
|
-
When Prettier rewrites values like attr='""' into attr=""""
|
|
209
|
-
the result is valid XML but harder to read and maintain.
|
|
210
|
-
|
|
211
|
-
The check:
|
|
212
|
-
- Scans XML files that contain escaped double quotes (")
|
|
213
|
-
- Restricts analysis to attributes known to embed Python code
|
|
214
|
-
- Verifies that both the original and the proposed value are valid Python expressions
|
|
215
|
-
- Suggests replacing double quotes with single quotes when safe
|
|
216
|
-
|
|
217
|
-
This avoids false positives and prevents introducing syntax errors
|
|
218
|
-
while improving readability and Prettier compatibility.
|
|
219
|
-
|
|
220
203
|
* Check xml-header-missing
|
|
221
204
|
Generated when the XML file is missing the XML declaration header '<?xml version="1.0" encoding="UTF-8" ?>'
|
|
222
205
|
|
|
@@ -424,193 +407,187 @@ options:
|
|
|
424
407
|
|
|
425
408
|
* csv-duplicate-record-id
|
|
426
409
|
|
|
427
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
410
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/ir.model.access.csv#L5 Duplicate CSV record `access_account_account_type` broken_module/ir.model.access.csv:6
|
|
428
411
|
|
|
429
412
|
* csv-syntax-error
|
|
430
413
|
|
|
431
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
414
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/syntax_err_module/ir.model.access.csv#L1 'utf-8' codec can't decode byte 0xf1 in position 47: invalid continuation byte
|
|
432
415
|
|
|
433
416
|
* field-string-redundant
|
|
434
417
|
|
|
435
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
436
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
437
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
418
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/models/broken_model.py#L98 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
|
|
419
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/models/broken_model.py#L130 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
|
|
420
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/models/broken_model.py#L140 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
|
|
438
421
|
|
|
439
422
|
* file-not-used
|
|
440
423
|
|
|
441
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
424
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/__openerp__.py#L1 File "broken_module/report/test_report.xml" is not referenced in the manifest. 🔴 If it is loaded from another source (e.g. a post_init_hook script), just add it under the section "oca_data_manual": ["report/test_report.xml",] to be considered. 🔵 Otherwise, you might want to remove it.
|
|
442
425
|
|
|
443
426
|
* manifest-superfluous-key
|
|
444
427
|
|
|
445
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
446
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
447
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
428
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/__openerp__.py#L32 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
|
|
429
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/__openerp__.py#L34 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
|
|
430
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/woversion_module/__manifest__.py#L8 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
|
|
448
431
|
|
|
449
432
|
* manifest-syntax-error
|
|
450
433
|
|
|
451
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
452
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
434
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/manifest_werror/__manifest__.py#L1 Manifest could not be loaded manifest malformed
|
|
435
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/woinit_module/__manifest__.py#L1 Manifest could not be loaded
|
|
453
436
|
|
|
454
437
|
* prefer-env-translation
|
|
455
438
|
|
|
456
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
457
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
458
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
439
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/models/broken_model.py#L247 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
|
|
440
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/models/broken_model.py#L264 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
|
|
441
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/models/broken_model.py#L267 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
|
|
459
442
|
|
|
460
443
|
* prefer-readme-rst
|
|
461
444
|
|
|
462
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
445
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/README.md#L1 Prefer README.rst instead of README.md
|
|
463
446
|
|
|
464
447
|
* unused-logger
|
|
465
448
|
|
|
466
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
449
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/models/model_inhe1.py#L17 Unused `_logger` is not allowed in Odoo models. Remove it if not used. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=unused-logger` or `# lint-ignore`
|
|
467
450
|
|
|
468
451
|
* use-header-comments
|
|
469
452
|
|
|
470
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
453
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/eleven_module/models.py#L9 Use of header comments in lines 3, 5, 6, 7, 9
|
|
471
454
|
|
|
472
455
|
* weblate-component-too-long
|
|
473
456
|
|
|
474
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
457
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/syntax_err_module/__manifest__.py#L1 Repo Name + Odoo version + Module name is too long for weblate component 'big-big-big-big-big-big-big-big-big-big-big-big-big-big-big-big-big--00.0-syntax_err_module' size 91 is longer than 90 characters
|
|
475
458
|
|
|
476
459
|
* xml-create-user-wo-reset-password
|
|
477
460
|
|
|
478
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
461
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/res_users.xml#L10 record res.users without `context="{'no_reset_password': True}"`
|
|
479
462
|
|
|
480
463
|
* xml-dangerous-qweb-replace-low-priority
|
|
481
464
|
|
|
482
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
483
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
484
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
465
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/template1.xml#L4 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
|
|
466
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/template1.xml#L7 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
|
|
467
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/template1.xml#L18 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
|
|
485
468
|
|
|
486
469
|
* xml-deprecated-data-node
|
|
487
470
|
|
|
488
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
489
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
490
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
471
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/demo/duplicated_id_demo.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
|
|
472
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
|
|
473
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view2.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
|
|
491
474
|
|
|
492
475
|
* xml-deprecated-oe-chatter
|
|
493
476
|
|
|
494
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
477
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/odoo18_module/views/deprecated_chatter.xml#L6 Please replace old style chatters with the new tag <chatter/>.
|
|
495
478
|
|
|
496
479
|
* xml-deprecated-openerp-node
|
|
497
480
|
|
|
498
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
499
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
500
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
481
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
|
|
482
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view2.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
|
|
483
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/model_view.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
|
|
501
484
|
|
|
502
485
|
* xml-deprecated-qweb-directive
|
|
503
486
|
|
|
504
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
505
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
487
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L7 Deprecated QWeb directive `t-esc-options`. Use `t-options` instead
|
|
488
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L42 Deprecated QWeb directive `t-field-options`. Use `t-options` instead
|
|
506
489
|
|
|
507
490
|
* xml-deprecated-qweb-directive-15
|
|
508
491
|
|
|
509
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
510
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
511
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
492
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L6 Deprecated QWeb directive `t-esc`. Use `t-out` instead
|
|
493
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L7 Deprecated QWeb directive `t-raw`. Use `t-out` instead
|
|
494
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L15 Deprecated QWeb directive `t-esc`. Use `t-out` instead
|
|
512
495
|
|
|
513
496
|
* xml-deprecated-tree-attribute
|
|
514
497
|
|
|
515
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
516
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
517
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
518
|
-
|
|
519
|
-
* xml-double-quotes-py
|
|
520
|
-
|
|
521
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.22/test_repo/test_module/model_view.xml#L10 Escaped double quotes " for python code detected use Use single quote instead: `state in ('done')`
|
|
522
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.22/test_repo/test_module/model_view.xml#L20 Escaped double quotes " for python code detected Use single quote instead: `{'group_by': ['name']}`
|
|
523
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.22/test_repo/test_module/model_view.xml#L22 Escaped double quotes " for python code detected use Use single quote instead: `[('state', '=', 'done')]`
|
|
498
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo.xml#L31 Deprecated "<tree string=..."
|
|
499
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo.xml#L42 Deprecated "<tree colors=..."
|
|
500
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo.xml#L53 Deprecated "<tree fonts=..."
|
|
524
501
|
|
|
525
502
|
* xml-duplicate-fields
|
|
526
503
|
|
|
527
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
528
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
529
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
504
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L5 Duplicate xml field `name` broken_module/model_view_odoo2.xml:12
|
|
505
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L22 Duplicate xml field `model` broken_module/model_view_odoo2.xml:23
|
|
506
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L80 Duplicate xml field `arch` broken_module/model_view_odoo2.xml:83
|
|
530
507
|
|
|
531
508
|
* xml-duplicate-record-id
|
|
532
509
|
|
|
533
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
534
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
510
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view.xml#L5 Duplicate xml record id `view_model_form` broken_module/model_view_odoo.xml:5 broken_module/model_view_odoo2.xml:4
|
|
511
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view2.xml#L5 Duplicate xml record id `view_model_form2` broken_module/model_view_odoo2.xml:16
|
|
535
512
|
|
|
536
513
|
* xml-duplicate-template-id
|
|
537
514
|
|
|
538
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
539
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
540
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
515
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/template1.xml#L3 Duplicate xml template id `qweb/my_template1_noupdate_0` broken_module/template1_copy2.xml:3
|
|
516
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/template1.xml#L10 Duplicate xml template id `qweb/my_template2_noupdate_0` broken_module/template1_copy2.xml:10
|
|
517
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/template1.xml#L17 Duplicate xml template id `qweb/my_template3_noupdate_0` broken_module/template1_copy2.xml:17
|
|
541
518
|
|
|
542
519
|
* xml-field-bool-without-eval
|
|
543
520
|
|
|
544
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
545
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
521
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/demo/duplicated_id_demo.xml#L18 Field `active` with boolean value without `eval` attribute
|
|
522
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L18 Field `active` with boolean value without `eval` attribute
|
|
546
523
|
|
|
547
524
|
* xml-field-numeric-without-eval
|
|
548
525
|
|
|
549
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
550
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
551
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
526
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/demo/duplicated_id_demo.xml#L8 Field `priority` with numeric value without `eval` attribute
|
|
527
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/demo/duplicated_id_demo.xml#L22 Field `sequence` with numeric value without `eval` attribute
|
|
528
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view2.xml#L62 Field `priority` with numeric value without `eval` attribute
|
|
552
529
|
|
|
553
530
|
* xml-header-missing
|
|
554
531
|
|
|
555
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
556
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
532
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L1 XML missing header
|
|
533
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/xml_wo_header.xml#L1 XML missing header
|
|
557
534
|
|
|
558
535
|
* xml-header-wrong
|
|
559
536
|
|
|
560
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
561
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
562
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
537
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/demo/duplicated_id_demo.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8"?>'
|
|
538
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/deprecated_disable.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8" ?>'
|
|
539
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8"?>'
|
|
563
540
|
|
|
564
541
|
* xml-id-position-first
|
|
565
542
|
|
|
566
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
567
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
568
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
543
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/deprecated_disable.xml#L4 The "id" attribute must be first `<record id="duplicate_record" model=...` Use `<record id="duplicate_record" model=...` instead
|
|
544
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L43 The "id" attribute must be first `<record id="view_ir_config_search" model=...` Use `<record id="view_ir_config_search" model=...` instead
|
|
545
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L68 The "id" attribute must be first `<record id="access_rule" model=...` Use `<record id="access_rule" model=...` instead
|
|
569
546
|
|
|
570
547
|
* xml-not-valid-char-link
|
|
571
548
|
|
|
572
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
573
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
549
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L64 The resource in in src/href contains a not valid character
|
|
550
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L66 The resource in in src/href contains a not valid character
|
|
574
551
|
|
|
575
552
|
* xml-oe-structure-missing-id
|
|
576
553
|
|
|
577
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
578
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
579
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
554
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L9 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure`
|
|
555
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L13 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure`
|
|
556
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L46 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure`
|
|
580
557
|
|
|
581
558
|
* xml-record-missing-id
|
|
582
559
|
|
|
583
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
584
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
560
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view.xml#L25 Record has no id, add a unique one to create a new record, use an existing one to update it
|
|
561
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view.xml#L28 Record has no id, add a unique one to create a new record, use an existing one to update it
|
|
585
562
|
|
|
586
563
|
* xml-redundant-module-name
|
|
587
564
|
|
|
588
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
589
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
590
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
565
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view2.xml#L15 Redundant module name `<record id="broken_module.view_model_form2"` Use `<record id="view_model_form2"` instead
|
|
566
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L158 Redundant module name `<menuitem id="broken_module.menu_root"` Use `<menuitem id="menu_root"` instead
|
|
567
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view_odoo2.xml#L165 Redundant module name `<menuitem id="broken_module.menu_root2"` Use `<menuitem id="menu_root2"` instead
|
|
591
568
|
|
|
592
569
|
* xml-syntax-error
|
|
593
570
|
|
|
594
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
595
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
571
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/file_no_exist.xml#L1 [Errno 2] No such file or directory: ''
|
|
572
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/file_no_exist.xml#L1 [Errno 2] No such file or directory: ''
|
|
596
573
|
|
|
597
574
|
* xml-template-prettier-incompatible
|
|
598
575
|
|
|
599
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
600
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
601
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
576
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L22 Node `<textarea ...><t t-out=...` incompatible for Prettier XML auto-fix. To prevent unexpected text insertion prefer `<textarea t-out=...`
|
|
577
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L24 Node `<textarea ...><t t-out=...` incompatible for Prettier XML auto-fix. To prevent unexpected text insertion prefer `<textarea t-out=...`
|
|
578
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/website_templates.xml#L26 Node `<textarea ...><t t-out=...` incompatible for Prettier XML auto-fix. To prevent unexpected text insertion prefer `<textarea t-out=...`
|
|
602
579
|
|
|
603
580
|
* xml-view-dangerous-replace-low-priority
|
|
604
581
|
|
|
605
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
606
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
607
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
582
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view2.xml#L25 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
|
|
583
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view2.xml#L37 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
|
|
584
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view2.xml#L47 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
|
|
608
585
|
|
|
609
586
|
* xml-xpath-translatable-item
|
|
610
587
|
|
|
611
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
612
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
613
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
588
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/model_view.xml#L11 Use of translatable xpath `text()`
|
|
589
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/template1.xml#L39 Use of translatable xpath `text()`
|
|
590
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/template1_copy.xml#L31 Use of translatable xpath `text()`
|
|
614
591
|
|
|
615
592
|
[//]: # (end-example)
|
|
616
593
|
|
|
@@ -622,49 +599,49 @@ options:
|
|
|
622
599
|
|
|
623
600
|
* po-duplicate-message-definition
|
|
624
601
|
|
|
625
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
626
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
627
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
602
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L17 Duplicate PO message definition `Branch` in lines 23, 29. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
|
|
603
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L35 Duplicate PO message definition `Message id toooooooooooooooooooooooooooo...` in lines 41. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
|
|
604
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L65 Duplicate PO message definition `One variable {variable1}` in lines 71. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
|
|
628
605
|
|
|
629
606
|
* po-duplicate-model-definition
|
|
630
607
|
|
|
631
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
632
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
633
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
634
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
635
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
636
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
637
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
608
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L17 Translation for model:ir.model.fields,field_description:broken_module.field_wizard_description has been defined more than once in line(s) 29
|
|
609
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L35 Translation for model:ir.model.fields,field_description2:broken_module.field_wizard_description2 has been defined more than once in line(s) 41
|
|
610
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L59 Translation for model:ir.model.fields,field_description5:broken_module.field_wizard_description5 has been defined more than once in line(s) 65
|
|
611
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/i18n/fr.po#L24 Translation for model:ir.model.fields,field_description2:test_module.field_description2 has been defined more than once in line(s) 24
|
|
612
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/i18n/fr.po#L31 Translation for model:ir.model.fields,field_description5:test_module.field_description5 has been defined more than once in line(s) 31
|
|
613
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/i18n/fr.po#L38 Translation for model:ir.model.fields,field_description3:test_module.field_description3 has been defined more than once in line(s) 38
|
|
614
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/i18n/fr.po#L45 Translation for model:ir.model.fields,field_description4:test_module.field_description4 has been defined more than once in line(s) 45
|
|
638
615
|
|
|
639
616
|
* po-pretty-format
|
|
640
617
|
|
|
641
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
642
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
643
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
644
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
645
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
646
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
618
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/ar_unicode.po Wrong formatting
|
|
619
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/broken_module.pot Wrong formatting
|
|
620
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po Wrong formatting
|
|
621
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/xml_semi_empty.po Wrong formatting
|
|
622
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/eleven_module/i18n/ugly.po Wrong formatting
|
|
623
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/test_module/i18n/fr.po Wrong formatting
|
|
647
624
|
|
|
648
625
|
* po-python-parse-format
|
|
649
626
|
|
|
650
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
651
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
652
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
653
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
627
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L53 Translation string couldn't be parsed correctly using str.format IndexError('Replacement index 1 out of range for positional args tuple')
|
|
628
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L59 Translation string couldn't be parsed correctly using str.format IndexError('Replacement index 1 out of range for positional args tuple')
|
|
629
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L65 Translation string couldn't be parsed correctly using str.format KeyError('variable2')
|
|
630
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L71 Translation string couldn't be parsed correctly using str.format KeyError('variable2')
|
|
654
631
|
|
|
655
632
|
* po-python-parse-printf
|
|
656
633
|
|
|
657
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
658
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
634
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L47 Translation string couldn't be parsed correctly using str%variables TypeError('not all arguments converted during string formatting')
|
|
635
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/es.po#L83 Translation string couldn't be parsed correctly using str%variables TypeError('%d format: a real number is required, not str')
|
|
659
636
|
|
|
660
637
|
* po-requires-module
|
|
661
638
|
|
|
662
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
639
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module/i18n/broken_module.pot#L14 Translation entry requires comment `#. module: MODULE`
|
|
663
640
|
|
|
664
641
|
* po-syntax-error
|
|
665
642
|
|
|
666
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
667
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
643
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/broken_module2/i18n/en.po#L1 Syntax error in po file
|
|
644
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.23/test_repo/syntax_err_module/i18n/es.po#L19 Syntax error in po file
|
|
668
645
|
|
|
669
646
|
[//]: # (end-example-po)
|
|
670
647
|
|
|
@@ -680,6 +657,12 @@ and promote its widespread use.
|
|
|
680
657
|
CHANGES
|
|
681
658
|
=======
|
|
682
659
|
|
|
660
|
+
v0.2.23
|
|
661
|
+
-------
|
|
662
|
+
|
|
663
|
+
* [REF] .coveragerc: Reduce to 90% the fail-coverage
|
|
664
|
+
* [REM] xml-double-quotes-py: Remove check since that it left "
|
|
665
|
+
|
|
683
666
|
v0.2.22
|
|
684
667
|
-------
|
|
685
668
|
|