Merge pull request #8896 from reitermarkus/sorbet-inline

Inline type annotations.
This commit is contained in:
Markus Reiter 2020-10-13 10:40:53 +02:00 committed by GitHub
commit bf7fe45e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
894 changed files with 1706 additions and 1855 deletions

View File

@ -1,4 +1,4 @@
name: Update Sorbet-related files
name: Update Sorbet files
on:
push:
paths:
@ -39,7 +39,8 @@ jobs:
if brew typecheck --update --fail-if-not-changed; then
git add "$GITHUB_WORKSPACE/Library/Homebrew/sorbet"
git commit -m "sorbet: Update RBI files and prune files.yaml." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml)."
git commit -m "sorbet: Update RBI files." \
-m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."
echo "::set-output name=committed::true"
if [ -n "$BRANCH_EXISTS" ]; then
echo "::set-output name=pull_request::true"

View File

@ -12,7 +12,12 @@ AllCops:
DisplayCopNames: false
# enable all pending rubocops
NewCops: enable
Include:
- '**/*.rbi'
Exclude:
- 'Homebrew/sorbet/rbi/gems/**/*.rbi'
- 'Homebrew/sorbet/rbi/hidden-definitions/**/*.rbi'
- 'Homebrew/sorbet/rbi/todo.rbi'
- 'Homebrew/bin/*'
- 'Homebrew/vendor/**/*'
@ -62,6 +67,10 @@ Naming/HeredocDelimiterNaming:
ForbiddenDelimiters:
- END, EOD, EOF
Naming/MethodName:
IgnoredPatterns:
- '\AHEAD\?\Z'
# Allow dashes in filenames.
Naming/FileName:
Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/
@ -264,9 +273,14 @@ Layout/LineLength:
' "~/Library/Application Support/', '"~/Library/Caches/', '"~/Application Support',
' was verified as official when first introduced to the cask']
# Enable once we are using `sorbet-runtime`.
Sorbet/FalseSigil:
Enabled: false
Exclude:
- 'Taps/**/*.rb'
- 'Homebrew/test/**/Casks/**/*.rb'
Sorbet/StrictSigil:
Include:
- '**/*.rbi'
# Try getting rid of these.
Sorbet/ConstantsFromStrings:
@ -302,6 +316,7 @@ Style/ClassVars:
Style/Documentation:
Exclude:
- 'Taps/**/*'
- '**/*.rbi'
Style/DocumentationMethod:
Include:
@ -313,6 +328,7 @@ Style/FrozenStringLiteralComment:
Exclude:
- 'Taps/*/*/{Formula,Casks,}/*.rb'
- 'Homebrew/test/**/Casks/**/*.rb'
- '**/*.rbi'
# TODO: remove this when possible.
Style/GlobalVars:

View File

@ -45,10 +45,6 @@ Naming/PredicateName:
# Can't rename these.
AllowedMethods: is_32_bit?, is_64_bit?
Style/FrozenStringLiteralComment:
Exclude:
- '**/Casks/**/*.rb'
Style/HashAsLastArrayItem:
Exclude:
- 'test/utils/spdx_spec.rb'

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
# Represention of a `*PATH` environment variable.

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "utils/curl"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
if ENV["HOMEBREW_STACKPROF"]

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
# This script is loaded by formula_installer as a separate instance.

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
# Settings for the build environment.

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
# Options for a formula build.

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "json"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/app"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/artifact/abstract_artifact"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "timeout"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/artifact/symlinked"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/abstract_artifact"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/artifact/symlinked"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/relocated"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "plist"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/abstract_flight_block"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/abstract_flight_block"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/artifact/abstract_artifact"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/artifact/abstract_artifact"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/relocated"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/abstract_uninstall"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/artifact/moved"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/abstract_uninstall"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/denylist"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/audit"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/cask_loader"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/cache"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "utils/user"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "optparse"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "search"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "utils/github/actions"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "json"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/dsl"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/artifact/relocated"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "json"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "env_config"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "json"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "fileutils"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "locale"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "cask/utils"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "delegate"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "unpack_strategy"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "delegate"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/staged"

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: strict
# frozen_string_literal: true
require "cask/staged"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "formula_installer"

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "os/mac/version"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
require "cask/macos"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "development_tools"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "utils/user"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "tsort"

View File

@ -1,4 +1,4 @@
# typed: strict
# typed: true
# frozen_string_literal: true
# Class corresponding to the `url` stanza.

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "utils/user"

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
module Cask

View File

@ -1,3 +1,4 @@
# typed: true
# frozen_string_literal: true
# An adapter for casks to provide dependency information in a formula-like interface

View File

@ -1,3 +1,4 @@
# typed: false
# frozen_string_literal: true
require "language/python"

Some files were not shown because too many files have changed in this diff Show More