Skip to content

Commit fbbf0a7

Browse files
Use --all-targets in cargo check/clippy/test argument defaults (#86)
* Use --all-targets in cargo check/clippy defaults This includes examples. * Use --all-targets in cargo test defaults
1 parent 31ecd55 commit fbbf0a7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ some toolchains when clippy isn't installed. If you have problems try
682682
it with `rustup component add --toolchain nightly clippy`.
683683

684684
You can change the parameters `rustic-default-clippy-arguments` that
685-
default to "--benches --tests --all-features".
685+
default to "--all-targets --all-features".
686686

687687
### auto-fixing before compilation
688688

rustic-cargo.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ instead of applying the default arguments from `rustic-default-test-arguments'."
111111
:type 'boolean
112112
:group 'rustic-cargo)
113113

114-
(defcustom rustic-default-test-arguments "--benches --tests --all-features"
114+
(defcustom rustic-default-test-arguments "--all-targets --all-features"
115115
"Default arguments when running `cargo test'."
116116
:type 'string
117117
:group 'rustic-cargo)
@@ -121,7 +121,7 @@ instead of applying the default arguments from `rustic-default-test-arguments'."
121121
:type '(list string)
122122
:group 'rustic-cargo)
123123

124-
(defcustom rustic-cargo-check-arguments "--benches --tests --all-features"
124+
(defcustom rustic-cargo-check-arguments "--all-targets --all-features"
125125
"Default arguments when running `cargo check'."
126126
:type 'string
127127
:group 'rustic-cargo)

rustic-clippy.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:type 'string
1313
:group 'rustic-cargo)
1414

15-
(defcustom rustic-default-clippy-arguments "--benches --tests --all-features"
15+
(defcustom rustic-default-clippy-arguments "--all-targets --all-features"
1616
"Default arguments when running `clippy'."
1717
:type 'string
1818
:group 'rustic-cargo)

0 commit comments

Comments
 (0)