Skip to content

Commit

Permalink
DeprecatedWarnings: Check for type note
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Billgren <[email protected]>
  • Loading branch information
PatrikBillgren committed Nov 24, 2022
1 parent 2c4a36f commit d358cd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/XCLogParser/parser/Notice+Parser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ extension Notice {
return true
}
// Support for Swift and ObjC code marked as deprecated
if type == .swiftError || type == .swiftWarning || type == .projectWarning || type == .clangWarning {
if type == .swiftError || type == .swiftWarning || type == .projectWarning || type == .clangWarning
|| type == .note {
return text.contains(" deprecated:")
|| text.contains("was deprecated in")
|| text.contains("has been deprecated")
Expand Down

0 comments on commit d358cd8

Please sign in to comment.