Skip to content

Commit

Permalink
Correct handling of updater directory in sorbet (#8247)
Browse files Browse the repository at this point in the history
* Correct handling of `updater` directory in sorbet

* `spoom bump --from=false --to=true`

* `spoom bump --from=true --to=strict`

* `spoom bump --from=strict --to=strong`
  • Loading branch information
JamieMagee authored Oct 23, 2023
1 parent 7ceff8e commit 7de7855
Show file tree
Hide file tree
Showing 47 changed files with 46 additions and 54 deletions.
2 changes: 1 addition & 1 deletion bundler/lib/dependabot/bundler.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion bundler/lib/dependabot/bundler/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

require "dependabot/version"
Expand Down
2 changes: 1 addition & 1 deletion cargo/lib/dependabot/cargo.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion common/lib/dependabot/config.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

module Dependabot
Expand Down
2 changes: 1 addition & 1 deletion composer/lib/dependabot/composer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion docker/lib/dependabot/docker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion elm/lib/dependabot/elm.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion git_submodules/lib/dependabot/git_submodules.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion git_submodules/lib/dependabot/git_submodules/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

require "dependabot/version"
Expand Down
2 changes: 1 addition & 1 deletion github_actions/lib/dependabot/github_actions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion go_modules/lib/dependabot/go_modules.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion gradle/lib/dependabot/gradle.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion hex/lib/dependabot/hex.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion maven/lib/dependabot/maven.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion npm_and_yarn/lib/dependabot/npm_and_yarn.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion nuget/lib/dependabot/nuget.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion omnibus/lib/dependabot/omnibus.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

require "dependabot/python"
Expand Down
2 changes: 1 addition & 1 deletion pub/lib/dependabot/pub.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion python/lib/dependabot/python.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion python/lib/dependabot/python/requirement_parser.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

module Dependabot
Expand Down
6 changes: 1 addition & 5 deletions sorbet/config
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
--dir
.
--dir
updater
--dir=.
--ignore=tmp/
--ignore=vendor/
--ignore=updater/
--disable-watchman

# Sorbet doesn't currently support RSpec very well, so we ignore all of our specs.
Expand Down
4 changes: 0 additions & 4 deletions sorbet/rbi/todo.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ module Dependabot::NpmAndYarn::FileFetcher::Pysch::SyntaxError; end
module Dependabot::NpmAndYarn::FileParser::DependencySet; end
module Dependabot::Service::Raven; end
module Dependabot::Service::Terminal::Table; end
module Dependabot::Updater::ErrorHandler; end
module Dependabot::Updater::ErrorHandler::RUN_HALTING_ERRORS; end
module Dependabot::Updater::Operations; end
module Dependabot::Updater::Operations::RefreshVersionUpdatePullRequest; end
module Dependabot::Updater::SubprocessFailed; end
module HTTP::ConnectionError; end
class HTTP::Client
def auth(value); end
Expand Down
2 changes: 1 addition & 1 deletion sorbet/tapioca/require.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# Add your extra requires here (`bin/tapioca require` can be used to bootstrap this list)
2 changes: 1 addition & 1 deletion swift/lib/dependabot/swift.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strong
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion terraform/lib/dependabot/terraform.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

# These all need to be required so the various classes can be registered in a
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/base_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "raven"
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/dependency_change.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

# This class describes a change to the project's Dependencies which has been
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/dependency_group_engine.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/dependency_group"
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/dependency_snapshot.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "base64"
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/environment.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

module Dependabot
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/file_fetcher_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "base64"
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/config/ignore_condition"
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/logger/formats.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "logger"
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/update_files_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "base64"
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/updater.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

# Dependabot components
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

# This class is responsible for aggregating individual DependencyChange objects
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/updater/error_handler.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/updater/errors"
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/updater/errors.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

module Dependabot
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/dependabot/updater/operations.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/updater/operations/create_group_security_update_pull_request"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/updater/security_update_helpers"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/updater/group_update_creation"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/updater/security_update_helpers"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/updater/operations/create_group_update_pull_request"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/updater/security_update_helpers"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

require "dependabot/updater/group_update_creation"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

# This class implements our strategy for 'refreshing' an existing Pull Request
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

# This class implements our strategy for iterating over all of the dependencies
Expand Down

0 comments on commit 7de7855

Please sign in to comment.