-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
module_analysis does not count code lines from odoo core when installed from the debian package #3042
Comments
@legalsylvain any thoughts on the |
…e to module's folder Fixes OCA#3042
Hi @fcayre. Thanks for the investigation, regarding your problem. In my thought, I wanted to measure the "amount of algorithmic complexity to be maintained". For that reasons :
you can see the original PR, with some thought about what should contains or not the "excude_directories" values : #1618 (comment) my opinion : |
…e to module's folder Fixes OCA#3042
@legalsylvain I don't want to change the default value (which looks good to me) but the code, which does not interpret that value as it should in my opinion. See my PR for a better understanding of my objection. |
…e to module's folder Fixes OCA#3042
…e to module's folder Fixes OCA#3042.
…e to module's folder Fixes OCA#3042.
…e to module's folder Fixes OCA#3042.
…e to module's folder Fixes #3042.
Module
module_analysis
Describe the bug
To Reproduce
Affected versions: all
Steps to reproduce the behavior:
Expected behavior
The Python Code Quantity field's value is 0 also it should not, as there are non-empty python files in the module (models/account_bank_statement.py).
Additional context
Debugging shows that this line is a true condition when odoo is installed by a debian package (root = /usr/lib/python3/dist-packages/odoo/addons/account_cancel), because
exclude_directories
value is['lib', 'demo', 'test', 'tests', 'doc', 'description']
, so the test returns {'lib'}The
exclude_directories
comes from ir.config_parametermodule_analysis.exclude_directories
which interpretation is questionable. As a user of the module I expect its value to list folders relative to the module's folder, while in the code if any of the listed folder is found in the module's root path the entire module will be ignored.I'm working on a PR to fix this.
The text was updated successfully, but these errors were encountered: