Skip to content

Conversation

@Orlyanskiy93
Copy link
Contributor

Добавить правило на запрет использования функций print, debugPrint и dump

#222

add output rule to swiftlint
name: "Output methods"
regex: 'print|debugPrint|dump'
message: "Need to use os_log or swift-log for logging"
severity: error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning

message: "Use a let|var keyword behind parentheses"
severity: warning

output_methods:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logging_methods

message: "Use a let|var keyword behind parentheses"
severity: warning

output_methods:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

надо удалить native_print правило

severity: warning

output_methods:
name: "Output methods"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logging methods

output_methods:
name: "Output methods"
regex: 'print|debugPrint|dump'
message: "Need to use os_log or swift-log for logging"
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants