Closed victoralmau closed 10 months ago
On my way to merge this fine PR! Prepared branch 15.0-ocabot-merge-pr-107-by-pedrobaeza-bump-major, awaiting test results.
Congratulations, your PR was merged at b68c2feb1f1b8d2d085ccee3c2baacc5868e2684. Thanks a lot for contributing to OCA. ❤️
Changes done:
pygount
tocloc
.Change
pygount
tocloc
(https://github.com/AlDanial/cloc)Previously with
pygount
the parsing time of an OCA/account-analytic/15.0 repository was very slow (11.33s), now withcloc
the time is 1.60s.pygount:
cloc:
The analysis of
pygount
vscloc
is similar (cloc
being more accurate in my opinion). Analyzed example file: https://github.com/OCA/account-analytic/blob/15.0/account_analytic_parent/models/account_analytic_account.pypygount data
cloc data
The code has been refactored a bit to simplify it, comment it and make that only one call to the
cloc
command is needed to analyze everything in the repository and then with that result define the values according to the defined rules.@Tecnativa TT25583