35 Commits

Author SHA1 Message Date
Markus Reiter
e024b12d47 Remove os/linux/diagnostic. 2020-08-24 00:22:17 +02:00
Markus Reiter
e909ea2471 Refactor and document Language::Python. 2020-08-19 10:45:56 +02:00
Markus Reiter
b48bc316e0 Use CLI::Parser for cask commands. 2020-08-13 05:15:15 +02:00
vidusheeamoli
7409bae0b8 sorbet/files.yaml: add new files, 18 => 23 errors.
Add new files to the list of all files in sorbet/files.yaml.
following 8 files are added to false:
  - ./cmd/--caskroom.rb
  - ./rubocops/cask/mixin/on_desc_stanza.rb
  - ./rubocops/shared/desc_helper.rb
  - ./rubocops/shared/helper_functions.rb
  - ./test/cmd/--caskroom_spec.rb
  - ./test/dependencies_helpers_spec.rb
  - ./test/rubocops/cask/desc_spec.rb
  - ./test/utils/spdx_spec.rb

following 6 files are added to true:
  - ./compat/cli/parser.rb
  - ./compat/dependencies_helpers.rb
  - ./context.rb
  - ./dependencies_helpers.rb
  - ./rubocops/cask/desc.rb
  - ./utils/spdx.rb
2020-08-11 02:28:51 +05:30
Markus Reiter
8a32954940 Move cask/all to just cask. 2020-08-09 01:34:07 +02:00
Markus Reiter
1b3ae7f9e6 Remove unused BottlePublisher class. 2020-08-02 16:15:24 +02:00
vidusheeamoli
58848e402a sorbet/files.yaml: add new files 2020-08-01 00:18:09 +05:30
Markus Reiter
5cf7ffd93e Make Cask::Auditor return a Hash with warnings and errors. 2020-07-28 09:50:15 +02:00
vidusheeamoli
f6cdd6b37b sorbet/files.yaml: add new file 2020-07-26 21:03:00 +05:30
Issy Long
fdbb2ac16a
Merge pull request #7985 from vidusheeamoli/utils-inreplace-to-true
sorbet: set utils/inreplace.rb to true
2020-07-26 10:37:30 +01:00
vidusheeamoli
fd382d2ecd srb: set utils/inreplace.rb to true and refactor
- Sorbet gives preference to class methods over methods defined in
  included modules, hence Sorbet was unavailable to resolve the
definition of the gsub! method.
- The gsub! method in StringInreplaceExtension conflicts with the definition in String.
- This PR refactors the call to the gsub! method so that a custom object
  is exposed instead of a string.
2020-07-26 12:43:31 +05:30
vidusheeamoli
3d0a68cf54 sorbet: add cli/args.rb to true 2020-07-23 22:30:05 +05:30
vidusheeamoli
95fe35d5b6 sorbet: add dependable.rb to true 2020-07-22 23:43:59 +05:30
vidusheeamoli
637de8b48e sorbet: add compat files to true
Set the following files to true in sorbet/files.yaml:
- ./compat/extend/nil.rb
- ./compat/extend/string.rb
- ./compat/formula.rb
- ./compat/os/mac.rb
2020-07-22 23:43:02 +05:30
vidusheeamoli
8d82aa8c3a sorbet: set multiple files to true
Set the following files to true in sorbet/files.yaml:
- ./fetch.rb
- ./formula_pin.rb
- ./hardware.rb
- ./help.rb
- ./language/go.rb
- ./language/java.rb
- ./language/perl.rb
- ./messages.rb
2020-07-22 09:52:43 +05:30
Issy Long
df17f8a0cf
Merge pull request #8028 from vidusheeamoli/set-files-to-true
sorbet/files.yaml: set multiple files to true
2020-07-17 23:19:07 +01:00
vidusheeamoli
a2bd24efa7 sorbet: set multiple files to true
Set the following files to true in sorbet/files.yaml:
- ./cleaner.rb
- ./compilers.rb
- ./dependency_collector.rb
- ./description_cache_store.rb
- ./descriptions.rb
- ./env_config.rb
2020-07-18 01:47:08 +05:30
vidusheeamoli
01d766d53f sorbet: set os/linux files to true
- Set os/linux/glibc.rb and os/linux/kernel.rb to true in
  sorbet/files.yaml
2020-07-18 00:36:59 +05:30
vidusheeamoli
775f5f88ea sorbet: set os.rb to true 2020-07-18 00:36:59 +05:30
Issy Long
2536f0a09f
Merge pull request #7946 from vidusheeamoli/utils-user-to-true
sorbet: set utils/user.rb to true
2020-07-11 17:55:44 +01:00
vidusheeamoli
9799f32506 sorbet: set utils/user.rb to true 2020-07-11 01:04:22 +05:30
vidusheeamoli
ca97f93bd4 sorbet: set utils/shebang.rb to true 2020-07-09 23:22:48 +05:30
vidusheeamoli
5d91491a93 sorbet: set utils/link.rb to true 2020-07-09 23:18:51 +05:30
Issy Long
2c3b2f68cd
Revert #7933 ("sorbet: set utils/git.rb to true")
- My refactoring of #7933 went wrong in that the tests passed for `brew
  extract` and my manual testing, but both forgot about third-party taps
  exist, so that functionality broke as follows (courtesy of Misty).

  Before:

  ```
  # Git.last_revision_commit_of_files("/usr/local/Homebrew", ["LICENSE.txt", "README.md"])
  => ["ac0665d", ["README.md"]]
  ```

  After:

  ```
  # Git.last_revision_commit_of_files("/usr/local/Homebrew", ["LICENSE.txt", "README.md"])
  => [nil, []]
  ```

- While we think about how to do splats in Sorbet, revert this so
  that users are able to `brew extract` from third party taps again.

- A TODO for later in a separate PR is to write a test for `brew
  extract` that tests the behaviour of third-party taps.

---

- Reverted this manually because the GitHub UI couldn't do it.
- Arguably I didn't need to remove the RBI file, but it's easier to have
  everything gone for now and then revert this revert in future once we
  have a strategy for dealing with splats in Sorbet than have
  inconsistency.
2020-07-09 08:18:38 +01:00
vidusheeamoli
79ac3875d5 sorbet: set utils/notability.rb to true 2020-07-08 23:38:42 +05:30
Issy Long
eee17fd1b5
Merge pull request #7933 from vidusheeamoli/utils-gem-to-true
sorbet: set utils/git.rb to true
2020-07-08 18:45:21 +01:00
vidusheeamoli
76a2e69990 sorbet: set utils/git.rb to true
(cherry picked from commit 44a04adb1de430066af73a65766eb644c0f5bd41)
2020-07-08 22:34:26 +05:30
vidusheeamoli
c8c8839ba2 sorbet: update hidden definitions
srb/tapioca: update rbi of recently bumped gems
2020-07-08 01:03:54 +05:30
vidusheeamoli
0d58d2a46c srb/files: add new files. 13 errors => 14 errors. 2020-07-08 00:38:34 +05:30
vidusheeamoli
3fb00315e7 sorbet/files.yaml: add new files 2020-07-03 11:52:15 +05:30
vidusheeamoli
5fe38ad7a0 srb: set utils files to true
Set utils/bottles.rb, utils/shell.rb and utils/svn.rb to true so that
type errors in these files may be reported by Sorbet

(cherry picked from commit fd3db131b0da78169fdff2031180a2bebe3cbb84)
2020-07-03 00:51:08 +05:30
vidusheeamoli
89605d2c6f sorbet/files.yaml: set utils/tty.rb to true 2020-07-02 16:05:54 +05:30
vidusheeamoli
0ee9cc0b08 sorbet/files.yaml: add new files 2020-06-30 12:40:03 +05:30
vidusheeamoli
54cd4d3209 sorbet/files.yaml: set typed sigil from ignore to false 2020-06-14 11:29:36 +05:30
vidusheeamoli
0495b53326 add files.yaml to override typed sigil 2020-06-12 02:26:30 +05:30