Skip to content

Commit

Permalink
Make swiftlint.path possible to set locally (#102)
Browse files Browse the repository at this point in the history
* Make swiftlint.path possible to set locally

* Add untrusted setting for swiftlint.path, bump version to 1.8.5

* Set scope to machine-overridable
  • Loading branch information
robertherber authored Dec 7, 2024
1 parent 7093082 commit 5e6fa08
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/vknabel/vscode-swiftlint"
},
"version": "1.8.4",
"version": "1.8.5",
"license": "MIT",
"author": {
"name": "Valentin Knabel",
Expand Down Expand Up @@ -38,6 +38,15 @@
"workspaceContains:**/*swift"
],
"main": "./out/extension.js",
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Since the SwiftLint path is used to execute SwiftLint, it must be trusted.",
"restrictedConfigurations": [
"swiftlint.path"
]
}
},
"contributes": {
"configuration": {
"title": "SwiftLint configuration",
Expand All @@ -59,8 +68,8 @@
"description": "Only use SwiftLint when a config exists. Requires `swiftlint.configSearchPaths`."
},
"swiftlint.path": {
"description": "The location of your globally installed SwiftLint.",
"scope": "machine",
"description": "The location of your globally or locally installed SwiftLint.",
"scope": "machine-overridable",
"default": "swiftlint",
"oneOf": [
{
Expand Down

0 comments on commit 5e6fa08

Please sign in to comment.