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

@@ -27,17 +27,17 @@ class Xorg_intel_driver < Package
--libexecdir=#{CREW_LIB_PREFIX} \
--with-default-dri=3"
#system "env LDFLAGS='-lXv' \
# system "env LDFLAGS='-lXv' \
# meson #{CREW_MESON_OPTIONS} \
# -Dwith-default-dri=3 \
# builddir"
#
#system 'meson configure builddir'
#system "ninja -l #{CREW_NPROC.to_i/2} -C builddir"
# system 'meson configure builddir'
# system "ninja -l #{CREW_NPROC.to_i/2} -C builddir"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
#system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
# system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end