Nick Lockwood
fee7e1a1ac
Update for 0.51.7 release
2023-04-18 22:19:23 +01:00
Yunosuke Sakai
26c4222fc1
Fix @_spi related bug for blankLineAfterImports rule
2023-04-14 17:28:39 +01:00
Nick Lockwood
129d61634f
Fix capture list name resolution
2023-04-13 13:22:00 +01:00
Nick Lockwood
8c9d0c5530
Fix typo
2023-04-13 13:01:40 +01:00
ibrahim oktay
2098730966
Fix stripping fileHeader
2023-04-13 13:01:40 +01:00
Nick Lockwood
c7e1c4e6b5
Update for 0.51.6 release
2023-04-12 14:06:25 +01:00
Cal Stephens
3dfed7d34a
Fix #1420 : preserve self in function bodies inside closures with [weak self] captures
2023-04-12 13:53:33 +01:00
Nick Lockwood
a9c3af79ae
Fix hoistTry in concatenated string clause
2023-04-11 18:17:40 +01:00
Nick Lockwood
d755cc5b03
Fix indenting dot-prefixed expressions inside #elseif
2023-04-11 13:20:04 +01:00
Nick Lockwood
92c2397fcb
Fix redundantSelf parsing bug
2023-04-11 10:20:59 +01:00
Nick Lockwood
a5e01f0f1f
Update for 0.51.5 release
2023-04-09 14:28:20 +01:00
Nick Lockwood
04b955d620
Add --baseconfig option
2023-04-09 14:25:52 +01:00
Nick Lockwood
149e957105
Fix false positive unused argument in collection literal
2023-04-09 13:57:28 +01:00
Nick Lockwood
7a61393ed2
Fix spacing for --funcattributes same-line
2023-04-08 22:28:59 +01:00
Nick Lockwood
a3da3b8cdd
Fix redundant parens not removed after return
2023-04-08 18:46:18 +01:00
Nick Lockwood
1d08b4e650
Fix self being inserted in capture list
2023-04-08 12:55:20 +01:00
Nick Lockwood
47a0893861
Fix indenting .init inside #if
2023-04-06 17:25:47 +01:00
Nick Lockwood
cf5cabc4ba
Fix redundantInit inside #if statement
2023-04-06 15:18:59 +01:00
Nick Lockwood
1185992b24
Fix redundantSelf inside if case expressions
2023-04-06 15:02:38 +01:00
Nick Lockwood
4974952c95
Fix hoistTry in second string interpolation clause
2023-04-06 14:24:55 +01:00
Nick Lockwood
6b2e5f94b0
Fix .swiftformat file permissions error not being reported
2023-04-06 14:24:55 +01:00
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