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:
parent
9b0fbcc55d
commit
b0ae699487
3 changed files with 59 additions and 4 deletions
36
.arclint
36
.arclint
|
@ -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
26
default.gitattributes
Normal 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
|
|
@ -7,6 +7,7 @@
|
|||
[commit]
|
||||
gpgSign = true
|
||||
[core]
|
||||
attributesFile = ~/.gitattributes
|
||||
editor = nano
|
||||
quotepath = false
|
||||
[credential]
|
||||
|
|
Loading…
Reference in a new issue