Skip to content

Commit 58bbc0b

Browse files
committed
style(format): add .editorconfig
1 parent 1be2828 commit 58bbc0b

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

.github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,15 @@ jobs:
102102
- name: Cache Cargo dependencies
103103
uses: Swatinem/rust-cache@v2
104104

105-
- name: Check formatting
105+
- name: Check code formatting
106106
run: cargo fmt --all -- --check
107107

108+
- name: Install editorconfig-checker
109+
uses: editorconfig-checker/action-editorconfig-checker@main
110+
111+
- name: Check file formatting
112+
run: editorconfig-checker
113+
108114
- name: Check lints
109115
run: cargo clippy -- -D warnings
110116

src/args.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ pub const BANNER: &str = r#"
1919
version,
2020
author = clap::crate_authors!("\n"),
2121
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 = "\
2525
{before-help}-=[ {name} {version} ]=-\n
2626
{about-with-newline}Written by {author-with-newline}
2727
{usage-heading}

0 commit comments

Comments
 (0)