-
Notifications
You must be signed in to change notification settings - Fork 1
output_rule_swiftlint #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
add output rule to swiftlint
xcode/.swiftlint.yml
Outdated
name: "Output methods" | ||
regex: 'print|debugPrint|dump' | ||
message: "Need to use os_log or swift-log for logging" | ||
severity: error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning
xcode/.swiftlint.yml
Outdated
@@ -264,6 +264,12 @@ custom_rules: | |||
regex: 'case[^\n\(]+\([^\)]*(let|var)\s' | |||
message: "Use a let|var keyword behind parentheses" | |||
severity: warning | |||
|
|||
output_methods: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logging_methods
xcode/.swiftlint.yml
Outdated
@@ -264,6 +264,12 @@ custom_rules: | |||
regex: 'case[^\n\(]+\([^\)]*(let|var)\s' | |||
message: "Use a let|var keyword behind parentheses" | |||
severity: warning | |||
|
|||
output_methods: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
надо удалить native_print правило
xcode/.swiftlint.yml
Outdated
@@ -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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logging methods
xcode/.swiftlint.yml
Outdated
output_methods: | ||
name: "Output methods" | ||
regex: 'print|debugPrint|dump' | ||
message: "Need to use os_log or swift-log for logging" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use os or swift-log frameworks for logging
pr fix
Добавить правило на запрет использования функций print, debugPrint и dump
#222