Prevent linting on unsaved files

The lint needs to happen on the source tree so linting an unsaved file does not work.

Investigate alternatives for unsaved files, such as only linting syntax.