build: remove trailing blank lines; enable the syntax-check rule