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

Commit

Permalink
add --tests flag to check all mode
Browse files Browse the repository at this point in the history
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
  • Loading branch information
HyeonuPark committed Nov 21, 2017
1 parent dd8e089 commit 38cfbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mode.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ buildCargoArguments = (linter, cargoManifestPath) ->

cargoArgs = switch linter.cargoCommand
when 'check' then ['check']
when 'check all' then ['check', '--all']
when 'check all' then ['check', '--all' --tests]
when 'test' then ['test', '--no-run']
when 'rustc' then ['rustc', '--color', 'never']
when 'clippy' then ['clippy']
Expand Down

0 comments on commit 38cfbc6

Please sign in to comment.