Closed oscarolar closed 3 years ago
It is a good check
But it is hard to make this check from pylint
Since that it is using a combination of many languages python, xml, html, js, qweb
QWeb is a custom Odoo parser xml2python:
It could require transform it to astroid/pylint format but it is not an easy way to do
Feel free to re-open or discuss it
Validate if a method that always returns the same result is called inside a
t-foreach
loop to avoid unnecessary method calls and performance issues.This is an obvious thing for some experienced programmers but not for the newbies, here is an example of what should't be done
what to do:
The conditions that the lint should met are:
t-foreach
loop_with_context(somevalue)