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 Erlang < Package
source_url 'https://erlang.org/download/otp_src_25.0.tar.gz'
source_sha256 '3e1e2e55409e9484e69b316fcd00ff7e2ed606bcfb2c7cac514f9b9aeb9651e8'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/erlang/25.0_armv7l/erlang-25.0-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/erlang/25.0_armv7l/erlang-25.0-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/erlang/25.0_i686/erlang-25.0-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/erlang/25.0_x86_64/erlang-25.0-chromeos-x86_64.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/erlang/25.0_x86_64/erlang-25.0-chromeos-x86_64.tar.zst'
})
binary_sha256 ({
binary_sha256({
aarch64: '05dab34ca35b1cc29e31114ad88382b40477985927f93e4f6514e60a66f8d7f8',
armv7l: '05dab34ca35b1cc29e31114ad88382b40477985927f93e4f6514e60a66f8d7f8',
i686: '5218ffcd054d29bf5754aedec73777a62b061785358d8bf021a36434deb89b60',
x86_64: '4d34f06850d5a5e6bdd6fc778eab27cdb72501086cd2d130d5ff4e663943ccbf',
x86_64: '4d34f06850d5a5e6bdd6fc778eab27cdb72501086cd2d130d5ff4e663943ccbf'
})
depends_on 'jdk8'