Linting: Remove trailing whitespace
Linting: Cleanup globals and remove unused vars
Linting: Enforce onevar

Additional spacing for deps/chart
Merge pull request #2960 from nschonni/3.1-fix-linting

3.1 fix linting