-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: panic in offline linter + handling stdin
The offline linter is working well in ideal scenarios, but given an non-existent file, it panics (I inverted the `info.IsDir()` statement and the one checking for errors) There's a disconnect between the filepath.Walk in the linter and the one building the offline client which means that there were other issues (such as stdin not working) To fix that once and for all, I extracted the walk func to a common path (file.WalkManifests); that way, we are sure that changes are always reflected in both locations I also added some tests for non-existent files as well as offline linting from stdin
- Loading branch information
1 parent
c0db6fd
commit 0129d21
Showing
5 changed files
with
96 additions
and
49 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
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
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