[PATCH] pylint: Adjust how the output is produced

Tom Rini trini at konsulko.com
Mon Jan 31 16:22:01 CET 2022


On Fri, Jan 28, 2022 at 09:31:07PM -0700, Simon Glass wrote:

> The current Makefile rule requires there to be a 'Module' line in the
> pylint output, like this:
> 
>    ************* Module binman.fip_util
> 
> This line only appears if pylint has some comments about the module. We
> cannot rely on it for naming.
> 
> Update the code to instead use the filename as the identifier for each
> score, so rather than:
> 
>    multiplexed_log 7.49
> 
> we output:
> 
>    test_multiplexed_log.py 7.20
> 
> It is still easy to see which file the score relates to. In fact the new
> naming is nicer since the full subdirectories are shown.
> 
> The avoids the problem where a module name is not produced, and the output
> gets out of sync.
> 
> Regenerate pylint.base so we can start from the current baseline.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220131/37a440c2/attachment.sig>


More information about the U-Boot mailing list