2023 Commits
Author SHA1 Message Date
Cal Stephens ccd88da328 Prepare for 0.58.1 release 2025-09-24 08:43:58 -07:00
Cal Stephens 133775bae1 Update redundantLet rule to handle #Preview macro (#2231) 2025-09-24 08:43:58 -07:00
Cal Stephens 0b5ab901ea Fix issue where .swift-version file was ignored if not also using config file (#2230) 2025-09-24 08:43:58 -07:00
Cal Stephens 23da5808d3 Fix issue where wrapAttributes rule would unexpectedly wrap async effect (#2229) 2025-09-24 08:43:58 -07:00
Cal Stephens 3aeb711d77 Fix bug where acronyms rule would incorrectly always capitalize potentially matching acronyms one letter before end of identifier (#2226) 2025-09-24 08:43:58 -07:00
Cal Stephens d3cfc9df66 Fix issue where redundantAsync ignored await keyword in string interpolation (#2225) 2025-09-24 08:43:58 -07:00
Cal Stephens 1c1d501068 Improve trailingClosures support for multiple trailing closures, fix bug where trailing closures could be applied to ineligible function calls (#2224) 2025-09-24 08:43:58 -07:00
Cal Stephens 9264bf3825 Fix issue where async effect could be confused for async modifier, breaking docCommentsBeforeModifiers rule in protocol body with async functions (#2220) 2025-09-24 08:43:58 -07:00
Cal Stephens 599dd01c5f Prepare for 0.58.0 release 2025-09-22 19:13:36 -07:00
Cal Stephens 51b6027154 Fix parseDeclarations parsing bug (#2214) 2025-09-22 19:13:36 -07:00
Cal Stephens cd09163b42 Handle Swift 6.2 bug where trailing commas are not allowed in closure literal tuple return types (#2213) 2025-09-22 19:13:36 -07:00
Cal Stephens b27e7c59e0 Handle bug where Swift 6.2 doesn't allow trailing commas in tuples within generic types 2025-09-22 19:13:36 -07:00
Cal Stephens 02e458209a Update trailingCommas rule to support bug fixes in Swift 6.2 2025-09-22 19:13:36 -07:00
Cal Stephens fe0dd073ec Update singlePropertyPerLine to preserve async let declarations (#2210) 2025-09-22 19:13:36 -07:00
Cal Stephens ebdc24c4a5 Improve support for XCTAssertEqual and XCTAssertNil in noForceUnwrapInTests (#2208) 2025-09-22 19:13:36 -07:00
Cal Stephens 9fbd4f0909 Add redundantAsync rule (#2207) 2025-09-22 19:13:36 -07:00
Cal Stephens cd87505ae5 Add redundantThrows rule (#2206) 2025-09-22 19:13:36 -07:00
Cal Stephens 0c45b4b4c3 Don't apply noForceTryInTests if function has a return type 2025-09-22 19:13:36 -07:00
Cal Stephens 5e82ae3ad6 Rename throwingTests rule to noForceTryInTests 2025-09-22 19:13:36 -07:00
Cal Stephens 703593f551 Add noForceUnwrapInTests rule (#2204) 2025-09-22 19:13:36 -07:00
Matt Czech 999ff9ec5d Fix blankLinesAroundMark not ignoring trailing comments at start of scope (#2203) 2025-09-22 19:13:36 -07:00
Cal Stephens 179fcae759 Fix bug where --type-body-marks remove wouldn't be respected on declarations with expected mark comment (#2200) 2025-09-22 19:13:36 -07:00
Cal Stephens fbbe980923 Add preferFinalClasses rule (#2196) 2025-09-22 19:13:36 -07:00
Cal Stephens d1e430c6a0 Add --default-test-suite-attributes option to preferSwiftTesting rule (#2192) 2025-09-22 19:13:36 -07:00
Cal Stephens d76ee377cf Fix bug where markTypes rule wouldn't add marks after extensions (#2191) 2025-09-22 19:13:36 -07:00
Cal Stephens 23e43f7ee4 Update trailingClosures rule to support multiple trailing closures (#2190) 2025-09-22 19:13:36 -07:00
Cal Stephens 8fdb655ddc Update propertyTypes rule to support Set literal initialization, in addition to arrays and dictionaries (#2189) 2025-09-22 19:13:36 -07:00
Nick Lockwood 035ce340d4 Make trailingCommas removal more strict 2025-09-22 19:13:36 -07:00
Nick Lockwood b829018a8e Add additional trailingCommas tests 2025-09-22 19:13:36 -07:00
Nick Lockwood 56184fab24 Fix trailingCommas logic for init declarations 2025-09-22 19:13:36 -07:00
Cal Stephens 5e7882baa8 Improve type-related helpers by adding TypeName type (#2187) 2025-09-22 19:13:36 -07:00
via-guyandCal Stephens 33f7a6a108 Update propertyTypes rule support array and dictionary literals (#2185)
Co-authored-by: Cal Stephens <cal@calstephens.tech>
2025-09-22 19:13:36 -07:00
Cal Stephens f163a36821 Dont treat parens after a keyword as a function call 2025-09-22 19:13:36 -07:00
Cal Stephens 832e06822d Add option to disallow partial wrapping of functions and collections (#2186) 2025-09-22 19:13:36 -07:00
Cal Stephens cb97a7e224 Update trailingClosures and trailingCommas rules to support optional function calls (#2184) 2025-09-22 19:13:36 -07:00
Cal Stephens 328837049f Fix support for enabling and disabling disabled-by-default rules in secondary configs 2025-09-22 19:13:36 -07:00
Cal Stephens 2b939180ad Add support for filtering config file options to a specific file path glob (#2176) 2025-09-22 19:13:36 -07:00
Cal Stephens 5b343adc26 Add --type-body-marks remove option to organizeDeclarations (#2175) 2025-09-22 19:13:36 -07:00
Nick Lockwood 0246516c38 Discard changes outside of specified range 2025-09-22 19:13:36 -07:00
Nick Lockwood 5d8d83ef2f Fix off-by-one errors in format range 2025-09-22 19:13:35 -07:00
Nick Lockwood 04743b591e Clean up applyArguments code 2025-09-22 19:13:35 -07:00
Nick Lockwood d802c75749 Generalize list formatter and dropped the Oxford comma 2025-09-22 19:13:35 -07:00
Cal Stephens d9b43df8b0 Update redundantPublic rule to apply to private types (#2167) 2025-09-22 19:13:35 -07:00
Cal Stephens 1e2aac8da6 Add support for Swift 6.2 raw identifiers (#2166) 2025-09-22 19:13:35 -07:00
paul.s 822d84a84a Fix issue where redundantPublic broke @_spi annotated members (#2164) 2025-09-22 19:13:35 -07:00
Cal Stephens d4a15aff9f Add organizeDeclarations threshold options to organize types without adding marks (#2162) 2025-09-22 19:13:35 -07:00
Cal Stephens 56312dc423 Don't add access control marks in protocol bodies (#2159) 2025-09-22 19:13:35 -07:00
Cal Stephens b1a5c1ffa9 Update organizeDeclarations to treat associatedtype declarations as nested types, like typealias declarations. (#2158) 2025-09-22 19:13:35 -07:00
Nick Lockwood 2f9d0dd3c1 Add missing unowned cases for modifier order 2025-09-22 19:13:35 -07:00
Cal Stephens a711ad3438 Improve parsing of nested markdown code blocks (#2157) 2025-09-22 19:13:35 -07:00