Commit Graph
147 Commits
Author SHA1 Message Date
Danny Mösch 539bd28d86 Use URL for file paths throughout the code base 2025-12-28 08:46:16 +01:00
Roman LavrovandDanny Mösch 63f358c15b Restore Location.relativeFile to original implementation for now 2025-12-23 15:08:35 +01:00
Roman LavrovandDanny Mösch 806cbfa71c fix comment length 2025-12-23 15:08:35 +01:00
Roman LavrovandDanny Mösch 761000d42b TestResources.path() -> URL, resolve symlinks where tests fail on bazel 2025-12-23 15:08:35 +01:00
Roman LavrovandDanny Mösch 42f0b0c407 back to join with / 2025-12-23 15:08:35 +01:00
Roman LavrovandDanny Mösch 67973cb419 join / -> reduce append 2025-12-23 15:08:35 +01:00
Roman LavrovandDanny Mösch 488f1c5164 fix lint 2025-12-23 15:08:35 +01:00
Roman LavrovandDanny Mösch e998a83fae relativeFile strips prefix using pathComponents 2025-12-23 15:08:35 +01:00
Roman LavrovandDanny Mösch ef8a46e544 relativeFile strips prefix instead of replacing occurrences 2025-12-23 15:08:35 +01:00
Roman LavrovandDanny Mösch 7d4b254d85 Add missing slash in removed path prefix 2025-12-23 15:08:35 +01:00
Saleem AbdulrasoolandDanny Mösch 4bfa266b09 various fixes for Windows path handling
An assortment of fixes that improve the test coverage on Windows. With
this set, local testing reveals 1 failure (RemoteCycleDetection) and
another set of test failures due to Windows globbing not matching the
POSIX semantics.
2025-12-23 15:08:35 +01:00
Brett BestandGitHub 5b1b83812a Support Swift version 6.2.3 (#6375) 2025-12-13 09:15:47 +00:00
Danny MöschandGitHub 66d4818cd3 Support Swift version 6.2.2 (#6373) 2025-12-10 21:10:39 +00:00
Saleem AbdulrasoolandGitHub e526fdef94 Repair GenerationTests on Windows (#6354) 2025-11-28 09:04:17 +01:00
Danny MöschandGitHub f59f41b36e Support Swift version 6.2.1 (#6338) 2025-11-09 13:37:43 +01:00
Danny MöschandGitHub 70a2e6ceac Add new incompatible_concurrency_annotation rule (#6290) 2025-10-20 15:11:10 -04:00
Danny MöschandGitHub 4065fc8437 Enable upcoming feature MemberImportVisibility (#6286) 2025-10-08 08:12:05 +02:00
Danny MöschandGitHub aa67f5ac13 Adopt typed throws where possible (#5922) 2025-09-27 19:11:46 +02:00
Danny MöschandGitHub 77050e8c40 Enable a fully statically linked Linux executable (#6211)
If SwiftLint is built from this state using the Swift SDK, we'll get a
large self-contained Linux executable that runs without loading SourceKit.
It can do that by disabling any rule that requires SourceKit.

With `SWIFTLINT_DISABLE_SOURCEKIT` set on a normally (dynamically linked)
binary, the behavior is the same. That's different from the previously
reported more serious warnings.
2025-08-30 10:02:38 -04:00
Erik KerberandGitHub 69c9e29833 Add Sendable conformance to Rule.Type for building with Swift 6 (#6169) 2025-07-30 09:36:11 +02:00
Danny MöschandGitHub 599e51a5a2 Format code (#6151) 2025-07-02 17:50:53 -04:00
JP SimardandGitHub 5a2cf4b1fe Remove dead code (#6125)
In particular lots of stuff that used to be needed with SourceKit that
we no longer need to keep around.

Identified using Periphery: https://github.com/peripheryapp/periphery
2025-06-21 15:19:37 -04:00
JP SimardandGitHub 81474e36d0 Enforce SourceKitFreeRule contract with fatal error (#6107) 2025-06-20 07:25:01 -04:00
Danny MöschandGitHub 614c0026df Prepare for Swift 6.2 (#6115) 2025-06-20 09:25:59 +00:00
Danny Mösch 125dd161cf Support latest Swift versions 2025-06-15 19:08:16 +02:00
Martin RedingtonandGitHub f72f195ece Fix error reporting (#6061) 2025-05-21 11:34:46 +01:00
Martin RedingtonandGitHub 3ed7579fd2 Allow magic numbers to be configured (#6051) 2025-04-13 21:08:42 +01:00
Danny Mösch e3c0eebe86 Document missing parameters 2025-04-09 21:11:41 +02:00
Danny MöschandGitHub 47335d7f95 Remove tracking of correction positions (#5950)
Report number of corrections per file instead.
2025-04-05 06:04:37 -04:00
Danny MöschandGitHub 904538487c Support Swift version 6.1 (#6040) 2025-03-31 23:25:25 +02:00
Danny MöschandGitHub 043f9cac5b Introduce internal CLI to simplify development tasks (#6032)
Start with a command that generates a template for a new SwiftSyntax
rule. This tool could remain separate or be merged into the official
binary under a `dev` sub-command at a later point in time.
2025-03-23 01:21:41 +01:00
Danny MöschandGitHub 22e0f42ae1 Fix crash when disable command is preceded by unicode character (#5976) 2025-03-15 23:33:11 +01:00
Martin RedingtonandGitHub 5517d233fd Started to add rationales (#5681) 2025-03-06 10:16:30 +00:00
Danny MöschandGitHub 82fd3e4058 Ensure that content is complete using an awaitable stream (#5986) 2025-02-10 22:59:43 +01:00
Danny MöschandGitHub f796fee241 Enable strict concurrency checks in test code (#5943) 2025-01-07 22:19:25 +01:00
Danny MöschandGitHub bef8acfb0e Avoid NSRegularExpression in configurations (#5921) 2024-12-28 12:54:23 -05:00
Danny MöschandGitHub dd157e2bdf Use task-local variable (#5919) 2024-12-28 10:44:07 +01:00
Danny Mösch ec35f95786 Fix strict concurrency warnings in SwiftLintCore 2024-12-23 16:52:10 +01:00
Danny Mösch 1a54e3e313 Capture console on main actor only 2024-12-23 16:52:10 +01:00
Danny Mösch a6c4fd98bc Move files from SwiftLintCore to SwiftLintFramework
Ideally, SwiftLintCore would some day only contain components
that are needed to define rules. Consequently, it would be the
only bundle required to import for (external) rule development.
2024-12-23 12:51:43 +01:00
Danny MöschandGitHub 23ba688c88 Combine compact and flat mapping (#5897) 2024-12-15 17:20:18 -05:00
Danny MöschandGitHub 172d85ab7a Add pre-defined internal Swift 6 version (#5872) 2024-11-28 18:00:44 -05:00
Danny Mösch 25f2776977 Release 0.57.1 2024-11-24 16:06:56 +01:00
Danny MöschandGitHub 2c7e7230b0 Support type casting on configuration option values defined by environment variables (#5860) 2024-11-17 15:40:39 +01:00
Martin RedingtonandGitHub 23d6a7c3f5 Added lenient command line option (#5801) 2024-10-30 22:03:54 +00:00
Martin RedingtonandGitHub 01f5ecd64a Replace description.identifier with identifier (#5837) 2024-10-26 14:46:03 +01:00
Martin RedingtonandGitHub 9ea4374145 Fix --only-rule config issues (#5773) 2024-10-25 17:19:17 +01:00
Danny MöschandGitHub 7385beaaf6 Add validation hook to configuration parsing (#5824) 2024-10-17 23:13:17 +02:00
Martin RedingtonandGitHub 9c2d0d5f86 Fix nested disable commands improved (#5797) 2024-10-15 18:56:39 +01:00
Danny MöschandGitHub 63ee1944bd Keep Swift 5 macOS build for the time being (#5816) 2024-10-01 15:25:03 +00:00