pre-commit hook for checking code standards