Skip to content

Commit

Permalink
Merge pull request #900 from kimdv/kimdv/add-swift-package-index
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoppen authored Dec 15, 2024
2 parents 2e588a0 + dba874b commit 239ffcb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This is manifest file for the Swift Package Index for it to
# auto-generate and host DocC documentation.
# For reference see https://swiftpackageindex.com/swiftpackageindex/spimanifest/documentation/spimanifest/commonusecases#Host-DocC-documentation-in-the-Swift-Package-Index.

version: 1
builder:
configs:
- documentation_targets:
# First item in the list is the "landing" (default) target
- SwiftFormat
custom_documentation_parameters: [--experimental-skip-synthesized-symbols]
4 changes: 2 additions & 2 deletions Sources/SwiftFormat/API/SwiftFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class SwiftFormatter {
/// This form of the `format` function automatically folds expressions using the default operator
/// set defined in Swift. If you need more control over this—for example, to provide the correct
/// precedence relationships for custom operators—you must parse and fold the syntax tree
/// manually and then call ``format(syntax:assumingFileURL:to:)``.
/// manually and then call ``format(syntax:source:operatorTable:assumingFileURL:selection:to:)``.
///
/// - Parameters:
/// - url: The URL of the file containing the code to format.
Expand Down Expand Up @@ -81,7 +81,7 @@ public final class SwiftFormatter {
/// This form of the `format` function automatically folds expressions using the default operator
/// set defined in Swift. If you need more control over this—for example, to provide the correct
/// precedence relationships for custom operators—you must parse and fold the syntax tree
/// manually and then call ``format(syntax:assumingFileURL:to:)``.
/// manually and then call ``format(syntax:source:operatorTable:assumingFileURL:selection:to:)``.
///
/// - Parameters:
/// - source: The Swift source code to be formatted.
Expand Down
5 changes: 3 additions & 2 deletions Sources/SwiftFormat/API/SwiftLinter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class SwiftLinter {
/// This form of the `lint` function automatically folds expressions using the default operator
/// set defined in Swift. If you need more control over this—for example, to provide the correct
/// precedence relationships for custom operators—you must parse and fold the syntax tree
/// manually and then call ``lint(syntax:assumingFileURL:)``.
/// manually and then call ``lint(syntax:source:operatorTable:assumingFileURL:)``.
///
/// - Parameters:
/// - url: The URL of the file containing the code to format.
Expand Down Expand Up @@ -76,7 +76,7 @@ public final class SwiftLinter {
/// This form of the `lint` function automatically folds expressions using the default operator
/// set defined in Swift. If you need more control over this—for example, to provide the correct
/// precedence relationships for custom operators—you must parse and fold the syntax tree
/// manually and then call ``lint(syntax:assumingFileURL:)``.
/// manually and then call ``lint(syntax:source:operatorTable:assumingFileURL:)``.
///
/// - Parameters:
/// - source: The Swift source code to be linted.
Expand Down Expand Up @@ -124,6 +124,7 @@ public final class SwiftLinter {
///
/// - Parameters:
/// - syntax: The Swift syntax tree to be converted to be linted.
/// - source: The Swift source code to be linted.
/// - operatorTable: The table that defines the operators and their precedence relationships.
/// This must be the same operator table that was used to fold the expressions in the `syntax`
/// argument.
Expand Down

0 comments on commit 239ffcb

Please sign in to comment.