34624 Commits

Author SHA1 Message Date
Issy Long
2aeeaf706e
Merge pull request #14891 from issyl0/cask-rubocops-unnecessary-requires 2023-03-06 12:23:49 +00:00
Issy Long
5a68566097
Merge pull request #14886 from issyl0/rubocop-cask-url-verified-disallow-protocol 2023-03-06 12:22:22 +00:00
Issy Long
aea33909c4
Merge pull request #14884 from issyl0/rubocop-rspec-todos 2023-03-06 12:21:06 +00:00
Issy Long
984e8d1503
Merge pull request #14877 from issyl0/rubocop-layout/multiline-method-indentation
rubocop: Enable `Layout/MultilineMethodCallIndentation` & fix offenses
2023-03-06 12:18:29 +00:00
Issy Long
1d65c942c3
rubocops/cask: Clean up unnecessary requires
- I suspect these were copy-pasted from other cops, like I did in
  https://github.com/Homebrew/brew/pull/14886#discussion_r1125569999.
- The "forwardable" require is unnecesary if the cop doesn't
  `extend Forwardable` and use `def_delegator`.
- The "uri" require is unnecessary if the cop doesn't call `URI` methods.
2023-03-05 17:13:46 +00:00
Issy Long
d995afc000
test/rubocops/cask/url: Ensure that autocorrection works 2023-03-05 17:08:43 +00:00
Issy Long
4e067565dd
rubocops/cask/url: Fix test expectations; regexp for starts_with? 2023-03-05 16:55:47 +00:00
Issy Long
4791224acf
rubocops/cask/url: Remove unnecessary require "forwardable" 2023-03-05 16:38:10 +00:00
Issy Long
f4a0bc7af3
rubocops/cask: Appease Sorbet with the correct inheritance
- The `on_url_stanza` method is now used in two cops, `Url` and
  `UrlLegacyCommaSeparators`. Make the latter inherit from the former
  to make Sorbet happy.
- The style and typecheck checks now pass fine.
2023-03-05 16:33:11 +00:00
Issy Long
b1ef41c25d
Merge pull request #14889 from issyl0/contributions-improve-committers-dedup
utils/github: Fix double counting of author/committer numbers
4.0.5
2023-03-05 16:11:33 +00:00
Sam Ford
74e1e4cb15
Merge pull request #14890 from samford/livecheck/skip-preprocess_url-for-new-strategies
livecheck: Skip #preprocess_url for new strategies
2023-03-05 11:09:29 -05:00
Sam Ford
f997557c3f
livecheck: Skip #preprocess_url for new strategies
I forgot to add the new `Json`, `Xml`, and `Yaml` strategies to the
list of strategies where `#preprocess_url` should be skipped and this
was causing issues for a user in their tap. This is unfortunately
another bug that wasn't surfaced when I tested all the related checks
in our first-party taps.
2023-03-05 10:05:06 -05:00
Issy Long
edeefebf61
utils/github: Fix double counting of author/committer numbers
- The usage of this in `brew contributions` wasn't correct for a user
  with 5 authored commits to homebrew/cask that had been committed by
  other people, the numbers would turn out as 5 authored, 5 committed.
- I decided to do this properly by getting the SHAs for author and
  committer and determine the differences between the two arrays.
  This also accounts for when authored commits are 0, or committed
  commits, or both.
- Add tests, because I don't want to fix this a third time!
2023-03-05 14:41:04 +00:00
Mike McQuaid
8051e8818a
Merge pull request #14866 from MikeMcQuaid/update-report-all-formulae-api 2023-03-05 08:10:57 +00:00
Issy Long
79db987215
rubocops/cask: Disallow protocol in cask URL verified stanza
- Apparently the "verified" parameter in the URL (present when a Cask's
  download URL is not the same as its homepage) shouldn't have the
  protocol (`https`, `http`) at the front.
- Removing this has happened manually in the past, so here's an
  autocorrecting RuboCop for it.
2023-03-04 23:00:04 +00:00
Issy Long
d2edc4d192
rubocop: Intentionally disable RSpec/{DescribeClass,StubbedMock}
- These had a lot of offenses that were marked as "try to enable".
- A lot of the "describe class" ones were for tests for cmds or dev-cmds,
  `brew typecheck` or `brew --env`, and the cop would only pass if I
  changed these "describe"s to `BrewTypecheck` or `Brew__Env` which
  seemed unhelpful.
- The usefulness of the stubbed mocks cop is
  [disputed](https://github.com/rubocop/rubocop-rspec/issues/ 1271), and
  fixing the offenses (not autocorrectable) would involve us doing a
  fair number of changes since changing `expect` to `allow` would then
  force us to make each of the affected tests have `expect` assertions
  at the end, where they sometimes don't currently.
2023-03-04 17:10:04 +00:00
Issy Long
6c10962d85
rubocop: Enable RSpec/MessageSpies with the "receive" style
- This matches the code we already have, rather than autocorrecting
  everything to `have_received`.
2023-03-04 17:10:03 +00:00
Nanda H Krishna
180c89e174
Merge pull request #14874 from Homebrew/dependabot/bundler/Library/Homebrew/msgpack-1.6.1
build(deps): bump msgpack from 1.6.0 to 1.6.1 in /Library/Homebrew
2023-03-04 00:32:38 -05:00
Nanda H Krishna
f02aea0238
Merge pull request #14875 from Homebrew/dependabot/bundler/Library/Homebrew/rack-3.0.4.2
build(deps): bump rack from 3.0.4.1 to 3.0.4.2 in /Library/Homebrew
2023-03-03 19:41:50 -05:00
Mike McQuaid
066a8afe61
Merge pull request #14868 from samford/livecheck/add-yaml-strategy
livecheck: Add Yaml strategy
2023-03-04 00:06:11 +00:00
Issy Long
734a651f93
rubocop: Enable Layout/MultilineMethodCallIndentation & fix offenses
- Part of trying to reduce the number of `Excludes:` we have in our
  RuboCop configs.
- The fixes here all seemed reasonable, with some minimal tweaks for
  line length and less floatiness. Apart from `test/dev-cmd/bottle_spec.rb`
  where RuboCop wanted to do some ridiculously floaty indentation and there
  wasn't an obvious alternative place to break the lines, so I opted for
  in-line disables instead.
2023-03-03 22:18:51 +00:00
BrewTestBot
5fc23e3066
Update RBI files for rack.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-03-03 19:12:26 +00:00
BrewTestBot
b2fc6d9a3c
Update RBI files for msgpack.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-03-03 19:08:30 +00:00
BrewTestBot
873fbd3759
brew vendor-gems: commit updates. 2023-03-03 19:05:40 +00:00
BrewTestBot
008aac8463
brew vendor-gems: commit updates. 2023-03-03 19:01:15 +00:00
dependabot[bot]
704406cd01
build(deps): bump rack from 3.0.4.1 to 3.0.4.2 in /Library/Homebrew
Bumps [rack](https://github.com/rack/rack) from 3.0.4.1 to 3.0.4.2.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.0.4.1...v3.0.4.2)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 18:58:17 +00:00
dependabot[bot]
1635e4d633
build(deps): bump msgpack from 1.6.0 to 1.6.1 in /Library/Homebrew
Bumps [msgpack](https://github.com/msgpack/msgpack-ruby) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/msgpack/msgpack-ruby/releases)
- [Changelog](https://github.com/msgpack/msgpack-ruby/blob/master/ChangeLog)
- [Commits](https://github.com/msgpack/msgpack-ruby/commits)

---
updated-dependencies:
- dependency-name: msgpack
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 18:57:27 +00:00
Issy Long
42c9ad1447
Merge pull request #14860 from issyl0/contributions-commits-committed
dev-cmd/contributions: Count the number of commits a user committed
2023-03-03 17:37:35 +00:00
Mike McQuaid
c8b5e6879f
Merge pull request #14827 from dduugg/suppress-splat-errors
Suppress unsupported splat errors when typechecking
2023-03-03 16:50:05 +00:00
Douglas Eichelberger
e4e20fc78f Revert changes to cask/cmd specs 2023-03-03 08:30:57 -08:00
Douglas Eichelberger
eb23a2c44a Enable typing in a couple more files 2023-03-03 08:30:15 -08:00
Douglas Eichelberger
0d200944c8 Move nostdout to lone calling class 2023-03-03 08:30:15 -08:00
Douglas Eichelberger
ccabd3318e Undo changes to cask/cmd 2023-03-03 08:30:13 -08:00
Douglas Eichelberger
0c533f27ba Enable typing in Cask::Cmd 2023-03-03 08:29:50 -08:00
Douglas Eichelberger
6611a03cc6 Enable typing in Cask::Cmd::AbstractCommand 2023-03-03 08:29:26 -08:00
Douglas Eichelberger
d98b7845d3 Enable typing in misc files 2023-03-03 08:29:26 -08:00
Douglas Eichelberger
3a02894d0b Suppress unsupported splat sorbet errors 2023-03-03 08:29:26 -08:00
Mike McQuaid
41d0265543
Merge pull request #14854 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.47.0
build(deps): bump rubocop from 1.46.0 to 1.47.0 in /Library/Homebrew
2023-03-03 13:29:08 +00:00
Issy Long
693d609730
dev-cmd/contributions: Fix authored vs. committed commit uniqueness
- For a situation where `authored = 3`, `committed = 4`, the previous
  calculation was `3 - 4` which meant that `committed = -1` in the end.
- This was incorrect, since a user can't have negative contributions!
- Instead, only do the subtraction to get the deduplicated `committed`
  count if the number of authored commits is higher than the number of
  committed commits. This approach should achieve the desired "don't
  double count things that the user authored and committed, but do count
  things that another person authored that the user committed".
2023-03-03 13:15:13 +00:00
Issy Long
61cb843cbb
Merge pull request #14871 from issyl0/rubocop-inline-disables
rubocop: Alphabetise, remove config that's default, in-line some disables
2023-03-03 12:10:14 +00:00
Mike McQuaid
d20abb4863
brew style --fix 2023-03-03 10:45:08 +00:00
BrewTestBot
6c39dad788
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-03-03 09:41:59 +00:00
BrewTestBot
a441999ea3
brew vendor-gems: commit updates. 2023-03-03 09:34:01 +00:00
Mike McQuaid
fa09365b3d
Merge pull request #14865 from maxim-belkin/wslview-fix
os.rb: fix for WSL systems without wslview
2023-03-03 09:32:10 +00:00
dependabot[bot]
ad45209dbe
build(deps): bump rubocop from 1.46.0 to 1.47.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.46.0 to 1.47.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.46.0...v1.47.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 09:29:05 +00:00
Mike McQuaid
1ad215d9ea
Merge pull request #14869 from issyl0/rubocop-rspec-metrics
rubocop: Disable RSpec metrics cops
2023-03-03 09:28:35 +00:00
Mike McQuaid
8c333f4ec6
Merge pull request #14851 from hyuraku/move-cask/cmd/list-to-cask/list
Move `cask/cmd/list` to `cask/list`
2023-03-03 09:26:01 +00:00
Mike McQuaid
c2cf0e6f65
Merge pull request #14862 from carlocab/fsmonitor
cmd/update.sh: limit setting `core.fsmonitor` to `false`
2023-03-03 09:11:51 +00:00
Mike McQuaid
26182fd67a
Note that brew update will only report all without API.
It's not worth supporting this option any longer given the API
constraints.
2023-03-03 08:51:58 +00:00
Sam Ford
4a41f01e8b
Merge pull request #14858 from samford/livecheck/json-rework-after-xml-strategy
Json: Add #parse_json method and tidy up tests
2023-03-02 23:27:01 -05:00