Lint code before save into file

Lint code before save into file.

resolve #609
Fixed ;)

Btw, it will be used later to autogenerate issue report ;)