-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PERF] use is_message_enabled for all lints #372
Comments
Working on the issue, however before fixing any code I am thinking of ways we can objectively measure the code quality, or performance loss/increase. Right now it seems there are to ways to be sure the checks won't run if the message is enabled, one of them is using The only problem with The first method of devising the code quality and finding all messages that are added without checking is by statical analysis of the code, this will be done with a pylint checker (writing a pylint checker to check pylint checkers 😎 ) currently developed at https://github.com/antonag32/lilint. Will be writing my thoughts and the progress fixing this issue so feel free to bring me back to reality if I overthink too much. |
Apparently I overthought too much too fast, lilint will stay for posterity since it was too young to die but there are more important lints to write, so I will just do this by hand and hope to get as much |
This reverts commit 01919a0. Reverts #376 Old lints are failing, check the following PR: - #385 But the old ones will be deleted soon since that we are planing to deprecate old odoo versions, py2 and use pre-commit hooks instead of pylint-odoo custom checks So, we are reverting this PR in order to improve it in the new pylint-odoo version to avoid dedicating time to deprecated checks
Currently, there are some lints that are not using the following validation:
pylint-odoo/pylint_odoo/checkers/no_modules.py
Line 872 in 5c15bca
That generates all code in those lints, even if they are disabled, are checked.
Example:
pylint-odoo/pylint_odoo/checkers/no_modules.py
Lines 593 to 751 in 5c15bca
The text was updated successfully, but these errors were encountered: