Skip to content

Commit

Permalink
Merge pull request #179 from MobileNativeFoundation/fix-deprecated-wa…
Browse files Browse the repository at this point in the history
…rnings-xcode14

DeprecatedWarnings: Check for type note
  • Loading branch information
PatrikBillgren authored Nov 24, 2022
2 parents 2c4a36f + d358cd8 commit 501da3e
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 501da3e

Please sign in to comment.