Skip to content

Commit f27c0e8

Browse files
committed
Merge pull request swiftlang#615 from natikgadzhi/feature/generate-pipeline/rule-documentation
Generate rule docs automatically
1 parent 27bfeca commit f27c0e8

File tree

6 files changed

+631
-1
lines changed

6 files changed

+631
-1
lines changed

Documentation/Configuration.md

+12
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@ An example `.swift-format` configuration file is shown below.
103103
}
104104
```
105105

106+
## Linter and Formatter Rules Configuration
107+
108+
In the `rules` block of `.swift-format`, you can specify which rules to apply
109+
when linting and formatting your project. Read the
110+
[rules documentation](Documentation/RuleDocumentation.md) to see the list of all
111+
supported linter and formatter rules, and their overview.
112+
113+
You can also run this command to see the list of rules in the default
114+
`swift-format` configuration:
115+
116+
$ swift-format dump-configuration
117+
106118
## API Configuration
107119

108120
The `SwiftConfiguration` module contains a `Configuration` type that is

0 commit comments

Comments
 (0)