fix #546 stop build on lint error, and fix lint errors

fix #546 stop build on lint error, and fix lint errors