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": [
"(^.gitignore$)",
"(^package-lock.json$)"
],
"linters": {
"chmod": {
"type": "chmod"
},
"Generated": {
"type": "generated"
},
"jshint": {
"type": "jshint",
"include": [
"(\\.cjs$)",
"(\\.js$)",
"(\\.jsx$)",
"(\\.mjs$)"
]
},
"json": {
"type": "json",
"include": [
"(^\\.arcconfig$)",
"(^\\.arclint$)",
"(^\\.arcunit$)",
"(^.arcconfig$)",
"(^.arclint$)",
"(^.arcunit$)",
"(\\.json$)"
]
},
@ -27,6 +38,10 @@
},
"text": {
"type": "text",
"exclude": [
"(^.gitignore$)",
"(\\.md$)"
],
"text.max-line-length": 80,
"severity": {
"1": "autofix",
@ -34,6 +49,19 @@
"3": "advice",
"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]
gpgSign = true
[core]
attributesFile = ~/.gitattributes
editor = nano
quotepath = false
[credential]