While working on https://github.com/FreeCAD/FreeCAD/pull/9880, I discovered a lot of linter issues. These fixes all of them.