diff --git a/Classes.html b/Classes.html index 1361b4a5c..00a147eb7 100644 --- a/Classes.html +++ b/Classes.html @@ -137,10 +137,10 @@ AccessControlLevel
  • - - - ConfigurationError + + + Issue
    @@ -426,20 +426,20 @@
    -

    All possible configuration errors.

    +

    All possible SwiftLint issues which are printed as warnings by default.

    - See more + See more

    Declaration

    Swift

    -
    public enum ConfigurationError : Error, Equatable
    +
    public enum Issue : LocalizedError, Equatable
    diff --git a/Enums/AccessControlLevel.html b/Enums/AccessControlLevel.html index 40da496be..dcf2b0cfe 100644 --- a/Enums/AccessControlLevel.html +++ b/Enums/AccessControlLevel.html @@ -137,10 +137,10 @@ AccessControlLevel
  • - + - unknownConfiguration + unknownConfiguration
    @@ -380,7 +380,7 @@
    - Show on GitHub + Show on GitHub
    @@ -388,9 +388,9 @@
  • - - - ambiguousMatchKindParameters + + + genericWarning(_:)
    @@ -398,19 +398,19 @@
    -

    The configuration had both match_kind and excluded_match_kind parameters.

    +

    A generic warning specified by a string.

    Declaration

    Swift

    -
    case ambiguousMatchKindParameters
    +
    case genericWarning(String)
    @@ -418,9 +418,9 @@
  • - - - generic(_:) + + + deprecation(ruleID:)
    @@ -428,19 +428,19 @@
    -

    A generic configuration error specified by a string.

    +

    A deprecation warning for a rule.

    Declaration

    Swift

    -
    case generic(String)
    +
    case deprecation(ruleID: String)
    @@ -448,9 +448,9 @@
  • - + - initialFileNotFound(path:) + initialFileNotFound(path:)
    @@ -470,7 +470,37 @@
    - Show on GitHub + Show on GitHub +
    + + +
  • +
  • +
    + + + + yamlParsing(_:) + +
    +
    +
    +
    +
    +
    +

    An error that occurred when parsing YAML.

    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    case yamlParsing(String)
    + +
    +
    +
    diff --git a/Enums/RuleIdentifier.html b/Enums/RuleIdentifier.html index 41139aeb1..878ce10a1 100644 --- a/Enums/RuleIdentifier.html +++ b/Enums/RuleIdentifier.html @@ -137,10 +137,10 @@ AccessControlLevel
  • - - - ConfigurationError + + + Issue
    @@ -426,20 +426,20 @@
    -

    All possible configuration errors.

    +

    All possible SwiftLint issues which are printed as warnings by default.

    - See more + See more

    Declaration

    Swift

    -
    public enum ConfigurationError : Error, Equatable
    +
    public enum Issue : LocalizedError, Equatable
    diff --git a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/Enums/AccessControlLevel.html b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/Enums/AccessControlLevel.html index 40da496be..dcf2b0cfe 100644 --- a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/Enums/AccessControlLevel.html +++ b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/Enums/AccessControlLevel.html @@ -137,10 +137,10 @@ AccessControlLevel
  • - + - unknownConfiguration + unknownConfiguration
    @@ -380,7 +380,7 @@
    - Show on GitHub + Show on GitHub
    @@ -388,9 +388,9 @@
  • - - - ambiguousMatchKindParameters + + + genericWarning(_:)
    @@ -398,19 +398,19 @@
    -

    The configuration had both match_kind and excluded_match_kind parameters.

    +

    A generic warning specified by a string.

    Declaration

    Swift

    -
    case ambiguousMatchKindParameters
    +
    case genericWarning(String)
    @@ -418,9 +418,9 @@
  • - - - generic(_:) + + + deprecation(ruleID:)
    @@ -428,19 +428,19 @@
    -

    A generic configuration error specified by a string.

    +

    A deprecation warning for a rule.

    Declaration

    Swift

    -
    case generic(String)
    +
    case deprecation(ruleID: String)
    @@ -448,9 +448,9 @@
  • - + - initialFileNotFound(path:) + initialFileNotFound(path:)
    @@ -470,7 +470,37 @@
    - Show on GitHub + Show on GitHub +
    + + +
  • +
  • +
    + + + + yamlParsing(_:) + +
    +
    +
    +
    +
    +
    +

    An error that occurred when parsing YAML.

    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    case yamlParsing(String)
    + +
    +
    +
    diff --git a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/Enums/RuleIdentifier.html b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/Enums/RuleIdentifier.html index 41139aeb1..878ce10a1 100644 --- a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/Enums/RuleIdentifier.html +++ b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/Enums/RuleIdentifier.html @@ -137,10 +137,10 @@ AccessControlLevel
  • Default configuration: severity: warning, only_enforce_before_trivial_lines: false
  • Non Triggering Examples

    -
    do {
    -  print("x is 5")
    -}
    -
    -
    print([
    -  1
    -])
    -
    print([foo {
       var sum = 0
       for i in 1...5 { sum += i }
    @@ -368,21 +360,11 @@
       return mul
     }])
     
    -
    do {
    -  print("x is 5")
    -}
    -
    foo(
         x: 5,
         y:6
     )
     
    -
    func foo() {
    -  run(5) { x in
    -    print(x)
    -  }
    -}
    -
    do {
       print("x is 5")
     }
    @@ -393,6 +375,24 @@
     3
     ]
     
    +
    do {
    +  print("x is 5")
    +}
    +
    +
    print([
    +  1
    +])
    +
    +
    func foo() {
    +  run(5) { x in
    +    print(x)
    +  }
    +}
    +
    +
    do {
    +  print("x is 5")
    +}
    +
    [1, 2].map { $0 }.filter { true }
     
    [1, 2].map { $0 }.filter { num in true }
    @@ -420,17 +420,6 @@
     }
     

    Triggering Examples

    -
    do {
    -  print("x is 5")
    -↓
    -
    -}
    -
    -
    print([
    -  1
    -↓
    -])
    -
    print([foo {
       var sum = 0
       for i in 1...5 { sum += i }
    @@ -443,17 +432,35 @@
     ↓
     }])
     
    -
    do {
    -  print("x is 5")
    -↓
    -}
    -
    foo(
         x: 5,
         y:6
     ↓
     )
     
    +
    do {
    +  print("x is 5")
    +↓
    +}
    +
    +
    [
    +1,
    +2,
    +3
    +↓
    +]
    +
    +
    do {
    +  print("x is 5")
    +↓
    +
    +}
    +
    +
    print([
    +  1
    +↓
    +])
    +
    func foo() {
       run(5) { x in
         print(x)
    @@ -466,13 +473,6 @@
     ↓
     
     }
    -
    -
    [
    -1,
    -2,
    -3
    -↓
    -]
     
    diff --git a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/vertical_whitespace_opening_braces.html b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/vertical_whitespace_opening_braces.html index 2eb390ba9..767b32ddd 100644 --- a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/vertical_whitespace_opening_braces.html +++ b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/vertical_whitespace_opening_braces.html @@ -136,10 +136,10 @@ AccessControlLevel
  • Default configuration: severity: warning, only_enforce_before_trivial_lines: false
  • Non Triggering Examples

    -
    do {
    -  print("x is 5")
    -}
    -
    -
    print([
    -  1
    -])
    -
    print([foo {
       var sum = 0
       for i in 1...5 { sum += i }
    @@ -368,21 +360,11 @@
       return mul
     }])
     
    -
    do {
    -  print("x is 5")
    -}
    -
    foo(
         x: 5,
         y:6
     )
     
    -
    func foo() {
    -  run(5) { x in
    -    print(x)
    -  }
    -}
    -
    do {
       print("x is 5")
     }
    @@ -393,6 +375,24 @@
     3
     ]
     
    +
    do {
    +  print("x is 5")
    +}
    +
    +
    print([
    +  1
    +])
    +
    +
    func foo() {
    +  run(5) { x in
    +    print(x)
    +  }
    +}
    +
    +
    do {
    +  print("x is 5")
    +}
    +
    [1, 2].map { $0 }.filter { true }
     
    [1, 2].map { $0 }.filter { num in true }
    @@ -420,17 +420,6 @@
     }
     

    Triggering Examples

    -
    do {
    -  print("x is 5")
    -↓
    -
    -}
    -
    -
    print([
    -  1
    -↓
    -])
    -
    print([foo {
       var sum = 0
       for i in 1...5 { sum += i }
    @@ -443,17 +432,35 @@
     ↓
     }])
     
    -
    do {
    -  print("x is 5")
    -↓
    -}
    -
    foo(
         x: 5,
         y:6
     ↓
     )
     
    +
    do {
    +  print("x is 5")
    +↓
    +}
    +
    +
    [
    +1,
    +2,
    +3
    +↓
    +]
    +
    +
    do {
    +  print("x is 5")
    +↓
    +
    +}
    +
    +
    print([
    +  1
    +↓
    +])
    +
    func foo() {
       run(5) { x in
         print(x)
    @@ -466,13 +473,6 @@
     ↓
     
     }
    -
    -
    [
    -1,
    -2,
    -3
    -↓
    -]
     
    diff --git a/vertical_whitespace_opening_braces.html b/vertical_whitespace_opening_braces.html index 2eb390ba9..767b32ddd 100644 --- a/vertical_whitespace_opening_braces.html +++ b/vertical_whitespace_opening_braces.html @@ -136,10 +136,10 @@ AccessControlLevel