mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Improve Codespaces behaviour
- ensure that homebrew/core is always tapped - make RuboCop stop complaining about permissions
This commit is contained in:
parent
b4510401bd
commit
d984ce06f2
@ -21,6 +21,9 @@ brew install shellcheck shfmt gh gnu-tar
|
|||||||
# cleanup any mess
|
# cleanup any mess
|
||||||
brew cleanup
|
brew cleanup
|
||||||
|
|
||||||
|
# actually tap homebrew/core, no longer done by default
|
||||||
|
brew tap homebrew/core
|
||||||
|
|
||||||
# install some useful development things
|
# install some useful development things
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
|
@ -13,6 +13,9 @@ module RuboCop
|
|||||||
def audit_formula(node, _class_node, _parent_class_node, _body_node)
|
def audit_formula(node, _class_node, _parent_class_node, _body_node)
|
||||||
return unless file_path
|
return unless file_path
|
||||||
|
|
||||||
|
# Codespaces routinely screws up all permissions so don't complain there.
|
||||||
|
return if ENV["CODESPACES"] || ENV["HOMEBREW_CODESPACES"]
|
||||||
|
|
||||||
offending_node(node)
|
offending_node(node)
|
||||||
actual_mode = File.stat(file_path).mode
|
actual_mode = File.stat(file_path).mode
|
||||||
# Check that the file is world-readable.
|
# Check that the file is world-readable.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user