From af795508dab31f287d2cbb46ea106f0d6163ce1b Mon Sep 17 00:00:00 2001 From: Yan Zaitsev Date: Wed, 13 Nov 2024 20:08:10 +0100 Subject: [PATCH 1/2] Update best_practices.yaml with latest SwiftUI changes --- mobsfscan/rules/patterns/ios/swift/best_practices.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mobsfscan/rules/patterns/ios/swift/best_practices.yaml b/mobsfscan/rules/patterns/ios/swift/best_practices.yaml index e30d064..e4a50cb 100644 --- a/mobsfscan/rules/patterns/ios/swift/best_practices.yaml +++ b/mobsfscan/rules/patterns/ios/swift/best_practices.yaml @@ -78,6 +78,8 @@ - \.autocorrectionType\s*=\s*\.No - UITextAutocorrectionTypeNo - \.disableAutocorrection\s*\(\s*true\s*\) + - \.autocorrectionDisabled\s*\(\s*true\s*\) + - \.autocorrectionDisabled\s*\(\) severity: INFO type: RegexOr metadata: From 44c9bc90e7706549fd27f4a2c9b5960b3cbad363 Mon Sep 17 00:00:00 2001 From: Yan Zaitsev Date: Fri, 15 Nov 2024 04:51:45 +0100 Subject: [PATCH 2/2] Update best_practices.yaml --- mobsfscan/rules/patterns/ios/swift/best_practices.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/mobsfscan/rules/patterns/ios/swift/best_practices.yaml b/mobsfscan/rules/patterns/ios/swift/best_practices.yaml index e4a50cb..3a58f14 100644 --- a/mobsfscan/rules/patterns/ios/swift/best_practices.yaml +++ b/mobsfscan/rules/patterns/ios/swift/best_practices.yaml @@ -79,7 +79,6 @@ - UITextAutocorrectionTypeNo - \.disableAutocorrection\s*\(\s*true\s*\) - \.autocorrectionDisabled\s*\(\s*true\s*\) - - \.autocorrectionDisabled\s*\(\) severity: INFO type: RegexOr metadata: