It is because the test_pylint script consider returns early using a dict
So, we need to transform new way object to old way dict in order to be compatible with this old script
with minimal changes since that new pylint checks are available from pre-commit
The following commit:
It is compatible with new way to get result of messages based on:
However, new corner cases were raised
e.g. https://github.com/OCA/sale-workflow/pull/2004#issuecomment-1118506829
It is because the test_pylint script consider returns early using a dict
So, we need to transform new way object to old way dict in order to be compatible with this old script with minimal changes since that new pylint checks are available from pre-commit