Tools: Add check for trailing whitespace to pre-commit hook

Change-Id: Ife0dd33c84e06fa035599f1afa7a7057481ae5e0
Merge "Tools: Add check for trailing whitespace to pre-commit hook"