OCA / odoo-pre-commit-hooks

Linters of Odoo addons that complement pylint-odoo
GNU Affero General Public License v3.0
10 stars 12 forks source link

[IMP] oca_pre_commit_hooks: Support disable XML checks from disable comments #42

Closed moylop260 closed 2 years ago

moylop260 commented 2 years ago

Add support to disable checks for XML files based on comments

e.g.

    <?xml version="1.0" encoding="utf-8"?>
    <!-- oca-hooks:disable=xml-deprecated-openerp-node -->
    <odoo>
    ...
    </odoo>

In this case the check xml-deprecated-openerp-node will be disabled only for this file

Fix https://github.com/OCA/odoo-pre-commit-hooks/issues/40