Enable rubocop-chromebrew extension (#10000)

This commit is contained in:
Maximilian Downey Twiss
2025-02-03 23:07:38 +11:00
committed by GitHub
parent 322887ee75
commit a4bd2f417a
3 changed files with 5 additions and 10 deletions

View File

@@ -22,3 +22,4 @@ jobs:
filter_mode: nofilter filter_mode: nofilter
only_changed: true only_changed: true
reporter: github-pr-review reporter: github-pr-review
rubocop_extensions: rubocop-chromebrew

View File

@@ -1,14 +1,6 @@
--- ---
# The behavior of RuboCop can be controlled via the .rubocop.yml require:
# configuration file. It makes it possible to enable/disable - rubocop-chromebrew
# certain cops (checks) and to alter their behavior if they accept
# any parameters. The file can be placed either in your home
# directory or in some project directory.
#
# RuboCop will start looking for the configuration file in the directory
# where the inspected file is and continue its way up to the root directory.
#
# See https://docs.rubocop.org/rubocop/configuration
AllCops: AllCops:
Exclude: Exclude:

View File

@@ -4,6 +4,8 @@
set -e set -e
cd /usr/local/lib/crew/packages/ cd /usr/local/lib/crew/packages/
git clone --depth=1 --branch="$CREW_BRANCH" "$CREW_REPO" ~/build_test git clone --depth=1 --branch="$CREW_BRANCH" "$CREW_REPO" ~/build_test
# Check if rubocop-chromebrew is installed and working, and if not install it.
rubocop --require rubocop-chromebrew &>/dev/null || gem install rubocop-chromebrew
# crew wont let you build if you're in the installation directory. # crew wont let you build if you're in the installation directory.
(cd ~/build_test && yes | CREW_CACHE_ENABLED=1 crew build -vf ~/build_test/packages/hello_world_chromebrew.rb) (cd ~/build_test && yes | CREW_CACHE_ENABLED=1 crew build -vf ~/build_test/packages/hello_world_chromebrew.rb)
yes | crew install vim yes | crew install vim