Skip to content

Releases: swiftlang/swift-format

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

601.0.0-prerelease-2025-03-18

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

601.0.0-prerelease-2025-03-12

12 Mar 17:52
Compare
Choose a tag to compare
Pre-release
Change version to 601.0.0-prerelease-2025-03-12

601.0.0-prerelease-2025-03-05

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

601.0.0-prerelease-2025-02-25

25 Feb 22:57
Compare
Choose a tag to compare
Pre-release
Change version to 601.0.0-prerelease-2025-02-25

601.0.0-prerelease-2025-02-20

20 Feb 00:36
Compare
Choose a tag to compare
Pre-release
Change version to 601.0.0-prerelease-2025-02-20

601.0.0-prerelease-2025-02-12

12 Feb 21:12
Compare
Choose a tag to compare
Pre-release
Change version to 601.0.0-prerelease-2025-02-12