Skip to content

Commit 87e5d65

Browse files
authored
style: add editorconfig and run shfmt (#95)
1 parent b9ef1b3 commit 87e5d65

File tree

7 files changed

+236
-258
lines changed

7 files changed

+236
-258
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_size = 4
8+
end_of_line = lf
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.{md,rst}]
14+
trim_trailing_whitespace = false
15+
16+
[*.sh,test/run]
17+
shell_variant = bash
18+
space_redirects = true # -sr
19+
switch_case_indent = true # -ci
20+
21+
[*.bats]
22+
shell_variant = bats

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Tests are powered by [Bats](https://github.com/bats-core/bats-core).\
213213
Run:
214214

215215
```bash
216-
./test.sh
216+
bash tests/run
217217
```
218218

219219
## 🤝 Contributing

0 commit comments

Comments
 (0)