Skip to content

Commit

Permalink
Update no_release_standard_out lint rule to include SwiftUI `_prin…
Browse files Browse the repository at this point in the history
…tChanges` helper (#297)
  • Loading branch information
calda authored Jan 10, 2025
1 parent c7e833f commit 58c33ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/AirbnbSwiftFormatTool/swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ custom_rules:
severity: error
no_direct_standard_out_logs:
name: "Writing log messages directly to standard out is disallowed"
regex: "(\\bprint|\\bdebugPrint|\\bdump|Swift\\.print|Swift\\.debugPrint|Swift\\.dump)\\s*\\("
regex: "(\\bprint|\\bdebugPrint|\\bdump|Swift\\.print|Swift\\.debugPrint|Swift\\.dump|_printChanges)\\s*\\("
match_kinds:
- identifier
message: "Don't commit `print(…)`, `debugPrint(…)`, or `dump(…)` as they write to standard out in release. Either log to a dedicated logging system or silence this warning in debug-only scenarios explicitly using `// swiftlint:disable:next no_direct_standard_out_logs`"
message: "Don't commit `print(…)`, `debugPrint(…)`, `dump(…)`, or `_printChanges()` as they write to standard out in release. Either log to a dedicated logging system or silence this warning in debug-only scenarios explicitly using `// swiftlint:disable:next no_direct_standard_out_logs`"
severity: error
no_file_literal:
name: "#file is disallowed"
Expand Down

0 comments on commit 58c33ee

Please sign in to comment.