Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b*: Fix Homebrew/NoFileutilsRmrf RuboCop offenses #178145

Merged
merged 8 commits into from
Jul 25, 2024
6 changes: 3 additions & 3 deletions Formula/b/balena-cli.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "language/node"

Check notice on line 1 in Formula/b/balena-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

Installed previously built bottle for balena-cli from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/balena-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Installed previously built bottle for balena-cli from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/balena-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Installed previously built bottle for balena-cli from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/balena-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

Installed previously built bottle for balena-cli from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/balena-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Installed previously built bottle for balena-cli from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/balena-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

Installed previously built bottle for balena-cli from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

class BalenaCli < Formula
desc "Command-line tool for interacting with the balenaCloud and balena API"
Expand Down Expand Up @@ -42,10 +42,10 @@
arch = Hardware::CPU.intel? ? "x64" : Hardware::CPU.arch.to_s
node_modules = libexec/"lib/node_modules/balena-cli/node_modules"
node_modules.glob("{ffi-napi,ref-napi}/prebuilds/*")
.each { |dir| dir.rmtree if dir.basename.to_s != "#{os}-#{arch}" }
.each { |dir| rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}" }

(node_modules/"lzma-native/build").rmtree
(node_modules/"usb").rmtree if OS.linux?
rm_r(node_modules/"lzma-native/build")
rm_r(node_modules/"usb") if OS.linux?

# Replace universal binaries with native slices
deuniversalize_machos
Expand Down
2 changes: 1 addition & 1 deletion Formula/b/bamtools.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Bamtools < Formula

Check notice on line 1 in Formula/b/bamtools.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

Installed previously built bottle for bamtools from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bamtools.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Installed previously built bottle for bamtools from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bamtools.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Installed previously built bottle for bamtools from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bamtools.rb

View workflow job for this annotation

GitHub Actions / Linux

Installed previously built bottle for bamtools from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bamtools.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

Installed previously built bottle for bamtools from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bamtools.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Installed previously built bottle for bamtools from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bamtools.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

Installed previously built bottle for bamtools from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)
desc "C++ API and command-line toolkit for BAM data"
homepage "https://github.com/pezmaster31/bamtools"
url "https://github.com/pezmaster31/bamtools/archive/refs/tags/v2.5.2.tar.gz"
Expand Down Expand Up @@ -28,7 +28,7 @@

def install
# Delete bundled jsoncpp to avoid fallback
(buildpath/"src/third_party/jsoncpp").rmtree
rm_r(buildpath/"src/third_party/jsoncpp")

# Build shared library
system "cmake", "-S", ".", "-B", "build_shared",
Expand Down
6 changes: 3 additions & 3 deletions Formula/b/basex.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Basex < Formula

Check notice on line 1 in Formula/b/basex.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

Installed previously built bottle for basex from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/basex.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Installed previously built bottle for basex from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/basex.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Installed previously built bottle for basex from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/basex.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

Installed previously built bottle for basex from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/basex.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Installed previously built bottle for basex from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/basex.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

Installed previously built bottle for basex from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)
desc "Light-weight XML database and XPath/XQuery processor"
homepage "https://basex.org"
url "https://files.basex.org/releases/11.1/BaseX111.zip"
Expand All @@ -25,9 +25,9 @@

def install
rm Dir["bin/*.bat"]
rm_rf "repo"
rm_rf "data"
rm_rf "etc"
rm_r("repo")
rm_r("data")
rm_r("etc")

libexec.install Dir["*"]
bin.install Dir["#{libexec}/bin/*"]
Expand Down
2 changes: 1 addition & 1 deletion Formula/b/bee.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Bee < Formula

Check notice on line 1 in Formula/b/bee.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

Installed previously built bottle for bee from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bee.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Installed previously built bottle for bee from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bee.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Installed previously built bottle for bee from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bee.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

Installed previously built bottle for bee from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bee.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Installed previously built bottle for bee from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bee.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

Installed previously built bottle for bee from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)
desc "Tool for managing database changes"
homepage "https://github.com/bluesoft/bee"
url "https://github.com/bluesoft/bee/releases/download/1.103/bee-1.103.zip"
Expand All @@ -18,7 +18,7 @@
depends_on "openjdk"

def install
rm_rf Dir["bin/*.bat"]
rm_r(Dir["bin/*.bat"])
libexec.install Dir["*"]
(bin/"bee").write_env_script libexec/"bin/bee", Language::Java.java_home_env
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/b/benerator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Benerator < Formula

Check notice on line 1 in Formula/b/benerator.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

Installed previously built bottle for benerator from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/benerator.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Installed previously built bottle for benerator from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/benerator.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Installed previously built bottle for benerator from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/benerator.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

Installed previously built bottle for benerator from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/benerator.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Installed previously built bottle for benerator from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/benerator.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

Installed previously built bottle for benerator from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)
desc "Tool for realistic test data generation"
homepage "https://rapiddweller.github.io/homebrew-benerator/"
url "https://github.com/rapiddweller/rapiddweller-benerator-ce/releases/download/3.2.1/rapiddweller-benerator-ce-3.2.1-jdk-11-dist.tar.gz"
Expand All @@ -14,7 +14,7 @@

def install
# Remove unnecessary files
rm_f Dir["bin/*.bat", "bin/pom.xml"]
rm(Dir["bin/*.bat", "bin/pom.xml"])

# Installs only the "bin" and "lib" directories from the tarball
libexec.install Dir["bin", "lib"]
Expand Down
4 changes: 2 additions & 2 deletions Formula/b/bit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def install
arch = Hardware::CPU.intel? ? "x64" : Hardware::CPU.arch.to_s
node_modules = libexec/"lib/node_modules/bit-bin/node_modules"
(node_modules/"leveldown/prebuilds/linux-x64/node.napi.musl.node").unlink
(node_modules/"leveldown/prebuilds").each_child { |dir| dir.rmtree if dir.basename.to_s != "#{os}-#{arch}" }
(node_modules/"leveldown/prebuilds").each_child { |dir| rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}" }

# Remove vendored pre-built binary `terminal-notifier`
node_notifier_vendor_dir = node_modules/"node-notifier/vendor"
node_notifier_vendor_dir.rmtree # remove vendored pre-built binaries
rm_r(node_notifier_vendor_dir) # remove vendored pre-built binaries

if OS.mac?
terminal_notifier_dir = node_notifier_vendor_dir/"mac.noindex"
Expand Down
2 changes: 1 addition & 1 deletion Formula/b/bloaty.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Bloaty < Formula

Check notice on line 1 in Formula/b/bloaty.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

Installed previously built bottle for bloaty from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bloaty.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Installed previously built bottle for bloaty from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bloaty.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Installed previously built bottle for bloaty from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bloaty.rb

View workflow job for this annotation

GitHub Actions / Linux

Installed previously built bottle for bloaty from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bloaty.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

Installed previously built bottle for bloaty from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/bloaty.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Installed previously built bottle for bloaty from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)
desc "Size profiler for binaries"
homepage "https://github.com/google/bloaty"
url "https://github.com/google/bloaty/releases/download/v1.1/bloaty-1.1.tar.bz2"
Expand Down Expand Up @@ -34,7 +34,7 @@
# https://github.com/protocolbuffers/protobuf/issues/9947
ENV.append_to_cflags "-DNDEBUG"
# Remove vendored dependencies
%w[abseil-cpp capstone protobuf re2].each { |dir| (buildpath/"third_party"/dir).rmtree }
%w[abseil-cpp capstone protobuf re2].each { |dir| rm_r(buildpath/"third_party"/dir) }
abseil_cxx_standard = 17 # Keep in sync with C++ standard in abseil.rb
inreplace "CMakeLists.txt", "CMAKE_CXX_STANDARD 11", "CMAKE_CXX_STANDARD #{abseil_cxx_standard}"
inreplace "CMakeLists.txt", "-std=c++11", "-std=c++17"
Expand Down
2 changes: 1 addition & 1 deletion Formula/b/byteman.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Byteman < Formula

Check notice on line 1 in Formula/b/byteman.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

Installed previously built bottle for byteman from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/byteman.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Installed previously built bottle for byteman from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/byteman.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Installed previously built bottle for byteman from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)

Check notice on line 1 in Formula/b/byteman.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

Installed previously built bottle for byteman from

:21ea372fbc3 (Merge 97569fa6519580fc21fdd731cb55882c24f5ec26 into 286561c13602a06b44945bfff68e3bfb7253e282, 2024-07-22)
desc "Java bytecode manipulation tool for testing, monitoring and tracing"
homepage "https://byteman.jboss.org/"
url "https://downloads.jboss.org/byteman/4.0.23/byteman-download-4.0.23-bin.zip"
Expand All @@ -24,7 +24,7 @@
depends_on "openjdk"

def install
rm_rf Dir["bin/*.bat"]
rm_r(Dir["bin/*.bat"])
doc.install Dir["docs/*"], "README"
libexec.install ["bin", "lib", "contrib"]
pkgshare.install ["sample"]
Expand Down
Loading