From e8cca77e034eeb1e99fd5eda266fa4b4287b6d4e Mon Sep 17 00:00:00 2001 From: Evan Hahn Date: Mon, 2 May 2022 12:50:12 -0500 Subject: [PATCH] Configure SwiftLint's `inclusive_language` rule This configures [SwiftLint's inclusive language rule][0]. We use "master key" and "profile whitelist" across Signal, so we allow those terms. Everything else should be marked as a violation. [0]: https://realm.github.io/SwiftLint/inclusive_language.html --- .swiftlint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index 991052dab8..640ea29fe0 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -12,6 +12,8 @@ opt_in_rules: - attributes attributes: always_on_line_above: ["@objc"] +inclusive_language: + override_allowed_terms: ["master", "whitelist"] large_tuple: warning: 4 error: 4