{"id":19521448,"url":"https://github.com/vknabel/vscode-swiftlint","last_synced_at":"2025-06-27T07:35:31.402Z","repository":{"id":42725600,"uuid":"223159559","full_name":"vknabel/vscode-swiftlint","owner":"vknabel","description":"VS Code extension to enforce Swift style and conventions via SwiftLint","archived":false,"fork":false,"pushed_at":"2025-06-15T18:19:19.000Z","size":375,"stargazers_count":23,"open_issues_count":17,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-21T18:58:46.954Z","etag":null,"topics":["hacktoberfest","linter","swift","swiftlint","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-swiftlint","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vknabel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"vknabel","custom":["https://www.paypal.me/valentinknabel"]}},"created_at":"2019-11-21T11:33:35.000Z","updated_at":"2025-06-15T18:19:16.000Z","dependencies_parsed_at":"2024-11-11T00:32:32.058Z","dependency_job_id":"bbebcb35-c9b5-4e53-8d68-5ccfc56a0d6f","html_url":"https://github.com/vknabel/vscode-swiftlint","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/vknabel/vscode-swiftlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vknabel%2Fvscode-swiftlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vknabel%2Fvscode-swiftlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vknabel%2Fvscode-swiftlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vknabel%2Fvscode-swiftlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vknabel","download_url":"https://codeload.github.com/vknabel/vscode-swiftlint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vknabel%2Fvscode-swiftlint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262213194,"owners_count":23276062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","linter","swift","swiftlint","vscode","vscode-extension"],"created_at":"2024-11-11T00:32:16.740Z","updated_at":"2025-06-27T07:35:31.383Z","avatar_url":"https://github.com/vknabel.png","language":"TypeScript","funding_links":["https://github.com/sponsors/vknabel","https://www.paypal.me/valentinknabel"],"categories":[],"sub_categories":[],"readme":"# SwiftLint for VS Code\n\nVS Code extension to enforce Swift style and conventions via [SwiftLint](https://github.com/realm/SwiftLint). You can use SwiftLint installed globally or via the Swift Package Manager.\n\n### Global Installation\n\nYou can [install](https://github.com/realm/SwiftLint#installation) SwiftLint globally using [Homebrew](http://brew.sh/) or [Mint](https://github.com/yonaskolb/Mint). For a local setup you can use the Swift Package Manager.\n\n```bash\n# Using Homebrew\n$ brew install swiftlint\n# Using Mint\n$ mint install realm/SwiftLint\n# Manually\n$ git clone https://github.com/realm/SwiftLint.git\n$ swift build -c release\n```\n\n### Local Installation\n\nAdd the package to your dependencies in `Package.swift`:\n\n```diff\n// swift-tools-version:4.2\n\nimport PackageDescription\n\nlet package = Package(\n    name: \"Komondor\",\n    products: [ ... ],\n    dependencies: [\n        // My dependencies\n        .package(url: \"https://github.com/orta/PackageConfig.git\", from: \"0.0.1\"),\n        // Dev deps\n        .package(url: \"https://github.com/orta/Komondor.git\", from: \"0.0.1\"),\n+        .package(url: \"https://github.com/realm/SwiftLint.git\", from: \"0.58.2\"),\n    ],\n    targets: [...]\n)\n```\n\n## Configuration\n\n| Config                                  | Type       | Default     | Description                                                                                                                             |\n| --------------------------------------- | ---------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `swiftlint.enable`                      | `Bool`     | `true`      | Whether SwiftLint should actually do something.                                                                                         |\n| `swiftlint.onlyEnableOnSwiftPMProjects` | `Bool`     | `false`     | Requires and uses a SwiftLint as SwiftPM dependency. This will cause the extension to build the Swift package upon first launch.        |\n| `swiftlint.onlyEnableWithConfig`        | `Bool`     | `false`     | Only lint if config present. Requires `swiftlint.configSearchPaths`.                                                                    |\n| `swiftlint.path`                        | `String`   | `swiftlint` | The location of the globally installed SwiftLint (resolved with the current path if only a filename).                                   |\n| `swiftlint.additionalParameters`        | `[String]` | `[]`        | Additional parameters to pass to SwiftLint.                                                                                             |\n| `swiftlint.configSearchPaths`           | `[String]` | `[]`        | Possible paths for SwiftLint config. _This disables [nested configurations](https://github.com/realm/SwiftLint#nested-configurations)!_ |\n| `swiftlint.autoLintWorkspace`           | `Bool`     | `true`      | Automatically lint the whole project right after start.                                                                                 |\n\nNote that when `swiftlint.onlyEnableOnSwiftPMProjects` is enabled, the extension will only run `swiftlint` executables\nbuilt as part of the Swift package open in the workspace. It will try to build the binary once on first launch. If\nthe build fails, the extension will not fall back to a globally installed `swiftlint`. If you prefer a\nlocally built `swiftlint`, but want to skip the automatic initial build, let `swiftlint.path` point to the local\nexecutable you have built manually or by other means independent of the extension.\n\n## Commands\n\n| Short Title                     | Command                   |\n| ------------------------------- | ------------------------- |\n| SwiftLint: Lint workspace       | `swiftlint.lintWorkspace` |\n| SwiftLint: Fix workspace        | `swiftlint.fixWorkspace`  |\n| SwiftLint: Fix document         | `swiftlint.fixDocument`   |\n| SwiftLint: Fix all known issues | `source.fixAll.swiftlint` |\n\nTo automatically fix all issues within a document on save, add the following to your `.vscode/settings.json`:\n\n```json\n{\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll\": true\n  }\n}\n```\n\n## License\n\nvscode-swiftlint is available under the [MIT](./LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvknabel%2Fvscode-swiftlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvknabel%2Fvscode-swiftlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvknabel%2Fvscode-swiftlint/lists"}