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,28 +9,28 @@ class Socat < Package
source_url 'http://www.dest-unreach.org/socat/download/socat-1.7.3.2.tar.gz'
source_sha256 'ce3efc17e3e544876ebce7cd6c85b3c279fda057b2857fcaaf67b9ab8bdaf034'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/socat/1.7.3.2_armv7l/socat-1.7.3.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/socat/1.7.3.2_armv7l/socat-1.7.3.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/socat/1.7.3.2_i686/socat-1.7.3.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/socat/1.7.3.2_x86_64/socat-1.7.3.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/socat/1.7.3.2_x86_64/socat-1.7.3.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '091cdca4b501c08aca4884f2df0772cb7f974ce506c14a958088c4f7a22be634',
armv7l: '091cdca4b501c08aca4884f2df0772cb7f974ce506c14a958088c4f7a22be634',
i686: '4138f1fc6642f5bdbe3b6316bb3b77fd49cd0dd97961509f70d2ab4aa98f7b04',
x86_64: 'dbc08fb0daf806448fbb307021f2934fb07bf58c8ff3dc4c54bee8127b80c202',
x86_64: 'dbc08fb0daf806448fbb307021f2934fb07bf58c8ff3dc4c54bee8127b80c202'
})
depends_on 'readline'
depends_on 'openssl'
def self.build
system "./configure"
system "make"
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end