Skip to content

Commit 2270836

Browse files
Add missing periods to doc comment sentences for SourceKitLSPOptions
1 parent 9b07134 commit 2270836

File tree

3 files changed

+61
-61
lines changed

3 files changed

+61
-61
lines changed

Documentation/Configuration File.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,37 @@ The structure of the file is currently not guaranteed to be stable. Options may
1414
## Structure
1515

1616
`config.json` is a JSON file with the following structure. All keys are optional and unknown keys are ignored.
17-
- `swiftPM`: Options for SwiftPM workspaces
17+
- `swiftPM`: Options for SwiftPM workspaces.
1818
- `configuration: "debug"|"release"`: The configuration to build the project for during background indexing
1919
and the configuration whose build folder should be used for Swift
2020
modules if background indexing is disabled.
2121
Equivalent to SwiftPM's `--configuration` option.
2222
- `scratchPath: string`: Build artifacts directory path. If nil, the build system may choose a default value.
2323
This path can be specified as a relative path, which will be interpreted relative to the project root.
2424
Equivalent to SwiftPM's `--scratch-path` option.
25-
- `swiftSDKsDirectory: string`: Equivalent to SwiftPM's `--swift-sdks-path` option
26-
- `swiftSDK: string`: Equivalent to SwiftPM's `--swift-sdk` option
27-
- `triple: string`: Equivalent to SwiftPM's `--triple` option
25+
- `swiftSDKsDirectory: string`: Equivalent to SwiftPM's `--swift-sdks-path` option.
26+
- `swiftSDK: string`: Equivalent to SwiftPM's `--swift-sdk` option.
27+
- `triple: string`: Equivalent to SwiftPM's `--triple` option.
2828
- `cCompilerFlags: string[]`: Extra arguments passed to the compiler for C files. Equivalent to SwiftPM's `-Xcc` option.
2929
- `cxxCompilerFlags: string[]`: Extra arguments passed to the compiler for C++ files. Equivalent to SwiftPM's `-Xcxx` option.
3030
- `swiftCompilerFlags: string[]`: Extra arguments passed to the compiler for Swift files. Equivalent to SwiftPM's `-Xswiftc` option.
3131
- `linkerFlags: string[]`: Extra arguments passed to the linker. Equivalent to SwiftPM's `-Xlinker` option.
32-
- `disableSandbox: boolean`: Disables running subprocesses from SwiftPM in a sandbox. Equivalent to SwiftPM's `--disable-sandbox` option
32+
- `disableSandbox: boolean`: Disables running subprocesses from SwiftPM in a sandbox. Equivalent to SwiftPM's `--disable-sandbox` option.
3333
Useful when running `sourcekit-lsp` in a sandbox because nested sandboxes are not supported.
34-
- `compilationDatabase`: Dictionary with the following keys, defining options for workspaces with a compilation database
34+
- `compilationDatabase`: Dictionary with the following keys, defining options for workspaces with a compilation database.
3535
- `searchPaths: string[]`: Additional paths to search for a compilation database, relative to a workspace root.
36-
- `fallbackBuildSystem`: Dictionary with the following keys, defining options for files that aren't managed by any build system
37-
- `cCompilerFlags: string[]`: Extra arguments passed to the compiler for C files
38-
- `cxxCompilerFlags: string[]`: Extra arguments passed to the compiler for C++ files
39-
- `swiftCompilerFlags: string[]`: Extra arguments passed to the compiler for Swift files
36+
- `fallbackBuildSystem`: Dictionary with the following keys, defining options for files that aren't managed by any build system.
37+
- `cCompilerFlags: string[]`: Extra arguments passed to the compiler for C files.
38+
- `cxxCompilerFlags: string[]`: Extra arguments passed to the compiler for C++ files.
39+
- `swiftCompilerFlags: string[]`: Extra arguments passed to the compiler for Swift files.
4040
- `sdk: string`: The SDK to use for fallback arguments. Default is to infer the SDK using `xcrun`.
4141
- `buildSettingsTimeout: integer`: Number of milliseconds to wait for build settings from the build system before using fallback build settings.
42-
- `clangdOptions: string[]`: Extra command line arguments passed to `clangd` when launching it
43-
- `index`: Options related to indexing
42+
- `clangdOptions: string[]`: Extra command line arguments passed to `clangd` when launching it.
43+
- `index`: Options related to indexing.
4444
- `indexStorePath: string`: Directory in which a separate compilation stores the index store. By default, inferred from the build system.
4545
- `indexDatabasePath: string`: Directory in which the indexstore-db should be stored. By default, inferred from the build system.
4646
- `indexPrefixMap: [string: string]`: Path remappings for remapping index data for local use.
47-
- `maxCoresPercentageToUseForBackgroundIndexing: number`: A hint indicating how many cores background indexing should use at most (value between 0 and 1). Background indexing is not required to honor this setting
47+
- `maxCoresPercentageToUseForBackgroundIndexing: number`: A hint indicating how many cores background indexing should use at most (value between 0 and 1). Background indexing is not required to honor this setting.
4848
- `updateIndexStoreTimeout: integer`: Number of seconds to wait for an update index store task to finish before killing it.
4949
- `logging`: Options related to logging, changing SourceKit-LSP’s logging behavior on non-Apple platforms.
5050
On Apple platforms, logging is done through the [system log](Diagnose%20Bundle.md#Enable%20Extended%20Logging).
@@ -58,9 +58,9 @@ The structure of the file is currently not guaranteed to be stable. Options may
5858
- `generatedFilesPath: string`: Directory in which generated interfaces and macro expansions should be stored.
5959
- `backgroundIndexing: boolean`: Whether background indexing is enabled.
6060
- `backgroundPreparationMode: string`: Determines how background indexing should prepare a target. Possible values are:
61-
- `build`: Build a target to prepare it
62-
- `noLazy`: Prepare a target without generating object files but do not do lazy type checking and function body skipping
63-
- `enabled`: Prepare a target without generating object files and the like
61+
- `build`: Build a target to prepare it.
62+
- `noLazy`: Prepare a target without generating object files but do not do lazy type checking and function body skipping.
63+
- `enabled`: Prepare a target without generating object files and the like.
6464
- `cancelTextDocumentRequestsOnEditAndClose: boolean`: Whether sending a `textDocument/didChange` or `textDocument/didClose` notification for a document should cancel
6565
all pending requests for that document.
6666
- `experimentalFeatures: ("on-type-formatting")[]`: Experimental features that are enabled.

Sources/SKOptions/SourceKitLSPOptions.swift

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
4444
/// Equivalent to SwiftPM's `--scratch-path` option.
4545
public var scratchPath: String?
4646

47-
/// Equivalent to SwiftPM's `--swift-sdks-path` option
47+
/// Equivalent to SwiftPM's `--swift-sdks-path` option.
4848
public var swiftSDKsDirectory: String?
4949

50-
/// Equivalent to SwiftPM's `--swift-sdk` option
50+
/// Equivalent to SwiftPM's `--swift-sdk` option.
5151
public var swiftSDK: String?
5252

53-
/// Equivalent to SwiftPM's `--triple` option
53+
/// Equivalent to SwiftPM's `--triple` option.
5454
public var triple: String?
5555

5656
/// Extra arguments passed to the compiler for C files. Equivalent to SwiftPM's `-Xcc` option.
@@ -65,7 +65,7 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
6565
/// Extra arguments passed to the linker. Equivalent to SwiftPM's `-Xlinker` option.
6666
public var linkerFlags: [String]?
6767

68-
/// Disables running subprocesses from SwiftPM in a sandbox. Equivalent to SwiftPM's `--disable-sandbox` option
68+
/// Disables running subprocesses from SwiftPM in a sandbox. Equivalent to SwiftPM's `--disable-sandbox` option.
6969
/// Useful when running `sourcekit-lsp` in a sandbox because nested sandboxes are not supported.
7070
public var disableSandbox: Bool?
7171

@@ -126,11 +126,11 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
126126
}
127127

128128
public struct FallbackBuildSystemOptions: Sendable, Codable, Equatable {
129-
/// Extra arguments passed to the compiler for C files
129+
/// Extra arguments passed to the compiler for C files.
130130
public var cCompilerFlags: [String]?
131-
/// Extra arguments passed to the compiler for C++ files
131+
/// Extra arguments passed to the compiler for C++ files.
132132
public var cxxCompilerFlags: [String]?
133-
/// Extra arguments passed to the compiler for Swift files
133+
/// Extra arguments passed to the compiler for Swift files.
134134
public var swiftCompilerFlags: [String]?
135135
/// The SDK to use for fallback arguments. Default is to infer the SDK using `xcrun`.
136136
public var sdk: String?
@@ -167,7 +167,7 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
167167
public var indexDatabasePath: String?
168168
/// Path remappings for remapping index data for local use.
169169
public var indexPrefixMap: [String: String]?
170-
/// A hint indicating how many cores background indexing should use at most (value between 0 and 1). Background indexing is not required to honor this setting
170+
/// A hint indicating how many cores background indexing should use at most (value between 0 and 1). Background indexing is not required to honor this setting.
171171
public var maxCoresPercentageToUseForBackgroundIndexing: Double?
172172
/// Number of seconds to wait for an update index store task to finish before killing it.
173173
public var updateIndexStoreTimeout: Int?
@@ -243,7 +243,7 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
243243
}
244244

245245
public enum BackgroundPreparationMode: String {
246-
/// Build a target to prepare it
246+
/// Build a target to prepare it.
247247
case build
248248

249249
/// Prepare a target without generating object files but do not do lazy type checking.
@@ -255,21 +255,21 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
255255
case enabled
256256
}
257257

258-
/// Options for SwiftPM workspaces
258+
/// Options for SwiftPM workspaces.
259259
private var swiftPM: SwiftPMOptions?
260260
public var swiftPMOrDefault: SwiftPMOptions {
261261
get { swiftPM ?? .init() }
262262
set { swiftPM = newValue }
263263
}
264264

265-
/// Dictionary with the following keys, defining options for workspaces with a compilation database
265+
/// Dictionary with the following keys, defining options for workspaces with a compilation database.
266266
private var compilationDatabase: CompilationDatabaseOptions?
267267
public var compilationDatabaseOrDefault: CompilationDatabaseOptions {
268268
get { compilationDatabase ?? .init() }
269269
set { compilationDatabase = newValue }
270270
}
271271

272-
/// Dictionary with the following keys, defining options for files that aren't managed by any build system
272+
/// Dictionary with the following keys, defining options for files that aren't managed by any build system.
273273
private var fallbackBuildSystem: FallbackBuildSystemOptions?
274274
public var fallbackBuildSystemOrDefault: FallbackBuildSystemOptions {
275275
get { fallbackBuildSystem ?? .init() }
@@ -283,10 +283,10 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
283283
get { .milliseconds(buildSettingsTimeout ?? 500) }
284284
}
285285

286-
/// Extra command line arguments passed to `clangd` when launching it
286+
/// Extra command line arguments passed to `clangd` when launching it.
287287
public var clangdOptions: [String]?
288288

289-
/// Options related to indexing
289+
/// Options related to indexing.
290290
private var index: IndexOptions?
291291
public var indexOrDefault: IndexOptions {
292292
get { index ?? .init() }
@@ -316,9 +316,9 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
316316
}
317317

318318
/// Determines how background indexing should prepare a target. Possible values are:
319-
/// - `build`: Build a target to prepare it
320-
/// - `noLazy`: Prepare a target without generating object files but do not do lazy type checking and function body skipping
321-
/// - `enabled`: Prepare a target without generating object files and the like
319+
/// - `build`: Build a target to prepare it.
320+
/// - `noLazy`: Prepare a target without generating object files but do not do lazy type checking and function body skipping.
321+
/// - `enabled`: Prepare a target without generating object files and the like.
322322
public var backgroundPreparationMode: String?
323323

324324
public var backgroundPreparationModeOrDefault: BackgroundPreparationMode {

0 commit comments

Comments
 (0)