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
guardlet indices =parseCodeBlockOptionArray(value)else{
67
+
letdiagnostic=Diagnostic(source: sourceFile, severity:.warning, range: codeBlock.range, identifier:"org.swift.docc.InvalidCodeBlockOption", summary:"Could not parse \(token.rawValue.singleQuoted) indices from \(value.singleQuoted). Expected an integer (e.g. 3) or an array (e.g. [1, 3, 5])")
letdiagnostic=Diagnostic(source: sourceFile, severity:.warning, range: codeBlock.range, identifier:"org.swift.docc.InvalidCodeBlockOption", summary:"Invalid \(token.rawValue.singleQuoted) index\(invalid.count ==1?"":"es") in \(value.singleQuoted) for a code block with \(lineCount) line\(lineCount ==1?"":"s"). Valid range is 1...\(lineCount).")
76
+
letsolutions:[Solution]={
77
+
if invalid.contains(where:{$0 == lineCount +1}){
78
+
return[Solution(
79
+
summary:"If you intended the last line, change '\(lineCount +1)' to \(lineCount).",
0 commit comments