2014-05-12 13:47:24 +02:00
|
|
|
{
|
|
|
|
"exclude": [
|
|
|
|
"(^externals/)",
|
2019-09-02 15:20:20 +02: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 17:44:56 +02:00
|
|
|
"(/__tests__/data/)",
|
|
|
|
"(^support/aphlict/server/package-lock.json)"
|
2014-05-12 13:47:24 +02:00
|
|
|
],
|
|
|
|
"linters": {
|
2014-05-19 03:09:33 +02:00
|
|
|
"chmod": {
|
|
|
|
"type": "chmod"
|
|
|
|
},
|
2014-05-12 13:47:24 +02:00
|
|
|
"filename": {
|
|
|
|
"type": "filename"
|
|
|
|
},
|
2014-07-02 22:49:24 +02:00
|
|
|
"generated": {
|
|
|
|
"type": "generated"
|
|
|
|
},
|
2014-05-12 13:47:24 +02:00
|
|
|
"javelin": {
|
|
|
|
"type": "javelin",
|
|
|
|
"include": "(\\.js$)",
|
|
|
|
"exclude": [
|
2014-07-02 22:49:24 +02:00
|
|
|
"(^support/aphlict/)"
|
2014-05-12 13:47:24 +02:00
|
|
|
]
|
|
|
|
},
|
2014-12-30 12:01:58 +01:00
|
|
|
"jshint-browser": {
|
2014-05-12 13:47:24 +02:00
|
|
|
"type": "jshint",
|
|
|
|
"include": "(\\.js$)",
|
2014-12-30 12:01:58 +01:00
|
|
|
"exclude": [
|
2015-01-13 21:07:46 +01:00
|
|
|
"(^support/aphlict/server/.*\\.js$)",
|
|
|
|
"(^webroot/rsrc/externals/javelin/core/init_node\\.js$)"
|
2014-12-30 12:01:58 +01:00
|
|
|
],
|
|
|
|
"jshint.jshintrc": "support/lint/browser.jshintrc"
|
|
|
|
},
|
|
|
|
"jshint-node": {
|
|
|
|
"type": "jshint",
|
|
|
|
"include": [
|
2015-01-13 21:07:46 +01:00
|
|
|
"(^support/aphlict/server/.*\\.js$)",
|
|
|
|
"(^webroot/rsrc/externals/javelin/core/init_node\\.js$)"
|
2014-12-30 12:01:58 +01:00
|
|
|
],
|
|
|
|
"jshint.jshintrc": "support/lint/node.jshintrc"
|
2014-05-12 13:47:24 +02:00
|
|
|
},
|
2014-06-22 17:55:42 +02:00
|
|
|
"json": {
|
|
|
|
"type": "json",
|
|
|
|
"include": [
|
2014-06-23 20:26:06 +02:00
|
|
|
"(^src/docs/book/.*\\.book$)",
|
2014-07-16 14:07:55 +02:00
|
|
|
"(^support/lint/jshintrc$)",
|
2014-06-22 17:55:42 +02:00
|
|
|
"(^\\.arcconfig$)",
|
|
|
|
"(^\\.arclint$)",
|
|
|
|
"(\\.json$)"
|
|
|
|
]
|
|
|
|
},
|
2014-05-12 13:47:24 +02:00
|
|
|
"merge-conflict": {
|
|
|
|
"type": "merge-conflict"
|
|
|
|
},
|
|
|
|
"nolint": {
|
|
|
|
"type": "nolint"
|
|
|
|
},
|
2014-07-02 22:49:24 +02:00
|
|
|
"phutil-library": {
|
|
|
|
"type": "phutil-library",
|
|
|
|
"include": "(\\.php$)"
|
|
|
|
},
|
|
|
|
"spelling": {
|
|
|
|
"type": "spelling"
|
2014-05-12 15:01:30 +02:00
|
|
|
},
|
2014-05-12 13:47:24 +02:00
|
|
|
"text": {
|
2016-03-09 16:01:23 +01:00
|
|
|
"type": "text",
|
|
|
|
"exclude": [
|
2020-02-12 20:59:22 +01:00
|
|
|
"(^src/(.*/)?__tests__/[^/]+/.*\\.(txt|json|expect))"
|
2016-03-09 16:01:23 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"text-without-length": {
|
|
|
|
"type": "text",
|
|
|
|
"include": [
|
2020-02-12 20:59:22 +01:00
|
|
|
"(^src/(.*/)?__tests__/[^/]+/.*\\.(txt|json|expect))"
|
2016-03-09 16:01:23 +01:00
|
|
|
],
|
|
|
|
"severity": {
|
|
|
|
"3": "disabled"
|
|
|
|
}
|
2014-05-12 13:47:24 +02:00
|
|
|
},
|
|
|
|
"xhpast": {
|
|
|
|
"type": "xhpast",
|
|
|
|
"include": "(\\.php$)",
|
2015-11-12 21:09:12 +01:00
|
|
|
"standard": "phutil.xhpast"
|
2014-05-12 13:47:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|