-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a `format` command: - linters can be identified as formatters with the `is_formatter` config option - `lintrunner format` will run formatting lints and accept all changes - add infer_subcommands so you can do `lintrunner f`.
- Loading branch information
Showing
5 changed files
with
148 additions
and
48 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
13 changes: 13 additions & 0 deletions
13
tests/snapshots/integration_test__format_command_doesnt_use_nonformat_linter.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
source: tests/integration_test.rs | ||
assertion_line: 20 | ||
expression: output_lines | ||
--- | ||
- "STDOUT:" | ||
- ok No lint issues. | ||
- Successfully applied all patches. | ||
- "" | ||
- "" | ||
- "STDERR:" | ||
- "WARNING: No previous init data found. If this is the first time you're running lintrunner, you should run `lintrunner init`." | ||
|