Lint code before save into file

Lint code before save into file.

resolve #609
using it will require changing the requirement to ``symfony/process: ~2.3``, but it is not an issue