forked from coala/coala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linter: Avoid processing empty streams
When a linter returns an empty stream, it should not be processed. In the case of process_output_corrected, processing it is extremely destructive, zero-ing the file. In the other modes, there is no output to be processed, so it is merely wasted processing. Also emit warnings for any messages found on a stream which is not being processed. Followup enhancements might add ways for linter bears to skip known messages where a linter is noisy. Fixes coala#5415
- Loading branch information
Showing
2 changed files
with
135 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters