#1086: add lint filter for trailing whitespace and fix all warnings