# Swift Format

**URL:** https://forums.swift.org/c/development/swift-format/49.md?page=1

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

**Page:** 2

---

## [Installation instructions missing from README](https://forums.swift.org/t/installation-instructions-missing-from-readme/41839)

<div class="topic-metadata">

**Author:** [@Jeehut](https://forums.swift.org/u/Jeehut)\
**Replies:** 2\
**Last updated:** [November 7, 2020, 8:05pm UTC](https://forums.swift.org/t/installation-instructions-missing-from-readme/41839 "2020-11-07T20:05:40Z")

</div>

I just decided to test out swift-format in a real project to see if it can replace my current SwiftLint and AnyLint based setup or at least complement it. From what I read in the documentation, it might actually replace …

---

## [Use as part of the CI pipeline & fail on warnings](https://forums.swift.org/t/use-as-part-of-the-ci-pipeline-fail-on-warnings/41843)

<div class="topic-metadata">

**Author:** [@Jeehut](https://forums.swift.org/u/Jeehut)\
**Replies:** 0\
**Last updated:** [November 7, 2020, 8:01pm UTC](https://forums.swift.org/t/use-as-part-of-the-ci-pipeline-fail-on-warnings/41843 "2020-11-07T20:01:15Z")

</div>

I'd like to replace SwiftLint with this tool instead in my projects, we are using SwiftLint as part of our CI pipeline though with the --strict to ensure there are no warnings (or errors) at all as SwiftLint will return …

---

## [Improve usage as build script (breaks undo/redo 100% of the time)](https://forums.swift.org/t/improve-usage-as-build-script-breaks-undo-redo-100-of-the-time/41842)

<div class="topic-metadata">

**Author:** [@Jeehut](https://forums.swift.org/u/Jeehut)\
**Replies:** 0\
**Last updated:** [November 7, 2020, 7:50pm UTC](https://forums.swift.org/t/improve-usage-as-build-script-breaks-undo-redo-100-of-the-time/41842 "2020-11-07T19:50:18Z")

</div>

I'd like to use swift-formats format subcommand as a build script e.g. in an iOS project where I run the build script on every build to automatically reformat the code when needed. But "when needed" is actually the empha…

---

## [Testing swift-format as part of Swift’s CI infrastructure](https://forums.swift.org/t/testing-swift-format-as-part-of-swift-s-ci-infrastructure/30619)

<div class="topic-metadata">

**Author:** [@ahoppen](https://forums.swift.org/u/ahoppen)\
**Replies:** 11\
**Last updated:** [August 25, 2020, 8:14pm UTC](https://forums.swift.org/t/testing-swift-format-as-part-of-swift-s-ci-infrastructure/30619 "2020-08-25T20:14:39Z")

</div>

In the last couple of weeks, we have made changes to the Swift testing infrastructure that allow testing dependent projects of SwiftSyntax without needing to rebuild SwiftSyntax. As a result, it would now be possible to …

---

## [Feature requests](https://forums.swift.org/t/feature-requests/36450)

<div class="topic-metadata">

**Author:** [@Saklad5](https://forums.swift.org/u/Saklad5)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 6:26pm UTC](https://forums.swift.org/t/feature-requests/36450 "2020-05-14T18:26:04Z")

</div>

Where is the appropriate place to request features for swift-format? None of the documentation makes it particularly clear.

---

## [Semantic Version Tag for SwiftPM](https://forums.swift.org/t/semantic-version-tag-for-swiftpm/34976)

<div class="topic-metadata">

**Author:** [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Replies:** 3\
**Last updated:** [April 1, 2020, 10:26pm UTC](https://forums.swift.org/t/semantic-version-tag-for-swiftpm/34976 "2020-04-01T22:26:49Z")

</div>

@allevato, would you or one of your team be willing to tag a semantic version release that works with Swift 5.2? I can use it just fine from the swift-5.2-branch in its current state, but as a branch dependency, consumi…

---

## [Trailing Commas](https://forums.swift.org/t/trailing-commas/34984)

<div class="topic-metadata">

**Author:** [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 3:05pm UTC](https://forums.swift.org/t/trailing-commas/34984 "2020-04-01T15:05:07Z")

</div>

This commit removed the ability to disable trailing commas. Was that intentional? I had been using the following: configuration.rules\["MultiLineTrailingCommas"\] = false

---

## [Why whitespacelinter is so slow?](https://forums.swift.org/t/why-whitespacelinter-is-so-slow/34708)

<div class="topic-metadata">

**Author:** [@alaija](https://forums.swift.org/u/alaija)\
**Replies:** 8\
**Last updated:** [March 31, 2020, 7:48am UTC](https://forums.swift.org/t/why-whitespacelinter-is-so-slow/34708 "2020-03-31T07:48:21Z")

</div>

Hello, I'd like to use swift-format, but faced that swift-format -m lint \<about\_1000\_lines\_fille\> takes about 25s against swiftlint lint \<same\_fille\>, takes 0.25s I run instruments and get that whitespacelinter takes…

---

## [How to match my swift version to swift-format?](https://forums.swift.org/t/how-to-match-my-swift-version-to-swift-format/32932)

<div class="topic-metadata">

**Author:** [@cukr](https://forums.swift.org/u/cukr)\
**Replies:** 2\
**Last updated:** [January 31, 2020, 6:35am UTC](https://forums.swift.org/t/how-to-match-my-swift-version-to-swift-format/32932 "2020-01-31T06:35:07Z")

</div>

Using master branch of swift-format requires you to also use the swift-DEVELOPMENT-SNAPSHOT-2019-09-26-a toolchain. Where can I acquire it? I cannot seem to find it, and trying to guess the url gives me a "Not Found" pag…

---

## [Range formatting](https://forums.swift.org/t/range-formatting/28060)

<div class="topic-metadata">

**Author:** [@denis631](https://forums.swift.org/u/denis631)\
**Replies:** 7\
**Last updated:** [November 24, 2019, 6:19am UTC](https://forums.swift.org/t/range-formatting/28060 "2019-11-24T06:19:34Z")

</div>

Hi @akyrtzi, I'm kinda late to the party, but I'd like to do this task outside of GSoC (open-source is fun, right? :slight\_smile:) AFAIK it's not assigned to anybody and no ticket is assigned at swift-board. Regarding …

---

## [Bugs Encountered](https://forums.swift.org/t/bugs-encountered/30734)

<div class="topic-metadata">

**Author:** [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 3:10am UTC](https://forums.swift.org/t/bugs-encountered/30734 "2019-11-13T03:10:53Z")

</div>

bugs.swift.org seems to be down right now. (Well, I get “Service Temporarily Unavailable” anyway.) So I’m listing these swift-format bugs here instead so that I don’t forget about them and end up with you missing out on…

---

## [SwiftFormat As a Package Dependency](https://forums.swift.org/t/swiftformat-as-a-package-dependency/30531)

<div class="topic-metadata">

**Author:** [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Replies:** 13\
**Last updated:** [November 8, 2019, 2:36am UTC](https://forums.swift.org/t/swiftformat-as-a-package-dependency/30531 "2019-11-08T02:36:13Z")

</div>

I have finally gotten far enough down my to‐do list to investigate using SwiftFormat. The read‐me says: users can depend on swift-format as a Swift Package Manager dependency and import the SwiftFormat module, which…

---

## [Swift-cmark](https://forums.swift.org/t/swift-cmark/27373)

<div class="topic-metadata">

**Author:** [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Replies:** 1\
**Last updated:** [July 29, 2019, 5:41pm UTC](https://forums.swift.org/t/swift-cmark/27373 "2019-07-29T17:41:39Z")

</div>

First, I’ve been happy to see swift-format coming to life again. Thanks Tony (@allevato), ευχαριστώ Αργύριε (@akyrtzi), and thanks to whoever else I should be thanking but don’t know about. I am curious about the long…

---

## [Integrating swift-format with Swift CI infrastructure](https://forums.swift.org/t/integrating-swift-format-with-swift-ci-infrastructure/27243)

<div class="topic-metadata">

**Author:** [@akyrtzi](https://forums.swift.org/u/akyrtzi)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 12:49am UTC](https://forums.swift.org/t/integrating-swift-format-with-swift-ci-infrastructure/27243 "2019-07-24T00:49:13Z")

</div>

Hey @allevato, I'm starting this thread to discuss about what needs to be done to integrate swift-format with the rest of the Swift CI machinery. As a first step @mishal\_shah already added the repo to the list of swift …

---

## [Formatting technology for SourceKit-LSP and other tools](https://forums.swift.org/t/formatting-technology-for-sourcekit-lsp-and-other-tools/26560)

<div class="topic-metadata">

**Author:** [@akyrtzi](https://forums.swift.org/u/akyrtzi)\
**Replies:** 13\
**Last updated:** [July 11, 2019, 5:07am UTC](https://forums.swift.org/t/formatting-technology-for-sourcekit-lsp-and-other-tools/26560 "2019-07-11T05:07:58Z")

</div>

Hey all, Myself, @blangmuir, @Xi\_Ge, and others who spend a lot of their time working on SourceKit/SourceKit-LSP and SwiftSyntax have been thinking about bringing formatting technology to SourceKit-LSP. Formatting is in…

[Previous page](https://forums.swift.org/c/development/swift-format/49.md)
