Commit Graph

2646 Commits

Author SHA1 Message Date
Nick Lockwood ad4b6b92d9 Update for 0.58.4 release 0.58.4 2025-10-16 07:37:00 +01:00
Nick Lockwood a4679ce1e4 Fix trailingComma rule with typed throws 2025-10-16 07:16:56 +01:00
Nick Lockwood 19bc687945 Preserve failure messages in noGuardInTests rule 2025-10-16 07:16:56 +01:00
Nick Lockwood 31aee81c3a Don't insert throws in noGuardInTests if not needed 2025-10-16 07:16:56 +01:00
Nick Lockwood 1ee06e858d Fix unusedArguments false positive with macros 2025-10-16 07:16:56 +01:00
Nick Lockwood 62ac33bc0a Add Token.isMacro helper 2025-10-16 07:16:56 +01:00
Nick Lockwood 7768450d8e Clean up noGuardInTestsTests 2025-10-16 07:16:56 +01:00
Nick Lockwood e223f7d6d6 Always strip "default" option from help description 2025-10-16 07:16:56 +01:00
Nick Lockwood 7a0921d301 Filter redundant default arguments from options help 2025-10-16 07:16:56 +01:00
Nick Lockwood 49d0c6ecf3 Update README.md versions in prepare_release.sh 2025-10-16 07:16:56 +01:00
Nick Lockwood 122cebe438 Check for existing placeholder in CHANGELOG.md before adding another 2025-10-16 07:16:56 +01:00
Cal Stephens 5b47290add Fix issue where opaqueGenericParameters rule could cause 'some' types cannot be used in constraints on existential types build error (#2242) 2025-10-16 07:16:56 +01:00
Nick Lockwood 96e099573b Ensure white space in multiline strings is not altered by formatting 2025-10-16 07:16:56 +01:00
Nick Lockwood de413fec1d Update for 0.58.3 release 0.58.3 2025-10-04 14:33:11 +01:00
Nick Lockwood a605b2854c Fix unexpected wrapping of closing paren 2025-10-04 14:26:21 +01:00
Nick Lockwood aeb0c07511 Fix parsing multiline string delimiter followed by white space 2025-10-04 14:26:21 +01:00
Nick Lockwood e679a471d7 Fix redundantInit handling of Foo.self as Bar.Type expressions 2025-10-04 11:38:48 +01:00
Nick Lockwood fa65ed6e64 Improve acronyms rule 2025-10-04 11:10:28 +01:00
Nick Lockwood 60cd0f8ab6 Fix bug with parsing empty property accessors 2025-10-04 09:25:55 +01:00
Nick Lockwood a7f33d627a Fix parens orphaned by redundantInit rule 2025-10-04 08:46:46 +01:00
Nick Lockwood bc97082d59 Refactor spaceAroundParens rule 2025-10-04 08:46:46 +01:00
Nick Lockwood 3e4dc4e575 Fix of in fixed-size arrays being mistaken for an identifier 2025-10-04 08:46:46 +01:00
Cal Stephens d453bb82d3 Fix release artifact jobs 2025-10-04 08:46:46 +01:00
Nick Lockwood 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01:00
Nick Lockwood 83e5f6aa58 Add unknown-rules option 2025-10-04 08:46:46 +01:00
Cal Stephens 34f16aaed2 Fix Cocoapods build error 2025-09-30 08:22:28 -07:00
Cal Stephens 0fa1f65333 Prepare for 0.58.2 release 0.58.2 2025-09-29 08:36:54 -07:00
Cal Stephens a3dd82ca0d Fix issue where modifiersOrder rule confused async effect for async modifier (#2237) 2025-09-29 08:28:36 -07:00
dependabot[bot] 1fd4bee35a Bump the github-actions group with 2 updates (#2236) 2025-09-29 08:28:36 -07:00
Stefan Herold fc3af3ceb4 Update README to reflect actual swift version precedence behavior (#2234) 2025-09-29 08:28:36 -07:00
Nick Lockwood aa41dc7544 Fix bug with test helper functions mistaken for tests 2025-09-29 08:28:36 -07:00
Cal Stephens ffd1920886 Simplify windows release job 2025-09-29 08:28:36 -07:00
Cal Stephens 08c51ce965 Update redundantInit rule to apply to function calls with single trailing closure argument (#2232) 2025-09-29 08:28:36 -07:00
dependabot[bot] ce257ccdcb Bump the github-actions group with 2 updates (#2212)
Bumps the github-actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

Updates `actions/download-artifact` from 4 to 5
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-29 08:28:36 -07:00
Cal Stephens ccd88da328 Prepare for 0.58.1 release 0.58.1 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 ee0c096846 Fix Windows release build 2025-09-24 08:43:58 -07:00
Cal Stephens 599dd01c5f Prepare for 0.58.0 release 0.58.0 2025-09-22 19:13:36 -07:00
Cal Stephens b8a00c39a4 Add documentation for filtered config file sections 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
dependabot[bot] 3e29940b70 Bump the github-actions group with 2 updates (#2212)
Bumps the github-actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

Updates `actions/download-artifact` from 4 to 5
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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