File tree 3 files changed +24
-4
lines changed
3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change
1
+ # configuration for https://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [* .rs ]
6
+ indent_style = space
7
+ indent_size = 4
8
+
9
+ [args.rs ]
10
+ indent_size = unset
11
+
12
+ [* .yml ]
13
+ indent_style = space
14
+ indent_size = 2
Original file line number Diff line number Diff line change @@ -102,9 +102,15 @@ jobs:
102
102
- name : Cache Cargo dependencies
103
103
uses : Swatinem/rust-cache@v2
104
104
105
- - name : Check formatting
105
+ - name : Check code formatting
106
106
run : cargo fmt --all -- --check
107
107
108
+ - name : Install editorconfig-checker
109
+ uses : editorconfig-checker/action-editorconfig-checker@main
110
+
111
+ - name : Check file formatting
112
+ run : editorconfig-checker
113
+
108
114
- name : Check lints
109
115
run : cargo clippy -- -D warnings
110
116
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ pub const BANNER: &str = r#"
19
19
version,
20
20
author = clap:: crate_authors!( "\n " ) ,
21
21
about,
22
- rename_all_env = "screaming-snake" ,
23
- before_help = BANNER ,
24
- help_template = "\
22
+ rename_all_env = "screaming-snake" ,
23
+ before_help = BANNER ,
24
+ help_template = "\
25
25
{before-help}-=[ {name} {version} ]=-\n
26
26
{about-with-newline}Written by {author-with-newline}
27
27
{usage-heading}
You can’t perform that action at this time.
0 commit comments