Commit Graph
2221 Commits
Author SHA1 Message Date
Martin Redington 22ac525989 Remove deprecated path arguments 2024-06-16 10:11:19 +02:00
Danny Mösch b42f6ffe77 Keep initializers with attributed parameters in unneeded_synthesized_initializer rule (#5594) 2024-05-17 23:06:09 +02:00
Danny Mösch ebf7c708b7 Stop triggering mark rule in the middle of another comment (#5593) 2024-05-17 22:29:26 +02:00
Danny Mösch 21bdaf0784 Add new changelog section 2024-05-16 21:43:52 +02:00
Danny Mösch b515723b16 Release 0.55.1 2024-05-16 21:42:01 +02:00
Danny Mösch 161391de27 Treat conditional code as if it was always active (#5581) 2024-05-16 16:48:47 +00:00
Danny Mösch 03af3167fb Fix wording of static_over_final_class rule's violation message (#5583) 2024-05-15 21:42:47 +00:00
Danny Mösch dfe19ac7fc Respect comments before opening braces in opening_brace rule (#5582) 2024-05-15 23:06:59 +02:00
Danny Mösch 3a3ec07952 Fix Bazel build when bzlmod is not in use (#5580) 2024-05-15 21:26:11 +02:00
Danny Mösch 40bee88132 Respect configuration in unneeded_override rule's rewriter (#5579) 2024-05-15 14:16:01 -04:00
Danny Mösch e84a6fc6b2 Silence unused_enumerated rule when $0 in a closure is explicitly unpacked (#5577) 2024-05-15 19:41:55 +02:00
Danny Mösch a04ecbd4d3 Add new changelog section 2024-05-11 23:09:36 +02:00
Danny Mösch 460d88c036 release 0.55.0 2024-05-11 23:09:19 +02:00
Danny Mösch c29391a5ae Ignore but report invalid keys (#5567)
Don't fall back to the default configuration due to invalid keys.
2024-05-11 10:28:10 +00:00
Danny Mösch 4a72167b95 Check that a reference is not just extended 2024-05-03 22:26:21 +02:00
Garric G. Nahapetian 16c0213027 Add option to redundant_type_annotation rule to consider default literal types redundant (#4756) 2024-05-01 21:15:35 +02:00
Chandler Wall 16cb4a02b1 Fix numeric version comparisons (#5526) 2024-05-01 20:51:01 +02:00
Martin Redington 96db41c379 Add an experimental baseline feature (#5475) 2024-05-01 16:55:33 +02:00
Diggory Laycock 04678a1d79 Fix plugin name (#5542) 2024-04-25 21:32:26 +02:00
Danny Mösch 3276266716 Respect nested types in redundant_type_annotation rule (#5537) 2024-04-21 19:15:01 +00:00
Danny Mösch e643f210c5 Respect array types in redundant_type_annotation rule (#5536) 2024-04-21 17:39:54 +00:00
Marceau TONELLIandDanny Mösch b3dd89088e Rewrite redundant_type_annotation with SwiftSyntax (#5389)
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
2024-04-21 17:46:29 +02:00
waitbutY 5315c3d1b6 Add SARIF reporter (#5516) 2024-04-13 05:49:57 -04:00
Martin Redington 2d4f0bc85a Extend unused_enumerated rule to chained calls with closures (#5498) 2024-04-13 10:33:36 +02:00
waitbutY 745aec5903 Adjust case of severity in Code Climate reporter (#5523) 2024-04-07 12:39:08 +02:00
Martin Redington dd8789b530 Update blanket_disable_command rule reason and description (#5518) 2024-04-04 16:25:06 +00:00
Martin Redington dfb09820d3 Enable superfluous_disable_command rule for analyzer rules (#5522) 2024-04-03 20:27:21 +02:00
Martin Redington 8fdf669d53 Add all analyzer pseudo-rule (#5519) 2024-04-02 09:34:17 +02:00
Danny Mösch 299042a233 Allow to configure only severity in a short form for every rule with a severity (#5509)
The README states that a configuration like `attributes: error` is
valid to only set a different severity level for a rule (the
`attributes` rule here). This was previously only possible for rules
that were accompanied by a plain severity configuration.

I don't think this broke with the automatic parsing code generation.
For some rules it might have worked before, for others not. This change
makes it consistently working for all rules.
2024-03-25 21:40:56 +01:00
Martin Redington 5075cc073c Fix warnings about configured rules that are not enabled, when they are enabled in a parent config (#4864) 2024-03-25 21:39:22 +01:00
deterclosed 082adfaed7 Fix some typos (#5504) 2024-03-23 15:25:16 +01:00
Garric G. Nahapetian e4e3545b71 Introduce SwiftLintCommandPlugin (#5497) 2024-03-19 22:07:22 +01:00
Garric G. Nahapetian e66d0a3a8b Move “Rewrite SwiftLintPlugin” to Breaking section (#5500) 2024-03-18 20:59:50 +01:00
Matt Thompson 9259698eef Make private_swiftui_state rule correctable (#5447) 2024-03-18 20:58:45 +01:00
Oleg Kohtenko bedf211c43 Ignore absence of child or parent config instead of falling back to default (#5407) 2024-03-16 10:29:42 -04:00
Danny Mösch c32d5028cd Warn when --fix comes together with --strict or --lenient (#5493) 2024-03-11 20:14:10 +01:00
Danny Mösch e0b6a54f6b Support private_over_fileprivate rule for actors (#5490) 2024-03-08 23:37:13 +01:00
Phlippie a84d9a9ed4 Add new static_over_final_class rule (#5487) 2024-03-08 20:37:35 +01:00
Kotaro Suto d9c6888287 Make trailing_closure rule correctable (#5453) 2024-03-05 21:16:45 +01:00
Garric G. Nahapetian 76af7cc7ab Use BUILD_WORKSPACE_DIRECTORY in SwiftLintPlugin (#4758) 2024-03-02 18:45:33 +00:00
Marcelo FabriandDanny Mösch f3fb17268c Rewrite extension_access_modifier rule with SwiftSyntax (#5310)
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
2024-02-09 23:03:45 +01:00
Hayashi Tatsuya 6d38558bd4 Rewrite nesting rule with SwiftSyntax (#5439) 2024-02-07 15:35:38 -05:00
Danny Mösch 7c29ae4f3e Add new shorthand_argument rule (#5451) 2024-02-06 23:36:28 +00:00
Danny Mösch f5cc749a5f Change violation position to declaration keyword (#5459) 2024-02-07 00:18:04 +01:00
Kotaro Suto f0c1780b53 Make empty_count rule correctable (#5409) 2024-01-29 20:15:51 +01:00
Kotaro Suto 62a3ddae76 Remove broken link (#5441) 2024-01-28 17:04:40 +00:00
Kasra Babaei 77bae5429c Allow line_length rule to ignore certain lines based on regex patterns (#5437) 2024-01-26 09:40:59 +01:00
m.a 443cbd7fce Add new option ignore_typealiases_and_associatedtypes to nesting rule (#5433) 2024-01-21 12:28:23 -05:00
Hayashi Tatsuya 2be8846ad3 Rewrite orphaned_doc_comment rule with SwiftSyntax (#5417) 2024-01-21 09:20:12 +01:00
Danny Mösch 1e9428a92e Respect scattered disable commands in duplicate_imports rule (#5432) 2024-01-20 14:30:46 +01:00