Skip to content

Commit 5e6fa08

Browse files
authored
Make swiftlint.path possible to set locally (#102)
* Make swiftlint.path possible to set locally * Add untrusted setting for swiftlint.path, bump version to 1.8.5 * Set scope to machine-overridable
1 parent 7093082 commit 5e6fa08

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

package.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "git",
77
"url": "https://github.com/vknabel/vscode-swiftlint"
88
},
9-
"version": "1.8.4",
9+
"version": "1.8.5",
1010
"license": "MIT",
1111
"author": {
1212
"name": "Valentin Knabel",
@@ -38,6 +38,15 @@
3838
"workspaceContains:**/*swift"
3939
],
4040
"main": "./out/extension.js",
41+
"capabilities": {
42+
"untrustedWorkspaces": {
43+
"supported": "limited",
44+
"description": "Since the SwiftLint path is used to execute SwiftLint, it must be trusted.",
45+
"restrictedConfigurations": [
46+
"swiftlint.path"
47+
]
48+
}
49+
},
4150
"contributes": {
4251
"configuration": {
4352
"title": "SwiftLint configuration",
@@ -59,8 +68,8 @@
5968
"description": "Only use SwiftLint when a config exists. Requires `swiftlint.configSearchPaths`."
6069
},
6170
"swiftlint.path": {
62-
"description": "The location of your globally installed SwiftLint.",
63-
"scope": "machine",
71+
"description": "The location of your globally or locally installed SwiftLint.",
72+
"scope": "machine-overridable",
6473
"default": "swiftlint",
6574
"oneOf": [
6675
{

0 commit comments

Comments
 (0)