oca-odoo-pre-commit-hooks 0.2.24__tar.gz → 0.2.26__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.24 → oca_odoo_pre_commit_hooks-0.2.26}/PKG-INFO +120 -115
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/README.md +105 -114
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/setup.py +2 -1
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_odoo_pre_commit_hooks.egg-info/PKG-INFO +120 -115
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_odoo_pre_commit_hooks.egg-info/SOURCES.txt +3 -1
- oca_odoo_pre_commit_hooks-0.2.26/src/oca_pre_commit_hooks/__init__.py +1 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_fixit.py +55 -21
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/field_string_redundant.py +84 -168
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/manifest_superfluous_key_rule.py +4 -8
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/prefer_env_translation.py +12 -21
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/unused_logger.py +8 -16
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_xml.py +22 -40
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/cli_fixit.py +7 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/cli_po.py +1 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/global_parser.py +5 -2
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/utils.py +84 -23
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/tests/test_checks.py +50 -42
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/tests/test_checks_po.py +46 -10
- oca_odoo_pre_commit_hooks-0.2.26/tests/test_fixit_flags.py +96 -0
- oca_odoo_pre_commit_hooks-0.2.26/tests/test_utils.py +53 -0
- oca_odoo_pre_commit_hooks-0.2.24/src/oca_pre_commit_hooks/__init__.py +0 -1
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/LICENSE +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/pyproject.toml +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/requirements.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/setup.cfg +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_odoo_pre_commit_hooks.egg-info/dependency_links.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_odoo_pre_commit_hooks.egg-info/entry_points.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_odoo_pre_commit_hooks.egg-info/not-zip-safe +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_odoo_pre_commit_hooks.egg-info/requires.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_odoo_pre_commit_hooks.egg-info/top_level.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/__main__.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/base_checker.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_csv.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_common.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/__init__.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/checks_odoo_module_po.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/cli.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/src/oca_pre_commit_hooks/node_xml.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/tests/test_fixit.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/tests/test_node_xml.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/tests/test_pre_commit_hook.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.24 → oca_odoo_pre_commit_hooks-0.2.26}/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.26
|
|
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)
|
|
@@ -21,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.14
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
24
25
|
Classifier: Topic :: Utilities
|
|
25
26
|
Requires-Python: >=3.9
|
|
26
27
|
Description-Content-Type: text/markdown
|
|
@@ -51,7 +52,7 @@ Dynamic: summary
|
|
|
51
52
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
52
53
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
53
54
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
54
|
-
[](https://github.com/OCA/odoo-pre-commit-hooks/compare/v0.2.26...main)
|
|
55
56
|
[](https://github.com/psf/black)
|
|
56
57
|
|
|
57
58
|
[//]: # (end-badges)
|
|
@@ -80,7 +81,7 @@ Add to your ".pre-commit-config.yaml" configuration file the following input
|
|
|
80
81
|
|
|
81
82
|
```yaml
|
|
82
83
|
- repo: https://github.com/OCA/odoo-pre-commit-hooks
|
|
83
|
-
rev: v0.2.
|
|
84
|
+
rev: v0.2.26
|
|
84
85
|
hooks:
|
|
85
86
|
- id: oca-checks-odoo-module
|
|
86
87
|
- id: oca-checks-po
|
|
@@ -295,9 +296,6 @@ Dangerous qweb view defined with low priority
|
|
|
295
296
|
* Check xml-duplicate-template-id
|
|
296
297
|
Triggered when two templates share the same ID
|
|
297
298
|
|
|
298
|
-
* Check xml-template-prettier-incompatible
|
|
299
|
-
Indentify nodes incompatible with Prettier XML auto-fix generating possible unexpected text insertion
|
|
300
|
-
|
|
301
299
|
* Check xml-xpath-translatable-item check `xpath` nodes using `contains(text(), 'Text translatable')`
|
|
302
300
|
Since that the text could be translated so it is a mutable value.
|
|
303
301
|
It could raise `ValueError` exception if the language is changed.
|
|
@@ -383,7 +381,7 @@ options:
|
|
|
383
381
|
--config, -c CONFIG Path to a configuration file (default: .oca_hooks.cfg)
|
|
384
382
|
--list-msgs List all currently enabled messages.
|
|
385
383
|
--fix Automatically fix files when possible
|
|
386
|
-
--xml-attributes-order XML_ATTRIBUTES_ORDER Define a group of XML attributes to order with priority, comma-separated values. Repeat this option to add multiple groups. Example: --xml-
|
|
384
|
+
--xml-attributes-order XML_ATTRIBUTES_ORDER Define a group of XML attributes to order with priority, comma-separated values. Repeat this option to add multiple groups. Example: --xml-attributes-order=t-if,t-else --xml-attributes-order=id,t-att-id --xml-attributes-order=class
|
|
387
385
|
|
|
388
386
|
```
|
|
389
387
|
|
|
@@ -408,7 +406,7 @@ options:
|
|
|
408
406
|
--config, -c CONFIG Path to a configuration file (default: .oca_hooks.cfg)
|
|
409
407
|
--list-msgs List all currently enabled messages.
|
|
410
408
|
--fix Automatically fix files when possible
|
|
411
|
-
--xml-attributes-order XML_ATTRIBUTES_ORDER Define a group of XML attributes to order with priority, comma-separated values. Repeat this option to add multiple groups. Example: --xml-
|
|
409
|
+
--xml-attributes-order XML_ATTRIBUTES_ORDER Define a group of XML attributes to order with priority, comma-separated values. Repeat this option to add multiple groups. Example: --xml-attributes-order=t-if,t-else --xml-attributes-order=id,t-att-id --xml-attributes-order=class
|
|
412
410
|
|
|
413
411
|
```
|
|
414
412
|
|
|
@@ -422,187 +420,181 @@ options:
|
|
|
422
420
|
|
|
423
421
|
* csv-duplicate-record-id
|
|
424
422
|
|
|
425
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
423
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/ir.model.access.csv#L5 Duplicate CSV record `access_account_account_type` broken_module/ir.model.access.csv:6
|
|
426
424
|
|
|
427
425
|
* csv-syntax-error
|
|
428
426
|
|
|
429
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
427
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/syntax_err_module/ir.model.access.csv#L1 'utf-8' codec can't decode byte 0xf1 in position 47: invalid continuation byte
|
|
430
428
|
|
|
431
429
|
* field-string-redundant
|
|
432
430
|
|
|
433
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
434
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
435
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
431
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
432
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
433
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
436
434
|
|
|
437
435
|
* file-not-used
|
|
438
436
|
|
|
439
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
437
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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.
|
|
440
438
|
|
|
441
439
|
* manifest-superfluous-key
|
|
442
440
|
|
|
443
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
444
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
445
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
441
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
442
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
443
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
446
444
|
|
|
447
445
|
* manifest-syntax-error
|
|
448
446
|
|
|
449
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
450
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
447
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/manifest_werror/__manifest__.py#L1 Manifest could not be loaded manifest malformed
|
|
448
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/woinit_module/__manifest__.py#L1 Manifest could not be loaded
|
|
451
449
|
|
|
452
450
|
* prefer-env-translation
|
|
453
451
|
|
|
454
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
455
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
456
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
452
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
453
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
454
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
457
455
|
|
|
458
456
|
* prefer-readme-rst
|
|
459
457
|
|
|
460
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
458
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/README.md#L1 Prefer README.rst instead of README.md
|
|
461
459
|
|
|
462
460
|
* unused-logger
|
|
463
461
|
|
|
464
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
462
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
465
463
|
|
|
466
464
|
* use-header-comments
|
|
467
465
|
|
|
468
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
466
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/eleven_module/models.py#L9 Use of header comments in lines 3, 5, 6, 7, 9
|
|
469
467
|
|
|
470
468
|
* weblate-component-too-long
|
|
471
469
|
|
|
472
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
470
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
473
471
|
|
|
474
472
|
* xml-create-user-wo-reset-password
|
|
475
473
|
|
|
476
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
474
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/test_module/res_users.xml#L10 record res.users without `context="{'no_reset_password': True}"`
|
|
477
475
|
|
|
478
476
|
* xml-dangerous-qweb-replace-low-priority
|
|
479
477
|
|
|
480
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
481
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
482
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
478
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
479
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
480
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
483
481
|
|
|
484
482
|
* xml-deprecated-data-node
|
|
485
483
|
|
|
486
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
487
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
488
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
484
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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">`
|
|
485
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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">`
|
|
486
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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">`
|
|
489
487
|
|
|
490
488
|
* xml-deprecated-oe-chatter
|
|
491
489
|
|
|
492
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
490
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/odoo18_module/views/deprecated_chatter.xml#L6 Please replace old style chatters with the new tag <chatter/>.
|
|
493
491
|
|
|
494
492
|
* xml-deprecated-openerp-node
|
|
495
493
|
|
|
496
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
497
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
498
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
494
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
|
|
495
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view2.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
|
|
496
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/test_module/model_view.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
|
|
499
497
|
|
|
500
498
|
* xml-deprecated-qweb-directive
|
|
501
499
|
|
|
502
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
503
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
500
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/test_module/website_templates.xml#L7 Deprecated QWeb directive `t-esc-options`. Use `t-options` instead
|
|
501
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/test_module/website_templates.xml#L26 Deprecated QWeb directive `t-field-options`. Use `t-options` instead
|
|
504
502
|
|
|
505
503
|
* xml-deprecated-qweb-directive-15
|
|
506
504
|
|
|
507
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
508
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
509
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
505
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L6 Deprecated QWeb directive `t-esc`. Use `t-out` instead
|
|
506
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L7 Deprecated QWeb directive `t-raw`. Use `t-out` instead
|
|
507
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L15 Deprecated QWeb directive `t-esc`. Use `t-out` instead
|
|
510
508
|
|
|
511
509
|
* xml-deprecated-tree-attribute
|
|
512
510
|
|
|
513
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
514
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
515
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
511
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo.xml#L31 Deprecated "<tree string=..."
|
|
512
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo.xml#L42 Deprecated "<tree colors=..."
|
|
513
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo.xml#L53 Deprecated "<tree fonts=..."
|
|
516
514
|
|
|
517
515
|
* xml-duplicate-fields
|
|
518
516
|
|
|
519
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
520
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
521
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
517
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L5 Duplicate xml field `name` broken_module/model_view_odoo2.xml:12
|
|
518
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L22 Duplicate xml field `model` broken_module/model_view_odoo2.xml:23
|
|
519
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L80 Duplicate xml field `arch` broken_module/model_view_odoo2.xml:83
|
|
522
520
|
|
|
523
521
|
* xml-duplicate-record-id
|
|
524
522
|
|
|
525
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
526
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
523
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
524
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view2.xml#L5 Duplicate xml record id `view_model_form2` broken_module/model_view_odoo2.xml:16
|
|
527
525
|
|
|
528
526
|
* xml-duplicate-template-id
|
|
529
527
|
|
|
530
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
531
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
532
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
528
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/template1.xml#L3 Duplicate xml template id `qweb/my_template1_noupdate_0` broken_module/template1_copy2.xml:3
|
|
529
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/template1.xml#L10 Duplicate xml template id `qweb/my_template2_noupdate_0` broken_module/template1_copy2.xml:10
|
|
530
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/template1.xml#L17 Duplicate xml template id `qweb/my_template3_noupdate_0` broken_module/template1_copy2.xml:17
|
|
533
531
|
|
|
534
532
|
* xml-field-bool-without-eval
|
|
535
533
|
|
|
536
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
537
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
534
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/demo/duplicated_id_demo.xml#L18 Field `active` with boolean value without `eval` attribute
|
|
535
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L18 Field `active` with boolean value without `eval` attribute
|
|
538
536
|
|
|
539
537
|
* xml-field-numeric-without-eval
|
|
540
538
|
|
|
541
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
542
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
543
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
539
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/demo/duplicated_id_demo.xml#L8 Field `priority` with numeric value without `eval` attribute
|
|
540
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/demo/duplicated_id_demo.xml#L22 Field `sequence` with numeric value without `eval` attribute
|
|
541
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view2.xml#L62 Field `priority` with numeric value without `eval` attribute
|
|
544
542
|
|
|
545
543
|
* xml-header-missing
|
|
546
544
|
|
|
547
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
548
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
545
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L1 XML missing header
|
|
546
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/xml_wo_header.xml#L1 XML missing header
|
|
549
547
|
|
|
550
548
|
* xml-header-wrong
|
|
551
549
|
|
|
552
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
553
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
554
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
550
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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"?>'
|
|
551
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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" ?>'
|
|
552
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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"?>'
|
|
555
553
|
|
|
556
554
|
* xml-not-valid-char-link
|
|
557
555
|
|
|
558
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
559
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
556
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/test_module/website_templates.xml#L48 The resource in in src/href contains a not valid character
|
|
557
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/test_module/website_templates.xml#L50 The resource in in src/href contains a not valid character
|
|
560
558
|
|
|
561
559
|
* xml-oe-structure-missing-id
|
|
562
560
|
|
|
563
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
564
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
565
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
561
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
562
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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`
|
|
563
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/test_module/website_templates.xml#L30 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure`
|
|
566
564
|
|
|
567
565
|
* xml-record-missing-id
|
|
568
566
|
|
|
569
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
570
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
567
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
568
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
571
569
|
|
|
572
570
|
* xml-redundant-module-name
|
|
573
571
|
|
|
574
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
575
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
576
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
572
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
573
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L158 Redundant module name `<menuitem id="broken_module.menu_root"` Use `<menuitem id="menu_root"` instead
|
|
574
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L165 Redundant module name `<menuitem id="broken_module.menu_root2"` Use `<menuitem id="menu_root2"` instead
|
|
577
575
|
|
|
578
576
|
* xml-syntax-error
|
|
579
577
|
|
|
580
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
581
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
578
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/file_no_exist.xml#L1 [Errno 2] No such file or directory: ''
|
|
579
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/file_no_exist.xml#L1 [Errno 2] No such file or directory: ''
|
|
582
580
|
|
|
583
581
|
* xml-tag-position
|
|
584
582
|
|
|
585
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
586
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
587
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
588
|
-
|
|
589
|
-
* xml-template-prettier-incompatible
|
|
590
|
-
|
|
591
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.24/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=...`
|
|
592
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.24/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=...`
|
|
593
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.24/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=...`
|
|
583
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/deprecated_disable.xml#L4 The expected attributes order is `<record id="duplicate_record" ...>` Use `<record id="duplicate_record" ...>` instead
|
|
584
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L43 The expected attributes order is `<record id="view_ir_config_search" ...>` Use `<record id="view_ir_config_search" ...>` instead
|
|
585
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view_odoo2.xml#L68 The expected attributes order is `<record id="access_rule" ...>` Use `<record id="access_rule" ...>` instead
|
|
594
586
|
|
|
595
587
|
* xml-view-dangerous-replace-low-priority
|
|
596
588
|
|
|
597
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
598
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
599
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
589
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
590
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
591
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
600
592
|
|
|
601
593
|
* xml-xpath-translatable-item
|
|
602
594
|
|
|
603
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
604
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
605
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
595
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/model_view.xml#L11 Use of translatable xpath `text()`
|
|
596
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/template1.xml#L39 Use of translatable xpath `text()`
|
|
597
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/template1_copy.xml#L31 Use of translatable xpath `text()`
|
|
606
598
|
|
|
607
599
|
[//]: # (end-example)
|
|
608
600
|
|
|
@@ -614,49 +606,49 @@ options:
|
|
|
614
606
|
|
|
615
607
|
* po-duplicate-message-definition
|
|
616
608
|
|
|
617
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
618
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
619
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
609
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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.
|
|
610
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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.
|
|
611
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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.
|
|
620
612
|
|
|
621
613
|
* po-duplicate-model-definition
|
|
622
614
|
|
|
623
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
624
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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.
|
|
628
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
629
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
615
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
616
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
617
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
618
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
619
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
620
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
621
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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
|
|
630
622
|
|
|
631
623
|
* po-pretty-format
|
|
632
624
|
|
|
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.
|
|
638
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
625
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/i18n/ar_unicode.po Wrong formatting
|
|
626
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/i18n/broken_module.pot Wrong formatting
|
|
627
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/i18n/es.po Wrong formatting
|
|
628
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/xml_semi_empty.po Wrong formatting
|
|
629
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/eleven_module/i18n/ugly.po Wrong formatting
|
|
630
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/test_module/i18n/fr.po Wrong formatting
|
|
639
631
|
|
|
640
632
|
* po-python-parse-format
|
|
641
633
|
|
|
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.
|
|
634
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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')
|
|
635
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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')
|
|
636
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/i18n/es.po#L65 Translation string couldn't be parsed correctly using str.format KeyError('variable2')
|
|
637
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/i18n/es.po#L71 Translation string couldn't be parsed correctly using str.format KeyError('variable2')
|
|
646
638
|
|
|
647
639
|
* po-python-parse-printf
|
|
648
640
|
|
|
649
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
650
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
641
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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')
|
|
642
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/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')
|
|
651
643
|
|
|
652
644
|
* po-requires-module
|
|
653
645
|
|
|
654
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
646
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module/i18n/broken_module.pot#L14 Translation entry requires comment `#. module: MODULE`
|
|
655
647
|
|
|
656
648
|
* po-syntax-error
|
|
657
649
|
|
|
658
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
659
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
650
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/broken_module2/i18n/en.po#L1 Syntax error in po file
|
|
651
|
+
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.26/test_repo/syntax_err_module/i18n/es.po#L19 Syntax error in po file
|
|
660
652
|
|
|
661
653
|
[//]: # (end-example-po)
|
|
662
654
|
|
|
@@ -672,6 +664,19 @@ and promote its widespread use.
|
|
|
672
664
|
CHANGES
|
|
673
665
|
=======
|
|
674
666
|
|
|
667
|
+
v0.2.26
|
|
668
|
+
-------
|
|
669
|
+
|
|
670
|
+
* [REM] xml-template-prettier-incompatible: Remove check
|
|
671
|
+
|
|
672
|
+
v0.2.25
|
|
673
|
+
-------
|
|
674
|
+
|
|
675
|
+
* [FIX] coveragerc: force core=ctrace for dynamic contexts on Python 3.14+
|
|
676
|
+
* [IMP] utils: avoid git subprocess and cache top\_path/walk\_up results
|
|
677
|
+
* [IMP] fixit: Disable nested parallelism under pre-commit to run ~5x faster
|
|
678
|
+
* [IMP] ci: add Python 3.15-dev and refresh tooling (#195)
|
|
679
|
+
|
|
675
680
|
v0.2.24
|
|
676
681
|
-------
|
|
677
682
|
|