-
Notifications
You must be signed in to change notification settings - Fork 147
Enable parameter and return value validation by default #882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0f9c922
1f82970
d7cc582
8f69c7a
c4cc568
5179166
c8411d6
fb2a141
5734026
5950f9f
a3b3412
f9545b3
dcf2f40
d870fbe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,6 @@ public struct CoverageDataEntry: CustomStringConvertible, Codable { | |
} | ||
|
||
/// Outputs a short table summarizing the coverage statistics for a list of data entries. | ||
/// - Parameter coverageInfo: An array of entries to summarize. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because it's an experimental API that result in warnings about not having all of its parameters documented. |
||
public static func generateSummary( | ||
of coverageInfo: [CoverageDataEntry], | ||
shouldGenerateBrief: Bool, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
This source file is part of the Swift.org open source project | ||
|
||
Copyright (c) 2021 Apple Inc. and the Swift project authors | ||
Copyright (c) 2021-2024 Apple Inc. and the Swift project authors | ||
Licensed under Apache License v2.0 with Runtime Library Exception | ||
|
||
See https://swift.org/LICENSE.txt for license information | ||
|
@@ -23,8 +23,6 @@ import Foundation | |
- ``displayName`` | ||
- ``identifier`` | ||
- ``version`` | ||
- ``defaultCodeListingLanguage`` | ||
- ``defaultAvailability`` | ||
Comment on lines
-26
to
-27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why removing these symbols from here? There are also part of the Documentation Bundle. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are not. These links don't resolve to anything. |
||
*/ | ||
public struct DocumentationBundle { | ||
public enum PropertyListError: DescribedError { | ||
|
@@ -81,13 +79,13 @@ public struct DocumentationBundle { | |
/// Miscellaneous resources of the bundle. | ||
public let miscResourceURLs: [URL] | ||
|
||
/// Custom HTML file to use as the header for rendered output. | ||
/// A custom HTML file to use as the header for rendered output. | ||
public let customHeader: URL? | ||
|
||
/// Custom HTML file to use as the footer for rendered output. | ||
/// A custom HTML file to use as the footer for rendered output. | ||
public let customFooter: URL? | ||
|
||
/// JSON settings file used to theme renderer output. | ||
/// A custom JSON settings file used to theme renderer output. | ||
public let themeSettings: URL? | ||
|
||
/** | ||
|
@@ -106,8 +104,9 @@ public struct DocumentationBundle { | |
/// - symbolGraphURLs: Symbol Graph JSON files for the modules documented by the bundle. | ||
/// - markupURLs: DocC Markup files of the bundle. | ||
/// - miscResourceURLs: Miscellaneous resources of the bundle. | ||
/// - customHeader: Custom HTML file to use as the header for rendered output. | ||
/// - customFooter: Custom HTML file to use as the footer for rendered output. | ||
/// - customHeader: A custom HTML file to use as the header for rendered output. | ||
/// - customFooter: A custom HTML file to use as the footer for rendered output. | ||
/// - themeSettings: A custom JSON settings file used to theme renderer output. | ||
public init( | ||
info: Info, | ||
baseURL: URL = URL(string: "/")!, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a
Returns:
doc comment for this function also?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal of this PR isn't to extensively document all the parameters and return values, only to fix the warnings about mis-documented parameters or return values.