diff --git a/.arclint b/.arclint new file mode 100644 index 0000000..2bc5682 --- /dev/null +++ b/.arclint @@ -0,0 +1,46 @@ +{ + "linters": { + "stylua": { + "type": "script-and-regex", + "script-and-regex.script": "sh -c 'stylua --check \"$0\" || true'", + "script-and-regex.regex": "/(?P\\d+).*\\|\\-/m", + "include": "(\\.lua$)" + }, + "luacheck": { + "type": "script-and-regex", + "script-and-regex.script": "sh -c 'luacheck \"$0\" || true'", + "script-and-regex.regex": "/^.*?:(?P\\d+):(?P\\d+):\\s+\\((?P\\w+)\\) (?P.*?)$/m", + "include": "(\\.lua$)" + }, + "cargo": { + "type": "script-and-regex", + "script-and-regex.script": "sh -c 'cargo fmt --check --'", + "script-and-regex.regex": "/(?P.*?)/", + "include": "(\\.rs$)" + }, + "clippy": { + "type": "script-and-regex", + "script-and-regex.script": "sh -c 'cargo clippy --'", + "script-and-regex.regex": "/(?P.*?)/", + "include": "(\\.rs$)" + }, + "prettier": { + "type": "script-and-regex", + "script-and-regex.script": "prettier --check", + "script-and-regex.regex": "/(?P.*?)/", + "include": "(\\.yml$|\\.json[c5]?$|\\.[tj]sx?$)" + }, + "merge-conflict": { + "type": "merge-conflict" + }, + "text": { + "type": "text" + }, + "chmod": { + "type": "chmod" + }, + "generated": { + "type": "generated" + } + } +}