Nick Lockwood
da92ec4767
Update for 0.51.4 release
2023-04-01 12:51:38 +01:00
Nick Lockwood
6e26a9b5a7
Fix invalid indenting of blank lines in multiline strings
2023-04-01 12:49:41 +01:00
Nick Lockwood
02066042e8
Update redundantReturn if / switch expression features to Swift 5.9+
2023-03-31 23:50:34 +01:00
Nick Lockwood
9607c2718d
Fix hoistTry inside multiline string literal interpolation
2023-03-28 23:36:48 +01:00
Nick Lockwood
a5d58763da
Update for 0.51.3 release
2023-03-27 19:16:23 +01:00
Cal Stephens
cf80315178
Fix issue in #1392 where opaqueGenericParameters would remove non-redundant generic type
2023-03-27 18:39:55 +01:00
Nick Lockwood
1e6e7f8b6c
Fix additional hoistTry/Async inside string bugs
2023-03-27 18:39:55 +01:00
Nick Lockwood
560f1abc2a
Fix redundantSelf parsing bug with string literals
2023-03-27 18:39:55 +01:00
Facundo Menzella
6f824faecf
Fix hoistTry inside string interpolation ( #1389 )
2023-03-27 18:39:55 +01:00
Nick Lockwood
ace7fc018c
Fix parsing trailing closure after unwrap operator
2023-03-27 18:39:55 +01:00
Cal Stephens
35dd6f4ddd
Update if / switch expression features to be enabled in Swift 5.9+ ( #1391 )
2023-03-27 18:39:55 +01:00
Nick Lockwood
8d3dc46b96
Update for 0.51.2 release
2023-03-07 21:36:40 +00:00
Nick Lockwood
8cf6230e2a
Extract shared implementation for function exclude lists
2023-03-07 21:15:49 +00:00
Nick Lockwood
7ebe2d06d4
Improve hoistEffectKeyword() implementation performance
2023-03-07 21:15:49 +00:00
Nick Lockwood
f3ef95e226
Add --asynccapturing and --throwcapturing options
2023-03-07 21:15:49 +00:00
Nick Lockwood
4ecbad1283
Fix change tracking in last line of file
2023-03-07 21:15:49 +00:00
Nick Lockwood
8459b7030f
Fix hoistTry/Await linebreak handling
2023-03-07 21:15:03 +00:00
noppefoxwolf
a6f0af2165
Fix typo ( #1377 )
2023-03-06 23:21:18 +00:00
Nick Lockwood
7d3682f70f
Update for 0.51.1 release
2023-03-02 07:49:12 +00:00
Nick Lockwood
92b4e7df14
Fix redundantNilInit removing required nil inside ViewBuilder
2023-03-01 19:02:25 +00:00
Nick Lockwood
be082afc66
Fix redundantLet removing required let inside ViewBuilder switch
2023-03-01 19:02:09 +00:00
Nick Lockwood
0e6d96654b
Fix hoistTry removing try inside XCTAssert statements
2023-03-01 19:01:43 +00:00
Nick Lockwood
893fadd88b
Update for 0.51.0 release
2023-02-28 22:45:21 +00:00
Nick Lockwood
356a4716a4
Ignore .swiftformat files when using explicit config
2023-02-28 22:45:21 +00:00
Nick Lockwood
26f1238893
Apply wrapMultilineStatementBraces regardless of wrapArguments mode
2023-02-28 22:45:21 +00:00
Nick Lockwood
507bf9724f
Add hoistTry fixes and examples and enable by default
2023-02-28 22:45:21 +00:00
Facundo Menzella
3880fa2d67
Add hoistTry rule ( #1369 )
2023-02-28 22:45:21 +00:00
James Sherlock
855da39eba
Remove preferDouble rule ( #1296 )
...
This was discussed in more depth in issue #1139 , where this rule in particular was not only causing several compiler errors but has also been proven to introduce subtle bugs into applications which may not be obvious or easy to diagnose at first look.
I think the value of this rule, even with it being opt-in, does not outweigh the risk to projects with it being turned on. As such, I believe this should be removed.
Alternative options may include a more prominent warning or description for the rule, or significant work on the rule itself to make it more resilient (but as this would essentially require knowledge of the source of every function called and whether that resides within the source code of the client) is rather impractical.
2023-02-28 22:11:31 +00:00
Cal Stephens
b7177328d7
[SE-0380] Add conditionalAssignment rule, update redundantType rule ( #1364 )
2023-02-28 22:11:31 +00:00
Nick Lockwood
f3d2782dac
Support default: branches in redundantReturn rule
2023-02-28 22:11:31 +00:00
Nick Lockwood
d744c724f3
Fix required return removed in if/for case expressions
2023-02-28 22:11:31 +00:00
Cal Stephens
888b1c87e4
Update redundantReturn/Closure to support single-statement if/switch (SE-0380)
2023-02-28 22:11:31 +00:00
Nick Lockwood
009076c1c6
Add hoistAwait examples and enable by default
2023-02-28 22:11:31 +00:00
Facundo Menzella
9518366da6
Add hoistAwait rule ( #1360 )
2023-02-28 22:11:31 +00:00
Nick Lockwood
749d23ec81
Rename wrapEnumCases option for consistency
2023-02-28 22:11:31 +00:00
Facundo Menzella
3d11436f1d
Add option to only wrap enum cases with values ( #1357 )
2023-02-28 22:11:30 +00:00
Facundo Menzella
adaa521477
Remove let in patterns when redundant ( #1329 )
2023-02-28 22:11:30 +00:00
Cal Stephens
63abf0813e
Update redundantSelf rule to use implicit self in eligible closures ( #1303 )
2023-02-28 22:11:30 +00:00
Cal Stephens
85bedab454
Add option to wrap function effects (throws, async) ( #1301 )
2023-02-28 22:11:30 +00:00
Nick Lockwood
f1cf941d5b
Update for 0.50.9 release
2023-02-16 22:59:39 +00:00
Nick Lockwood
ee7acc973c
Refactor github reporter logic
2023-02-16 22:18:13 +00:00
Jonas Boberg
45a11a132e
Add Github Actions annotations reporter ( #1366 )
2023-02-16 21:07:15 +00:00
Nick Lockwood
e93e4c8afc
Fix bug where inline attributes get wrapped
2023-02-16 20:48:53 +00:00
Nick Lockwood
b7dc882564
Improve options comment directive support
2023-02-16 20:48:53 +00:00
Nick Lockwood
2515fdd373
Fix trailing comma left by opaqueGenericParameters rule
2023-02-16 20:47:49 +00:00
Nick Lockwood
791a1c5308
Improve redundantType rule
2023-02-16 20:46:06 +00:00
Nick Lockwood
ae4d0b672c
Update for 0.50.8 release
2023-01-29 14:26:57 +00:00
Nick Lockwood
40163c15b6
Fix unsafe semicolon removal after inferred var
2023-01-29 14:26:57 +00:00
Nick Lockwood
14f4613fd8
Fix unsafe removal of backticks around self
2023-01-29 14:26:57 +00:00
david-pettigrew-walmart
5e6ac9dbd8
Fix PAT declaration support for headerdoc comments ( #1353 )
2023-01-29 14:26:57 +00:00