Skip to content

Commit b156f60

Browse files
author
Joe Grund
committed
Updates
Signed-off-by: Joe Grund <[email protected]>
1 parent cb4be8c commit b156f60

File tree

8 files changed

+44
-2
lines changed

8 files changed

+44
-2
lines changed

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
max_line_length = 120
12+
13+
[{*.yaml,*.yml,*.json}]
14+
indent_size = 2
15+
16+
[{*.md}]
17+
indent_size = 2
18+
max_line_length = off
19+
20+
[{Makefile,Makefile.*}]
21+
indent_style = tab
22+
23+
[{justfile}]
24+
indent_style = space

.github/workflows/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jgrund

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ serde = { version = "1", features = ["derive"] }
2626
serde_json = "1"
2727
tempfile = "3"
2828
tokio = "1"
29+
30+
[workspace.lints.rust]
31+
unreachable_pub = "deny"
32+
33+
[workspace.lints.clippy]
34+
cast_lossless = "warn"
35+
cast_possible_wrap = "warn"
36+
unwrap_used = "deny"

clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
allow-unwrap-in-tests = true

commandeer-cli/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ keywords.workspace = true
66
license.workspace = true
77
description = "CLI for commandeer-test"
88

9+
[lints]
10+
workspace = true
11+
912
[[bin]]
1013
name = "commandeer"
1114
path = "src/main.rs"

commandeer-macros/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ keywords.workspace = true
66
license.workspace = true
77
description = "Proc macros for commandeer-test"
88

9+
[lints]
10+
workspace = true
11+
912
[lib]
1013
proc-macro = true
1114

commandeer-test/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ keywords.workspace = true
66
license.workspace = true
77
description = "Takes over your commands for testing with record and replay support."
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
tokio = { workspace = true, features = [
1114
"fs",

commandeer-test/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ use escargot::CargoBuild;
33
use serde::{Deserialize, Serialize};
44
use std::{
55
collections::HashMap,
6-
env, fmt,
7-
fs::{self},
6+
env, fmt, fs,
87
path::{Path, PathBuf},
98
};
109
use tempfile::TempDir;

0 commit comments

Comments
 (0)