Update .swiftlint.yml

add output rule to swiftlint
This commit is contained in:
Dmitriy 2021-08-10 10:22:32 +03:00 committed by GitHub
parent f5b21784fe
commit 05a5d591df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -264,6 +264,12 @@ custom_rules:
regex: 'case[^\n\(]+\([^\)]*(let|var)\s'
message: "Use a let|var keyword behind parentheses"
severity: warning
output_methods:
name: "Output methods"
regex: 'print|debugPrint|dump'
message: "Need to use os_log or swift-log for logging"
severity: error
# Rx