Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 38cfbc6

Browse files
committed
add --tests flag to check all mode
though current description says it lints tests, `check all` mode only checks integration tests under `tests` directory and doesn't check unit tests like `#[test] test_foo() { ... }` this commit just fix this inconsistency
1 parent dd8e089 commit 38cfbc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mode.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ buildCargoArguments = (linter, cargoManifestPath) ->
175175

176176
cargoArgs = switch linter.cargoCommand
177177
when 'check' then ['check']
178-
when 'check all' then ['check', '--all']
178+
when 'check all' then ['check', '--all' --tests]
179179
when 'test' then ['test', '--no-run']
180180
when 'rustc' then ['rustc', '--color', 'never']
181181
when 'clippy' then ['clippy']

0 commit comments

Comments
 (0)