{"full_name":"realm/SwiftLint","owner":"realm","name":"SwiftLint","shard":"1","url":"https://github.com/realm/SwiftLint","description":"A tool to enforce Swift style and conventions.","homepage":"https://realm.github.io/SwiftLint","topics":["linter","linting","swift","static-analysis","code-quality","hacktoberfest"],"tag_pages":["code-quality","hacktoberfest","linter","linting","static-analysis","swift"],"language":"Swift","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/7575099?v=4","created_at":"2015-05-16T16:59:31Z","pushed_at":"2026-11-13T14:52:26Z","metrics":{"stars":19791,"forks":2345,"watchers":230,"issues":2871,"prs":4059,"releases":153,"issues_open":406,"issues_closed":2465,"prs_open":135,"prs_closed":692,"prs_merged":3232,"discussions":0},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[19784,19788,19787,19787,19791,19791,19791],"forks":[2342,2343,2344,2344,2344,2345,2345],"watchers":[null,230,230,230,230,230,230],"issues_open":[null,408,408,408,408,408,406],"prs_open":[null,132,132,132,133,135,135]},"boards":{},"same_owner":[{"full_name":"realm/realm-swift","name":"realm-swift","shard":"1","boards":{}}],"issues":[{"number":4015,"title":"Xcode 14 introduces new run script build phase warning for SwiftLint","comments":44,"created_at":"2022-07-05T18:16:22Z"},{"number":319,"title":"Add Rules to Support Ray Wenderlich's Swift Style Guide","comments":32,"created_at":"2016-01-06T04:19:48Z"},{"number":27,"title":"Support Xcode Fix-Its","comments":26,"created_at":"2015-05-22T15:44:39Z"},{"number":3988,"title":"Bus error","comments":18,"created_at":"2022-06-03T16:25:49Z"},{"number":3046,"title":"indentation_width warning on multiple cases of switch-case","comments":18,"created_at":"2020-01-17T01:46:42Z"},{"number":5207,"title":"Running lint without any code changes is still slow (30s vs 40s without cache)","comments":16,"created_at":"2023-09-07T01:53:34Z"},{"number":1573,"title":"Support tabs in vertical parameter alignment rule","comments":16,"created_at":"2017-05-26T16:55:40Z"},{"number":4821,"title":"Fatal error while scanning apple/swift repo","comments":15,"created_at":"2023-03-15T07:49:43Z"}],"discussions":[],"latest_release":{"name":"0.65.1: Fresh Folded Fixtures","tag":"0.65.1","published_at":"2026-08-21T20:29:47Z","body":"### Breaking\r\n\r\n* `Configuration.IndentationStyle` moved to `SwiftLintCore.IndentationStyle`.\r\n  Rules can now read the global `indentation` setting via `CurrentRule.configuration`.  \r\n  [GandaLF2006](https://github.com/GandaLF2006)\r\n\r\n* Remove the deprecated `allow_multiline_func` option from the `opening_brace`\r\n  rule. Use `ignore_multiline_function_signatures` instead.  \r\n  [Brett-Best](https://github.com/Brett-Best)\r\n\r\n### Enhancements\r\n\r\n* Speed up the `collection_alignment` rule, which read the whole file's\r\n  source lines once per element of a dictionary literal.  \r\n  [Brett-Best](https://github.com/Brett-Best)\r\n\r\n* Compare the two operands of a comparison by walking their token streams in\r\n  the `identical_operands` rule instead of rendering both operands to strings,\r\n  so differing operands stop at the first mismatching token.  \r\n  [Brett-Best](https://github.com/Brett-Best)\r\n\r\n* Add `#examples` and `#corrections` macros that expand lists and\r\n  dictionaries of code strings into `Example`s, reducing boilerplate when\r\n  defining a rule's triggering/non-triggering examples and corrections. Adopt\r\n  them across the built-in rules.  \r\n  [ZevEisenberg](https://github.com/ZevEisenberg)\r\n\r\n* Add `allow_compact_empty_blocks` option to the `no_empty_block` rule to\r\n  allow empty blocks written compactly as `{}` while still flagging empty\r\n  blocks with any whitespace or newlines between the braces.  \r\n  [arimu1](https://github.com/arimu1)\r\n  [#6839](https://github.com/realm/SwiftLint/issues/6839)\r\n\r\n### Bug Fixes\r\n\r\n* Add an opt-in `allow_explicit_unsafe_unowned` option to let the\r\n  `unowned_variable_capture` rule accept explicit `unowned(unsafe)` captures.  \r\n  [Yurii Bakurov](https://github.com/Yurii201811)\r\n  [#6817](https://github.com/realm/SwiftLint/issues/6817)\r\n\r\n* Fix `line_length` with `ignores_urls` enabled incorrectly ignoring property\r\n  accesses whose member names are valid top-level domains.  \r\n  [Arthur Liu](https://github.com/thliu21)\r\n  [#6811](https://github.com/realm/SwiftLint/issues/6811)\r\n\r\n* Fix baseline writing to store file locations as paths relative to the current working directory,\r\n  restoring baseline portability and avoiding absolute `file://` paths in generated baseline files.  \r\n  [SimplyDanny](https://github.com/SimplyDanny)\r\n  [#6812](https://github.com/realm/SwiftLint/issues/6812)\r\n\r\n* Fix correction behavior of `closure_spacing` rule when a closure contains only trivia (e.g. comments).  \r\n  [SimplyDanny](https://github.com/SimplyDanny)\r\n  [#6798](https://github.com/realm/SwiftLint/issues/6798)\r\n  [#6799](https://github.com/realm/SwiftLint/issues/6799)\r\n\r\n* Fix `closure_end_indentation` moving closing braces to column 1 in files\r\n  with CRLF line endings when running `swiftlint --fix`.  \r\n  [sjh9714](https://github.com/sjh9714)\r\n  [#6598](https://github.com/realm/SwiftLint/issues/6598)\r\n\r\n## 0.65.0: Fresh Folded Fixtures\r\n\r\n### Breaking\r\n\r\n* SwiftLint now requires Swift 6.1 or higher for development (to run tests). The\r\n  executable can still be built with a Swift 6 compiler. The [Swift Package Manager plugins](https://github.com/SimplyDanny/SwiftLintPlugins)\r\n  continue to work with all versions down to Swift 5.9.  \r\n  [SimplyDanny](https://github.com/SimplyDanny)\r\n\r\n### Enhancements\r\n\r\n* SwiftLint now builds with Bazel versions 7 to 9.  \r\n  [SimplyDanny](https://github.com/SimplyDanny)\r\n\r\n---\r\n\r\n### Using Bazel\r\n\r\nWith bzlmod:\r\n\r\n```\r\n// Pending BCR update\r\nbazel_dep(name = \"swiftlint\", version = \"0.65.1\", repo_name = \"SwiftLint\")\r\n```\r\n\r\nWithout bzlmod, put this in your `WORKSPACE`:\r\n\r\n<details>\r\n\r\n<summary>WORKSPACE</summary>\r\n\r\n```python\r\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\r\n\r\nhttp_archive(\r\n    name = \"build_bazel_rules_apple\",\r\n    sha256 = \"9e26307516c4d5f2ad4aee90ac01eb8cd31f9b8d6ea93619fc64b3cbc81b0944\",\r\n    url = \"https://github.com/bazelbuild/rules_apple/releases/download/2.2.0/rules_apple.2.2.0.tar.gz\",\r\n)\r\n\r\nload(\r\n    \"@build_bazel_rules_appl","is_prerelease":false},"readme":true,"readme_zh":true,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}