gitattributes/arclint: add

Summary:
Mostly from rWEBXYZ. Added to `.gitconfig` via `core.attributesFile`.

Also: add some arclint

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Not really.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D224
This commit is contained in:
revi 2024-06-09 21:10:01 +09:00
parent 9b0fbcc55d
commit b0ae699487
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
3 changed files with 59 additions and 4 deletions

View file

@ -1,18 +1,29 @@
{ {
"exclude": [ "exclude": [
"(^.gitignore$)",
"(^package-lock.json$)" "(^package-lock.json$)"
], ],
"linters": { "linters": {
"chmod": { "chmod": {
"type": "chmod" "type": "chmod"
}, },
"Generated": {
"type": "generated"
},
"jshint": {
"type": "jshint",
"include": [
"(\\.cjs$)",
"(\\.js$)",
"(\\.jsx$)",
"(\\.mjs$)"
]
},
"json": { "json": {
"type": "json", "type": "json",
"include": [ "include": [
"(^\\.arcconfig$)", "(^.arcconfig$)",
"(^\\.arclint$)", "(^.arclint$)",
"(^\\.arcunit$)", "(^.arcunit$)",
"(\\.json$)" "(\\.json$)"
] ]
}, },
@ -27,6 +38,10 @@
}, },
"text": { "text": {
"type": "text", "type": "text",
"exclude": [
"(^.gitignore$)",
"(\\.md$)"
],
"text.max-line-length": 80, "text.max-line-length": 80,
"severity": { "severity": {
"1": "autofix", "1": "autofix",
@ -34,6 +49,19 @@
"3": "advice", "3": "advice",
"5": "disabled" "5": "disabled"
} }
},
"text-markdown": {
"type": "text",
"include": [
"(^.gitignore$)",
"(\\.md$)"
],
"severity": {
"1": "autofix",
"2": "advice",
"3": "disabled",
"5": "disabled"
}
} }
} }
} }

26
default.gitattributes Normal file
View file

@ -0,0 +1,26 @@
* text=auto
*.sh text=auto
*.asc binary
*.gif binary
*.jpg binary
*.jpeg binary
*.mp3 binary
*.mp4 binary
*.png binary
*.webm binary
*.webp binary
*.woff2 binary
*.css diff=css
*.go diff=golang
*.html diff=html
*.java diff=java
*.kt diff=kotlin
*.md diff=markdown
*.mdx diff=markdown
*.php diff=php
*.py diff=python
*.rb diff=ruby
*.rs diff=rust
*.sh diff=bash

View file

@ -7,6 +7,7 @@
[commit] [commit]
gpgSign = true gpgSign = true
[core] [core]
attributesFile = ~/.gitattributes
editor = nano editor = nano
quotepath = false quotepath = false
[credential] [credential]