You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation
----------
All public declarations should have documentation comments, but a number
did not. The linter configuration previously accepted these files but
now rejects them; the linter depends on the upstream `swift` container
image, which is updated from time to time.
Modifications
-------------
Add documentation comments for public declarations identified by the
format linter.
Result
------
All public declarations are documented.
Test Plan
---------
The linter passes locally.
No functional change, all unit tests continue to pass.
Copy file name to clipboardExpand all lines: Sources/ContainerRegistry/ScratchImage.swift
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,10 @@ public struct ScratchImage {
27
27
varmanifestDescriptor:ContentDescriptor
28
28
varindex:ImageIndex
29
29
30
+
/// Construct a `ScratchImage` structure, representing a scratch container image with no contents.
31
+
/// - Parameters:
32
+
/// - architecture: The CPU architecture encoded in the scratch image layer. The scratch layer is empty, but this value should match any layers stacked on top of it.
33
+
/// - os: The operating system name encoded in the scratch image layer. The scratch layer is empty, but this value should match any layers stacked on top of it.
Copy file name to clipboardExpand all lines: Sources/Tar/tar.swift
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -242,6 +242,22 @@ public struct TarHeader {
242
242
/// Filename prefix - prepended to name
243
243
varprefix:String=""
244
244
245
+
/// Construct a Tar archive header block
246
+
/// - Parameters:
247
+
/// - name: File name
248
+
/// - mode: Access mode
249
+
/// - uid: File owner's user ID
250
+
/// - gid: File's group ID
251
+
/// - size: File size in octets
252
+
/// - mtime: Last modification time
253
+
/// - typeflag: Type of file represented by this header
254
+
/// - linkname: Reference to a previous file in the archive. Only valid when `typeflag` is `.LNKTYPE`. This is an internal link in the archive file, _not_ a symbolic link.
255
+
/// - uname: File owner's user name
256
+
/// - gname: File's group name
257
+
/// - devmajor: Device major number. Only valid when `typeflag` is `.BLKTYPE` or `.CHRTYPE`.
258
+
/// - devminor: Device minor number. Only valid when `typeflag` is `.BLKTYPE` or `.CHRTYPE`.
259
+
/// - prefix: Optional filename prefix, allowing file names longer than 100 octets to be stored.
260
+
/// - Throws: If the value of any field cannot be represented in a Tar header.
0 commit comments