Skip to content

Commit

Permalink
Enable sorbet and update files (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell authored Jul 11, 2024
1 parent 424e9bc commit ef016ef
Show file tree
Hide file tree
Showing 7 changed files with 428 additions and 32 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ Style/SpecialGlobalVars:
Style/SelectByRegexp:
Enabled: false
Sorbet/TrueSigil:
Enabled: true
Exclude:
- "**/spec/**/*"
Sorbet/StrictSigil:
Expand Down
52 changes: 26 additions & 26 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@ require "uri"
require "json"
require "rubygems/package"
require "bundler"
# require "./common/lib/dependabot"
require "./common/lib/dependabot"
require "yaml"

# ./dependabot-core.gemspec is purposefully excluded from this list
# because it's an empty gem as a placeholder to prevent namesquatting.
# GEMSPECS = %w(
# common/dependabot-common.gemspec
# go_modules/dependabot-go_modules.gemspec
# terraform/dependabot-terraform.gemspec
# docker/dependabot-docker.gemspec
# git_submodules/dependabot-git_submodules.gemspec
# github_actions/dependabot-github_actions.gemspec
# nuget/dependabot-nuget.gemspec
# gradle/dependabot-gradle.gemspec
# maven/dependabot-maven.gemspec
# bundler/dependabot-bundler.gemspec
# elm/dependabot-elm.gemspec
# cargo/dependabot-cargo.gemspec
# npm_and_yarn/dependabot-npm_and_yarn.gemspec
# composer/dependabot-composer.gemspec
# hex/dependabot-hex.gemspec
# python/dependabot-python.gemspec
# pub/dependabot-pub.gemspec
# omnibus/dependabot-omnibus.gemspec
# silent/dependabot-silent.gemspec
# swift/dependabot-swift.gemspec
# devcontainers/dependabot-devcontainers.gemspec
# ).freeze
GEMSPECS = %w(
common/dependabot-common.gemspec
go_modules/dependabot-go_modules.gemspec
terraform/dependabot-terraform.gemspec
docker/dependabot-docker.gemspec
git_submodules/dependabot-git_submodules.gemspec
github_actions/dependabot-github_actions.gemspec
nuget/dependabot-nuget.gemspec
gradle/dependabot-gradle.gemspec
maven/dependabot-maven.gemspec
bundler/dependabot-bundler.gemspec
elm/dependabot-elm.gemspec
cargo/dependabot-cargo.gemspec
npm_and_yarn/dependabot-npm_and_yarn.gemspec
composer/dependabot-composer.gemspec
hex/dependabot-hex.gemspec
python/dependabot-python.gemspec
pub/dependabot-pub.gemspec
omnibus/dependabot-omnibus.gemspec
silent/dependabot-silent.gemspec
swift/dependabot-swift.gemspec
devcontainers/dependabot-devcontainers.gemspec
).freeze

def run_command(command)
puts "> #{command}"
Expand Down Expand Up @@ -104,8 +104,8 @@ end
namespace :rubocop do
task :sort do
File.write(
".rubocop.yml",
YAML.load_file(".rubocop.yml").sort_by_key(true).to_yaml
"omnibus/.rubocop.yml",
YAML.load_file("omnibus/.rubocop.yml").sort_by_key(true).to_yaml
)
end
end
Expand Down
7 changes: 3 additions & 4 deletions update-files.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $files = @(
".ruby-version"
".rubocop.yml"
".rubocop_todo.yml"
# "Rakefile"
"Rakefile"
"updater/.rubocop.yml"

# "updater/bin/fetch_files.rb"
Expand Down Expand Up @@ -60,7 +60,6 @@ $files = @(

"updater/spec/dependabot/sentry/exception_sanitizer_processor_spec.rb"
"updater/spec/dependabot/sentry/sentry_context_processor_spec.rb"
# "updater/spec/dependabot/updater/operations/group_update_all_versions_spec.rb"
# "updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb"
"updater/spec/dependabot/updater/dependency_group_change_batch_spec.rb"
"updater/spec/dependabot/updater/error_handler_spec.rb"
Expand All @@ -74,7 +73,7 @@ $files = @(
"updater/spec/dependabot/file_fetcher_command_spec.rb"
"updater/spec/dependabot/job_spec.rb"
"updater/spec/dependabot/service_spec.rb"
# "updater/spec/dependabot/update_files_command_spec.rb"
"updater/spec/dependabot/update_files_command_spec.rb"
# "updater/spec/dependabot/updater_spec.rb"

"updater/spec/fixtures/handle_error.json"
Expand Down Expand Up @@ -153,7 +152,7 @@ $files = @(
"updater/spec/support/dependency_file_helpers.rb"
"updater/spec/support/dummy_pkg_helpers.rb"

# "updater/spec/spec_helper.rb"
"updater/spec/spec_helper.rb"
)

# Download each file listed
Expand Down
1 change: 1 addition & 0 deletions updater/bin/update_script.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true

# rubocop:disable Style/GlobalVars
Expand Down
2 changes: 1 addition & 1 deletion updater/lib/tinglesoftware/dependabot/clients/azure.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true

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

require "octokit"
Expand Down
Loading

0 comments on commit ef016ef

Please sign in to comment.