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
If missing_docs is enabled and excludes_inherited_types is true then undocumented and non-inherited public properties/functions don't trigger missing_docs warnings if the type inherits from a protocol. For example:
/// My type.
public struct MyType: Identifiable {
public id: String // No warning expected here because this property comes from `Identifiable`.
// Warning expected here because it's not inherited from `Identifiable`, but warning is not reported.
public name: String
}
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint
Linting Swift files in current working directory
Linting 'Test.swift' (1/1)
Done linting! Found 0 violations, 0 serious in 1 file.
Which Xcode version are you using (check xcodebuild -version)?
Reproduces without Xcode.
Do you have a sample that shows the issue?
Yes:
/// My type.publicstructMyType:Identifiable{public id: String // No warning expected here because this property comes from `Identifiable`.// Warning expected here because it's not inherited from `Identifiable`, but warning is not reported.public name: String
}
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Describe the bug
If
missing_docs
is enabled andexcludes_inherited_types
is true then undocumented and non-inherited public properties/functions don't triggermissing_docs
warnings if the type inherits from a protocol. For example:Complete output when running SwiftLint, including the stack trace and command used
Environment
No
xcodebuild -version
)?Reproduces without Xcode.
Yes:
The text was updated successfully, but these errors were encountered: