This repository was archived by the owner on Dec 25, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +240
-124
lines changed Expand file tree Collapse file tree 6 files changed +240
-124
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ serde = "1.0.103"
13
13
serde_derive = " 1.0.103"
14
14
serde_json = " 1.0.42"
15
15
16
+ walkdir = " 2"
17
+ regex = " 1.3.1"
18
+
16
19
[profile .release ]
17
20
lto = true
18
21
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ RUN cargo build --release
8
8
9
9
FROM scratch
10
10
11
- COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/pants-cleaner /app
11
+ COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/dep-sanitizer /app
12
12
WORKDIR /project
13
13
ENTRYPOINT ["/app" ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Binary (cargo required - [how to install rust](https://www.rust-lang.org/tools/i
15
15
16
16
Docker (docker required)(may take a few minutes)
17
17
18
- docker build -t dep-sanitizer.
18
+ docker build -t dep-sanitizer .
19
19
20
20
21
21
## How to use
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ pub struct Config {
23
23
#[ structopt( short, long, default_value = "src/scala/" ) ]
24
24
prefix : String ,
25
25
26
- /// If dependency was annotated with this marker tath it will be skipped to sanitize(removing)
26
+ /// If dependency was annotated with this marker it will be skipped to sanitize(removing)
27
27
#[ structopt( short, long, default_value = "#skip-sanitize" ) ]
28
28
skip_marker : String ,
29
29
@@ -45,6 +45,10 @@ pub enum Command {
45
45
#[ structopt( subcommand) ]
46
46
cmd : UndeclaredSubCommand ,
47
47
} ,
48
+ /// Finds all BUILD files downstream to the current folder (with --prefix) and sorts dependencies
49
+ /// in 'dependencies' and 'exports' blocks, adds trailing comma and replace " to ' as well
50
+ #[ structopt( name = "sort" ) ]
51
+ Sort { } ,
48
52
}
49
53
50
54
#[ derive( StructOpt , Debug ) ]
You can’t perform that action at this time.
0 commit comments