mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns. * Exclude docopt.rb (not our code) from Rubocop * Disable Style/RedundantReturn * Disable Style/MutableConstant * Disable Style/NumericLiterals * Set Layout/IndentationStyle to spaces * Temporarily disable various cops. * Add Rubocop CI via Octocop * Lint tree with rubocop -A -c .rubocop.yml Co-authored-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4c0f15a6f3
commit
de24923ee8
@@ -9,17 +9,17 @@ class Gb < Package
|
||||
source_url 'https://github.com/constabulary/gb/archive/v0.4.4.tar.gz'
|
||||
source_sha256 'c7993ae1994ad85cbe35b833d36a137772599fe7ed720edec2d76ebf3fc4313b'
|
||||
|
||||
binary_url ({
|
||||
binary_url({
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gb/0.4.4_armv7l/gb-0.4.4-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gb/0.4.4_armv7l/gb-0.4.4-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gb/0.4.4_i686/gb-0.4.4-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gb/0.4.4_x86_64/gb-0.4.4-chromeos-x86_64.tar.xz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gb/0.4.4_x86_64/gb-0.4.4-chromeos-x86_64.tar.xz'
|
||||
})
|
||||
binary_sha256 ({
|
||||
binary_sha256({
|
||||
aarch64: '642e7da9d928bc40190a8265c4ea816c18249c8ed16d25a7819f6fc1bb682c0b',
|
||||
armv7l: '642e7da9d928bc40190a8265c4ea816c18249c8ed16d25a7819f6fc1bb682c0b',
|
||||
i686: 'bc36ed10b5a2cfa56349eb6f987434042c165d27225803a29bade0299c7a8935',
|
||||
x86_64: 'a2dd8c25947630b4aefd78ac0d7c38a31bf5db0995b44028e735e781f6253738',
|
||||
x86_64: 'a2dd8c25947630b4aefd78ac0d7c38a31bf5db0995b44028e735e781f6253738'
|
||||
})
|
||||
|
||||
depends_on 'go'
|
||||
@@ -39,7 +39,7 @@ class Gb < Package
|
||||
system "echo 'cd #{CREW_PREFIX}/share/gb' >> gb"
|
||||
system "echo 'bin/gb \"\$@\"' >> gb"
|
||||
system "echo 'cd -' >> gb"
|
||||
system "chmod +x gb"
|
||||
system 'chmod +x gb'
|
||||
system "echo '#!/bin/bash' > gb-vendor"
|
||||
system "echo 'if [ -z \"\$GOPATH\" ]; then' >> gb-vendor"
|
||||
system "echo ' echo \"GOPATH environment variable not set.\"' >> gb-vendor"
|
||||
@@ -48,7 +48,7 @@ class Gb < Package
|
||||
system "echo 'cd #{CREW_PREFIX}/share/gb' >> gb-vendor"
|
||||
system "echo 'bin/gb-vendor \"\$@\"' >> gb-vendor"
|
||||
system "echo 'cd -' >> gb-vendor"
|
||||
system "chmod +x gb-vendor"
|
||||
system 'chmod +x gb-vendor'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user