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

@@ -10,25 +10,25 @@ class Mm_common < Package
source_url "https://github.com/GNOME/mm-common/archive/#{@_ver}.tar.gz"
source_sha256 'd4a85f5bc4ec160c6f4120fd31bcf37041271d7a699b506bc368df57b0e2434c'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mm_common/1.0.2_armv7l/mm_common-1.0.2-chromeos-armv7l.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mm_common/1.0.2_armv7l/mm_common-1.0.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mm_common/1.0.2_armv7l/mm_common-1.0.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mm_common/1.0.2_i686/mm_common-1.0.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mm_common/1.0.2_x86_64/mm_common-1.0.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mm_common/1.0.2_x86_64/mm_common-1.0.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'e8e8af7702962dac7efce6fa23945b47133906ad80fef928956fe986cf097508',
binary_sha256({
aarch64: 'e8e8af7702962dac7efce6fa23945b47133906ad80fef928956fe986cf097508',
armv7l: 'e8e8af7702962dac7efce6fa23945b47133906ad80fef928956fe986cf097508',
i686: '9fdbcdebb0e44bfbafcb507b8ee86500d0d6a35b670e3ccb90ce5c98bc177d22',
x86_64: 'cd1e88142f873f2f514fba24aa4cade988a4bf754d1e0a5b25c2c3833898714a',
x86_64: 'cd1e88142f873f2f514fba24aa4cade988a4bf754d1e0a5b25c2c3833898714a'
})
def self.build
system "meson #{CREW_MESON_OPTIONS} \
-Duse-network=true \
builddir"
system "meson configure builddir"
system "ninja -C builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install