mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +01:00
23487dc357
Summary: Also fix a few other minor issues: - Use lint config. - Fix a method signature from `arc unit --everything` (unrelated). - Add a javelin doc. Test Plan: Ran `arc lint`, `arc unit`, `arc linters`. Reviewers: btrahan, joshuaspence Reviewed By: joshuaspence Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D9072
79 lines
1.7 KiB
Text
79 lines
1.7 KiB
Text
{
|
|
"exclude": [
|
|
"(^externals/)",
|
|
"(\\.lint-test$)"
|
|
],
|
|
"linters": {
|
|
"filename": {
|
|
"type": "filename"
|
|
},
|
|
"javelin": {
|
|
"type": "javelin",
|
|
"include": "(\\.js$)",
|
|
"exclude": [
|
|
"(^externals/JsShrink/)",
|
|
"(^support/aphlict/)",
|
|
"(^webroot/rsrc/externals/raphael/)"
|
|
]
|
|
},
|
|
"jshint": {
|
|
"type": "jshint",
|
|
"include": "(\\.js$)",
|
|
"exclude": [
|
|
"(^externals/JsShrink/)",
|
|
"(^webroot/rsrc/externals/raphael/)"
|
|
],
|
|
"flags": ["--config=support/jshint/jshintconfig"]
|
|
},
|
|
"generated": {
|
|
"type": "generated"
|
|
},
|
|
"merge-conflict": {
|
|
"type": "merge-conflict"
|
|
},
|
|
"nolint": {
|
|
"type": "nolint"
|
|
},
|
|
"phutil-xhpast": {
|
|
"type": "phutil-xhpast",
|
|
"include": "(\\.php$)",
|
|
"phutil-xhpast.deprecated.functions": {
|
|
"phutil_escape_html": "The phutil_escape_html() function is deprecated. Raw strings passed to phutil_tag() or hsprintf() are escaped automatically."
|
|
}
|
|
},
|
|
"phutil-library": {
|
|
"type": "phutil-library",
|
|
"include": "(\\.php$)"
|
|
},
|
|
"text": {
|
|
"type": "text",
|
|
"exclude": [
|
|
"(^\\.arclint)"
|
|
]
|
|
},
|
|
"text-without-length": {
|
|
"type": "text",
|
|
"severity": {
|
|
"3": "disabled"
|
|
},
|
|
"include": [
|
|
"(^\\.arclint)"
|
|
]
|
|
},
|
|
"spelling": {
|
|
"type": "spelling"
|
|
},
|
|
"xhpast": {
|
|
"type": "xhpast",
|
|
"include": "(\\.php$)",
|
|
"severity": {
|
|
"16": "advice",
|
|
"29": "warning",
|
|
"31": "error",
|
|
"34": "error",
|
|
"35": "error"
|
|
},
|
|
"xhpast.naminghook": "PhabricatorSymbolNameLinter"
|
|
}
|
|
}
|
|
}
|