From ed5589e62823ea3681d55d5ffbf12bf26b1eba54 Mon Sep 17 00:00:00 2001 From: "swiftlintbot@jpsim.com" Date: Tue, 2 Jul 2024 18:18:56 +0000 Subject: [PATCH] Automated deployment to GitHub Pages: 6642d45a2d4829f047d540e23418b716c9cd2edf --- .../Resources/Documents/missing_docs.html | 122 ++++++++++++++++-- .../Documents/swift-syntax-dashboard.html | 8 +- docsets/SwiftLintCore.tgz | Bin 610937 -> 613217 bytes missing_docs.html | 122 ++++++++++++++++-- swift-syntax-dashboard.html | 8 +- 5 files changed, 236 insertions(+), 24 deletions(-) diff --git a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/missing_docs.html b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/missing_docs.html index 89fdb5d4a..68f5f5ed5 100644 --- a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/missing_docs.html +++ b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/missing_docs.html @@ -394,6 +394,14 @@ excludes_trivial_init false + + +evaluate_effective_access_control_level + + +false + + @@ -414,38 +422,136 @@ false
/// docs
 public class A {
+    var j = 1
+    var i: Int { 1 }
+    func f() {}
     deinit {}
 }
 
public extension A {}
 
+
enum E {
+    case A
+}
+
/// docs
 public class A {
     public init() {}
 }
 
+
class C {
+    public func f() {}
+}
+
+
public struct S: ~Copyable, P {
+    public init() {}
+}
+

Triggering Examples

-
public func a() {}
+
public ↓func a() {}
 
// regular comment
-public func a() {}
+public ↓func a() {}
 
/* regular comment */
-public func a() {}
+public ↓func a() {}
 
/// docs
 public protocol A {
-// no docs
-var b: Int { get } }
+    // no docs
+    ↓var b: Int { get }
+}
 /// docs
 public struct C: A {
-
-public let b: Int
+    public let b: Int
+}
+
+
/// a doc
+public class C {
+    public ↓static let i = 1
+}
+
+
public extension A {
+    public ↓func f() {}
+    ↓static var i: Int { 1 }
+    ↓struct S {
+        func f() {}
+    }
+    ↓class C {
+        func f() {}
+    }
+    ↓actor A {
+        func f() {}
+    }
+    ↓enum E {
+        case ↓a
+        func f() {}
+    }
+}
+
+
public extension A {
+    ↓enum E {
+        enum Inner {
+            case a
+        }
+    }
+}
+
+
extension E {
+    public ↓struct S {
+        public ↓static let i = 1
+    }
+}
+
+
extension E {
+    public ↓func f() {}
 }
 
/// docs
 public class A {
-    public init(argument: String) {}
+    public ↓init(argument: String) {}
+}
+
+
public ↓struct C: A {
+    public ↓let b: Int
+}
+
+
public ↓extension A {
+    public ↓func f() {}
+}
+
+
public extension E {
+    ↓var i: Int {
+        let j = 1
+        func f() {}
+        return j
+    }
+}
+
+
#if os(macOS)
+public ↓func f() {}
+#endif
+
+
public ↓enum E {
+    case ↓A
+    func f() {}
+    init(_ i: Int) { self = .A }
+}
+
+
/// a doc
+public struct S {}
+public extension S {
+    ↓enum E {
+        case ↓A
+    }
+}
+
+
class C {
+    public ↓func f() {}
+}
+
+
public ↓struct S: ~Copyable, ~Escapable {
+    public ↓init() {}
 }
 
diff --git a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/swift-syntax-dashboard.html b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/swift-syntax-dashboard.html index 6e47bb00c..0c5584c1d 100644 --- a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/swift-syntax-dashboard.html +++ b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/swift-syntax-dashboard.html @@ -352,7 +352,7 @@

Rules written using SwiftSyntax tend to be significantly faster and have fewer false positives than rules that use SourceKit to get source structure information.

-

24 out of 234 (10%) +

23 out of 234 (9%) of SwiftLint’s linter rules use SourceKit.

Rules Using SourceKit

Default Rules (6)

@@ -365,7 +365,7 @@ of SwiftLint’s linter rules use SourceKit.

  • trailing_whitespace: Trailing Whitespace
  • vertical_whitespace: Vertical Whitespace
  • -

    Opt-in Rules (18)

    +

    Opt-in Rules (17)

    -

    Opt-in Rules (119)

    +

    Opt-in Rules (120)

    @@ -414,38 +422,136 @@ false
    /// docs
     public class A {
    +    var j = 1
    +    var i: Int { 1 }
    +    func f() {}
         deinit {}
     }
     
    public extension A {}
     
    +
    enum E {
    +    case A
    +}
    +
    /// docs
     public class A {
         public init() {}
     }
     
    +
    class C {
    +    public func f() {}
    +}
    +
    +
    public struct S: ~Copyable, P {
    +    public init() {}
    +}
    +

    Triggering Examples

    -
    public func a() {}
    +
    public ↓func a() {}
     
    // regular comment
    -public func a() {}
    +public ↓func a() {}
     
    /* regular comment */
    -public func a() {}
    +public ↓func a() {}
     
    /// docs
     public protocol A {
    -// no docs
    -var b: Int { get } }
    +    // no docs
    +    ↓var b: Int { get }
    +}
     /// docs
     public struct C: A {
    -
    -public let b: Int
    +    public let b: Int
    +}
    +
    +
    /// a doc
    +public class C {
    +    public ↓static let i = 1
    +}
    +
    +
    public extension A {
    +    public ↓func f() {}
    +    ↓static var i: Int { 1 }
    +    ↓struct S {
    +        func f() {}
    +    }
    +    ↓class C {
    +        func f() {}
    +    }
    +    ↓actor A {
    +        func f() {}
    +    }
    +    ↓enum E {
    +        case ↓a
    +        func f() {}
    +    }
    +}
    +
    +
    public extension A {
    +    ↓enum E {
    +        enum Inner {
    +            case a
    +        }
    +    }
    +}
    +
    +
    extension E {
    +    public ↓struct S {
    +        public ↓static let i = 1
    +    }
    +}
    +
    +
    extension E {
    +    public ↓func f() {}
     }
     
    /// docs
     public class A {
    -    public init(argument: String) {}
    +    public ↓init(argument: String) {}
    +}
    +
    +
    public ↓struct C: A {
    +    public ↓let b: Int
    +}
    +
    +
    public ↓extension A {
    +    public ↓func f() {}
    +}
    +
    +
    public extension E {
    +    ↓var i: Int {
    +        let j = 1
    +        func f() {}
    +        return j
    +    }
    +}
    +
    +
    #if os(macOS)
    +public ↓func f() {}
    +#endif
    +
    +
    public ↓enum E {
    +    case ↓A
    +    func f() {}
    +    init(_ i: Int) { self = .A }
    +}
    +
    +
    /// a doc
    +public struct S {}
    +public extension S {
    +    ↓enum E {
    +        case ↓A
    +    }
    +}
    +
    +
    class C {
    +    public ↓func f() {}
    +}
    +
    +
    public ↓struct S: ~Copyable, ~Escapable {
    +    public ↓init() {}
     }
     
    diff --git a/swift-syntax-dashboard.html b/swift-syntax-dashboard.html index 6e47bb00c..0c5584c1d 100644 --- a/swift-syntax-dashboard.html +++ b/swift-syntax-dashboard.html @@ -352,7 +352,7 @@

    Rules written using SwiftSyntax tend to be significantly faster and have fewer false positives than rules that use SourceKit to get source structure information.

    -

    24 out of 234 (10%) +

    23 out of 234 (9%) of SwiftLint’s linter rules use SourceKit.

    Rules Using SourceKit

    Default Rules (6)

    @@ -365,7 +365,7 @@ of SwiftLint’s linter rules use SourceKit.

  • trailing_whitespace: Trailing Whitespace
  • vertical_whitespace: Vertical Whitespace
  • -

    Opt-in Rules (18)

    +

    Opt-in Rules (17)

    -

    Opt-in Rules (119)

    +

    Opt-in Rules (120)