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:
Maximilian Downey Twiss
2022-08-23 03:31:25 +10:00
committed by GitHub
parent 4c0f15a6f3
commit de24923ee8
1144 changed files with 7527 additions and 7515 deletions

View File

@@ -9,17 +9,17 @@ class Mtr < Package
source_url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.93.tar.gz'
source_sha256 '229c673d637bd7dbb96471623785a47e85da0b1944978200c949994c1e6af10d'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mtr/0.93_armv7l/mtr-0.93-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mtr/0.93_armv7l/mtr-0.93-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mtr/0.93_i686/mtr-0.93-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mtr/0.93_x86_64/mtr-0.93-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mtr/0.93_x86_64/mtr-0.93-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '10827000fd244c4a001077b013ed89d9ee156297764a59b763938e2e261d1965',
armv7l: '10827000fd244c4a001077b013ed89d9ee156297764a59b763938e2e261d1965',
i686: '6d42197636f5bc79bd63e879a4e50fa4d13c72e552d8393ac1893b2ae10bf226',
x86_64: '7ec1e4e20d17fa583089f1ce681c4dd373fdf9683eb36a7d14ede883a2fca0fc',
x86_64: '7ec1e4e20d17fa583089f1ce681c4dd373fdf9683eb36a7d14ede883a2fca0fc'
})
def self.build
@@ -33,7 +33,7 @@ class Mtr < Package
def self.install
system 'sudo', 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system 'sudo', 'chown', '-R', "#{USER}:#{USER}", "#{CREW_DEST_DIR}"
system 'sudo', 'chown', '-R', "#{USER}:#{USER}", CREW_DEST_DIR.to_s
end
def self.postinstall