mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Enable rubocop-chromebrew extension (#10000)
This commit is contained in:
committed by
GitHub
parent
322887ee75
commit
a4bd2f417a
1
.github/workflows/Rubocop.yml
vendored
1
.github/workflows/Rubocop.yml
vendored
@@ -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
|
||||||
|
|||||||
12
.rubocop.yml
12
.rubocop.yml
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user