warnings.add('(XCResult) The `url` exists but it was failed to be parsed. url: $urlValue');
warnings.add(
'(XCResult) The `url` exists but it was failed to be parsed. url: $urlValue');
}
}
}
}
}
}
...
@@ -270,6 +257,39 @@ enum XCResultIssueType {
...
@@ -270,6 +257,39 @@ enum XCResultIssueType {
error,
error,
}
}
/// Discards the [XCResultIssue] that matches any of the matchers.
classXCResultIssueDiscarder{
XCResultIssueDiscarder(
{this.typeMatcher,
this.subTypeMatcher,
this.messageMatcher,
this.locationMatcher})
:assert(typeMatcher!=null||
subTypeMatcher!=null||
messageMatcher!=null||
locationMatcher!=null);
/// The type of the discarder.
///
/// A [XCResultIssue] should be discarded if its `type` equals to this.
finalXCResultIssueType?typeMatcher;
/// The subType of the discarder.
///
/// A [XCResultIssue] should be discarded if its `subType` matches the RegExp.
finalRegExp?subTypeMatcher;
/// The message of the discarder.
///
/// A [XCResultIssue] should be discarded if its `message` matches the RegExp.
finalRegExp?messageMatcher;
/// The location of the discarder.
///
/// A [XCResultIssue] should be discarded if its `location` matches the RegExp.
finalRegExp?locationMatcher;
}
// A typical location url string looks like file:///foo.swift#CharacterRangeLen=0&EndingColumnNumber=82&EndingLineNumber=7&StartingColumnNumber=82&StartingLineNumber=7.
// A typical location url string looks like file:///foo.swift#CharacterRangeLen=0&EndingColumnNumber=82&EndingLineNumber=7&StartingColumnNumber=82&StartingLineNumber=7.
//
//
// This function converts it to something like: /foo.swift:<StartingLineNumber>:<StartingColumnNumber>.
// This function converts it to something like: /foo.swift:<StartingLineNumber>:<StartingColumnNumber>.
finalXCResultIssueDiscarderdiscarder=XCResultIssueDiscarder(messageMatcher:RegExp(r"^The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.$"));