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,9 +9,9 @@ class Uwsgi < Package
source_url 'https://github.com/unbit/uwsgi/archive/2.0.17.tar.gz'
source_sha256 '3dc2e9b48db92b67bfec1badec0d3fdcc0771316486c5efa3217569da3528bf2'
binary_url ({
binary_url({
})
binary_sha256 ({
binary_sha256({
})
depends_on 'pcre'
@@ -21,7 +21,7 @@ class Uwsgi < Package
system "echo 'Select plugin(s):' && ls plugins"
puts
system "echo -n 'Enter selection (separate multiple plugins by a space) [python]: '"
plugins = STDIN.gets.chomp
plugins = $stdin.gets.chomp
puts
system "make #{plugins}"
end