Commit Graph

225 Commits

Author SHA1 Message Date
Martin Redington 22ac525989 Remove deprecated path arguments 2024-06-16 10:11:19 +02:00
Garric G. Nahapetian fe9763104d Move Xcode Run Script Build Phase note (#5584) 2024-05-16 07:42:40 +02:00
Danny Mösch 7957859f7e Use txt for swiftlint --help output to avoid odd coloring 2024-05-15 23:53:07 +02:00
Danny Mösch af14250508 Fix some markdownlint warnings 2024-05-15 23:50:37 +02:00
Danny Mösch 6499497a1b Update swiftlint --help output 2024-05-15 23:49:41 +02:00
Garric G. Nahapetian 7ec2238364 Improve README.md (#5543)
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
Co-authored-by: Christopher Fuller <christopher.fuller@gotinder.com>
2024-05-15 21:09:55 +00:00
Martin Redington 8fdf669d53 Add all analyzer pseudo-rule (#5519) 2024-04-02 09:34:17 +02:00
Garric G. Nahapetian e4e3545b71 Introduce SwiftLintCommandPlugin (#5497) 2024-03-19 22:07:22 +01:00
Garric G. Nahapetian 76af7cc7ab Use BUILD_WORKSPACE_DIRECTORY in SwiftLintPlugin (#4758) 2024-03-02 18:45:33 +00:00
Slava Karpenko d1e5810b27 Update README with macro validation skipping instructions (#5286)
Xcode 15 introduces an additional security check that requires macros to be explicitly enabled:

> Target 'SwiftLintCoreMacros' must be enabled before it can be used.

In CI environments, this is normally not possible. Fortunately, there is a user defaults key to bypass this.
2023-10-18 09:15:45 +02:00
JP Simard 406d4d270b Require Swift 5.9 (#5235)
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
2023-09-25 18:54:02 -04:00
Martin Redington f783b0279a Add strict configuration file setting (#5226) 2023-09-18 19:27:30 +02:00
Johannes Ebeling 75adbac802 Document the changed default value for sandboxing (#5219) 2023-09-15 21:41:49 +02:00
Genaro Arvizu f05fbf538c README configuration section updated (#5214) 2023-09-09 09:04:43 +02:00
Danny Mösch 2c3cb34179 Explain enabled regex flags in custom rule patterns (#5133) 2023-07-17 20:17:50 +00:00
Danny Mösch e00ae473c3 Use direct GitHub links for Markdown files (#5127) 2023-07-15 22:29:48 +00:00
とんとんぼ 13d091dbf0 Make sure to use absolute links in README (#5117) 2023-07-15 14:45:25 +00:00
Iulian Onofrei 5a72c84166 Make inline comments consistent 2023-06-29 09:44:08 +02:00
Iulian Onofrei ccc92b5578 Document the case-sensitivity of included and excluded parameters 2023-06-29 09:44:08 +02:00
woxtu a53a1f052b Fix links to rules directory (#5029) 2023-05-22 21:37:48 +02:00
JP Simard 214a749ace Extend the custom rules section in the README (#4926)
To link to a video tutorial and example project for creating custom
rules written in Swift and to outline some of the advantages to using
these over regex custom rules.
2023-04-24 17:04:56 +00:00
JP Simard fd4f9afb08 Remove AppCode section in README.md (#4925)
> AppCode is no longer available as a commercial product as of
> December 14, 2022.

From https://blog.jetbrains.com/appcode/2022/12/appcode-2022-3-release-and-end-of-sales-and-support/
2023-04-24 12:44:49 -04:00
YoungBin Lee 498b4c8fbe Correct organization name in README files (#4913)
Rename 'Ray Wenderlich' to 'Kodeco'.
2023-04-21 05:16:13 +00:00
Frad LEE 5814ec1a1a Add architecture detection to Xcode script configuration (#4873) 2023-04-17 18:48:06 +00:00
Martin Redington 7dad240ea7 Add a reporters subcommand (#4836) 2023-03-31 08:09:01 +02:00
JP Simard efc5afd5d5 Apply small formatting fixes (#4840)
* Trim excess trailing and vertical whitespace
* Move `SwiftyTextTable` dependency into `frameworkDependencies`
* Adjust wording in README around analyzer rules in the `opt_in_rules`
  section, since analyzer rules can only go in the `analyzer_rules`
  section.
2023-03-26 16:09:43 -04:00
Martin Redington d6e3bbb64d Add "all" pseudo-rule which enables all opt-in rules (#4544) 2023-03-04 13:49:00 +01:00
David Davies-Payne a71f588637 Add instructions for disabling Xcode package validation (#4751) 2023-02-28 19:40:23 +00:00
Martin Redington 993f34a96c Document allow_zero_lintable_files and move the analyzer_rules section up (#4741)
Co-authored-by: Martin Redington <mildm8nnered@gmail.com>
2023-02-04 13:43:41 +01:00
Christian Clauss eaacd9873e Show how pre-commit can apply fixes and fail on errors (#4740) 2023-02-04 13:39:25 +01:00
Keith Smiley 23e4db3e5f Add support for bzlmod (#4704) 2023-01-19 17:04:21 -05:00
JP Simard 901f05cd4f Update rules_apple to 1.1.3 (#4537) 2022-11-09 10:59:52 -05:00
JP Simard 7653b2d635 Update link to video presentation in readme (#4360)
This link has had a broken video resource for years.

The video was just re-published.
2022-10-12 22:49:45 -04:00
Johannes Ebeling 3fd1573c57 Make SwiftLint available as a build tool plugin (#4176)
*  (spm) add build tool plugin definition for swiftlint
* 📝 (changelog) add changelog item for the plugin
* 🐛 (cache) define cache path explicitly to avoid issues during build without issues
* 🎨 minor code cleanup
* 📝 document usage with Xcode as well as Swift packages
2022-10-05 15:28:19 -04:00
Danny Mösch 2efd538d37 Explain where to get syntax kinds for custom rules from (#4246) 2022-09-30 20:23:05 +02:00
Danny Mösch da75cdca40 Remove instructions for Atom editor (#4255)
Atom editor will be sunset at the end of the year.
2022-09-29 06:49:35 +02:00
JP Simard e381a7d684 Update bazel version in readme 2022-09-02 10:10:09 -04:00
JP Simard ea41b9fd09 Rename default branch from master to main (#4116) 2022-09-01 07:09:46 -04:00
JP Simard 0e3f3de17f Set CHANGELOG header back to 'Master'
And update bazel ref in readme to point to `0.49.0-rc.2`.
2022-08-18 16:35:21 -04:00
JP Simard 35df4ba6a1 Update bazel ref in readme 2022-08-12 11:07:05 -04:00
JP Simard 340fce43c8 Update bazel ref in readme (#4052) 2022-07-28 13:19:19 -04:00
JP Simard ffc6379828 Fix rendering issue in readme
GitHub doesn't render this as a code block, it renders the backticks.
2022-07-26 09:56:13 -04:00
JP Simard 24735ef4d3 Add support for building with Bazel (#4038) 2022-07-26 07:09:02 -04:00
JP Simard 05ac3c9d75 Require macOS 12 & Swift 5.6 (#4037)
This will unblock using Swift Concurrency features and updating to the
latest versions of Swift Argument Parser.

This won't drop support for linting projects with an older toolchain /
Xcode selected, as long as SwiftLint was _built_ with 5.6+ and is
_running_ on macOS 12+. So the main breaking change for end users here
is requiring macOS 12 to run.

However, the upside to using Swift Concurrency features is worth the
breaking change in my opinion. Also being able to stay on recent Swift
Argument Parser releases.
2022-07-26 03:55:36 -04:00
Ruby 37f95d996e fix typo in README (#4016) 2022-07-06 15:32:09 +02:00
Marcelo Fabri a19ffddf66 Support arrays for included & excluded in custom rules (#4006)
* Support arrays for `included` & `excluded` in custom rules

* Extract shouldValidate(filePath:) and add tests
2022-06-27 00:29:26 -07:00
Marcelo Fabri 71db511003 Remove Alcatraz from README
This hasn't been properly supported for years. Fixes https://github.com/realm/SwiftLint/issues/3782
2022-06-15 10:18:54 -07:00
Liam 64f656cb46 Update README.md (#3995) 2022-06-14 21:17:07 +02:00
Danny Mösch bc7917be04 Use explicit link command (#3966) 2022-05-01 12:32:14 -04:00
Danny Moesch 12cda68ce2 Fix some typos and improve wording/style (#3910) 2022-03-18 17:42:25 -04:00