From 91640f0fbec37de6ccc983f7d5a959705dfcf682 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 14 Nov 2023 13:41:12 -0800 Subject: [PATCH] Enforce `# typed: true` where possible (#8385) --- .rubocop.yml | 3 +++ common/.rubocop.yml | 3 +++ git_submodules/.rubocop.yml | 3 +++ swift/.rubocop.yml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index f74e81b851..c01be5379e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -332,6 +332,9 @@ Style/SpecialGlobalVars: Enabled: false Style/SelectByRegexp: Enabled: false +Sorbet/TrueSigil: + Exclude: + - "**/spec/**/*" # TODO these were temporarily disabled during the Ruby 2.7 -> 3.1 upgrade # in order to keep the upgrade diff small, they will be enabled/fixed in diff --git a/common/.rubocop.yml b/common/.rubocop.yml index fc2019d46a..b8168698e8 100644 --- a/common/.rubocop.yml +++ b/common/.rubocop.yml @@ -1 +1,4 @@ inherit_from: ../.rubocop.yml + +Sorbet/TrueSigil: + Enabled: true diff --git a/git_submodules/.rubocop.yml b/git_submodules/.rubocop.yml index fc2019d46a..b8168698e8 100644 --- a/git_submodules/.rubocop.yml +++ b/git_submodules/.rubocop.yml @@ -1 +1,4 @@ inherit_from: ../.rubocop.yml + +Sorbet/TrueSigil: + Enabled: true diff --git a/swift/.rubocop.yml b/swift/.rubocop.yml index fc2019d46a..b8168698e8 100644 --- a/swift/.rubocop.yml +++ b/swift/.rubocop.yml @@ -1 +1,4 @@ inherit_from: ../.rubocop.yml + +Sorbet/TrueSigil: + Enabled: true