2014-05-12 04:47:24 -07:00
|
|
|
{
|
|
|
|
"exclude": [
|
|
|
|
"(^externals/)",
|
2019-09-02 06:20:20 -07:00
|
|
|
"(^webroot/rsrc/externals/(?!javelin/))",
|
Updated .arclint in Phorge to exclude package-lock.json from Aphlict setup
Summary:
Aphlict requires a machine generated `package-lock.json` that can trigger linters unnecessarily.
This revision excludes it from all linters
Test Plan:
**Testing**
```name="Fake Change to set off the linter""
diff --git a/support/aphlict/server/package-lock.json b/support/aphlict/server/package-lock.json
index 8af62ae233..a417725182 100644
--- a/support/aphlict/server/package-lock.json
+++ b/support/aphlict/server/package-lock.json
@@ -2,11 +2,12 @@
"name": "aphlict-server",
"requires": true,
"lockfileVersion": 1,
+ "testing" : true,
"dependencies": {
"ws": {
"version": "7.5.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.0.tgz",
- "integrity": "sha512-6ezXvzOZupqKj4jUqbQ9tXuJNo+BR2gU8fFRk3XCP3e0G6WT414u5ELe6Y0vtp7kmSJ3F7YWObSNr1ESsgi4vw=="
+ "integrity": "sha512-6ezXvzOZupqKj4jUqbQ9tXuJNo+BR2gU8fFRk3XCP3e0G6WT414u5ELe6Y0vtp7kmSJ3F7YWObSNr1ESsgasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfi4vw=="
}
}
}
```
```name="arc lint results"
root@63c842bff39e:/srv/phorge/phorge# arc lint
>>> Lint for support/aphlict/server/package-lock.json:
Warning (TXT3) Line Too Long
This line is 156 characters long, but the convention is 80 characters.
7 "ws": {
8 "version": "7.5.0",
9 "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.0.tgz",
>>> 10 "integrity": "sha512-6ezXvzOZupqKj4jUqbQ9tXuJNo+BR2gU8fFRk3XCP3e0G6WT414u5ELe6Y0vtp7kmSJ3F7YWObSNr1ESsgasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfi4vw=="
11 }
12 }
13 }
root@63c842bff39e:/srv/phorge/phorge#
```
Updated change
```name="Change to .arclint"
diff --git a/.arclint b/.arclint
index f215d93fdc..ca89c601e4 100644
--- a/.arclint
+++ b/.arclint
@@ -2,7 +2,8 @@
"exclude": [
"(^externals/)",
"(^webroot/rsrc/externals/(?!javelin/))",
- "(/__tests__/data/)"
+ "(/__tests__/data/)",
+ "(^support/aphlict/server/package-lock.json)"
],
"linters": {
"chmod": {
```
```name="arc lint results"
root@63c842bff39e:/srv/phorge/phorge# arc lint
OKAY No lint messages.
root@63c842bff39e:/srv/phorge/phorge#
```
Reviewers: O1 Blessed Committers, deadalnix, eax, speck
Reviewed By: O1 Blessed Committers, deadalnix, eax, speck
Subscribers: speck, tobiaswiese
Maniphest Tasks: T15021
Differential Revision: https://we.phorge.it/D25012
2021-06-26 15:44:56 +00:00
|
|
|
"(/__tests__/data/)",
|
|
|
|
"(^support/aphlict/server/package-lock.json)"
|
2014-05-12 04:47:24 -07:00
|
|
|
],
|
|
|
|
"linters": {
|
2014-05-18 18:09:33 -07:00
|
|
|
"chmod": {
|
|
|
|
"type": "chmod"
|
|
|
|
},
|
2014-05-12 04:47:24 -07:00
|
|
|
"filename": {
|
|
|
|
"type": "filename"
|
|
|
|
},
|
2014-07-03 06:49:24 +10:00
|
|
|
"generated": {
|
|
|
|
"type": "generated"
|
|
|
|
},
|
2014-05-12 04:47:24 -07:00
|
|
|
"javelin": {
|
|
|
|
"type": "javelin",
|
|
|
|
"include": "(\\.js$)",
|
|
|
|
"exclude": [
|
2014-07-03 06:49:24 +10:00
|
|
|
"(^support/aphlict/)"
|
2014-05-12 04:47:24 -07:00
|
|
|
]
|
|
|
|
},
|
2014-12-30 03:01:58 -08:00
|
|
|
"jshint-browser": {
|
2014-05-12 04:47:24 -07:00
|
|
|
"type": "jshint",
|
|
|
|
"include": "(\\.js$)",
|
2014-12-30 03:01:58 -08:00
|
|
|
"exclude": [
|
2015-01-14 07:07:46 +11:00
|
|
|
"(^support/aphlict/server/.*\\.js$)",
|
|
|
|
"(^webroot/rsrc/externals/javelin/core/init_node\\.js$)"
|
2014-12-30 03:01:58 -08:00
|
|
|
],
|
|
|
|
"jshint.jshintrc": "support/lint/browser.jshintrc"
|
|
|
|
},
|
|
|
|
"jshint-node": {
|
|
|
|
"type": "jshint",
|
|
|
|
"include": [
|
2015-01-14 07:07:46 +11:00
|
|
|
"(^support/aphlict/server/.*\\.js$)",
|
|
|
|
"(^webroot/rsrc/externals/javelin/core/init_node\\.js$)"
|
2014-12-30 03:01:58 -08:00
|
|
|
],
|
|
|
|
"jshint.jshintrc": "support/lint/node.jshintrc"
|
2014-05-12 04:47:24 -07:00
|
|
|
},
|
2014-06-23 01:55:42 +10:00
|
|
|
"json": {
|
|
|
|
"type": "json",
|
|
|
|
"include": [
|
2014-06-24 04:26:06 +10:00
|
|
|
"(^src/docs/book/.*\\.book$)",
|
2014-07-16 22:07:55 +10:00
|
|
|
"(^support/lint/jshintrc$)",
|
2014-06-23 01:55:42 +10:00
|
|
|
"(^\\.arcconfig$)",
|
|
|
|
"(^\\.arclint$)",
|
|
|
|
"(\\.json$)"
|
|
|
|
]
|
|
|
|
},
|
2014-05-12 04:47:24 -07:00
|
|
|
"merge-conflict": {
|
|
|
|
"type": "merge-conflict"
|
|
|
|
},
|
|
|
|
"nolint": {
|
|
|
|
"type": "nolint"
|
|
|
|
},
|
2014-07-03 06:49:24 +10:00
|
|
|
"phutil-library": {
|
|
|
|
"type": "phutil-library",
|
|
|
|
"include": "(\\.php$)"
|
|
|
|
},
|
|
|
|
"spelling": {
|
|
|
|
"type": "spelling"
|
2014-05-12 06:01:30 -07:00
|
|
|
},
|
2014-05-12 04:47:24 -07:00
|
|
|
"text": {
|
2016-03-09 07:01:23 -08:00
|
|
|
"type": "text",
|
|
|
|
"exclude": [
|
2020-02-12 11:59:22 -08:00
|
|
|
"(^src/(.*/)?__tests__/[^/]+/.*\\.(txt|json|expect))"
|
2016-03-09 07:01:23 -08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"text-without-length": {
|
|
|
|
"type": "text",
|
|
|
|
"include": [
|
2020-02-12 11:59:22 -08:00
|
|
|
"(^src/(.*/)?__tests__/[^/]+/.*\\.(txt|json|expect))"
|
2016-03-09 07:01:23 -08:00
|
|
|
],
|
|
|
|
"severity": {
|
|
|
|
"3": "disabled"
|
|
|
|
}
|
2014-05-12 04:47:24 -07:00
|
|
|
},
|
|
|
|
"xhpast": {
|
|
|
|
"type": "xhpast",
|
|
|
|
"include": "(\\.php$)",
|
2021-12-16 14:07:59 -08:00
|
|
|
"standard": "phutil.xhpast",
|
|
|
|
"xhpast.php-version": "5.5"
|
2014-05-12 04:47:24 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|