mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-16 06:28:27 +02:00
Adopt consolidated logging mechanism (#4370)
* Adopted the new MXLog and replaced NSLog throughout the application - vector-im/element-ios/issues/4351 * Replaced NSLog() and print() usages with MXLog.debug() * Added swiftlint rules for NSLog(), print(), println() and os_log() * Escape paths used to run script build phases for swiftlint and swiftgen
This commit is contained in:
@@ -63,3 +63,31 @@ type_name:
|
||||
max_length: # warning and error
|
||||
warning: 150
|
||||
error: 1000
|
||||
|
||||
custom_rules:
|
||||
ns_log_deprecation:
|
||||
regex: "\\b(NSLog)\\b"
|
||||
match_kinds: identifier
|
||||
message: "MXLog should be used instead of NSLog()"
|
||||
severity: error
|
||||
|
||||
print_deprecation:
|
||||
regex: "\\b(print)\\b"
|
||||
match_kinds: identifier
|
||||
message: "MXLog should be used instead of print()"
|
||||
severity: error
|
||||
|
||||
print_ln_deprecation:
|
||||
regex: "\\b(println)\\b"
|
||||
match_kinds: identifier
|
||||
message: "MXLog should be used instead of println()"
|
||||
severity: error
|
||||
|
||||
os_log_deprecation:
|
||||
regex: "\\b(os_log)\\b"
|
||||
match_kinds: identifier
|
||||
message: "MXLog should be used instead of os_log()"
|
||||
severity: error
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user