Pylint reporter cleanup (#5003)

* Create a file for pylint.reporters.BaseWritter

* Calculate visitor name only once in Reporter nodes

Remove dead code that was always failing and replace it by
an attribute directly.

Co-authored-by: Marc Mueller <[email protected]>
4 files changed