Redo lint warning messages to make it easier to understand in some cases where there is no __main__ block.