Commit Graph

13 Commits

Author SHA1 Message Date
Danny Mösch c1ffdfe891 Enable prefer_condition_list rule (#6163) 2025-07-12 09:41:00 -04:00
Martin Redington ed10aec5f8 Enable implicit_return and fix all violations (#5658) 2024-07-10 12:15:19 +01:00
Danny Mösch c810459e6a Enforce mandatory trailing comma and fix all violations (#5640) 2024-06-28 05:36:50 +00:00
Marceau TONELLI 902ac305bf Add option to switch_case_alignment rule to ignore switch statements written on a single line (#5390) 2024-01-03 22:43:37 +01:00
Danny Mösch 40bd97038a Support arbitrary configurations in @SwiftSyntaxRule (#5275)
Almost all rules based on SwiftSyntax can be set up now by just adding
`@SwiftSyntaxRule` to the rule struct.
2023-10-16 19:34:43 +02:00
Danny Mösch 2ed1fc2f27 Let all rules be configurable (#5274) 2023-10-12 17:30:45 +02:00
Danny Mösch 6438c77b96 Harmonize rule extensions (#5272) 2023-10-11 19:39:38 +02:00
Danny Mösch d6b3f69804 Support switch expressions in switch_case_alignment rule (#5229)
The position of the closing brace now defines the alignment.
2023-09-20 17:43:01 -04:00
Danny Mösch 20b7ce2cd2 Skip switch expressions used as child expressions in switch_case_alignment rule (#5193) 2023-08-28 20:24:59 +02:00
Danny Mösch f6a41b6fb6 Fix typo (#5087) 2023-07-01 16:42:07 -04:00
Danny Mösch 834e532700 Ignore switch expressions assigned to variables in switch_case_alignment rule (#5086) 2023-07-01 16:40:34 -04:00
JP Simard e5cf99088b Update SwiftSyntax to 509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-06-05-a (#5058)
Diff: https://github.com/apple/swift-syntax/compare/509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-05-02-a...509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-06-05-a
2023-06-12 15:22:17 -04:00
JP Simard a7bc9e20c7 Move built-in rules to new SwiftLintBuiltInRules module (#4950) 2023-04-27 11:16:01 -04:00