Skip to content

Commit 29b7749

Browse files
authoredAug 20, 2023
chore: added gitattributes and editorconfig & better gitignore (#678)
1 parent 3b8cac5 commit 29b7749

File tree

3 files changed

+115
-11
lines changed

3 files changed

+115
-11
lines changed
 

‎.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 4
10+
max_line_length = 120
11+
12+
[*.rs]
13+
end_of_line = unset
14+
charset = unset
15+
trim_trailing_whitespace = unset
16+
insert_final_newline = unset
17+
indent_style = unset
18+
indent_size = unset
19+
max_line_length = unset
20+
21+
[*.md]
22+
trim_trailing_whitespace = false

‎.gitattributes

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
* text=auto eol=lf
2+
3+
# Source code
4+
*.go -text diff=golang
5+
*.html text diff=html
6+
*.js text
7+
*.json text
8+
*.rs text diff=rust
9+
*.sh text eol=lf
10+
*.txt text
11+
12+
# Docker
13+
Dockerfile text
14+
Dockerfile.* text
15+
16+
# Documentation
17+
*.md text diff=markdown
18+
LICENSE text
19+
20+
# Configs
21+
.editorconfig text
22+
.gitattributes text
23+
go.mod text
24+
go.sum text
25+
*.lock text -diff
26+
package.json text
27+
package-lock.json text -diff
28+
*.toml text diff=toml
29+
*.yaml text
30+
*.yml text
31+
32+
# Graphics
33+
*.png binary
34+
35+
# RC files
36+
*.*rc text
37+
38+
# Ignore files
39+
*.*ignore text

‎.gitignore

+54-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,59 @@
1-
# Generated by Cargo
2-
# will have compiled files and executables
3-
target
4-
5-
# These are backup files generated by rustfmt
6-
**/*.rs.bk
7-
.idea
8-
.vscode
1+
# Certificates
92
*.pem
103
*.der
114
*.pb
5+
# Performance analysis
126
perf.data*
13-
node_modules
7+
# Valgrind
148
cachegrind.out
15-
plot
16-
.uuid
9+
# Plot
10+
/plot
11+
**/.uuid
12+
# Logs
13+
**/logs/
14+
*.log
15+
16+
# ================
17+
# RUST
18+
# ================
19+
# Generated by Cargo will have compiled files and executables
20+
debug/
21+
target/
22+
23+
# These are backup files generated by rustfmt
24+
**/*.rs.bk
25+
26+
# ================
27+
# MSVC
28+
# ================
29+
# MSVC Windows builds of rustc generate these, which store debugging information
30+
*.pdb
31+
32+
# ================
33+
# VSCODE
34+
# ================
35+
**/.vscode/
36+
37+
# ================
38+
# JETBRAINS
39+
# ================
40+
**/.idea/
41+
42+
# ================
43+
# NODEJS
44+
# ================
45+
# Diagnostic reports (https://nodejs.org/api/report.html)
46+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
47+
48+
# Runtime data
49+
pids
50+
*.pid
51+
*.seed
52+
*.pid.lock
53+
54+
# Dependency directories
55+
**/node_modules/
56+
57+
# dotenv environment variable files
58+
.env
59+
.env.*

0 commit comments

Comments
 (0)
Please sign in to comment.