Skip to content

Commit

Permalink
docs: clarified swiftformat.options #17
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Dec 12, 2022
1 parent afd1819 commit 4812ab7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Unreleased

- docs: clarified `swiftformat.options` #17

# 1.5.1

- fix: on Linux, must also be linked
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ let package = Package(

## Configuration

| Config | Type | Default | Description |
| ----------------------------------------- | ---------- | ---------------------------- | ------------------------------------------------------ |
| `swiftformat.enable` | `Bool` | `true` | Whether SwiftFormat should actually do something. |
| `swiftformat.onlyEnableOnSwiftPMProjects` | `Bool` | `false` | Requires and uses a SwiftFormat as SwiftPM dependency. |
| `swiftformat.onlyEnableWithConfig` | `Bool` | `false` | Only format if config present. |
| `swiftformat.path` | `String` | `/usr/local/bin/swiftformat` | The location of the globally installed SwiftFormat. |
| `swiftformat.options` | `[String]` | `[]` | Additional parameters for SwiftFormat. |
| `swiftformat.configSearchPaths` | `[String]` | `[".swiftformat"]` | Possible paths for SwiftFormat config. |
| Config | Type | Default | Description |
| ----------------------------------------- | ---------- | ---------------------------- | ------------------------------------------------------------------------------------------ |
| `swiftformat.enable` | `Bool` | `true` | Whether SwiftFormat should actually do something. |
| `swiftformat.onlyEnableOnSwiftPMProjects` | `Bool` | `false` | Requires and uses a SwiftFormat as SwiftPM dependency. |
| `swiftformat.onlyEnableWithConfig` | `Bool` | `false` | Only format if config present. |
| `swiftformat.path` | `String` | `/usr/local/bin/swiftformat` | The location of the globally installed SwiftFormat. |
| `swiftformat.options` | `[String]` | `[]` | Additional [options for SwiftFormat](https://github.com/nicklockwood/SwiftFormat#options). |
| `swiftformat.configSearchPaths` | `[String]` | `[".swiftformat"]` | Possible paths for SwiftFormat config. |

## Contributors

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"swiftformat.options": {
"type": "array",
"default": [],
"description": "Additional parameters for SwiftFormat.",
"description": "Additional options for SwiftFormat: https://github.com/nicklockwood/SwiftFormat#options",
"items": {
"type": "string"
}
Expand Down

0 comments on commit 4812ab7

Please sign in to comment.