Skip to content

Releases: swiftlang/swift-format

603.0.0-prerelease-2025-09-15

16 Sep 00:11
Compare
Choose a tag to compare
Pre-release
Change version to 603.0.0-prerelease-2025-09-15

602.0.0

16 Sep 00:09
Compare
Choose a tag to compare

What's Changed

  • Add pre-commit hook for linting by @nikalra in #929
  • Add dump-effective-configuration subcommand by @andre-richter in #923
  • Improve the DontRepeatTypeInStaticProperties rule to better align with its original intent by @TTOzzi in #918
  • Improve the formatting logic of OmitExplicitReturns rule by @TTOzzi in #935
  • Fix documentation typos by @alexandersandberg in #937
  • Fix rejected assumeFilename when path argument is '-' by @andre-richter in #938
  • Skip flaky performance test on Windows by @weliveindetail in #940
  • Ignore backticks in documentation abstracts by @natecook1000 in #936
  • Modify PrettyPrinter to output diagnostics using shortened relative paths by @TTOzzi in #934
  • Do not measure perform performance in CI by @ahoppen in #941
  • Make the error message for an invalid version more user-friendly by @TTOzzi in #942
  • Convert UseLetInEveryBoundCaseVariable to be a formatter by @natecook1000 in #926
  • Clean up symlink following and recursively follow symlink chains. by @allevato in #947
  • Run Windows tests inside a Docker container by @ahoppen in #951
  • Make ValidateDocumentationComments allow Throws doc comments for rethrows functions by @TTOzzi in #948
  • Add .DS_Store and /.vscode to .gitignore by @ahoppen in #953
  • Run the publish release workflow inside a Docker container on Windows by @ahoppen in #952
  • Support file-level ignore directive for specific rules by @TTOzzi in #950
  • Enable the license header check by @ahoppen in #956
  • Bump the deployment target to macOS 13 🚀 by @TTOzzi in #957
  • Make the creation of a prerelease on GitHub a separate job in the publish release workflow by @ahoppen in #958
  • Increase swift-tools-version to 5.9 by @ahoppen in #961
  • Import Android for isatty by @marcprux in #963
  • Unify whitespace handling in linter and formatter by @TTOzzi in #962
  • Remove severity by @bkolb in #943
  • Improve lint performance by optimizing Swift Regex usage by @TTOzzi in #968
  • Fix NoAccessLevelOnExtensionDeclaration to update members inside #if blocks. by @allevato in #969
  • Update for swift-syntax AttributeSyntax.Arguments changes by @rintaro in #971
  • Remove value generics feature by @Azoy in #974
  • Correctly format unsafe expressions. by @allevato in #973
  • Add concurrency control to cancel in-progress PR workflows by @TTOzzi in #976
  • Fix type mismatch error in reflowMultilineStringLiterals by @dongdong867 in #979
  • [6.2] Change code owners for 6.2 to release managers by @ahoppen in #985
  • Change default release version for GitHub action releases to 603.0.0 by @ahoppen in #984
  • [6.2] Change default release version for GitHub action releases to 602.0.0 by @ahoppen in #983
  • Add GitHub action that automatically creates a PR to merge main into a release branch by @ahoppen in #986
  • Change swift-syntax dependency to release/6.2 by @ahoppen in #992
  • Merge main into release/6.2 by @ahoppen in #990
  • Use workflow in github-workflows to create auto merge PR by @ahoppen in #989
  • Grant write permissions for content an pull requests to auto merge GitHub action by @ahoppen in #998
  • Make linter emit warnings instead of errors by default by @ahoppen in #999
  • Merge main into release/6.2 by @ahoppen in #1000
  • Missing dependency by @ahoppen in #1004
  • Trigger PR testing when PR opened by GitHub Actions is marked as ready for review by @ahoppen in #1006
  • Merge main into release/6.2 by @github-actions[bot] in #1008
  • OrderedImports should create separate group for @_implementationOnly … by @ebgraham in #1013
  • Allow comments in .swift-format by @antigluten in #1014
  • [CI] Remove skip for ready for review by @bnbarham in #1017
  • Update the allowed user for publishing releases to bnbarham by @bnbarham in #1019
  • Remove Alex Hoppen as code owner by @ahoppen in #1020
  • Fix unsafe expressions in NoAssignmentInExpressions by @kkebo in #1021
  • Merge main into release/6.2 by @github-actions[bot] in #1022
  • Add extra code owners to help with reviews by @bnbarham in #1023
  • Add support for BorrowExprSyntax by @TTOzzi in #1031
  • Merge main into release/6.2 by @github-actions[bot] in #1034
  • Enable some nice-to-have code formatting rules by @AnthonyLatsis in #1040
  • Fix line breaking for attributes in inheritance clauses by grouping them with their type by @TTOzzi in #1039
  • Fix handling of raw multiline string newline-suppressing continuations. by @allevato in #1041
  • Merge main into release/6.2 by @github-actions[bot] in #1042
  • Update generated code by @TTOzzi in #1046
  • Merge main into release/6.2 by @github-actions[bot] in #1049
  • [6.2] Update version to 6.2.0 by @bnbarham in #1053
  • [6.2] Add support for InlineArray type sugar by @TTOzzi in #1055

New Contributors

Full Changelog: 601.0.0...602.0.0

603.0.0-prerelease-2025-08-11

11 Aug 19:21
Compare
Choose a tag to compare
Pre-release
Change version to 603.0.0-prerelease-2025-08-11

602.0.0-prerelease-2025-08-11

11 Aug 18:31
Compare
Choose a tag to compare
Pre-release
Change version to 602.0.0-prerelease-2025-08-11

602.0.0-prerelease-2025-06-26

26 Jun 18:03
Compare
Choose a tag to compare
Pre-release
Change version to 602.0.0-prerelease-2025-06-26

602.0.0-prerelease-2025-05-29

29 May 05:22
Compare
Choose a tag to compare
Pre-release
Change version to 602.0.0-prerelease-2025-05-29

602.0.0-prerelease-2025-04-16

16 Apr 20:43
Compare
Choose a tag to compare
Pre-release
Change version to 602.0.0-prerelease-2025-04-16

602.0.0-prerelease-2025-04-10

10 Apr 17:02
Compare
Choose a tag to compare
Pre-release
Change version to 602.0.0-prerelease-2025-04-10

601.0.0

28 Mar 23:27
Compare
Choose a tag to compare

What's Changed

  • Split the PrettyPrint class into two pieces. by @shawnhyam in #759
  • Add PrettyPrintBuffer.swift to CMakeLists.txt by @ahoppen in #763
  • Add lint warning for retroactive conformances by @harlanhaskins in #765
  • Add a break after do when it has typed throws by @bnbarham in #769
  • Add checks for test functions marked with @test attribute in relevant Rules by @hamtiko in #767
  • Improve formatting of macro decls with attributes. by @shawnhyam in #775
  • Fix missing break in nested IfConfig decls. Fixes #779. by @shawnhyam in #780
  • Exclude CMakeLists.txt in SwiftPM targets by @dduan in #785
  • Add option to customize number of spaces leading // comments by @dduan in #776
  • Add option to add a newline between 2 adjacent attributes by @dduan in #784
  • Upgrade the DontRepeatTypeInStaticProperties rule. by @shawnhyam in #777
  • Make rules work even inside of nested data structures. Fixes #778. by @shawnhyam in #789
  • Modify assertLint test helper to run via pipeline only. by @shawnhyam in #788
  • Remove closure capture equal sign spacing. by @MAJKFL in #790
  • Add support for re-indenting block comments. by @shawnhyam in #791
  • Fix build warnings by @ahoppen in #796
  • Support assume-filename option to find the configuration file when reading from stdin. by @shawnhyam in #794
  • Wrap multiline string literals to line length. by @thunderseethe in #792
  • Add NoEmptyLinesOpeningClosingBraces rule by @mateusrodriguesxyz in #797
  • Fix to arrange attributeList for attributes starting with ifConfig by @TTOzzi in #800
  • Fix extraction of trailing comments only when necessary during afterToken addition by @TTOzzi in #798
  • Fix infinite loop on Windows caused by checking path against "/". by @shawnhyam in #802
  • Fix link to configuration in rule documentation file by @mattia in #805
  • [CI] GitHub Actions support for Linux platform by @shahmishal in #820
  • Use human-readable names in pull_request action and consistently use 2 spaces for indentation by @ahoppen in #823
  • Create a GitHub action to create a release by @ahoppen in #821
  • Fix build warnings by @ahoppen in #822
  • Address two soundness issues by @ahoppen in #825
  • [CI] Add soundness check by @shahmishal in #824
  • Allow the Publish Release action to create a tag and release by @ahoppen in #828
  • Move tests in swift-formatTests to SwiftFormatTests by @ahoppen in #827
  • Skip files and directories starting with . on Windows by @ahoppen in #829
  • Reformat swift-format and enforce it on PRs. by @allevato in #830
  • Make build-script-helper.py pass flake8 linting by @ahoppen in #831
  • Fix broken links in PrettyPrinter.md by @plemarquand in #840
  • Support building swift-format using SwiftPM for toolchain builds on Windows by @ahoppen in #841
  • Update README.md to make it platform agnostic by @0xTim in #839
  • Update YAML files to pass yamllint by @ahoppen in #832
  • Fix infinite looping if swift-format is run in a directory that doesn't contain a .swift-format file by @ahoppen in #845
  • Add @ahoppen and @bnbarham as code owners for CI directories by @ahoppen in #846
  • Fix infinite searching for .swift-format file on Linux by @ahoppen in #848
  • Support building only tests using SwiftPM by @ahoppen in #851
  • Allow building against a single dynamic swift-syntax library 🚥#851 by @ahoppen in #852
  • Remove duplicated dependencies in Package.swift by @ahoppen in #853
  • Skip missing configuration file tests on Windows for Swift < 6.0.2 by @ahoppen in #857
  • Make tests pass using Swift 5.9 and Swift 5.10 on Windows by @ahoppen in #858
  • Fix relative symlinks when using --follow-symlinks by @kkebo in #837
  • Fix tests when building swift-format using Swift 6.0.2 by @ahoppen in #869
  • Prepare for integer generics with new generic argument node by @Azoy in #866
  • feat: add pre-commit hooks by @danthorpe in #712
  • Add --enable-experimental-feature to enable those features in the parser. by @allevato in #876
  • Add a configuration to preserve whitespace on lines containing only whitespace by @TTOzzi in #804
  • PrettyPrinter reports wrong line LineNumbersTests by @bkolb in #883
  • Use dockerless Windows jobs by @ahoppen in #889
  • [6.1] Update related dependencies to release/6.1 by @ahoppen in #888
  • Run Windows tests before tagging a release by @ahoppen in #863
  • Bugfixes for the publish release workflow by @ahoppen in #890
  • [6.1] Fix the Publish Release workflow by @ahoppen in #891
  • Fix support for FileIterator when working directory is / by @macshome in #865
  • Merge main into release/6.1 by @ahoppen in #893
  • PathCchIsRoot Updated isRoot extension. by @macshome in #892
  • Fix comment length computation by @rauhul in #895
  • Fix build warning in tests by @ahoppen in #896
  • Merge main into release/6.1 by @ahoppen in #898
  • Document default config values by @rauhul in #899
  • Add Swift package index yml file by @kimdv in #900
  • Bump to Swift 5.8 for tool version by @kimdv in #903
  • Merge main into release/6.1 by @ahoppen in #904
  • PrettyPrinterPerformance Optimized the PrettyPrinter for #894 by @macshome in #901
  • Revert "PrettyPrinterPerformance Optimized the PrettyPrinter for #894" by @bnbarham in #906
  • Fix NoEmptyLinesOpeningClosingBraces to respect consecutive newlines when a function starts or ends with a comment by @TTOzzi in #910
  • Merge main into release/6.1 by @ahoppen in #911
  • Optimize pretty printing performance by @bnbarham in #913
  • [Perf][WhitespaceLinter] Use hand crafted "is whitespace" function by @rintaro in #915
  • Gradually deprecate running swift-format without input paths; require '-' for stdin in the future by @TTOzzi in #914
  • Document missing configuration by @DimaMishchenko in #919
  • Merge main into release/6.1 by @ahoppen in #921
  • [6.1] Run Windows tests inside a Docker container by @ahoppen in #954

New Contributors

Read more

601.0.0-prerelease-2025-03-28

28 Mar 21:54
Compare
Choose a tag to compare
Pre-release
Change version to 601.0.0-prerelease-2025-03-28