Commit Graph
12 Commits
Author SHA1 Message Date
Danny Mösch 7f960d345e Stop triggering no_magic_numbers rule on literals used in ranges (#5431) 2024-01-20 11:37:57 +01:00
Kishikawa Katsumi 0d54c2a10d Rewrite opening_brace rule with SwiftSyntax (#5164) 2023-12-02 12:21:50 +01:00
Martin Redington 33e3593c86 Skip simple tuples in no_magic_numbers rule (#5327) 2023-11-15 20:33:59 +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 58928b7e40 Enforce any on existential types (#5273)
This makes syntactically clear which types are rather expensive.
2023-10-12 08:37:23 +02:00
Martin Redington 2df65169b0 Ignore 100 in no_magic_numbers rule (#5215) 2023-09-11 19:58:17 +02:00
Danny Mösch b281a8d33a Update SwiftSyntax (#5168) 2023-08-30 22:57:10 +02:00
Martin Redington 097ddd7cbb Ignore operands of shift operators in no_magic_numbers rule (#5174) 2023-08-29 16:11:01 -04:00
Martin Redington e9c22852e5 Ignore no_magic_numbers violations if they are in an extension of a test class (#5146)
Only works in the same file.
2023-08-05 22:07:40 +02:00
Danny Mösch a2ba0a0626 Omit "Rule" in configuration names (#5024) 2023-05-20 04:39:04 -04:00
JP Simard a7bc9e20c7 Move built-in rules to new SwiftLintBuiltInRules module (#4950) 2023-04-27 11:16:01 -04:00