OCA / pylint-odoo

Odoo plugin for Pylint
http://www.pylint.org
143 stars 168 forks source link

[TEST] unnecessary-utf8-coding-comment: Fixing test because of is not raised for broken_module3/__init__.py #252

Closed moylop260 closed 2 years ago

moylop260 commented 5 years ago

pylint_odoo/test_repo/broken_module3/__init__.py:1: [C8202(unnecessary-utf8-coding-comment), ] UTF-8 coding is not necessary is not raised.

Check why it is wrong?

For now, we just add a TODO and bypassing commit

UPDATE: pylint_odoo/test_repo/broken_module/__init__.py locally is not raised Running the following command it is detecting only 18 cases instead of 19

python3 -m pylint --load-plugins=pylint_odoo -d all -e unnecessary-utf8-coding-comment /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/test_module /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/broken_module /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/eleven_module /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/twelve_module /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/no_odoo_module /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/pylint_deprecated_modules /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/broken_module3 /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/womanifest_module /Volumes/sand2tb/odoo_repositories/pylint-odoo/pylint_odoo/test_repo/broken_module2 |grep unnecessary-utf8-coding-comment

But running only python3 -m pylint --load-plugins=pylint_odoo -d all -e unnecessary-utf8-coding-comment pylint_odoo/test_repo/broken_module/__init__.py it is already detected

moylop260 commented 2 years ago

Superseded by https://github.com/OCA/pylint-odoo/issues/267